/* Vitrine — лендинг. Тёплая бумага, чернила и один акцент. */

:root {
  --paper: #F4EFE7;
  --paper-2: #EBE4D8;
  --card: #FBF8F3;
  --ink: #16130F;
  --ink-2: #221E19;
  --muted: #6B6358;
  --muted-dark: #A39A8C;
  --line: #DCD3C4;
  --line-dark: rgba(244, 239, 231, .14);
  --accent: #C2401B;
  --accent-hover: #A8361A;
  --accent-hi: #F07650;
  --link: #00376B;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .25, 1);
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 999px;
  font: 500 16px/1 var(--sans); letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 15px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #312b24; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn .ext { width: 12px; height: 12px; }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 231, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 36px; height: var(--header-h); }

.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 30px/1 var(--serif); letter-spacing: -.01em; text-decoration: none;
}
.logo-mark { width: 19px; height: 23px; color: var(--accent); flex: none; transform: translateY(-1px); }
.logo--light { color: var(--paper); }
.logo--light .logo-mark { color: var(--accent-hi); }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-size: 15px; text-decoration: none; color: var(--ink); opacity: .78; transition: opacity .2s; }
.nav a:hover { opacity: 1; }

.menu-btn {
  display: none; width: 42px; height: 42px; flex: none;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-nav {
  display: grid; padding: 8px var(--pad) 24px;
  border-top: 1px solid var(--line); background: var(--paper);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  font: 500 30px/1.2 var(--serif); text-decoration: none; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 880px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .header-inner { gap: 12px; }
}
@media (min-width: 881px) { .mobile-nav { display: none !important; } }

/* ---------- Общие для секций ---------- */

.section { padding: clamp(80px, 10vw, 150px) 0; }
.section-title {
  font: 500 clamp(40px, 5vw, 76px)/1 var(--serif);
  letter-spacing: -.015em; text-wrap: balance;
}
.section-title em, .hero-title em, .final-title em { font-style: italic; }
.section-title em { color: var(--accent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section-sub { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 46ch; }

/* ---------- Первый экран ---------- */

.hero { padding: clamp(28px, 4.5vw, 64px) 0 clamp(56px, 7vw, 110px); }

.hero-title {
  font: 500 clamp(46px, 7.3vw, 112px)/.92 var(--serif);
  letter-spacing: -.025em;
  margin-bottom: clamp(28px, 3.6vw, 52px);
}
.hero-line { display: block; text-wrap: balance; }
.hero-title em { color: var(--accent); padding-right: .04em; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
}
.hero-copy { padding-top: 6px; }
.hero-sub { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 30ch; margin-bottom: 36px; }

.hero-count { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 16px; color: var(--muted); }
.hero-count b { color: var(--ink); font-weight: 600; }
.avatars { display: flex; }
.avatars img {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--paper); margin-left: -9px; background: var(--paper-2);
}
.avatars img:first-child { margin-left: 0; }

/* Анимация появления первого экрана */
.js .hero-line, .js .hero-sub, .js .hero .nick-form, .js .hero-count, .js .hero-demo {
  animation: rise .9s var(--ease) both;
}
.js .hero-line:nth-child(2) { animation-delay: .08s; }
.js .hero-sub { animation-delay: .16s; }
.js .hero .nick-form { animation-delay: .22s; }
.js .hero-count { animation-delay: .28s; }
.js .hero-demo { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Форма ника ---------- */

.nick-form { max-width: 560px; }
.nick-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.nick-row {
  display: flex; gap: 6px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 1px 0 rgba(22, 19, 15, .04), 0 12px 32px -18px rgba(22, 19, 15, .25);
  transition: border-color .2s, box-shadow .2s;
}
.nick-row:focus-within { border-color: var(--ink); }
.nick-form.is-invalid .nick-row { border-color: var(--accent); }
.nick-field { flex: 1; min-width: 0; display: flex; align-items: center; padding-left: 20px; }
.nick-at { font: 500 22px/1 var(--serif); color: var(--muted); margin-right: 4px; transform: translateY(-1px); }
.nick-input {
  flex: 1; min-width: 0; height: 52px; padding: 0 8px 0 0;
  border: 0; outline: 0; background: transparent;
  font: 400 18px/1 var(--sans); color: var(--ink);
}
.nick-input::placeholder { color: #A1988A; }
.nick-submit { flex: none; height: 52px; }

.nick-url {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 15px; color: var(--muted); overflow-wrap: anywhere;
}
.nick-url svg { width: 15px; height: 15px; flex: none; }
.nick-url b { color: var(--ink); font-weight: 600; }
.nick-error { min-height: 0; margin-top: 8px; font-size: 15px; color: var(--accent); }
.nick-error:empty { display: none; }

@media (max-width: 560px) {
  .nick-row { flex-direction: column; border-radius: 22px; gap: 6px; }
  .nick-field { padding-left: 16px; }
  .nick-submit { width: 100%; border-radius: 16px; }
}

/* ---------- Демо: профиль превращается в сайт ---------- */

.hero-demo { position: relative; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.demo-tab {
  height: 36px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent;
  font: 500 14px/1 var(--sans); color: var(--muted);
  position: relative; overflow: hidden;
  transition: color .2s, border-color .2s, background-color .2s;
}
.demo-tab:hover { color: var(--ink); border-color: #c6bba9; }
.demo-tab.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.demo-tab .tab-progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent-hi); transform-origin: left; transform: scaleX(0);
}

.demo-stage {
  position: relative;
  display: grid; grid-template-columns: minmax(0, .45fr) 28px minmax(0, 1fr);
  gap: 14px; align-items: center;
}
.demo-flow { color: var(--muted); display: grid; place-items: center; }
.demo-flow svg { width: 28px; height: 10px; }

.fly-layer { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.fly-tile { position: absolute; object-fit: cover; border-radius: 4px; will-change: left, top, width, height, opacity; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45); }

/* Карточка профиля */
.ig-card {
  background: #fff; border-radius: 18px; padding: 14px 12px 12px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -36px rgba(22, 19, 15, .45);
}
.ig-card > .ig-handle { display: block; margin: 0 2px 10px; }
.ig-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ig-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none; object-fit: cover;
  padding: 2px; background: conic-gradient(from 200deg, #F5A623, #E1306C, #8A3AB9, #F5A623);
}
.ig-handle { font: 600 13.5px/1.3 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-title { display: block; margin: 8px 2px 10px; font: 600 12.5px/1.3 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-stats { display: grid; gap: 1px; min-width: 0; font-size: 12px; line-height: 1.35; color: var(--muted); white-space: nowrap; }
.ig-stats b { color: var(--ink); font-weight: 600; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border-radius: 6px; overflow: hidden; }
.ig-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper-2); transition: opacity .35s, filter .35s; }
.ig-grid img.is-sent { opacity: .35; filter: grayscale(.6); }
[data-ig] .ig-head, [data-ig] .ig-handle, [data-ig] .ig-title, [data-ig] .ig-grid { transition: opacity .3s; }
[data-ig].is-swapping .ig-head, [data-ig].is-swapping .ig-handle, [data-ig].is-swapping .ig-title, [data-ig].is-swapping .ig-grid { opacity: 0; }
[data-ig] .ig-head { gap: 10px; }
[data-ig] .ig-avatar { width: 40px; height: 40px; }
@media (max-width: 640px) { [data-ig] .ig-avatar { width: 46px; height: 46px; } [data-ig] .ig-head { gap: 12px; } }

/* Окно браузера */
.browser {
  margin: 0; position: relative;
  background: var(--card); border-radius: 14px; overflow: hidden;
  border: 1px solid #d2c8b8;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 40px 80px -40px rgba(22, 19, 15, .5), 0 12px 24px -16px rgba(22, 19, 15, .2);
}
.demo-browser { overflow: visible; }
.demo-browser .browser-bar { border-radius: 14px 14px 0 0; }
.demo-browser .browser-view { border-radius: 0 0 14px 14px; }
.browser-bar {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  background: #EFE9DF; border-bottom: 1px solid #e0d7c8;
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5CBBB; flex: none; }
.browser-url {
  margin: 0 auto; transform: translateX(-16px);
  max-width: 70%; height: 22px; padding: 0 12px; border-radius: 6px; background: var(--card);
  display: flex; align-items: center; font-size: 12px; color: var(--muted);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.browser-url [data-url-handle] { color: var(--ink); }
.browser-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.browser-shot { width: 100%; height: 100%; object-fit: cover; }

/* Состояния сборки */
.skeleton { position: absolute; inset: 0; padding: 6% 6%; }
.skeleton span { position: absolute; background: #ddd4c5; border-radius: 4px; }
.sk-nav { left: 6%; right: 6%; top: 6%; height: 4%; opacity: .7; }
.sk-h1 { left: 6%; width: 46%; top: 34%; height: 8%; }
.sk-h2 { left: 6%; width: 34%; top: 45%; height: 8%; }
.sk-p { left: 6%; width: 40%; top: 59%; height: 3%; opacity: .7; }
.sk-btn { left: 6%; width: 18%; top: 70%; height: 7%; border-radius: 999px !important; background: #d1c6b4 !important; }
.sk-img { right: 6%; width: 36%; top: 22%; bottom: 14%; }
.js .demo-browser .browser-shot { clip-path: inset(0 0 0 0); }
.js .demo-browser:not(.is-ready) .browser-shot { clip-path: inset(0 0 100% 0); }
.demo-browser.is-building .browser-shot { clip-path: inset(0 0 100% 0); }
.demo-browser.is-revealing .browser-shot { clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease-io); }
.build-line {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent-hi) 20%, #fff 50%, var(--accent-hi) 80%, transparent);
  box-shadow: 0 0 18px 2px rgba(240, 118, 80, .7);
}
.demo-browser.is-revealing .build-line { animation: scanline 1s var(--ease-io) both; }
@keyframes scanline { 0% { top: 0; opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.build-bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: transparent; }
.build-bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); opacity: 0; }
.demo-browser.is-building .build-bar span { opacity: 1; animation: barfill 1.9s linear both; }
@keyframes barfill { to { transform: scaleX(.92); } }

/* Печать «уровень студии» */
.stamp {
  position: absolute; right: -30px; bottom: -34px; width: 104px; height: 104px; z-index: 7;
  color: var(--ink);
  filter: drop-shadow(0 10px 20px rgba(22, 19, 15, .35));
}
/* Крутится группа внутри svg, а не сам svg: рамка значка не растёт при повороте и не даёт горизонтальной прокрутки */
.stamp-spin { transform-box: view-box; transform-origin: 50% 50%; animation: spin 24s linear infinite; }
.stamp text { font: 600 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; fill: var(--paper); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 620px; }
  .hero-sub { max-width: none; }
}

@media (max-width: 640px) {
  .demo-stage { grid-template-columns: 1fr; gap: 12px; }
  .demo-flow { display: none; }
  [data-ig] {
    display: grid; grid-template-columns: minmax(0, 1fr) 132px; column-gap: 14px; padding: 12px;
    grid-template-areas: "handle grid" "head grid" "title grid"; grid-template-rows: auto auto 1fr;
  }
  [data-ig] > .ig-handle { grid-area: handle; margin-top: 4px; }
  [data-ig] .ig-head { grid-area: head; }
  [data-ig] .ig-title { grid-area: title; margin-bottom: 0; }
  [data-ig] .ig-grid { grid-area: grid; }
  .stamp { width: 84px; height: 84px; right: -8px; bottom: -30px; }
  .demo-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
  .demo-tab { padding: 0 6px; font-size: 13.5px; }
}

/* ---------- Лента «Сейчас собираются» ---------- */

.live {
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; min-height: 78px;
}
.live-title {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 0 28px 0 max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  align-self: stretch;
  font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  border-right: 1px solid var(--line-dark);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hi); position: relative; }
.live-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--accent-hi);
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.live-window {
  flex: 1; min-width: 0; overflow: hidden; padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.live-belt { display: flex; width: max-content; }
.js .live-belt { animation: belt 70s linear infinite; }
.live-window:hover .live-belt { animation-play-state: paused; }
@keyframes belt { to { transform: translateX(-50%); } }
.live-list { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0 12px 0 0; }
.live-item {
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 6px 18px 6px 6px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 15px;
}
.live-item img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.live-status { color: var(--muted-dark); display: inline-flex; align-items: center; gap: 8px; }
.live-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7FB08A; }
.is-building .live-status { color: var(--accent-hi); }
.is-building .live-status::before {
  width: 10px; height: 10px; background: none;
  border: 1.5px solid rgba(240, 118, 80, .35); border-top-color: var(--accent-hi);
  animation: spin .9s linear infinite;
}

@media (max-width: 760px) {
  .live { flex-direction: column; align-items: stretch; }
  .live-title { padding: 18px var(--pad) 0; border-right: 0; }
  .live-window { padding: 14px 0 18px; }
}

/* ---------- Как это работает ---------- */

.steps {
  list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.step {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 14px 14px 30px;
}
.step-visual {
  height: 230px; border-radius: 14px; background: var(--paper-2);
  position: relative; overflow: hidden; display: grid; place-items: center;
  margin-bottom: 28px;
}
.step-num { font: italic 500 54px/1 var(--serif); font-variant-numeric: lining-nums; color: var(--accent); padding: 0 12px; }
.step-title { font: 600 30px/1.08 var(--serif); margin: 10px 0 12px; padding: 0 12px; text-wrap: balance; }
.step-text { color: var(--muted); padding: 0 12px; max-width: 34ch; }

/* шаг 1 */
.v-input { align-content: center; gap: 14px; }
.mock-field {
  display: flex; align-items: center; width: min(86%, 300px); height: 52px; padding: 0 18px;
  background: #fff; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 16px; overflow: hidden; white-space: nowrap;
}
.mock-at { font: 500 20px/1 var(--serif); color: var(--muted); margin-right: 4px; }
.mock-caret { width: 1.5px; height: 20px; background: var(--accent); margin-left: 1px; animation: blink 1s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.mock-url { font-size: 13px; color: var(--muted); text-align: center; }
.mock-url span { color: var(--ink); font-weight: 600; }

/* шаг 2 */
.v-build { grid-template-columns: auto auto auto; gap: 14px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 32px); gap: 2px; }
.mini-grid img { width: 32px; height: 32px; object-fit: cover; border-radius: 2px; }
.mini-arrow { width: 26px; height: 10px; color: var(--muted); }
.mini-browser { width: 200px; border-radius: 8px; overflow: hidden; background: var(--card); border: 1px solid #d2c8b8; box-shadow: 0 18px 30px -20px rgba(22, 19, 15, .5); }
.mini-bar { height: 16px; display: flex; gap: 3px; align-items: center; padding: 0 6px; background: #EFE9DF; }
.mini-bar i { width: 5px; height: 5px; border-radius: 50%; background: #D5CBBB; }
.mini-view { position: relative; aspect-ratio: 16 / 10; background: #ddd4c5; overflow: hidden; }
.mini-view img { width: 100%; height: 100%; object-fit: cover; animation: minireveal 4.8s var(--ease-io) infinite; }
.mini-line {
  position: absolute; left: 0; right: 0; height: 2px; top: 0;
  background: var(--accent-hi); box-shadow: 0 0 10px 1px rgba(240, 118, 80, .7);
  animation: miniline 4.8s var(--ease-io) infinite;
}
@keyframes minireveal { 0%, 12% { clip-path: inset(0 0 100% 0); } 52%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes miniline { 0%, 12% { top: 0; opacity: 1; } 52% { top: 100%; opacity: 1; } 56%, 100% { top: 100%; opacity: 0; } }

/* шаг 3 */
.bio-card {
  position: relative; width: min(88%, 300px); background: #fff; border-radius: 16px; padding: 16px;
  box-shadow: 0 18px 36px -24px rgba(22, 19, 15, .5); display: grid; gap: 2px; font-size: 13px;
}
.bio-top { display: flex; align-items: center; gap: 18px; margin-bottom: 10px; }
.bio-ring { padding: 2px; border-radius: 50%; background: conic-gradient(from 200deg, #F5A623, #E1306C, #8A3AB9, #F5A623); }
.bio-ring img { width: 54px; height: 54px; border-radius: 50%; border: 2px solid #fff; }
.bio-stats { display: flex; gap: 16px; }
.bio-stats span { display: grid; font-size: 12px; color: var(--muted); line-height: 1.3; }
.bio-stats b { font-size: 15px; color: var(--ink); }
.bio-name { font-weight: 600; }
.bio-text { color: var(--ink); }
.bio-link {
  display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-weight: 600; margin-top: 2px;
  width: max-content; max-width: 100%; position: relative; white-space: nowrap;
}
.bio-link svg { width: 14px; height: 14px; flex: none; }
.bio-link::after {
  content: ""; position: absolute; inset: -3px -6px; border-radius: 6px;
  background: rgba(0, 55, 107, .1); opacity: 0; animation: linkflash 3.6s ease-in-out infinite;
}
.bio-tap {
  position: absolute; left: 120px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(22, 19, 15, .18); border: 1.5px solid rgba(22, 19, 15, .5);
  animation: tap 3.6s ease-in-out infinite;
}
@keyframes linkflash { 0%, 40% { opacity: 0; } 48%, 70% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes tap {
  0% { transform: translate(60px, 50px) scale(1); opacity: 0; }
  20% { opacity: 1; }
  40% { transform: translate(0, 0) scale(1); }
  46% { transform: translate(0, 0) scale(.75); }
  56% { transform: translate(0, 0) scale(1); opacity: 1; }
  80%, 100% { transform: translate(0, 0) scale(1.1); opacity: 0; }
}

@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; max-width: 560px; }
  .step-visual { height: 210px; }
}
@media (max-width: 440px) {
  .v-build { gap: 10px; }
  .mini-grid { grid-template-columns: repeat(3, 26px); }
  .mini-grid img { width: 26px; height: 26px; }
  .mini-arrow { width: 20px; }
  .mini-browser { width: 166px; }
}

/* ---------- Работы ---------- */

.works { background: var(--paper-2); }
.works .section-sub { font-size: 19px; }
.work-list { margin-top: clamp(40px, 5vw, 72px); display: grid; gap: 28px; }
.work {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 3.6vw, 52px);
  align-items: stretch;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(18px, 2.6vw, 36px);
  box-shadow: 0 -18px 40px -32px rgba(22, 19, 15, .35);
}
.work-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.work-num { font: italic 500 24px/1 var(--serif); font-variant-numeric: lining-nums; color: var(--accent); }
.work-handle { font: 600 clamp(28px, 2.5vw, 36px)/1.05 var(--serif); margin: 10px 0 8px; overflow-wrap: anywhere; letter-spacing: -.01em; }
.work-niche { color: var(--muted); }
.ig-card--work { box-shadow: none; max-width: 300px; }
.work-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.work-actions .btn { height: 50px; padding: 0 22px; font-size: 15px; }
.work-browser { align-self: center; }
.work-browser .browser-shot { transition: transform 1.2s var(--ease); }
.work:hover .work-browser .browser-shot { transform: scale(1.025); }

@media (min-width: 1000px) and (min-height: 760px) {
  .work { position: sticky; top: calc(var(--header-h) + 20px + var(--i) * 14px); }
}

@media (max-width: 999px) {
  .work { grid-template-columns: 1fr; }
  .work-side { display: contents; }
  .work-head { order: 1; }
  .work-browser { order: 2; }
  .ig-card--work {
    order: 3; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 132px; column-gap: 14px;
    grid-template-areas: "handle grid" "head grid" "title grid"; grid-template-rows: auto auto 1fr;
  }
  .ig-card--work > .ig-handle { grid-area: handle; margin-top: 4px; }
  .ig-card--work .ig-head { grid-area: head; }
  .ig-card--work .ig-title { grid-area: title; margin-bottom: 0; }
  .ig-card--work .ig-grid { grid-area: grid; }
  .work-actions { order: 4; margin-top: 0; }
  .work-handle { margin-top: 8px; }
}
@media (max-width: 560px) {
  .work { border-radius: 22px; gap: 18px; padding: 16px; }
  .ig-card--work { grid-template-columns: minmax(0, 1fr) 112px; column-gap: 12px; }
  .ig-card--work .ig-head { gap: 8px; }
  .ig-card--work .ig-avatar { width: 38px; height: 38px; }
  .work-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .work-actions .btn { padding: 0 12px; }
}

.works-more { margin-top: 48px; display: flex; justify-content: center; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: italic 500 clamp(26px, 2.4vw, 34px)/1 var(--serif); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 6px;
}
.link-arrow svg { width: 24px; height: 12px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }

/* ---------- Тарифы ---------- */

.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  margin-top: clamp(40px, 5vw, 64px); align-items: stretch;
}
.plan {
  display: flex; flex-direction: column;
  padding: clamp(26px, 2.6vw, 36px); border-radius: 26px;
  background: var(--card); border: 1px solid var(--line);
}
.plan-name { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 26px 0 6px; font-family: var(--serif); font-variant-numeric: lining-nums; }
.plan-price .amount { font-size: clamp(76px, 7vw, 104px); line-height: .8; font-weight: 500; letter-spacing: -.03em; }
.plan-price .cur { font-size: 40px; line-height: 1; font-weight: 500; }
.plan-price .per { font: 400 16px/1 var(--sans); color: var(--muted); margin-left: 6px; }
.plan-lead { font: italic 500 27px/1.15 var(--serif); margin: 14px 0 26px; }
.plan-list { list-style: none; margin: 0 0 32px; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 13px; }
.plan-list li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.4; }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.plan .btn { margin-top: auto; width: 100%; }

.plan--pro { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 40px 70px -40px rgba(22, 19, 15, .7); }
.plan--pro .plan-price .per { color: var(--muted-dark); }
.plan--pro .plan-list { border-top-color: var(--line-dark); }
.plan--pro .plan-list li::before { background-color: var(--accent-hi); }

.plan--soon { background: transparent; border-style: dashed; border-color: #c9bfae; color: var(--muted); }
.plan--soon .plan-name { color: var(--ink); }
.plan--soon .plan-price, .plan--soon .plan-lead { color: #8B8275; }
.plan--soon .plan-list li::before { background-color: #B5AB9C; }
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
}

@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr; max-width: 560px; }
}

/* ---------- Вопросы ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); }
.faq-title { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font: 600 clamp(22px, 2vw, 28px)/1.2 var(--serif);
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-icon {
  flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); transition: transform .3s var(--ease), background-color .2s, border-color .2s;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink);
  transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .faq-icon { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); }
details[open] .faq-icon::before, details[open] .faq-icon::after { background: var(--paper); }
.faq-body p { padding: 0 60px 26px 0; color: var(--muted); font-size: 17px; max-width: 62ch; }
.faq-list details::details-content {
  height: 0; overflow: clip;
  transition: height .35s var(--ease), content-visibility .35s allow-discrete;
}
.faq-list details[open]::details-content { height: auto; }

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-title { position: static; }
  .faq-body p { padding-right: 0; }
}

/* ---------- Финал ---------- */

.final {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--paper);
  padding: clamp(110px, 14vw, 210px) 0;
}
.final-mosaic {
  position: absolute; inset: -20% -10%; z-index: -2;
  display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px;
  transform: rotate(-8deg); opacity: .5;
}
.mosaic-col { display: flex; flex-direction: column; gap: 12px; }
.js .mosaic-col { animation: colUp 90s linear infinite; }
.mosaic-col:nth-child(even) { animation-direction: reverse; }
.mosaic-col img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
@keyframes colUp { to { transform: translateY(-50%); } }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(22, 19, 15, .9) 0%, rgba(22, 19, 15, .78) 45%, rgba(22, 19, 15, .55) 100%),
    linear-gradient(180deg, var(--ink) 0%, transparent 18%, transparent 82%, var(--ink) 100%);
}
.final-inner { display: grid; justify-items: center; text-align: center; }
.final-title {
  font: 500 clamp(42px, 6.2vw, 96px)/.98 var(--serif); letter-spacing: -.02em;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.final-line { display: block; text-wrap: balance; }
.final-title em { color: var(--accent-hi); }
.nick-form--dark { width: 100%; max-width: 600px; text-align: left; }
.nick-form--dark .nick-label { color: var(--paper); text-align: center; }
.nick-form--dark .nick-row { background: var(--paper); border-color: transparent; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.nick-form--dark .nick-row:focus-within { border-color: var(--accent-hi); }
.nick-form--dark.is-invalid .nick-row { border-color: var(--accent-hi); }
.nick-form--dark .nick-url { color: var(--muted-dark); justify-content: center; }
.nick-form--dark .nick-url b { color: var(--paper); }
.nick-form--dark .nick-error { color: var(--accent-hi); text-align: center; }

@media (max-width: 640px) {
  .final-mosaic { grid-template-columns: repeat(5, minmax(0, 1fr)); inset: -20% -30%; }
  .mosaic-col:nth-child(n + 6) { display: none; }
}

/* ---------- Подвал ---------- */

.footer { background: var(--ink); color: var(--paper); padding-top: 64px; overflow: hidden; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px;
  padding-bottom: 56px; border-bottom: 1px solid var(--line-dark);
}
.footer-brand p { color: var(--muted-dark); font-size: 15px; margin-top: 12px; max-width: 40ch; }
.footer-brand .logo { margin-bottom: 8px; }
.footer-h { font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; opacity: .9; }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.outro {
  margin: 0; padding: 4vw var(--pad) 3.2vw; text-align: center; white-space: nowrap;
  font: 500 clamp(40px, 7.4vw, 140px)/.86 var(--serif); letter-spacing: -.01em; text-transform: uppercase;
  background: linear-gradient(100deg, #F4EFE7 0%, #F4EFE7 38%, var(--accent-hi) 50%, #F4EFE7 62%, #F4EFE7 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
.outro span { display: inline-block; }
@keyframes shimmer { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .outro { white-space: normal; line-height: .9; padding-top: 40px; }
  .outro span { display: block; width: max-content; margin: 0 auto; }
}

/* ---------- Появление при прокрутке ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .steps .step:nth-child(2) { transition-delay: .08s; }
.js .steps .step:nth-child(3) { transition-delay: .16s; }
.js .plans .plan:nth-child(2) { transition-delay: .08s; }
.js .plans .plan:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .live-belt, .js .mosaic-col { animation: none; }
  .live-window { overflow-x: auto; }
  .mini-view img { clip-path: none; }
  .mini-line, .bio-tap { display: none; }
}
