/* Vitrine V9: лендинг в духе Instagram. Два варианта первого экрана для A/B: a — минимум и магия, b — референс Паши. */

:root {
  --bg: #ffffff;
  --soft: #fafafa;
  --ink: #000000;
  --muted: #737373;
  --line: #dbdbdb;
  --sep: #efefef;
  --blue: #0095f6;
  --blue-2: #1877f2;
  --link: #00376b;
  --ok: #28a745;
  --ig: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
  --ig-soft: linear-gradient(45deg, rgba(254, 218, 117, .22), rgba(250, 126, 30, .18) 25%, rgba(214, 41, 118, .16) 50%, rgba(150, 47, 191, .16) 75%, rgba(79, 91, 213, .18));
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.22, 1.25, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
section[id] { scroll-margin-top: 80px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
svg.i { width: 1em; height: 1em; flex: none; }

/* ---------- кнопки и поле ника ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color .2s, transform .15s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); }
.btn-soft { background: var(--sep); color: var(--ink); }
.btn-soft:hover { background: #e3e3e3; }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1px #b8b8b8; }
.btn-lg { height: 56px; padding: 0 26px; font-size: 17px; border-radius: 14px; }

.ask { display: flex; gap: 8px; width: 100%; max-width: 520px; }
.ask__field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; height: 56px; padding: 0 16px 0 10px; border-radius: 14px; background: var(--sep); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background-color .2s; }
.ask__field:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.ask__ava { position: relative; flex: none; width: 36px; height: 36px; margin-right: 10px; border-radius: 50%; padding: 2px; background: var(--ig); }
.ask__ava b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; background: #f2f2f2; font-size: 15px; font-weight: 700; color: var(--muted); text-transform: uppercase; transition: background-color .3s, color .3s; }
.ask__ava.has b { background: #fff; color: var(--ink); }
.ask__at { font-size: 17px; font-weight: 600; color: var(--muted); }
.ask__field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 17px; font-weight: 500; }
.ask__field input::placeholder { color: #a8a8a8; font-weight: 400; }
.ask__err { margin-top: 8px; font-size: 14px; color: #ed4956; }
.note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.note b { color: var(--ink); font-weight: 600; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.8) blur(16px); backdrop-filter: saturate(1.8) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.is-scrolled { border-color: var(--sep); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.brand__mark { position: relative; width: 30px; height: 30px; border-radius: 50%; padding: 2.5px; background: var(--ig); }
.brand__mark i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid #fff; background: #000; }
.brand__mark i::after { content: ""; position: absolute; inset: 9.5px; border-radius: 3px; border: 2px solid #fff; }
.top__links { display: flex; gap: 4px; margin-left: auto; }
.top__links a { padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink); }
.top__links a:hover { background: var(--soft); }
.top .btn { height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; }

/* ---------- первый экран, вариант A: минимум и магия ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(40% 50% at 18% 30%, rgba(254, 218, 117, .28), transparent 70%), radial-gradient(38% 46% at 82% 22%, rgba(150, 47, 191, .18), transparent 70%), radial-gradient(40% 50% at 60% 80%, rgba(214, 41, 118, .12), transparent 70%); pointer-events: none; }
.v-b .hero-a, .v-a .hero-b { display: none; }
.hero-a { position: relative; padding-top: clamp(28px, 5vh, 64px); padding-bottom: clamp(36px, 5vh, 64px); text-align: center; }
.hero-a__title { font-family: var(--display); font-size: clamp(40px, 6vw, 80px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; }
.hero-a__title span { display: block; }
.grad { background: var(--ig); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-a__sub { max-width: 560px; margin: 18px auto 0; font-size: clamp(17px, 1.5vw, 20px); color: #3a3a3a; text-wrap: pretty; }
.hero-a .ask { margin: 28px auto 0; }
.hero-a .note { text-align: center; }

/* превью: профиль → сайт, обновляется пока человек печатает */
.duo { position: relative; display: grid; grid-template-columns: minmax(0, 290px) 110px minmax(0, 500px); justify-content: center; align-items: center; margin: clamp(44px, 6vh, 60px) auto 0; max-width: 940px; }
.pcard { padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--sep), 0 24px 50px -30px rgba(0, 0, 0, .35); text-align: left; }
.pcard__head { display: flex; align-items: center; gap: 14px; }
.ring { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: var(--ig); }
.ring b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; overflow: hidden; font-size: 24px; font-weight: 700; text-transform: uppercase; }
.ring.spin::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(from 0deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, transparent 70%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); animation: spin 1s linear infinite; }
.pcard__name { min-width: 0; }
.pcard__name b { display: block; font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__name span { font-size: 13px; color: var(--muted); }
.pcard__stats { display: flex; gap: 14px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.pcard__stats b { color: var(--ink); }
.pcard__bio { margin-top: 10px; font-size: 13.5px; line-height: 1.35; }
.pcard__link { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 8px 3px 6px; margin-left: -6px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--link); transition: background-color .4s; }
.pcard__link.flash { background: #e8f3ff; }
.pcard__link svg { width: 14px; height: 14px; }
.pcard__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 12px -18px -16px; border-radius: 0 0 20px 20px; overflow: hidden; }
.pcard__grid i { display: block; aspect-ratio: 1; background: #eee; background-size: cover; background-position: center; }

.beam { position: relative; height: 2px; margin: 0 10px; background: repeating-linear-gradient(90deg, #d5d5d5 0 6px, transparent 6px 12px); }
.beam::after { content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ig); box-shadow: 0 0 12px rgba(214, 41, 118, .6); animation: beam 1.6s var(--out) infinite; }
.beam span { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--muted); }
@keyframes beam { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }

.screen { position: relative; container-type: inline-size; }
.screen .bw { box-shadow: 0 0 0 1px var(--sep), 0 40px 70px -40px rgba(0, 0, 0, .45); }
.screen__skel { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; top: 4.6cqw; border-radius: 0 0 14px 14px; overflow: hidden; display: flex; flex-direction: column; padding: 5cqw; gap: 2cqw; background: #fbfbfb; opacity: 0; transition: opacity .4s; }
.screen.is-skel .screen__skel { opacity: 1; }
.screen__skel b { font-size: 4.2cqw; letter-spacing: -.03em; font-weight: 700; }
.screen__skel i { display: block; height: 2.4cqw; border-radius: 1cqw; background: linear-gradient(90deg, #eee, #f7f7f7, #eee); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.screen__skel i:nth-of-type(1) { width: 62%; height: 5cqw; }
.screen__skel i:nth-of-type(2) { width: 48%; height: 5cqw; }
.screen__skel i:nth-of-type(3) { width: 40%; }
.screen__skel i:nth-of-type(4) { width: 22%; height: 5cqw; border-radius: 99cqw; margin-top: 2cqw; }
.screen__skel em { position: absolute; right: 5cqw; top: 5cqw; bottom: 5cqw; width: 36%; border-radius: 2cqw; background: var(--ig-soft); }
.screen__host { position: absolute; left: 50%; top: -38px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: #000; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.screen__host svg { width: 13px; height: 13px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- первый экран, вариант B: референс Паши ---------- */
.hero-b { position: relative; padding: clamp(36px, 6vh, 72px) 0 clamp(36px, 6vh, 64px); }
.hero-b .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-b__title { font-family: var(--display); font-size: clamp(38px, 5vw, 66px); line-height: 1.03; letter-spacing: -.045em; font-weight: 700; }
.points { display: grid; gap: 12px; margin-top: 26px; }
.points li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; }
.points li i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ig); color: #fff; }
.points li i svg { width: 15px; height: 15px; }
.hero-b .ask { margin-top: 30px; }
.works { position: relative; height: min(640px, 76vh); overflow: hidden; border-radius: 28px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--sep); -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); }
.works__col { position: absolute; top: 0; display: grid; gap: 16px; padding: 16px 0; animation: up 46s linear infinite; }
.works__col:nth-child(1) { left: 16px; right: calc(50% + 8px); }
.works__col:nth-child(2) { left: calc(50% + 8px); right: 16px; animation-duration: 58s; animation-direction: reverse; }
.works:hover .works__col { animation-play-state: paused; }
@keyframes up { to { transform: translateY(-50%); } }
.work { position: relative; display: block; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--sep), 0 18px 30px -24px rgba(0, 0, 0, .4); cursor: pointer; transition: transform .3s var(--out); }
.work:hover { transform: translateY(-3px); }
.work .bw { border-radius: 0; box-shadow: none; }
.work__cap { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.work__cap .ring { width: 26px; height: 26px; padding: 2px; }
.work__cap .ring b { border-width: 2px; font-size: 10px; }
.work__cap em { margin-left: auto; font-style: normal; font-weight: 500; color: var(--muted); }
.work__ph { padding: 14px; background: linear-gradient(160deg, #f6f6f6, #ececec); display: grid; place-items: center; }
.work__ph .ip { --u: 5.2px; }

/* ---------- общие секции ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec--soft { background: var(--soft); }
.h2 { font-family: var(--display); font-size: clamp(30px, 4vw, 54px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; text-wrap: balance; }
.lead { margin-top: 14px; font-size: clamp(17px, 1.4vw, 19px); color: #3a3a3a; text-wrap: pretty; }
.head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }

/* лента «сейчас собираются» в виде историй */
.live { padding: 26px 0 30px; border-top: 1px solid var(--sep); border-bottom: 1px solid var(--sep); background: #fff; }
.live__row { display: flex; align-items: center; gap: 22px; }
.live__label { flex: none; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.live__label i { width: 8px; height: 8px; border-radius: 50%; background: #ed4956; box-shadow: 0 0 0 4px rgba(237, 73, 86, .18); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(237, 73, 86, 0); } }
.live__track { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); }
.live__list { display: flex; gap: 22px; width: max-content; animation: slide 50s linear infinite; }
.live__track:hover .live__list { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.story { width: 84px; text-align: center; }
.story .ring { width: 72px; height: 72px; margin: 0 auto; }
.story.is-done .ring { background: #dbdbdb; }
.story .ring b { font-size: 13px; color: #fff; letter-spacing: -.01em; text-transform: none; font-weight: 700; }
.story p { margin-top: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story span { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.story.is-done span { color: var(--ok); }

/* как это происходит */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--sep); overflow: hidden; }
.step__vis { height: 230px; display: grid; place-items: center; background: var(--soft); border-bottom: 1px solid var(--sep); padding: 20px; }
.step__txt { padding: 20px 22px 24px; }
.step__n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #000; color: #fff; font-size: 13px; font-weight: 700; }
.step h3 { margin-top: 12px; font-size: 21px; letter-spacing: -.02em; }
.step p { margin-top: 6px; font-size: 15.5px; color: #3a3a3a; }
.mini-ask { width: 100%; max-width: 280px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px 0 8px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-weight: 600; }
.mini-ask .ring { width: 30px; height: 30px; padding: 2px; }
.mini-ask .ring b { border-width: 2px; font-size: 12px; }
.mini-ask em { margin-left: auto; font-style: normal; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 13px; line-height: 30px; }
.typer::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -.15em; background: #000; animation: blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mini-build { width: 100%; max-width: 280px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.mini-build__top { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.mini-build__top .ring { width: 34px; height: 34px; padding: 2px; }
.mini-build__top .ring b { border-width: 2px; font-size: 12px; background: #f2f2f2; }
.bar { height: 6px; margin-top: 14px; border-radius: 6px; background: var(--sep); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ig); }
.mini-build ul { margin-top: 12px; display: grid; gap: 6px; font-size: 13px; }
.mini-build li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.mini-build li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #cfcfcf; flex: none; }
.mini-build li.ok { color: var(--ink); }
.mini-build li.ok::before { border: 0; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.6 7.3l2.2 2.2 4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.mini-bio { width: 100%; max-width: 280px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 13.5px; }
.mini-bio__head { display: flex; align-items: center; gap: 10px; }
.mini-bio__head .ring { width: 44px; height: 44px; }
.mini-bio__head .ring b { font-size: 14px; border-width: 2px; }
.mini-bio p { margin-top: 10px; line-height: 1.35; }
.mini-bio .pcard__link { font-size: 13.5px; }
.mini-bio__dom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 8px 10px; border-radius: 10px; background: var(--soft); font-size: 12.5px; }
.mini-bio__dom em { font-style: normal; font-weight: 700; color: var(--blue); }

/* результат: сайты вымышленных студий */
.show__tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 26px; }
.tab { height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--sep); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.tab[aria-selected="true"] { background: #000; color: #fff; }
.show__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; max-width: 1080px; margin: 0 auto; }
.show__site .bw { box-shadow: 0 0 0 1px var(--sep), 0 50px 80px -40px rgba(0, 0, 0, .45); }
.show__phone .ip { --u: 8.2px; }
.show__stage > * { transition: opacity .35s var(--out), transform .5s var(--out); }
.show__stage.is-swap > * { opacity: 0; transform: translateY(10px); }
.show__note { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 880px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; padding: 30px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.plan--pro { box-shadow: none; position: relative; background: #fff; }
.plan--pro::before { content: ""; position: absolute; inset: 0; border-radius: 24px; padding: 2px; background: var(--ig); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan__name { font-size: 16px; font-weight: 700; color: var(--muted); }
.plan__price { margin-top: 8px; font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.plan__price small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__for { margin-top: 12px; font-size: 16.5px; font-weight: 500; }
.plan ul { margin: 22px 0 26px; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 28px; font-size: 15.5px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6 5.4-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.plan--pro li::before { background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6 5.4-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), var(--ig); background-size: 18px, 100%; }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* вопросы */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--sep); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid #000; border-bottom: 2px solid #000; transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 40px 20px 0; font-size: 16px; color: #3a3a3a; }

/* финал: форма и контакты */
.end { position: relative; overflow: hidden; text-align: center; }
.end::before { content: ""; position: absolute; inset: 0; background: var(--ig-soft); }
.end .wrap { position: relative; }
.end .ask { margin: 26px auto 0; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; max-width: 880px; margin: clamp(40px, 5vw, 60px) auto 0; text-align: left; }
.contact__card { padding: 24px; border-radius: 20px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.contact__card h3 { font-size: 18px; letter-spacing: -.01em; }
.contact__card p { margin-top: 6px; font-size: 15px; color: #3a3a3a; }
.contact form { display: grid; gap: 8px; margin-top: 14px; }
.contact input, .contact textarea { width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 15px; resize: vertical; }
.contact input:focus, .contact textarea:focus { outline: 0; box-shadow: inset 0 0 0 1.5px #000; }
.contact form .btn { justify-self: start; }

.foot { padding: 28px 0 90px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--sep); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.foot .brand { font-size: 17px; color: var(--ink); }
.foot .brand__mark { width: 24px; height: 24px; padding: 2px; }
.foot .brand__mark i { border-width: 2px; }
.foot .brand__mark i::after { inset: 7.5px; border-width: 1.5px; border-radius: 2px; }
.foot span:last-child { margin-left: auto; }

/* просмотр примера «провалиться» */
.viewer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.viewer.is-open { opacity: 1; pointer-events: auto; }
.viewer__box { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; width: min(1100px, 100%); transform: scale(.96); transition: transform .4s var(--spring); }
.viewer.is-open .viewer__box { transform: none; }
.viewer__box .ip { --u: 8px; }
.viewer__close { position: absolute; right: -6px; top: -48px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.viewer__cta { grid-column: 1 / -1; display: flex; justify-content: center; gap: 10px; }

/* панель мокапа */
.mock { position: fixed; z-index: 90; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 14px; border-radius: 14px; background: rgba(0, 0, 0, .86); color: #fff; font-size: 13px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); }
.mock b { font-weight: 700; }
.mock__sw { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .14); }
.mock__sw a { height: 28px; padding: 0 10px; border-radius: 8px; line-height: 28px; font-weight: 600; color: #ddd; }
.mock__sw a.on { background: #fff; color: #000; }
.mock__link { height: 32px; padding: 0 10px; border-radius: 8px; line-height: 32px; font-weight: 600; background: rgba(255, 255, 255, .14); }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .duo { grid-template-columns: minmax(0, 300px); gap: 0; justify-items: center; }
  .beam { width: 2px; height: 46px; margin: 10px 0; background: repeating-linear-gradient(180deg, #d5d5d5 0 6px, transparent 6px 12px); }
  .beam::after { left: -4px; animation-name: beam-v; }
  .beam span { left: 16px; top: 14px; transform: none; }
  @keyframes beam-v { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
  .screen { width: 100%; max-width: 560px; margin-top: 30px; }
  .hero-b .wrap { grid-template-columns: 1fr; }
  .works { height: 520px; }
  .steps { grid-template-columns: 1fr; }
  .show__stage { grid-template-columns: 1fr; justify-items: center; }
  .show__phone { display: none; }
  .viewer__box { grid-template-columns: 1fr; }
  .viewer__box .ip { display: none; }
}

@media (max-width: 720px) {
  .top__links a:not(.btn) { display: none; }
  .ask { flex-direction: column; }
  .ask .btn { width: 100%; }
  .plans, .contact { grid-template-columns: 1fr; }
  .live__row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .live__track { width: 100%; }
  .mock { left: auto; right: 10px; bottom: 10px; }
  .mock > b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
