/* =========================================================
   Дарья — портфолио. Тёмное стекло, жидкий свет, радужные кольца.
   ========================================================= */
:root {
  --bg: #07060c;
  --text: #f4f1ff;
  --muted: rgba(236, 232, 255, .68);
  --faint: rgba(236, 232, 255, .42);
  --line: rgba(255, 255, 255, .12);
  --glass: rgba(255, 255, 255, .055);
  --glass-border: rgba(255, 255, 255, .16);
  --accent: #9d8bff;
  --pink: var(--accent);
  --cyan: var(--accent);
  --grad: linear-gradient(100deg, #c2b6ff 0%, #8f86ff 55%, #6d7cff 100%);
  --iris: linear-gradient(140deg, rgba(194, 182, 255, .95), rgba(109, 124, 255, .55) 50%, rgba(194, 182, 255, .9));
  --script: 'Tektur', 'Unbounded', sans-serif;
  --display: 'Unbounded', 'Helvetica Neue', sans-serif;
  --sans: 'Onest', 'Helvetica Neue', Arial, sans-serif;
  --radius: 28px;
  --pad: clamp(16px, 4vw, 64px);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --dots: radial-gradient(circle at center, rgba(255, 255, 255, .22) 0 1.1px, transparent 1.6px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::after { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; background: var(--noise); opacity: .045; mix-blend-mode: overlay; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(169, 116, 255, .55); color: #fff; }
main, header, footer { position: relative; z-index: 1; }

/* ---------- жидкий свет на фоне ---------- */
.aurora { position: fixed; inset: -10vmax; z-index: 0; pointer-events: none; filter: blur(90px); opacity: .42; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 52vmax; height: 30vmax; left: 4%; top: 6%; background: radial-gradient(closest-side, #7a4dff, transparent); }
.aurora i:nth-child(2) { width: 46vmax; height: 26vmax; right: 0; top: 30%; background: radial-gradient(closest-side, #3b46c9, transparent); animation-duration: 32s; animation-delay: -8s; }
.aurora i:nth-child(3) { display: none; width: 40vmax; height: 22vmax; left: 20%; bottom: 4%; background: radial-gradient(closest-side, #ff9d5c, transparent); animation-duration: 38s; animation-delay: -14s; opacity: .7; }
.aurora i:nth-child(4) { display: none; width: 34vmax; height: 34vmax; right: 18%; top: -4%; background: radial-gradient(closest-side, #3f74ff, transparent); animation-duration: 30s; animation-delay: -4s; opacity: .8; }
@keyframes drift {
  0% { transform: translate(0, 0) rotate(-12deg) scale(1); }
  50% { transform: translate(8vmax, 6vmax) rotate(10deg) scale(1.15); }
  100% { transform: translate(-6vmax, -4vmax) rotate(-4deg) scale(.95); }
}
.cs .aurora { opacity: .3; }

/* ---------- стекло ---------- */
.tile, .step, .flow, .annot, .ba figure, .checks > div, .fixes > div, .wide-fig, .cs-stage, .shot, .phone-ph, .strategy, .hero__card, .hero__nav {
  background-image: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* градиентный текст */
.case__num, .step__num, .tile b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* радужное кольцо (как у кнопки Home) */
.iris { position: relative; isolation: isolate; }
.iris::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; z-index: -1; background: var(--iris);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.iris::after { content: ''; position: absolute; inset: -10px; border-radius: inherit; z-index: -2; background: radial-gradient(closest-side, rgba(157, 139, 255, .35), transparent); filter: blur(18px); opacity: .6; }
@keyframes hue { to { filter: hue-rotate(360deg) blur(var(--b, 0px)); } }
.iris::after { --b: 18px; }

/* ---------- искры (4-лучевые звёзды) ---------- */
.st { position: absolute; width: var(--s, 60px); height: var(--s, 60px); overflow: visible; pointer-events: none;
  animation: twinkle 5s ease-in-out infinite; animation-delay: var(--d, 0s); filter: drop-shadow(0 0 10px rgba(255, 255, 255, .55)); }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(.72) rotate(18deg); opacity: .65; } }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--pad); font-family: var(--sans); font-size: 15px; letter-spacing: .02em;
  background: linear-gradient(rgba(7, 6, 12, .85), rgba(7, 6, 12, 0));
}
.header__side { justify-self: start; color: var(--text); transition: opacity .2s; }
.header__side--right { margin-left: auto; text-align: right; color: var(--muted); }
a.header__side:hover { opacity: .65; }
.header__arrow { display: inline-block; margin-right: 6px; transition: transform .25s; }
.header__side:hover .header__arrow { transform: translateX(-4px); }
.header__nav { justify-self: end; display: flex; gap: 22px; color: var(--muted); }
.header__nav a:hover { color: var(--text); }
.monogram { position: relative; font-family: var(--script); font-weight: 600; font-size: 28px; letter-spacing: .02em; line-height: 1; color: var(--text); padding: 0 8px; }
.monogram svg { position: absolute; width: 14px; height: 14px; top: -2px; right: -6px; fill: #fff; filter: drop-shadow(0 0 6px #fff); animation: twinkle 3s ease-in-out infinite; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 1040px); display: flex; flex-direction: column; padding: 76px var(--pad) 26px; overflow: hidden; }
.hero__topline { display: flex; justify-content: space-between; align-items: flex-start; font-family: var(--display); font-weight: 300; }
.hero__topline p { font-size: clamp(18px, 1.8vw, 26px); line-height: 1.25; letter-spacing: -.01em; }
.hero__topline small { display: block; font-size: .56em; color: var(--muted); margin-top: 8px; }
.hero__topline .st { position: relative; --s: 54px; flex: none; }
.hero__stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 560px; }
.hero__card {
  position: relative; width: min(42vw, 540px); aspect-ratio: 4 / 5; border-radius: clamp(36px, 4vw, 64px); overflow: hidden;
  background-color: rgba(255, 255, 255, .02);
  background-image: linear-gradient(165deg, rgba(255, 180, 130, .22), rgba(150, 90, 255, .18) 45%, rgba(255, 110, 170, .16) 75%, rgba(91, 140, 255, .14));
}
.hero__card::before { content: none; }
.hero__card-text { position: absolute; z-index: 4; font-family: var(--display); font-weight: 300; line-height: 1.02; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.hero__card-text b { display: block; font-family: var(--script); font-weight: 500; font-size: 1.05em; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .1em .05em 0; }
.hero__card-text--tl { left: calc(50% - min(33vw, 440px)); top: 12%; font-size: clamp(24px, 2.8vw, 42px); }
.hero__card-text--br { right: calc(50% - min(33vw, 440px)); bottom: 12%; text-align: right; font-size: clamp(24px, 2.8vw, 42px); }
.hero__halo { position: absolute; left: 50%; top: 50%; width: min(34vw, 440px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); z-index: 2; }
.hero__halo::before { padding: 1.5px; inset: -1.5px; }
.hero__halo::after { inset: -20%; opacity: .55; }
.hero__head { position: absolute; left: 50%; top: 52%; width: min(29vw, 380px); height: auto; z-index: 3;
  transform: translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, 0px)));
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
  animation: headIn 1.3s .2s cubic-bezier(.2, .7, .2, 1) both; }
.hero__head.is-ready { animation: float 7s ease-in-out infinite; }
@keyframes headIn { from { opacity: 0; transform: translate(-50%, -44%) scale(.92); } }
@keyframes float { 50% { translate: 0 -10px; } }
.hero__side { position: absolute; top: 50%; z-index: 4; font-family: var(--sans); font-weight: 300; font-size: 15px; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.hero__side--l { left: 0; transform: translate(-50%, -50%) rotate(-90deg) translateY(-50%); }
.hero__side--r { right: 0; transform: translate(50%, -50%) rotate(90deg) translateY(-50%); }
.hero .st--1 { --s: 44px; left: 9%; top: 52%; }
.hero .st--2 { --s: 26px; left: 22%; top: 74%; --d: -1.5s; }
.hero .st--3 { --s: 34px; right: 18%; top: 26%; --d: -3s; }
.hero .st--4 { --s: 58px; right: 10%; bottom: 40%; --d: -2s; }
.hero__nav { position: relative; z-index: 5; align-self: center; display: flex; gap: 4px; padding: 6px; margin-top: 18px; border-radius: 100px; font-family: var(--sans); font-size: 16px; }
.hero__nav a { padding: 12px 20px; border-radius: 100px; color: var(--muted); transition: color .25s, background .25s; white-space: nowrap; }
.hero__nav a:hover, .hero__nav a.is-active { color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------- общее ---------- */
section { position: relative; }
.label { font-family: var(--display); font-weight: 400; font-size: 14px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.label span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-right: 6px; }
.script-title { font-family: var(--display); font-weight: 400; color: #fff; font-size: clamp(44px, 6.4vw, 100px); line-height: 1.05; letter-spacing: -.045em; padding-right: .1em; text-shadow: 0 0 40px rgba(169, 116, 255, .35); }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: clamp(32px, 5vw, 64px); }

/* ---------- обо мне ---------- */
.about { padding: clamp(80px, 10vw, 140px) var(--pad); }
.about__text { grid-column: 2; }
@media (max-width: 900px) { .about__text { grid-column: auto; } }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: end; margin-top: 18px; }
.about__lead { font-family: var(--display); font-size: clamp(22px, 2.4vw, 36px); line-height: 1.3; font-weight: 300; letter-spacing: -.01em; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tag { padding: 10px 18px; border: 1px solid var(--glass-border); border-radius: 100px; font-size: 14px; background: var(--glass); backdrop-filter: blur(12px); color: var(--muted); }
.tag--fill { color: #fff; background: transparent; border: 1px solid rgba(157, 139, 255, .6); }
.tag--pink { color: #fff; }

/* ---------- проекты ---------- */
.projects { padding: clamp(40px, 6vw, 80px) var(--pad); }
.case { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.case__info { display: flex; flex-direction: column; gap: 10px; align-self: start; position: sticky; top: 90px; }
.case__num { font-family: var(--display); font-weight: 300; font-size: clamp(70px, 8vw, 120px); line-height: .9; letter-spacing: -.03em; width: fit-content; }
.case__title { font-family: var(--display); font-size: clamp(22px, 2vw, 30px); font-weight: 400; letter-spacing: -.01em; line-height: 1.12; margin-top: 4px; width: fit-content; }
.case__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.case__meta span + span::before { content: '·'; margin-right: 14px; color: var(--faint); }
.case__desc { font-size: 16px; color: var(--muted); max-width: 36ch; margin-top: 6px; }
.case__more { display: inline-flex; align-items: center; gap: 14px; margin-top: 16px; font-family: var(--sans); font-size: 15px; letter-spacing: .04em; }
.case__more b { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #15131d; color: #fff; font-weight: 400; transition: transform .3s; }
.case--link:hover .case__more b { transform: translateX(6px); }
.case--link:hover .case__title { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case__grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(180px, 19vw, 280px); gap: 14px; }
.case__grid--tall { grid-template-columns: 1fr 1.25fr; }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; }
.shot img { position: relative; width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.shot--cover img { object-fit: cover; padding: 0; }
.shot--phone img { padding: 16px 0 0; object-position: top; }
.shot--wide { grid-column: span 2; }
.shot--tall { grid-row: span 2; }



.case:hover .shot img { transform: scale(1.03); }
.shot--soon { display: flex; align-items: center; justify-content: center; gap: 18px; font-family: var(--display); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.shot--soon::before, .shot--deco::before { content: none; }
.soon-star { position: relative; width: 64px; height: 64px; overflow: visible; filter: drop-shadow(0 0 10px rgba(255, 255, 255, .6)); animation: twinkle 5s ease-in-out infinite; }
.shot--soon span { position: relative; }
.shot--deco { display: grid; place-items: center; }
.shot--deco svg { position: relative; width: 36%; height: 36%; overflow: visible; filter: drop-shadow(0 0 12px rgba(255, 255, 255, .5)); transition: transform .6s; }
.case:hover .shot--deco svg { transform: rotate(45deg) scale(1.08); }

/* ---------- опыт ---------- */
.experience { padding: clamp(60px, 8vw, 120px) var(--pad); }
.timeline { list-style: none; }
.timeline li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__date { font-size: 15px; color: var(--muted); }
.timeline__role { font-family: var(--display); font-size: clamp(24px, 3vw, 44px); font-weight: 300; letter-spacing: -.02em; line-height: 1.08; width: fit-content; transition: transform .4s; }
.timeline li:hover .timeline__role { transform: translateX(10px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- стратегия ---------- */
.strategy { margin: 0 var(--pad); padding: clamp(48px, 7vw, 100px) clamp(20px, 5vw, 80px); border-radius: clamp(28px, 4vw, 56px); overflow: hidden; }
.strategy::before { content: none; }
.strategy__inner { position: relative; z-index: 1; }
.strategy__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 40px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.strategy__head .label { grid-column: 1 / -1; }
.strategy__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); padding-bottom: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step { border-radius: var(--radius); padding: 26px 24px 30px; display: flex; flex-direction: column; gap: 10px; transition: transform .4s; }
.step:hover { transform: translateY(-6px); }
.step__num { font-family: var(--display); font-weight: 300; font-size: 64px; line-height: .9; width: fit-content; }
.step h3 { font-family: var(--display); font-size: 18px; font-weight: 400; margin-top: 18px; }
.step p { font-size: 15px; color: var(--muted); }
.strategy .st--s1 { --s: 70px; right: 40px; top: 36px; }
.strategy .st--s2 { --s: 34px; right: 140px; top: 90px; --d: -2s; }

/* ---------- контакты ---------- */
.contacts { padding: clamp(100px, 13vw, 180px) var(--pad); text-align: center; overflow: hidden; }
.contacts__title { font-family: var(--display); font-size: clamp(32px, 4.8vw, 72px); font-weight: 300; line-height: 1.1; letter-spacing: -.03em; max-width: 14ch; margin: 22px auto 0; }
.contacts__title span { display: block; font-family: var(--script); font-weight: 500; font-size: 1.05em; line-height: 1.15; letter-spacing: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .12em; }
.contacts__lead { margin: 26px auto 0; color: var(--muted); font-size: 18px; max-width: 34ch; }
.contacts__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn, .contact-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 150px; padding: 16px 30px;
  border-radius: 100px; font-family: var(--sans); font-size: 16px; letter-spacing: .04em; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-border); backdrop-filter: blur(16px);
  transition: transform .25s, background .25s;
}
.btn:hover, .contact-btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .12); }
.btn--fill, .contact-btn--pink { background: #14121c; border-color: transparent; }
.contacts .st--c1 { --s: 70px; left: 12%; top: 22%; }
.contacts .st--c2 { --s: 36px; right: 16%; top: 20%; --d: -2s; }
.contacts .st--c3 { --s: 54px; right: 11%; bottom: 16%; --d: -3.5s; }

/* ---------- footer ---------- */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px var(--pad) 30px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 14px; color: var(--muted); }
.footer a:hover { color: #fff; }

/* ---------- появление ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- курсор (только мышь) ---------- */
@media (pointer: fine) {
  html, body { cursor: url('assets/cursor.svg?v=4') 4 3, auto; }
  a, button, label, summary, [role="button"], .case--link, .case--link * { cursor: url('assets/cursor-hover.svg?v=4') 18 18, pointer; }
}
.click-spark { position: fixed; z-index: 9999; width: 16px; height: 16px; margin: -8px 0 0 -8px; pointer-events: none; animation: spark .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.click-spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
@keyframes spark { 0% { transform: translate(0, 0) scale(.3); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--rot)); opacity: 0; } }

/* =========================================================
   Страницы кейсов
   ========================================================= */
.cs-main { padding: 110px var(--pad) 40px; max-width: 1280px; margin: 0 auto; }
.cs-hero { padding-bottom: clamp(40px, 6vw, 80px); }
.cs-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--display); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cs-meta span + span::before { content: '·'; margin-right: 10px; color: var(--faint); }
.cs-title { margin-top: 20px; font-family: var(--display); font-size: clamp(32px, 4vw, 58px); font-weight: 300; line-height: 1.15; letter-spacing: -.03em; max-width: 19ch; }
.neon-pink { display: inline-block; font-family: var(--script); font-weight: 500; font-size: 1em; line-height: 1; letter-spacing: 0; padding: 0 .04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-lead { margin-top: 22px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.cs-stage { position: relative; margin-top: 44px; border-radius: clamp(28px, 4vw, 48px); padding: clamp(24px, 4vw, 56px); display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 40px); overflow: hidden; }
.cs-stage::before { content: none; }
.cs-stage > * { position: relative; }
.cs-stage img { border-radius: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.cs-stage img.deco, .cs-stage img.deco--bull { box-shadow: none; border-radius: 0; }

.cs-stage--deco { min-height: clamp(320px, 42vw, 600px); align-items: center; }
.cs-stage--deco .deco { position: absolute; pointer-events: none; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); animation: float 7s ease-in-out infinite; }
.deco--sphere-dark { width: clamp(90px, 15vw, 210px); top: -2%; right: 5%; }
.deco--sphere-blue { width: clamp(70px, 11vw, 160px); bottom: 4%; left: 4%; }
.cs-stage .deco--bull { width: clamp(120px, 20vw, 280px); right: -10px; bottom: -10px; position: absolute; pointer-events: none; }
.has-deco { position: relative; }

.sec { padding: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(24px, 5vw, 80px); align-items: start; margin-bottom: clamp(24px, 3vw, 40px); }
.sec__label { display: block; width: fit-content; font-family: var(--display); font-size: 14px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 12px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec__title { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.25; letter-spacing: -.02em; max-width: 18ch; }
.sec__text { font-size: 18px; line-height: 1.65; color: var(--muted); }
.sec__text p + p { margin-top: 12px; }

.tiles { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; }
.tiles--32 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tiles--32 .tile { grid-column: span 2; }
.tiles--32 .tile:nth-child(n+4) { grid-column: span 3; }
.tile { border-radius: var(--radius); padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.tile b { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.6vw, 42px); line-height: 1.1; letter-spacing: -.01em; width: fit-content; }
.tile span, .tile p { font-size: 16px; line-height: 1.45; color: var(--muted); }
.tile h3 { font-family: var(--display); font-size: 18px; letter-spacing: -.01em; font-weight: 400; line-height: 1.25; }

.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 22px; border-radius: var(--radius); }
.flow + .flow { margin-top: 12px; }
.flow__tag { flex-basis: 100%; font-family: var(--display); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 2px; }
.flow__step { padding: 12px 18px; border-radius: 100px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-size: 15px; line-height: 1.3; }
.flow__step--accent { background: rgba(157, 139, 255, .14); border: 1px solid rgba(157, 139, 255, .5); }
.flow__arrow { color: var(--pink); font-size: 20px; }


.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill { padding: 8px 14px; border-radius: 100px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: var(--muted); }
.pill--blue { border-color: rgba(157, 139, 255, .4); color: var(--text); }

.annot { display: grid; grid-template-columns: 1fr minmax(0, 320px) 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: clamp(28px, 4vw, 48px); }
.annot ol { list-style: none; display: grid; gap: 26px; }
.annot li { display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; }
.annot li i { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 14px; color: #fff;
  background: rgba(157, 139, 255, .16); border: 1px solid rgba(157, 139, 255, .5); }
.annot li b { font-family: var(--display); font-size: 16px; font-weight: 400; line-height: 1.25; }
.annot li span { font-size: 15px; line-height: 1.45; color: var(--muted); }
.annot img, .annot .phone-ph { width: 100%; border-radius: 26px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }

.screens { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; }
.screen { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.screen img { width: 100%; max-height: 660px; object-fit: cover; object-position: top; border-radius: 22px; box-shadow: 0 24px 50px rgba(0, 0, 0, .4); }
.screen .phone-ph { width: 100%; }
.screen figcaption { font-family: var(--display); font-size: 14px; line-height: 1.35; }
.screen figcaption small { display: block; font-family: var(--sans); color: var(--muted); font-size: 14px; margin-top: 2px; }

.phone-ph { position: relative; aspect-ratio: 9 / 19.5; border-radius: 28px; display: grid; place-items: center; text-align: center; padding: 22px; font-size: 14px; color: var(--muted); overflow: hidden; }
.phone-ph::before { content: ''; position: absolute; top: 12px; left: 50%; width: 30%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .18); transform: translateX(-50%); }
.phone-ph::after { content: none; }
.phone-ph--wide { aspect-ratio: 16 / 10; }

.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ba figure { margin: 0; padding: clamp(18px, 3vw, 32px); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ba figure > span { align-self: flex-start; font-family: var(--display); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; padding: 6px 12px; border-radius: 100px; background: rgba(255, 255, 255, .1); }
.ba img { max-height: 560px; width: auto; max-width: 100%; border-radius: 20px; box-shadow: 0 24px 50px rgba(0, 0, 0, .4); }
.ba figcaption { font-size: 14px; color: var(--muted); text-align: center; max-width: 36ch; line-height: 1.45; }

.tl { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); border-top: 1px solid var(--line); row-gap: 26px; }
.tl li { position: relative; padding: 22px 14px 0 0; }
.tl li::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tl b { display: block; font-family: var(--display); font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.tl span { display: block; font-size: 15px; line-height: 1.4; color: var(--muted); }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checks > div { border-radius: var(--radius); padding: 26px; }
.checks h3 { font-family: var(--display); font-size: 18px; font-weight: 400; margin-bottom: 14px; }
.checks ul { list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 26px; color: var(--muted); line-height: 1.5; }
.checks li::before { content: '+'; position: absolute; left: 2px; color: var(--accent); font-weight: 600; }
.checks > div:nth-child(2) li::before { content: '−'; color: var(--faint); }

.fixes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fixes > div { border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.fixes span { font-size: 15px; line-height: 1.4; color: var(--muted); }
.fixes i { font-style: normal; color: var(--pink); font-size: 20px; }
.fixes b { font-family: var(--display); font-size: 15px; font-weight: 400; line-height: 1.3; }

.wide-fig { margin: 0; border-radius: clamp(24px, 3vw, 40px); overflow: hidden; padding: clamp(14px, 2.4vw, 32px); }
.wide-fig img { border-radius: 16px; margin: 0 auto; }
.note { margin-top: 20px; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 70ch; }
.mt { margin-top: 40px; }
.sec__label.mt { margin-top: 44px; margin-bottom: 16px; }

.cs-next2 { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: clamp(40px, 5vw, 64px) 0 20px; border-top: 1px solid var(--line); }
.cs-next2 small { display: block; font-family: var(--display); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.cs-next2 a.next { display: inline-block; font-family: var(--script); font-weight: 500; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.2; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .12em; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .case, .about__grid, .strategy__head, .sec__head, .annot, .ba, .checks { grid-template-columns: minmax(0, 1fr); }
  .case__info { position: static; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero__card { width: 62vw; }
  .hero__halo { width: 52vw; }
  .hero__head { width: 45vw; }
  .hero__side { display: none; }
  .annot { justify-items: center; }
  .annot img, .annot .phone-ph { max-width: 300px; }
  .tiles, .fixes, .tiles--32 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles--32 .tile, .tiles--32 .tile:nth-child(n+4) { grid-column: auto; }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header { font-size: 14px; }
  .header__side--right, .header__nav { display: none; }
  .hero { min-height: auto; padding-top: 70px; }
  .hero__topline p { font-size: 20px; }
  .hero__topline .st { --s: 34px; }
  .hero__stage { min-height: 118vw; padding: 0; }
  .hero__card { width: 84vw; }
  .hero__halo { width: 70vw; }
  .hero__head { width: 60vw; }
  .hero__card-text--tl, .hero__card-text--br { font-size: 22px; }
  .hero__card-text--tl { left: 0; top: 4%; }
  .hero__card-text--br { right: 0; bottom: 4%; }
  .hero .st--1 { left: 0; top: 4%; --s: 28px; }
  .hero .st--3 { right: 0; --s: 24px; }
  .hero .st--4 { right: 2%; bottom: 2%; --s: 38px; }
  .hero__nav { align-self: stretch; overflow-x: auto; scrollbar-width: none; font-size: 15px; }
  .hero__nav::-webkit-scrollbar { display: none; }
  .case__grid, .case__grid--tall { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 220px; }
  .shot--wide, .shot--tall { grid-column: auto; grid-row: auto; }
  .case__grid--tall .shot--tall { grid-row: span 2; }
  .shot--soon { flex-direction: column; gap: 10px; }
  .steps, .tiles, .fixes, .tiles--32 { grid-template-columns: minmax(0, 1fr); }
  .tl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { flex-direction: column; align-items: stretch; }
  .flow__arrow { transform: rotate(90deg); align-self: center; }
  .cs-stage { flex-wrap: wrap; }
  .cs-stage img { max-width: 44%; }
  .cs-stage .deco--bull { display: none; }
  .strategy .st--s2 { display: none; }
  .contacts .st--c1 { --s: 40px; left: 4%; top: 6%; }
  .contacts .st--c3 { --s: 34px; right: 4%; bottom: 4%; }
  .footer { flex-wrap: wrap; }
  .footer__mid { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* минимализм: без звёздочек */
.st, .soon-star, .monogram svg, .click-spark { display: none !important; }
.shot--deco svg { display: none; }

/* ---------- проекты: сетка превью (по артборду «My Portfolio Website») ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.work { display: flex; flex-direction: column; gap: 10px; }
.work__name { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 0 12px 0 24px; border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .035); backdrop-filter: blur(16px); font-size: 18px; line-height: 1.25; transition: background .3s, border-color .3s; }
.work__name b { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 400; color: var(--muted); border: 1px solid rgba(255, 255, 255, .12); transition: transform .3s, color .3s, background .3s, border-color .3s; }
.work__card { position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1);
  background: radial-gradient(120% 90% at 50% 100%, rgba(157, 139, 255, .22), rgba(157, 139, 255, 0) 60%), linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); }
.work__media { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-end; gap: 5%; padding: 11% 9% 0; }
.work__media img.phone { width: 43%; height: 88%; object-fit: cover; object-position: top; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .4); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.work__media img.phone:nth-child(2) { height: 78%; }
.work__media--web { align-items: center; padding: 8% 6% 22%; gap: 0; }
.work__media--web img.web { width: 78%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.work__media--web img.mock { width: 27%; margin-left: -12%; margin-top: 14%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.work__media--soon { align-items: center; padding: 0; }
.work__soon { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.work__tags { position: absolute; left: 18px; bottom: 18px; right: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.work__tags span { padding: 9px 14px; border-radius: 32px; font-size: 12px; font-weight: 500; letter-spacing: .03em; white-space: nowrap; text-transform: uppercase; color: var(--text);
  background: rgba(10, 9, 16, .72); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(12px); }
.work:hover .work__name { background: rgba(255, 255, 255, .06); border-color: rgba(157, 139, 255, .45); }
.work:hover .work__name b { transform: translateX(4px); color: #fff; background: rgba(157, 139, 255, .25); border-color: rgba(157, 139, 255, .6); }
.work:hover .work__media img { transform: translateY(-8px); }
@media (max-width: 1100px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .works { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .work__name { font-size: 16px; min-height: 56px; }
}

/* карточка проекта — единое целое: название и превью в одном контейнере */
.work { gap: 0; border-radius: 28px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1);
  background: radial-gradient(120% 70% at 50% 100%, rgba(157, 139, 255, .22), rgba(157, 139, 255, 0) 62%), linear-gradient(170deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  transition: border-color .35s, transform .35s, box-shadow .35s; }
.work__name { min-height: 0; padding: 22px 18px 0 26px; border: 0; border-radius: 0; background: none; backdrop-filter: none; font-size: 19px; }
.work__card { border: 0; border-radius: 0; background: none; aspect-ratio: 1 / .92; }
.work__media { padding-top: 9%; }
.work:hover { border-color: rgba(157, 139, 255, .45); transform: translateY(-4px); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.work:hover .work__name { background: none; }
.strategy__lead { grid-column: 2; }
@media (max-width: 900px) { .strategy__lead { grid-column: auto; } }

/* ---------- стратегия: бенто-сетка как в Figma ---------- */
.strategy { margin: 0; padding: clamp(60px, 8vw, 120px) var(--pad); border: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; overflow: visible; }
.strategy__head { margin-bottom: clamp(28px, 3vw, 40px); align-items: start; }
.strategy__lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--muted); padding-bottom: 0; max-width: 30ch; }
.strategy .steps { display: flex; flex-wrap: wrap; gap: 32px; }
.strategy .step { position: relative; flex: 0 0 calc((100% - 32px) * 534 / 1688); min-height: clamp(240px, 21vw, 307px); padding: 24px; border-radius: 32px; justify-content: flex-end; gap: 12px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: none; box-shadow: none; transition: border-color .3s, transform .3s; }
.strategy .step--b { flex-basis: calc((100% - 32px) * 1154 / 1688); }
.strategy .step--c { flex-basis: calc((100% - 32px) * 1298 / 1688); }
.strategy .step--d { flex-basis: calc((100% - 32px) * 390 / 1688); }
.strategy .step--tint { background: rgba(157, 139, 255, .07); border-color: rgba(157, 139, 255, .28); }
.strategy .step--accent { background: #6a5cff; border-color: #6a5cff; }
.strategy .step__num { position: absolute; top: 16px; right: 24px; font-family: var(--display); font-weight: 400; font-size: clamp(64px, 6vw, 96px); line-height: 1;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: rgba(255, 255, 255, .1); }
.strategy .step--accent .step__num { color: rgba(255, 255, 255, .45); }
.strategy .step h3 { font-family: var(--sans); font-size: 24px; font-weight: 500; margin-top: 0; }
.strategy .step p { font-size: 18px; line-height: 1.45; color: var(--muted); max-width: 46ch; }
.strategy .step--accent h3, .strategy .step--accent p { color: #fff; }
.strategy .step:hover { transform: translateY(-4px); border-color: rgba(157, 139, 255, .45); }
.strategy .step--accent:hover { border-color: #8a7dff; }
@media (max-width: 900px) {
  .strategy .steps { gap: 16px; }
  .strategy .step, .strategy .step--b, .strategy .step--c, .strategy .step--d { flex-basis: 100%; min-height: 220px; }
}
.strategy__head .label { grid-column: 1; grid-row: 1; }
.strategy__head .strategy__lead { grid-row: 1; }
@media (max-width: 900px) { .strategy__head .label, .strategy__head .strategy__lead { grid-row: auto; } }
.strategy .step { padding-top: clamp(96px, 7.5vw, 124px); }
@media (max-width: 1200px) and (min-width: 901px) {
  .strategy .steps { gap: 20px; }
  .strategy .step { flex-basis: calc((100% - 20px) * 600 / 1688); padding: 90px 20px 20px; }
  .strategy .step--b { flex-basis: calc((100% - 20px) * 1088 / 1688); }
  .strategy .step--c { flex-basis: calc((100% - 20px) * 1150 / 1688); }
  .strategy .step--d { flex-basis: calc((100% - 20px) * 538 / 1688); }
  .strategy .step p { font-size: 16px; }
}
.strategy__head .strategy__lead { justify-self: end; text-align: right; }
@media (max-width: 900px) { .strategy__head .strategy__lead { justify-self: start; text-align: left; } }
.strategy__head .strategy__lead { max-width: 37ch; }
.strategy__head .strategy__lead { text-align: left; }

/* ---------- контакты: слоган — неоновая вывеска ---------- */
.contacts__title {
  display: inline-block; margin: 28px auto 0; padding: .45em .7em .5em; max-width: 15ch;
  border: 1.5px solid rgba(185, 173, 255, .7); border-radius: 32px;
  color: #f6f3ff;
  text-shadow: 0 0 6px rgba(185, 173, 255, .55), 0 0 22px rgba(157, 139, 255, .35);
  box-shadow: 0 0 14px rgba(157, 139, 255, .35), inset 0 0 14px rgba(157, 139, 255, .18);
}
.contacts__title span {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: #c9bfff;
  text-shadow: 0 0 4px #fff, 0 0 12px rgba(185, 173, 255, .9), 0 0 32px rgba(157, 139, 255, .6);
}
.contacts__title.is-visible { animation: neonOn 1.4s ease-out both, float 7s 1.4s ease-in-out infinite, neonBreath 5s 1.4s ease-in-out infinite; }
@keyframes neonOn {
  0% { opacity: .15; } 10% { opacity: 1; } 14% { opacity: .3; } 22% { opacity: 1; } 26% { opacity: .55; } 34%, 100% { opacity: 1; }
}
@keyframes neonBreath {
  50% { box-shadow: 0 0 22px rgba(157, 139, 255, .5), inset 0 0 18px rgba(157, 139, 255, .25); }
}

/* слоган: без рамки, «что-то классное» — неоновая трубка (по референсу) */
.contacts__title { border: 0; box-shadow: none; padding: 0; max-width: 16ch; text-shadow: none; color: #f6f3ff; }
.contacts__title.is-visible { animation: float 7s ease-in-out infinite; }
.contacts__title span {
  font-family: 'Bad Script', cursive; font-weight: 400; text-transform: none; letter-spacing: 0;
  font-size: 1.3em; line-height: 1.25; padding: 0 .12em; margin: .02em 0 .06em;
  color: #fdf6ff;
  -webkit-text-stroke: .6px #ffffff;
  text-shadow:
    0 0 1px #fff,
    0 0 2px #fff,
    0 0 5px #e9d5ff,
    0 0 10px #c084fc,
    0 0 20px #a855f7,
    0 0 38px rgba(147, 51, 234, .75),
    0 0 70px rgba(147, 51, 234, .45);
}
.contacts__title.is-visible span { animation: neonFlicker 1.6s ease-out both, neonGlow 4.5s 1.6s ease-in-out infinite; }
@keyframes neonFlicker {
  0% { opacity: .1; } 8% { opacity: 1; } 12% { opacity: .25; } 20% { opacity: 1; } 24% { opacity: .5; } 32%, 100% { opacity: 1; }
}
@keyframes neonGlow {
  50% { text-shadow: 0 0 1px #fff, 0 0 2px #fff, 0 0 6px #f3e8ff, 0 0 12px #c084fc, 0 0 26px #a855f7, 0 0 48px rgba(147, 51, 234, .8), 0 0 90px rgba(147, 51, 234, .5); }
}
@media (prefers-reduced-motion: reduce) { .contacts__title span { animation: none !important; } }
.contacts__title span { font-size: 1.5em; line-height: 1.15; }
/* неон без курсива: скруглённый монолинейный шрифт, как трубки */
.contacts__title span { font-family: 'Comfortaa', 'Unbounded', sans-serif; font-weight: 300; font-size: 1.1em; line-height: 1.2; letter-spacing: .01em; -webkit-text-stroke: .5px #fff; }

/* неон «как в старом мотеле»: статично, неровное мерцание, одна буква подмигивает */
.contacts__title.is-visible { animation: none; }
.contacts__title.is-visible span { animation: motelFlicker 7s linear infinite; }
.contacts__title .neon-loose { font-style: normal; display: inline-block; }
.contacts__title.is-visible .neon-loose { animation: looseLetter 4.3s linear infinite; }
@keyframes motelFlicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; filter: brightness(1); }
  19%, 24% { opacity: .55; filter: brightness(.7); }
  20% { opacity: 1; }
  54% { opacity: .82; filter: brightness(.85); }
  55% { opacity: .35; filter: brightness(.5); }
  56% { opacity: .9; }
}
@keyframes looseLetter {
  0%, 61%, 64%, 67%, 100% { opacity: 1; text-shadow: inherit; }
  62%, 66% { opacity: .15; text-shadow: none; }
  65% { opacity: .7; }
}

/* ---------- кейсы: без разделителей, блоки отделены воздухом и метками ---------- */
.cs .sec { border-top: 0; padding: clamp(72px, 9vw, 136px) 0 0; }
.cs .cs-hero { padding-bottom: 0; }
.cs .cs-next2 { border-top: 0; margin-top: clamp(80px, 10vw, 150px); padding-top: 0; }
.cs .sec__label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; margin-bottom: 18px; border-radius: 100px;
  font-size: 12px; letter-spacing: .12em; background: rgba(157, 139, 255, .1); border: 1px solid rgba(157, 139, 255, .32);
  -webkit-background-clip: border-box; background-clip: border-box; color: #cfc6ff; }
.cs .sec__label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.cs .sec__label.mt { margin-top: 40px; }
.cs .sec__head { margin-bottom: clamp(28px, 3vw, 44px); }
.cs .sec__text { max-width: 52ch; }
.cs .cs-lead { max-width: 52ch; }
.cs .sec { padding-top: clamp(110px, 13vw, 200px); }
.cs .cs-next2 { margin-top: clamp(120px, 14vw, 210px); }
/* текст справа выровнен по заголовку, а не по метке */
.cs .sec__head { row-gap: 0; }
.cs .sec__head > div:first-child { display: contents; }
.cs .sec__head .sec__label { grid-column: 1; grid-row: 1; justify-self: start; }
.cs .sec__head .sec__title { grid-column: 1; grid-row: 2; }
.cs .sec__head .sec__text { grid-column: 2; grid-row: 2; padding-top: .35em; }
@media (max-width: 900px) {
  .cs .sec__head { row-gap: 16px; }
  .cs .sec__head .sec__label, .cs .sec__head .sec__title, .cs .sec__head .sec__text { grid-column: 1; grid-row: auto; }
  .cs .sec__head .sec__label { margin-bottom: 0; }
  .cs .sec__head .sec__text { padding-top: 0; }
}
/* экраны в ряду выровнены по нижнему краю */
.screens { align-items: stretch; }
.screen img, .screen .phone-ph { margin-top: auto; }
.screen figcaption { min-height: 2.75em; }

/* ---------- «Четыре вопроса»: карточки по бокам, экраны в центре (как в Figma) ---------- */
.qmap { display: grid; grid-template-columns: minmax(0, 300fr) minmax(0, 640fr) minmax(0, 300fr); gap: 20px; align-items: center; }
.qmap__col { display: flex; flex-direction: column; gap: 20px; }
.qcard { padding: 28px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); }
.qcard__top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.qcard__badge { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; font-weight: 700; font-size: 15px; }
.qcard__num { font-family: var(--display); font-weight: 500; font-size: 32px; line-height: 1.2; color: #c2b6ff; letter-spacing: -.01em; }
.qcard h4 { font-size: 20px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.qcard p { font-size: 15px; line-height: 1.45; color: var(--muted); }
.qmap__stage { position: relative; aspect-ratio: 640 / 846; }
.qmap__phone { position: absolute; left: 0; top: 0; width: 60%; aspect-ratio: 384 / 784; padding: 3.1%; border-radius: 13% / 6.4%; background: #0f1218; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.qmap__screen { position: relative; width: 100%; height: 100%; border-radius: 12.8% / 6%; overflow: hidden; background: #f2f4f7; }
.qmap__screen img, .qmap__sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.qmap__sheet { position: absolute; left: 43.75%; top: 30.7%; width: 56.25%; height: 69.3%; border-radius: 24px; overflow: hidden; background: #f2f4f7; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.pin { position: absolute; left: 1.4%; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; color: #fff; font-style: normal; font-weight: 700; font-size: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
@media (max-width: 900px) {
  .qmap { grid-template-columns: minmax(0, 1fr); }
  .qmap__stage { order: -1; width: min(100%, 440px); margin: 0 auto; }
  .qmap__col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .qmap__col { grid-template-columns: minmax(0, 1fr); } }
/* телефон в обложке профиля уходит за нижний край рамки */
.cs-stage img.phone-bleed { position: relative; align-self: flex-end; width: 26%; margin-left: -4%; margin-bottom: calc(-1 * clamp(24px, 4vw, 56px) - 1px); box-shadow: none; border-radius: 0; z-index: 1; }
@media (max-width: 640px) { .cs-stage img.phone-bleed { width: 40%; max-width: none; } }

/* ---------- обложка «Брокерского отчёта» как в Figma: 2 телефона по краям, веб в центре ---------- */
.rcover { position: relative; margin: 44px 0 0; aspect-ratio: 1280 / 680; }
.rcover__phone { position: absolute; top: 5.88%; width: 24.22%; height: 94.12%; padding: .78%; border-radius: 15.5% / 7.5%; background: #0f1218;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.rcover__phone--l { left: -3.125%; }
.rcover__phone--r { left: 78.9%; }
.rcover__screen { width: 100%; height: 100%; border-radius: 13% / 6.1%; overflow: hidden; background: #f2f4f7; }
.rcover__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rcover__web { position: absolute; left: 24.22%; top: 35.3%; width: 51.56%; height: 64.7%; padding: .78%; border-radius: 24px; background: #0f1218; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.rcover__web-ph { width: 100%; height: 100%; border-radius: 16px; display: grid; place-items: center; text-align: center; padding: 20px;
  background: linear-gradient(120deg, #e6eeff, #f4eeff 50%, #ffeff5); color: #7a86a3; font-size: 14px; line-height: 1.45; }
@media (max-width: 1360px) { .rcover__phone--l { left: 0; } .rcover__phone--r { left: 75.78%; } }
.rcover__web-ph--img { padding: 0; overflow: hidden; background: #fff; display: block; }
.rcover__web-ph--img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

/* ---------- экран с номерами (отчёт, СБП) как в Figma ---------- */
.nmap { display: grid; grid-template-columns: minmax(0, 422fr) minmax(0, 340fr) minmax(0, 422fr); gap: clamp(20px, 3.75vw, 48px); align-items: center; }
.nmap__col { display: flex; flex-direction: column; gap: 20px; }
.ncard { padding: 28px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); }
.ncard__top { display: flex; align-items: center; gap: 12px; }
.ncard__badge { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; font-weight: 700; font-size: 15px; }
.ncard__top b { font-size: 20px; font-weight: 600; line-height: 1.3; }
.ncard p { margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--muted); }
.nphone { aspect-ratio: 340 / 700; padding: 2.94%; border-radius: 14.1% / 6.9%; background: #0f1218; box-shadow: 0 30px 60px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.nphone__screen { width: 100%; height: 100%; border-radius: 11.9% / 5.6%; overflow: hidden; background: #f2f4f7; }
.nphone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.nphone__screen .phone-ph { aspect-ratio: auto; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
@media (max-width: 900px) {
  .nmap { grid-template-columns: minmax(0, 1fr); }
  .nphone { order: -1; width: min(100%, 320px); margin: 0 auto; }
  .nmap__col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .nmap__col { grid-template-columns: minmax(0, 1fr); } }
.nphone__screen:has(.phone-ph) { background: #16141f; }
.nphone__screen .phone-ph { background: radial-gradient(120% 80% at 50% 100%, rgba(157, 139, 255, .18), rgba(157, 139, 255, 0) 60%), #16141f; color: var(--muted); backdrop-filter: none; }
.nphone__screen .phone-ph::before { display: none; }
/* второй экран внахлёст (как в «Моих выплатах») */
.nstage { position: relative; padding-right: 34%; }
.nstage .nphone { width: 100%; }
.nstage__second { position: absolute; right: 0; bottom: 6%; width: 62%; aspect-ratio: 924 / 2000; border-radius: 24px; overflow: hidden; background: #ccc; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.nstage__second img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.nmap:has(.nstage) { grid-template-columns: minmax(0, 380fr) minmax(0, 470fr) minmax(0, 380fr); }
@media (max-width: 900px) { .nstage { order: -1; width: min(100%, 440px); margin: 0 auto; } .nmap:has(.nstage) { grid-template-columns: minmax(0, 1fr); } }
.nstage__second { width: 50%; bottom: -5%; }
/* второй экран — такой же телефон, смещён вниз и вправо */
.nstage { padding-right: 0; display: flex; align-items: flex-start; }
.nstage .nphone { width: 56%; flex: none; }
.nstage .nphone--second { margin-left: -12%; margin-top: 16%; box-shadow: 0 30px 70px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.nphone--second .nphone__screen { background: #cdcdcd; padding-top: 9%; }
.nphone--second .nphone__screen img { height: auto; object-fit: contain; }
.nphone--second .nphone__screen { padding-top: 0; }
.nphone--second .nphone__screen img { height: 100%; object-fit: contain; object-position: center bottom; }
/* новый скриншот уже со строкой статуса — заполняет экран целиком */
.nphone--second .nphone__screen img { object-fit: cover; object-position: top; }
/* веб-скриншот в тёмной рамке */
.webshot { max-width: 860px; margin: 0 auto; padding: 10px; border-radius: 28px; background: #0f1218; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.webshot__screen { border-radius: 20px; overflow: hidden; background: #fff; }
.webshot__screen img { width: 100%; height: auto; display: block; }
.cs-stage--phones { align-items: center; gap: clamp(20px, 4vw, 56px); }
.cs-stage--phones .nphone { width: min(34%, 300px); }
.cs-stage--phones .nphone img { box-shadow: none; border-radius: 0; }
/* обложка СБП: экран целиком, без обрезки, радиусы рамки и экрана согласованы */
.cs-stage--phones .nphone { aspect-ratio: auto; padding: 10px; border-radius: 44px; }
.cs-stage--phones .nphone__screen { height: auto; aspect-ratio: 924 / 2000; border-radius: 34px; }
.cs-stage--phones .nphone__screen img { height: 100%; object-fit: contain; }
/* экран в телефоне блока «Решение» — целиком, без обрезки */
.nmap .nphone:not(.nphone--second) .nphone__screen img[src*="sbp-"] { object-fit: contain; background: #fff; }
.screen .nphone { width: 100%; aspect-ratio: auto; padding: 8px; border-radius: 38px; }
.screen .nphone__screen { height: auto; aspect-ratio: 924 / 2000; border-radius: 30px; }
.screen .nphone__screen img { height: 100%; max-height: none; object-fit: contain; border-radius: 0; box-shadow: none; }
/* карточка «Главная профиля» как в Figma: экран телефона слева, веб справа */
.work__media--web { gap: 3%; padding: 10% 5% 26%; }
.work__media--web img.pscreen { width: 30%; border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.work__media--web img.web { width: 64%; }
/* превью как в Figma: один экран дважды, правый выше и уходит за верх */
.work__media--stagger { align-items: flex-start; padding: 0 9%; gap: 6%; }
.work__media--stagger img.phone, .work__media--stagger img.phone:nth-child(2) { height: auto; aspect-ratio: 1560 / 3376; width: 43%; border-radius: 20px; object-fit: cover; }
.work__media--stagger img.phone:nth-child(1) { margin-top: 18%; }
.work__media--stagger img.phone:nth-child(2) { margin-top: -30%; }
.work__media--stagger img.phone:nth-child(1) { margin-top: 24%; }
.work__media--stagger img.phone:nth-child(2) { margin-top: 2%; }
/* экран под NDA: матовое стекло поверх размытого скриншота */
.nda { position: relative; display: block; border-radius: 22px; overflow: hidden; isolation: isolate; }
.nda img { display: block; width: 100%; border-radius: 0 !important; box-shadow: none !important; filter: saturate(.7); }
.nda::before { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(150deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .08) 45%, rgba(157, 139, 255, .14) 100%);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.nda::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 0 0 1px rgba(255, 255, 255, .25);
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 42%, transparent 54%), var(--noise); background-blend-mode: normal, overlay; opacity: .9; }
.nda__tag { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 8px 16px; border-radius: 100px;
  font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: #fff;
  background: rgba(15, 13, 24, .45); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); }
.cs-stage figure.screen .nda { box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
/* скругление стекла: backdrop-filter игнорирует overflow — режем clip-path */
.nda { clip-path: inset(0 round 22px); border-radius: 22px; }
.nda::before, .nda::after { border-radius: 22px; }
/* второй экран «Не учитываются в сумме» — целиком, по пропорциям скриншота */
.qmap__sheet { top: auto; bottom: -4%; height: auto; aspect-ratio: 1116 / 2000; background: #f7f7f7; }
.qmap__sheet img { object-fit: contain; }

/* ---------- кнопка «Наверх» ---------- */
.to-top { position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 60; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; cursor: pointer;
  background: rgba(20, 18, 30, .6); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(24px) scale(.9); pointer-events: none;
  transition: opacity .35s, transform .45s cubic-bezier(.2, .7, .2, 1), border-color .25s, background .25s; }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; transition: transform .3s; }
.to-top:hover { border-color: rgba(157, 139, 255, .7); background: rgba(157, 139, 255, .22); }
.to-top:hover svg { transform: translateY(-3px); }
.to-top.is-shown svg { animation: toTopBob 2.4s ease-in-out infinite; }
.to-top:hover svg { animation: none; }
@keyframes toTopBob { 50% { transform: translateY(-3px); } }
@media (pointer: fine) { .to-top { cursor: url('assets/cursor-hover.svg?v=4') 18 18, pointer; } }
/* на главной шапка не едет за скроллом */
.home .header { position: absolute; background: none; }
