/* =========================================================
   [Имя] OS — сайт-визитка веб-разработчика
   Стили: переменные → база → компоненты → разделы → страницы
   ========================================================= */

:root {
  --wall: #C9D1FF;          /* цвет «обоев»: #FFD5E5 / #CFEFDC / #E4E4E8 */
  --accent: #3B5BFF;        /* акцент: #E5484D / #0F8A5F / #14151A */
  --ink: #14151A;
  --text-2: #33353D;
  --muted: #4A4C55;
  --muted-2: #6B6E79;
  --line: #E4E6EE;
  --line-2: #ECEEF3;
  --panel: #F4F5F9;
  --soft: #F8F9FC;
  --white: #FFFFFF;

  --yellow: #FFE873;
  --pink: #FFD5E5;
  --mint: #D4F5E2;
  --lav: #E2D9FF;
  --peach: #FFE0CC;
  --sky: #D9E3FF;
  --butter: #FFF1B8;
  --green: #18B26B;

  --radius-win: 18px;
  --shadow-win: 0 30px 70px rgba(30, 40, 110, .22);
  --shadow-win-lg: 0 30px 70px rgba(30, 40, 110, .28);

  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --hand: "Caveat", cursive;

  --gutter: clamp(12px, 2vw, 24px);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--wall);
  background-image: radial-gradient(rgba(20, 21, 26, .13) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 8px; }
.mono { font-family: var(--mono); }
.kicker { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.accent-text { color: var(--accent); }

@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Меню сверху ---------- */
.menubar {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px;
  min-height: 44px; padding: 0 18px;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 21, 26, .08);
  font-size: 14px;
}
.menubar__left { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.brand { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-weight: 800; text-decoration: none; }
.brand__mark path { fill: var(--accent); }
.menubar__nav { display: flex; flex-wrap: wrap; gap: 0 18px; font-weight: 500; }
.menubar__nav a { padding: 10px 0; text-decoration: none; }
.menubar__nav a:hover { color: var(--accent); }
.menubar__nav a[aria-current="page"] { font-weight: 800; }
.menubar__right { display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
@media (max-width: 760px) {
  .menubar__nav, .menubar__clock { display: none; }
}

/* ---------- Окно ---------- */
.win {
  background: var(--white);
  border: 1px solid rgba(20, 21, 26, .1);
  border-radius: var(--radius-win);
  box-shadow: var(--shadow-win);
  overflow: hidden;
  overflow: clip; /* не мешает position: sticky внутри окна */
}
.win__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 40px; padding: 0 14px;
  background: var(--panel); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: #5A5C66;
}
.win__title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win__ctrl { letter-spacing: 10px; flex: none; }
.win__body { padding: clamp(24px, 3.4vw, 44px); }
.win--dark { background: var(--ink); color: #E6E8EF; border: 0; box-shadow: 0 30px 70px rgba(20, 25, 80, .36); }
.win--dark .win__bar { background: #1E2027; border-color: #1E2027; color: #A4A7B3; }
.win--accent { background: var(--accent); color: #fff; border: 0; }

/* ---------- Сетка разделов ---------- */
.section { max-width: 1280px; margin: 0 auto; padding: 56px var(--gutter) 0; }
.section--narrow { max-width: 1180px; }
.section--slim { max-width: 1080px; }
.row { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.row--stretch { align-items: stretch; }
.split { display: flex; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 32px; }

.h-section { font-size: clamp(34px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.h-sub { font-size: clamp(28px, 3vw, 42px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.h-card { font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.lead { margin-top: 8px; color: var(--muted); }
.text-lg { font-size: 18px; color: var(--text-2); }
.text-xl { font-size: 19px; color: var(--text-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }

/* ---------- Кнопки, ссылки, метки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 12px;
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { box-shadow: 0 10px 24px rgba(59, 91, 255, .35); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--light { background: #EEF0F7; color: var(--ink); font-weight: 600; }
.btn--white { background: #fff; color: var(--ink); }
.btn--outline { background: #fff; color: var(--ink); border: 1px solid #D6D9E3; font-weight: 600; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn--pill { border-radius: 999px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.link-accent { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--accent); text-decoration: none; }
.link-accent:hover { text-decoration: underline; text-underline-offset: 4px; }

.chip { display: inline-block; padding: 5px 10px; border-radius: 8px; background: var(--panel); font-family: var(--mono); font-size: 12px; }
.chip--sky { background: var(--sky); }
.chip--butter { background: var(--butter); }
.chip--mint { background: var(--mint); }
.chip--yellow { background: var(--yellow); color: #2A2410; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.badge { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 11px; }

/* ---------- Стикеры ---------- */
.note {
  padding: 20px 18px 24px;
  background: var(--yellow); color: #2A2410;
  box-shadow: 0 16px 28px rgba(60, 50, 0, .2);
  font-family: var(--hand); font-size: 28px; line-height: 1.15;
}
.note--pink { background: var(--pink); color: #3A1424; box-shadow: 0 16px 28px rgba(80, 20, 40, .18); }
.note--mint { background: var(--mint); color: #10301E; box-shadow: 0 16px 28px rgba(10, 60, 30, .18); }
.note__sub { margin-top: 12px; font-size: 24px; }
.rot-n4 { transform: rotate(-4deg); } .rot-n3 { transform: rotate(-3deg); } .rot-n2 { transform: rotate(-2deg); }
.rot-2 { transform: rotate(2deg); } .rot-3 { transform: rotate(3deg); }
.notes-col { flex: 0 1 260px; display: flex; flex-direction: column; gap: 22px; padding-top: 30px; }

/* ---------- Первый экран: рабочий стол ---------- */
.desk { position: relative; max-width: 1440px; height: 960px; margin: 0 auto; }
.desk-icons { position: absolute; right: 22px; top: 28px; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
.desk-icon { width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.desk-icon__img {
  width: 60px; height: 52px; border-radius: 12px; background: var(--c, #fff);
  border: 1px solid rgba(20, 21, 26, .12); box-shadow: 0 6px 16px rgba(30, 40, 110, .18);
  display: flex; align-items: center; justify-content: center; transition: transform .15s;
}
.desk-icon:hover .desk-icon__img { transform: translateY(-3px); }
.desk-icon__label { padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .82); font-size: 13px; font-weight: 600; text-align: center; }

.hwin { position: absolute; }
.hwin--hello { left: 3%; top: 40px; width: 52%; z-index: 3; box-shadow: var(--shadow-win-lg); }
.hwin--recent { left: 57.5%; top: 24px; width: 33%; z-index: 2; }
.hwin--term { left: 33%; top: 690px; width: 35%; z-index: 4; }
.hwin--prices { left: 68%; top: 460px; width: 24%; z-index: 3; }
.hwin--note { left: 5%; top: 660px; width: 240px; z-index: 3; }
@media (min-width: 1081px) { .desk--no-recent .hwin--prices { left: 60%; top: 64px; width: 28%; } }
@media (max-width: 1080px) {
  .desk { height: auto; padding: 16px 12px 8px; display: flex; flex-direction: column; gap: 16px; }
  .hwin { position: relative; left: auto; top: auto; width: auto; transform: none; }
  .hwin--note { align-self: flex-start; width: 260px; transform: rotate(-2deg); }
  .desk-icons { display: none; }
}

.hero-title { font-size: clamp(36px, 4.2vw, 62px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.hero-text { max-width: 560px; font-size: 18px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 18px; border-top: 1px dashed #DADDE7; }
.stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat__num { font-size: clamp(22px, 6vw, 30px); white-space: nowrap; font-weight: 800; letter-spacing: -.04em; }
.stat__label { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* миниатюры файлов */
.files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; padding: 18px; }
.file { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.file__thumb { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--c); transition: transform .15s; }
.file:hover .file__thumb { transform: scale(1.03); }
.file__thumb span { position: absolute; left: 8px; border-radius: 3px; background: rgba(255, 255, 255, .9); }
.file__thumb .t-nav { right: 8px; top: 8px; height: 6px; background: rgba(255, 255, 255, .5); }
.file__thumb .t-h1 { top: 22px; width: 55%; height: 10px; }
.file__thumb .t-h2 { top: 36px; width: 38%; height: 10px; }
.file__thumb .t-btn { bottom: 8px; width: 30%; height: 12px; border-radius: 4px; background: var(--p); }
.file__name { font-family: var(--mono); font-size: 12px; line-height: 1.3; text-align: center; }

/* терминал */
.term { padding: 18px 20px 22px; font-family: var(--mono); font-size: 14px; line-height: 1.85; }
.term .p { color: #8FA2FF; }
.term .ok { color: #7BE3A6; }
.cursor { display: inline-block; width: 9px; height: 17px; vertical-align: -3px; background: #E6E8EF; animation: blink 1s steps(1) infinite; }

/* короткий прайс */
.mini-list { padding: 6px 0; }
.mini-list__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #EEF0F5; }
.mini-list__row b { font-weight: 600; font-size: 15px; }
.mini-list__row span { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.mini-list .link-accent { width: 100%; justify-content: space-between; padding: 0 16px; }

/* ---------- Боковая панель + основная (проводник) ---------- */
.side {
  flex: 1 1 300px; max-width: 100%;
  padding: 28px 16px 20px;
  background: var(--soft); border-right: 1px solid var(--line);
}
.side--dark { background: var(--ink); color: #E6E8EF; border-right: 0; }
.side--white { background: #fff; }
.side__title { margin: 0 12px 6px; font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.side__text { margin: 0 12px 20px; font-size: 15px; color: var(--muted); }
.side__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 10px 14px; }
.side__head .side__title { margin: 0; }
.side-list { display: flex; flex-direction: column; gap: 4px; }
.side-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 52px; padding: 8px 12px;
  border: 0; border-radius: 12px; background: transparent; text-align: left;
  transition: background-color .15s;
}
.side-item:hover { background: rgba(20, 21, 26, .05); }
.side-item[aria-selected="true"] { background: var(--accent); color: #fff; }
.side-item__name { flex: 1; font-weight: 500; }
.side-item[aria-selected="true"] .side-item__name { font-weight: 600; }
.side-item__ext { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.side-item[aria-selected="true"] .side-item__ext { color: rgba(255, 255, 255, .85); }
.side-item__sub { display: block; font-size: 13px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item svg { flex: none; }

.side--dark .side-item { color: #E6E8EF; min-height: 48px; }
.side--dark .side-item:hover { background: rgba(255, 255, 255, .06); }
.side--dark .side-item[aria-selected="true"] { background: #2A2C35; color: #fff; }

.main { flex: 2.4 1 480px; min-width: 0; padding: clamp(24px, 3.4vw, 48px); }
[role="tabpanel"][hidden] { display: none; }

/* ---------- Услуги ---------- */
.svc { display: flex; flex-direction: column; gap: 24px; height: 100%; }
.svc__head { display: flex; align-items: center; gap: 20px; }
.svc__icon { width: 84px; height: 84px; flex: none; border-radius: 22px; background: var(--c); display: flex; align-items: center; justify-content: center; }
.checks { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--panel); border-radius: 12px; font-size: 15px; }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318B26B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.foot-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 22px; border-top: 1px dashed #DADDE7; }
.meta-inline { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: 13px; }
.meta-inline i { font-style: normal; color: var(--muted-2); }

/* ---------- Установщик (процесс) ---------- */
.step-dot {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  border: 1.5px solid #5A5D69;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: var(--ink);
}
.side-item[aria-selected="true"] .step-dot { border-color: #7BE3A6; }
.side-item.is-done .step-dot { background: #7BE3A6; border-color: #7BE3A6; }
.side-item.is-done .step-dot::after { content: "✓"; }
.progress { height: 10px; border-radius: 999px; background: #E9EBF2; overflow: hidden; }
.progress__bar { height: 100%; border-radius: 999px; background: var(--accent); }
.out { padding: 14px 16px; border-radius: 12px; background: var(--panel); font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.nav-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }

/* ---------- Портфолио ---------- */
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: #F0F1F6; }
.seg button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font-size: 15px; font-weight: 500; }
.seg button:hover { background: rgba(255, 255, 255, .6); }
.seg button[aria-pressed="true"] { background: #fff; font-weight: 700; box-shadow: 0 2px 6px rgba(20, 25, 60, .12); }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 28px 20px; }
.proj { display: flex; flex-direction: column; gap: 12px; }
.proj[hidden] { display: none; }
.shot { display: block; text-decoration: none; position: relative; aspect-ratio: 16 / 11; padding: 22px 22px 0; border-radius: 16px; overflow: hidden; background: var(--c); }
.shot__label { position: absolute; top: 12px; right: 14px; font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, .85); }
.shot__page { height: 100%; background: #fff; border-radius: 10px 10px 0 0; box-shadow: 0 16px 34px rgba(0, 0, 0, .25); overflow: hidden; transition: transform .25s ease; }
.proj:hover .shot__page { transform: translateY(-6px); }
.shot__bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #EEF0F4; }
.shot__bar i { width: 7px; height: 7px; border-radius: 50%; background: #C9CDD6; }
.shot__url { flex: 1; height: 14px; margin-left: 8px; padding-left: 6px; border-radius: 7px; background: #fff; font-family: var(--mono); font-size: 9px; line-height: 14px; color: #8A8E99; overflow: hidden; }
.shot__body { display: flex; gap: 12px; padding: 14px; }
.shot__col { flex: 1.2; display: flex; flex-direction: column; gap: 7px; }
.shot__img { flex: 1; min-height: 90px; border-radius: 8px; background: var(--s); }
.sl { display: block; border-radius: 3px; }
.sl--h { height: 12px; background: var(--i); }
.sl--t { height: 5px; background: #DCDFE6; }
.sl--b { width: 70px; height: 18px; margin-top: 6px; border-radius: 5px; background: var(--p); }
.w92 { width: 92%; } .w84 { width: 84%; } .w70 { width: 70%; } .w66 { width: 66%; }
.proj__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.proj__title { font-size: 21px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.proj__title a { text-decoration: none; }
.proj__title a:hover { color: var(--accent); }
.proj__cat { font-family: var(--mono); font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.proj__text { font-size: 15px; color: var(--muted); }
.proj__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.proj__stack { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Обо мне (PDF) ---------- */
.viewer { padding: clamp(16px, 3vw, 40px); background: #E6E8EF; }
.paper { max-width: 820px; margin: 0 auto; padding: clamp(24px, 4vw, 56px); background: #fff; box-shadow: 0 10px 30px rgba(20, 25, 60, .14); display: flex; flex-direction: column; gap: 28px; }
.paper__head { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; }
.photo-ph {
  width: 150px; aspect-ratio: 4 / 5; flex: none; border-radius: 10px;
  background-color: #EEF0F6; background-image: repeating-linear-gradient(45deg, #DCE0EA 0 2px, transparent 2px 10px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.photo-pic { display: contents; }
.photo { display: block; width: 150px; height: auto; aspect-ratio: 4 / 5; flex: none; object-fit: cover; border-radius: 10px; background: #EEF0F6; }
.photo--square { width: var(--photo-size, 72px); aspect-ratio: 1; border-radius: 50%; }
.dl-row { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 15px; }
.dl-row dt { flex: 0 0 170px; font-weight: 600; }
.dl-row dt.mono { font-weight: 400; font-size: 13px; color: var(--muted); }
.dl-row dd { flex: 1 1 260px; margin: 0; color: var(--text-2); }

/* ---------- Цены (таблица) ---------- */
.formula { display: flex; align-items: center; border: 1px solid #DDE0E8; border-radius: 8px; overflow: hidden; font-family: var(--mono); font-size: 13px; }
.formula__label { padding: 9px 14px; background: var(--panel); border-right: 1px solid #DDE0E8; color: var(--muted); font-style: italic; }
.formula__val { padding: 9px 14px; }
.formula__val i { font-style: normal; color: var(--muted-2); }
.sheet-wrap { position: relative; overflow-x: auto; border: 1px solid #DDE0E8; border-radius: 8px; }
.sheet { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; }
.sheet th, .sheet td { padding: 16px 12px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.sheet tr > :last-child { border-right: 0; }
.sheet .col-head th { padding: 6px 12px; background: var(--panel); border-color: #DDE0E8; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted-2); text-align: center; }
.sheet .rn { width: 40px; padding-left: 6px; padding-right: 6px; background: var(--panel); border-right-color: #DDE0E8; font-family: var(--mono); font-size: 12px; color: var(--muted-2); text-align: center; font-weight: 400; }
.sheet .head-row th { padding: 10px 12px; border-bottom-color: #DDE0E8; font-weight: 700; }
.sheet .is-featured { background: #EEF1FF; }
.sheet .is-featured .name-cell { box-shadow: inset 0 0 0 2px var(--accent); }
.sheet .name { font-weight: 700; font-size: 17px; }
.sheet .feat { color: var(--text-2); max-width: 420px; }
.sheet .term { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.sheet .price { font-weight: 800; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.sheet .act { padding-top: 10px; text-align: right; }
.sheet-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 12px clamp(16px, 2.6vw, 32px) 18px; font-family: var(--mono); font-size: 12px; }
.sheet-tabs span { padding: 8px 14px; color: var(--muted); }
.sheet-tabs .is-active { background: #fff; border: 1px solid #DDE0E8; border-top: 2px solid var(--accent); border-radius: 0 0 6px 6px; color: var(--ink); font-weight: 500; }
.sheet-tabs .sheet-tabs__note { margin-left: auto; padding: 8px 0; }
.pad-x { padding-left: clamp(16px, 2.6vw, 32px); padding-right: clamp(16px, 2.6vw, 32px); }

/* ---------- Отзывы (мессенджер) ---------- */
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--c, var(--pink)); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.avatar--sm { width: 40px; height: 40px; font-size: 13px; }
.chat { flex: 2 1 460px; min-width: 0; display: flex; flex-direction: column; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.chat__head small { display: block; font-size: 13px; color: var(--muted); }
.chat__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 24px 22px; background: #FBFBFD; }
.chat__sys { align-self: center; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.chat__read { align-self: flex-end; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.bubble { align-self: flex-start; max-width: 78%; padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: #EEF0F6; font-size: 16px; }
.bubble--me { align-self: flex-end; max-width: 70%; border-radius: 18px 18px 6px 18px; background: var(--accent); color: #fff; }
.chat__input { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.fake-input { flex: 1; min-height: 44px; display: flex; align-items: center; padding: 0 16px; border-radius: 999px; background: #F0F1F6; color: var(--muted); font-size: 15px; }
.min-520 { min-height: 520px; }
.min-440 { min-height: 440px; }

/* ---------- Блог (заметки) ---------- */
.side--notes .side-item { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; }
.side--notes .side-item[aria-selected="true"] { background: #FFF6CC; color: var(--ink); }
.side--notes .side-item b { font-size: 15px; line-height: 1.3; }
.side--notes .side-item span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.post-preview { flex: 2 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3.4vw, 48px); background: #FFFDF5; }
.post-preview[hidden] { display: none; }
.post-preview ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); }
.post-preview .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Контакты (письмо) ---------- */
.mail-head { padding: 26px clamp(18px, 3vw, 36px) 18px; }
.mail-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 clamp(18px, 3vw, 36px); border-top: 1px solid var(--line-2); }
.mail-row:focus-within { background: #FAFBFF; }
.mail-row__label { flex: 0 0 90px; font-size: 15px; color: var(--muted); }
.mail-row input, .mail-row select { flex: 1; min-width: 0; min-height: 50px; border: 0; background: transparent; font-size: 16px; }
.mail-row select { font-weight: 600; }
.mail-row input:focus, .mail-row select:focus, .mail-body textarea:focus { outline: none; }
.mail-to { padding: 4px 10px; border-radius: 8px; background: #EEF1FF; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.mail-body { display: block; padding: 14px clamp(18px, 3vw, 36px); border-top: 1px solid var(--line-2); }
.mail-body textarea { width: 100%; min-height: 150px; border: 0; background: transparent; font-size: 17px; resize: vertical; }
.mail-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(18px, 3vw, 36px) 20px; border-top: 1px solid var(--line-2); background: var(--soft); }
.mail-foot p { max-width: 380px; font-size: 13px; color: var(--muted); }
.icon-btn { position: relative; cursor: pointer; width: 50px; height: 50px; flex: none; border: 1px solid #DADDE7; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; }
.form-error { display: none; padding: 10px clamp(18px, 3vw, 36px); background: #FFF0F0; color: #A1121A; font-size: 14px; }
.form-error.is-visible { display: block; }
.mail-row.is-invalid { background: #FFF6F6; }

.vcard a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 18px; text-decoration: none; border-bottom: 1px solid #F0F1F5; }
.vcard a:last-child { border-bottom: 0; }
.vcard a:hover { background: var(--soft); }
.vcard__icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--c); display: flex; align-items: center; justify-content: center; }
.vcard small { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.vcard b { display: block; }

/* ---------- Док и подвал ---------- */
.dock {
  position: sticky; bottom: 16px; z-index: 40;
  width: max-content; max-width: calc(100% - 24px); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 9px;
  background: rgba(255, 255, 255, .66);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .85); border-radius: 22px;
  box-shadow: 0 16px 40px rgba(30, 40, 110, .24);
}
.dock a {
  position: relative; width: 50px; height: 50px; border-radius: 14px;
  background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.dock a:hover, .dock a:focus-visible { transform: translateY(-4px) scale(1.06); }
.dock a::after {
  content: attr(data-label);
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  padding: 4px 8px; border-radius: 6px; background: var(--ink); color: #fff;
  font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s;
}
.dock a:hover::after, .dock a:focus-visible::after { opacity: 1; }
.dock a.is-accent { background: var(--accent); color: #fff; }
.dock a.is-dark { background: var(--ink); color: #fff; }
.dock-spacer { height: 24px; }
@media (max-width: 560px) {
  .dock { gap: 5px; padding: 7px; border-radius: 18px; }
  .dock a { width: 38px; height: 38px; border-radius: 11px; }
  .dock a svg { width: 18px; height: 18px; }
}

.footbar { max-width: 1280px; margin: 0 auto; padding: 64px var(--gutter) 24px; }
.footbar__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-family: var(--mono); font-size: 12px;
}
.footbar__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footbar a { padding: 10px 0; text-decoration: none; }
.footbar a:hover { color: var(--accent); }
.footbar__btn { padding: 10px 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.footbar__btn:hover { color: var(--accent); }

/* ---------- Хлебные крошки ---------- */
.crumbs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 20px; padding: 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, .8); font-family: var(--mono); font-size: 13px; }
.crumbs a { padding: 6px 0; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { font-weight: 500; }

/* ---------- Браузер (блог) ---------- */
.tabbar { display: flex; align-items: flex-end; gap: 4px; padding: 8px 10px 0; background: #ECEEF4; overflow-x: auto; }
.tabbar__tab { display: flex; align-items: center; gap: 8px; min-width: 190px; padding: 9px 14px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.tabbar__tab.is-active { background: #fff; border-radius: 10px 10px 0 0; color: var(--ink); font-weight: 600; }
.tabbar__tab i { margin-left: auto; font-style: normal; color: var(--muted-2); }
.addr { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.addr__back { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 18px; }
.addr__back:hover { background: var(--panel); }
.addr__url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: #F0F1F6; font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.page-pad { padding: clamp(24px, 4vw, 56px); }
.h-page { font-size: clamp(48px, 6vw, 88px); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.search { position: relative; flex: 0 1 340px; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; border-radius: 14px; background: #F0F1F6; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-size: 16px; }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.tag-btn { min-height: 42px; padding: 0 16px; border: 1px solid #DADDE7; border-radius: 999px; background: #fff; font-family: var(--mono); font-size: 13px; }
.tag-btn:hover { border-color: var(--ink); }
.tag-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.featured { display: flex; flex-wrap: wrap; margin-bottom: 36px; border-radius: 18px; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; }
.featured__art { position: relative; flex: 1.1 1 420px; min-height: 340px; padding: 28px; background: var(--accent); }
.featured__win { position: absolute; inset: 28px; background: #fff; border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); overflow: hidden; color: var(--ink); }
.featured__rows { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; font-family: var(--mono); font-size: 13px; }
.featured__rows div { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid #EEF0F5; }
.featured__rows div:last-child { border: 0; font-weight: 500; }
.featured__text { flex: 1 1 380px; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(24px, 3.4vw, 44px); }
.featured__text p { font-size: 17px; color: #C9CBD4; }
.featured__text .btn { align-self: flex-start; margin-top: 8px; }
.featured:hover .btn { transform: translateY(-1px); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px 20px; }
.post-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.post-card[hidden] { display: none; }
.post-card__cover { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; padding: 24px; border-radius: 16px; background: var(--c); }
.post-card__win { width: 78%; background: #fff; border-radius: 10px; box-shadow: 0 14px 30px rgba(20, 25, 60, .18); overflow: hidden; transition: transform .2s ease; }
.post-card:hover .post-card__win { transform: translateY(-4px) rotate(-1deg); }
.post-card__win .win__bar { height: 28px; padding: 0 10px; font-size: 10px; }
.post-card__inner { display: flex; align-items: center; gap: 12px; padding: 14px 14px 16px; }
.post-card__mark { font-size: 34px; font-weight: 800; letter-spacing: -.05em; }
.post-card__lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.post-card__lines span { height: 6px; border-radius: 3px; background: #E2E4EB; }
.post-card__lines span:last-child { width: 70%; }
.post-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.post-card:hover h3 { color: var(--accent); }
.post-card p { font-size: 15px; color: var(--muted); }
.empty-state { padding: 40px 0; text-align: center; font-family: var(--mono); color: var(--muted); }
.empty-state[hidden] { display: none; }
.subscribe { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; margin-top: 48px; }
.subscribe .note { width: 280px; font-size: 30px; line-height: 1.1; }

/* ---------- Статья ---------- */
.article-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.toc { flex: 0 1 260px; position: sticky; top: 70px; }
.toc ol { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 15px; text-decoration: none; counter-increment: toc; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--muted-2); padding-top: 2px; }
.toc a:hover, .toc a.is-active { background: var(--panel); }
.toc a.is-active { color: var(--accent); font-weight: 600; }
.prose { flex: 1 1 560px; min-width: 0; max-width: 720px; font-size: 18px; line-height: 1.7; color: var(--text-2); }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 48px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; color: var(--ink); }
.prose h3 { margin-top: 32px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--panel); font-family: var(--mono); font-size: .85em; }
.prose .note { font-size: 30px; max-width: 520px; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-align: left; }
.prose th { background: var(--panel); font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--muted); }
.prose tr:last-child td { border-bottom: 0; }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 16px; background: var(--accent); color: #fff; }
.callout b { display: block; font-size: 20px; letter-spacing: -.02em; color: #fff; }
.callout span { font-size: 15px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.author { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 22px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.author .photo-ph { width: 72px; border-radius: 50%; aspect-ratio: 1; font-size: 9px; }
.author p { font-size: 15px; color: var(--muted); }

/* ---------- Кейс ---------- */
.props { flex: 1 1 340px; margin: 0; padding: clamp(24px, 3vw, 40px); background: var(--soft); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.props div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid #E6E8EF; }
.props dt { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.props dd { margin: 0; font-weight: 600; text-align: right; }
.bigshot { padding: clamp(24px, 4vw, 56px) clamp(16px, 5vw, 72px) 0; background: #2B3A66; }
.bigshot__frame { background: #fff; border-radius: 14px 14px 0 0; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.bigshot__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #EEF0F4; }
.bigshot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #C9CDD6; }
.bigshot__bar span { flex: 1; max-width: 420px; margin: 0 auto; padding: 4px 12px; border-radius: 999px; background: #fff; font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; }
.placeholder-img {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
  background-color: var(--c, #EEF1F7);
  background-image: repeating-linear-gradient(45deg, rgba(20, 21, 26, .05) 0 2px, transparent 2px 14px);
}
.placeholder-img span { padding: 10px 16px; border-radius: 10px; background: #fff; box-shadow: 0 6px 16px rgba(20, 25, 60, .12); font-family: var(--mono); font-size: 14px; }
.ratio-wide { aspect-ratio: 16 / 7.5; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.goal-list { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.goal-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--panel); font-size: 15px; }
.goal-list li::before { content: "→"; font-family: var(--mono); font-weight: 500; color: var(--accent); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.sol { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 16px; background: var(--c); }
.sol__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; }
.sol__icon { width: 46px; height: 46px; border-radius: 13px; background: rgba(255, 255, 255, .75); display: flex; align-items: center; justify-content: center; }
.sol p { font-size: 15px; color: #26272E; }
.gal-stage { flex: 3 1 520px; min-width: 0; min-height: 520px; padding: clamp(20px, 3vw, 40px); background: #E6E8EF; display: flex; align-items: center; justify-content: center; }
.gal-stage [role="tabpanel"] { width: 100%; display: flex; justify-content: center; }
.gal-browser { width: 100%; max-width: 820px; background: #fff; border-radius: 12px; box-shadow: 0 20px 50px rgba(20, 25, 60, .2); overflow: hidden; }
.gal-browser .shot__bar { padding: 9px 12px; }
.gal-thumb { width: 54px; height: 38px; flex: none; border-radius: 6px; background: var(--c); }
.side--gallery .side-item { border: 2px solid transparent; background: #fff; min-height: 60px; padding: 8px 10px; }
.side--gallery .side-item[aria-selected="true"] { border-color: var(--accent); background: #fff; color: var(--ink); }
.side--gallery .side-item small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; align-items: flex-end; }
.phone { width: 220px; aspect-ratio: 9 / 19; padding: 10px; border-radius: 34px; background: var(--ink); box-shadow: 0 20px 50px rgba(20, 25, 60, .3); }
.phone--sm { width: 190px; border-radius: 30px; }
.phone .placeholder-img { width: 100%; height: 100%; border-radius: 26px; font-family: var(--mono); font-size: 12px; }
.gal-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.arrow-btns { display: flex; gap: 8px; }
.arrow-btn { width: 44px; height: 44px; border: 1px solid #DADDE7; border-radius: 10px; background: #fff; }
.arrow-btn--dark { border: 0; background: var(--ink); color: #fff; }
.palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 12px; }
.swatch { display: flex; flex-direction: column; gap: 8px; }
.swatch i { aspect-ratio: 1; border-radius: 14px; background: var(--c); border: 1px solid rgba(20, 21, 26, .08); }
.swatch b { font-size: 14px; font-weight: 600; }
.swatch span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.type-sample { font-size: clamp(54px, 6vw, 84px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.code { font-family: var(--mono); font-size: 14px; line-height: 1.9; }
.code .k { color: #8FA2FF; } .code .c { color: #7BE3A6; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.kpi { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 16px; background: var(--c); }
.kpi small { font-family: var(--mono); font-size: 12px; }
.kpi b { font-size: clamp(36px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.kpi span { font-size: 14px; color: #26272E; }
.chart { margin-top: 18px; padding: 20px 22px; border-radius: 16px; background: var(--soft); border: 1px solid #E6E8EF; }
.chart__bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.chart__bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: #C9CDD9; }
.chart__bars span.is-after { background: var(--accent); }
.chart__axis { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.next-card { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; text-decoration: none; }
.next-card__body { display: flex; align-items: center; gap: 20px; padding: 24px; }
.next-card .file__thumb { width: 120px; flex: none; }
.next-card:hover .h-card { color: var(--accent); }
.cta-block { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: clamp(24px, 3vw, 34px); border-radius: var(--radius-win); background: var(--accent); color: #fff; box-shadow: 0 30px 70px rgba(30, 40, 110, .3); }
.cta-block .btn { align-self: flex-start; }

/* ---------- Диалоги: 404, спасибо ---------- */
.center-stage { min-height: calc(100vh - 44px - 120px); display: flex; align-items: center; justify-content: center; padding: 40px var(--gutter); position: relative; }
.dialog { width: 100%; max-width: 640px; }
.dialog__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.dialog__icon { width: 72px; height: 72px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--c); }
.big-code { font-size: clamp(80px, 12vw, 150px); font-weight: 800; letter-spacing: -.06em; line-height: .9; }
.steps-list { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.steps-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--panel); counter-increment: s; }
.steps-list li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; }
.steps-list b { display: block; }
.steps-list span { font-size: 15px; color: var(--muted); }
.float-note { position: absolute; width: 230px; }
.float-note--l { left: 6%; bottom: 12%; }
.float-note--r { right: 6%; top: 14%; }
@media (max-width: 1100px) { .float-note { display: none; } }

/* ---------- Политика ---------- */
.legal { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.legal h2 { margin-top: 36px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.legal h2:first-of-type { margin-top: 8px; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal-warn { padding: 14px 16px; border-radius: 12px; background: var(--butter); font-size: 15px; color: #3D3510; }

/* =========================================================
   ЭФФЕКТЫ И ПАРАЛЛАКС
   Включаются классом .fx на <html> (ставится скриптом в <head>,
   если в системе не включено «уменьшение движения»).
   Параллакс использует свойство translate, анимации — transform/scale,
   поэтому они не мешают друг другу.
   ========================================================= */

/* ---- Переходы между страницами (View Transitions API) ---- */
@view-transition { navigation: auto; }
.menubar { view-transition-name: menubar; }
.dock { view-transition-name: dock; }
::view-transition-old(root) { animation: vt-out .34s cubic-bezier(.4, 0, 1, 1) both; transform-origin: 50% 100%; }
::view-transition-new(root) { animation: vt-in .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.9) translateY(60px); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.05); filter: blur(6px); } }

/* запасной вариант для браузеров без View Transitions */
.vt-fallback.fx main, .vt-fallback.fx .footbar { animation: page-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.vt-fallback.is-leaving main, .vt-fallback.is-leaving .footbar { opacity: 0; transform: scale(.94) translateY(40px); filter: blur(4px); transition: opacity .28s ease, transform .32s ease, filter .32s ease; }
@keyframes page-in { from { opacity: 0; transform: scale(1.03); filter: blur(4px); } }

/* ---- Полоса прогресса прокрутки в меню ---- */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* ---- Обои: точки сдвигаются медленнее страницы ---- */
.fx body { background-position: 0 calc(var(--bgy, 0) * 1px); }

/* ---- Первый экран: окна «открываются» по очереди ---- */
.fx .hwin, .fx .desk-icon { animation: win-open .8s cubic-bezier(.2, .9, .25, 1.15) both; animation-delay: var(--delay, 0s); }
.hwin--hello { --delay: .05s; } .hwin--recent { --delay: .22s; } .hwin--prices { --delay: .36s; }
.hwin--term { --delay: .5s; } .hwin--note { --delay: .7s; }
.desk-icon:nth-child(1) { --delay: .8s; } .desk-icon:nth-child(2) { --delay: .88s; }
.desk-icon:nth-child(3) { --delay: .96s; } .desk-icon:nth-child(4) { --delay: 1.04s; }
@keyframes win-open { from { opacity: 0; transform: translateY(50px) scale(.86); } }
.fx .hwin { will-change: translate; }
.fx .is-draggable .win__bar, .fx .hwin--note.is-draggable { cursor: grab; touch-action: none; user-select: none; }
.is-dragging, .is-dragging * { cursor: grabbing !important; user-select: none !important; }
.hwin.is-dragging { box-shadow: 0 50px 90px rgba(30, 40, 110, .38); }

/* ---- Появление при прокрутке: окно «раскрывается» ---- */
.fx .reveal {
  opacity: 0;
  transform: perspective(1400px) translateY(70px) scale(.94) rotateX(-12deg); /* наклон «назад»: окно не шире своего места */
  transform-origin: 50% 0;
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1) var(--rd, 0s), transform 1.05s cubic-bezier(.2, .7, .2, 1) var(--rd, 0s);
}
.fx .reveal.is-in { opacity: 1; transform: none; }
.fx .reveal-pop { opacity: 0; scale: .8; transition: opacity .6s ease var(--rd, 0s), scale .8s cubic-bezier(.2, .9, .25, 1.35) var(--rd, 0s); }
.fx .reveal-pop.is-in { opacity: 1; scale: 1; }

/* ---- Терминал печатает строки ---- */
.fx .term > div { opacity: 0; translate: -10px 0; transition: opacity .3s ease, translate .3s ease; transition-delay: calc(var(--i, 0) * .2s + var(--td, .15s)); }
.fx .term.is-typed > div { opacity: 1; translate: 0 0; }
.hwin--term .term { --td: 1.1s; }

/* ---- Наклон карточек за курсором ---- */
.fx .shot, .fx .post-card__cover { transition: transform .25s ease; transform-style: preserve-3d; will-change: transform; }

/* ---- Док с увеличением как в macOS ---- */
.dock a { transform-origin: 50% 100%; }
.dock.is-mag a { transition: scale .12s ease, translate .12s ease; }
.dock.is-mag a:hover, .dock.is-mag a:focus-visible { transform: none; }

/* ---- Картинка внутри рамки едет медленнее (кейс) ---- */
.fx [data-parallax-img] { scale: 1.16; }

/* ---- Плавающие элементы на обоях ---- */
main { position: relative; }
.deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.deco__item { position: absolute; }
.deco__item > * { animation: bob var(--bob, 7s) ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(var(--tilt, 4deg)); } }
.deco-cursor { width: 34px; height: 34px; }
.deco-folder { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; font-family: var(--mono); font-size: 10px; }
.deco-folder i { width: 48px; height: 38px; border-radius: 8px; background: var(--c, #fff); box-shadow: 0 8px 18px rgba(30, 40, 110, .2); }
.deco-folder span { padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .8); }
.deco-win { width: 68px; border-radius: 9px; background: #fff; box-shadow: 0 10px 24px rgba(30, 40, 110, .22); overflow: hidden; }
.deco-win b { display: block; height: 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
.deco-win em { display: block; margin: 9px 8px 10px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) 0 62%, #E9EBF2 62%); }
.deco-star { width: 30px; height: 30px; }
.deco-sticky { width: 60px; height: 56px; padding: 8px; background: var(--yellow); box-shadow: 0 10px 18px rgba(60, 50, 0, .2); font-family: var(--hand); font-size: 20px; line-height: 1; color: #2A2410; }
@media (max-width: 1360px) { .deco { display: none; } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .deco { display: none; }
}

/* ---------- Согласие на обработку данных в форме заявки ---------- */
.mail-consent { display: flex; align-items: flex-start; gap: 10px; max-width: 460px; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.mail-consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.mail-consent a { color: var(--accent); }
.mail-consent.is-invalid { color: #A1121A; }
.mail-body.is-invalid { background: #FFF6F6; }

/* ---------- Статьи из админки: чек-листы Markdown ---------- */
.prose li:has(> input[type="checkbox"]) { list-style: none; margin-left: -24px; }
.prose li > input[type="checkbox"] { width: 17px; height: 17px; margin: 0 10px 0 0; vertical-align: -2px; accent-color: var(--accent); }
.prose hr { border: 0; border-top: 1px dashed var(--line); margin: 40px 0; }
.prose blockquote { padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--panel); }

/* ---------- Плашка cookie ---------- */
.cookie-note {
  position: fixed; left: 16px; bottom: 104px; z-index: 60;
  width: min(420px, calc(100% - 32px));
  box-shadow: var(--shadow-win-lg);
}
.cookie-note[hidden] { display: none; }
.cookie-note__body { display: grid; gap: 14px; padding: 18px 20px 20px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.cookie-note__body p { margin: 0; }
.cookie-note__body a { color: var(--accent); }
.cookie-note__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) {
  .cookie-note { bottom: 84px; }
  .cookie-note__actions .btn { flex: 1 1 auto; }
}
