/* Развивашка для брендов. Чёрный и кремовый, жирный гротеск, три ярких акцента. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, figure, fieldset, legend { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.sprite { position: absolute; }

:root {
  --ink: #0b0b0b;
  --cream: #f1ede7;
  --white: #fff;
  --lime: #d4f95a;
  --blue: #2444ff;
  --pink: #ffb3ea;
  --grey: #dcd6cc;
  --pad: 16px;
  --max: 1200px;
  --r: 22px;
}
@media (min-width: 760px) { :root { --pad: 32px; } }

body { background: var(--ink); color: var(--white); font: 400 17px/1.45 "Onest", "Helvetica Neue", Arial, sans-serif; }
::selection { background: var(--lime); color: var(--ink); }

/* поля секций: на широком экране содержимое держится в колонке --max */
section, .foot { position: relative; --sx: max(var(--pad), calc((100vw - var(--max)) / 2)); padding-inline: var(--sx); }

/* светлые панели на чёрном фоне */
.stages, .services, .form { margin: 8px; border-radius: var(--r); color: var(--ink); --pad: 20px; }
@media (min-width: 900px) { .stages, .services, .form { --pad: 48px; } }

/* ---------- общее ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--pad); background: var(--ink); }
.top__logo { font-weight: 800; font-size: 17px; letter-spacing: -.01em; text-transform: uppercase; }
.top__logo span { font-weight: 500; opacity: .6; }
.top__nav { display: none; gap: 28px; }
.top__nav a { font-size: 15px; font-weight: 500; opacity: .75; transition: opacity .2s; }
.top__nav a:hover { opacity: 1; }
@media (min-width: 900px) { .top__nav { display: flex; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 16px; text-align: center; cursor: pointer; transition: transform .2s, background-color .2s, color .2s; }
.btn--sm { min-height: 42px; padding: 0 18px; background: var(--white); color: var(--ink); font-size: 14px; }
.btn--sm:hover { background: var(--lime); }
.btn--main { background: var(--lime); color: var(--ink); }
.btn--main:hover { background: var(--white); transform: translateY(-2px); }
.btn--alt { box-shadow: inset 0 0 0 2px currentColor; }
.btn--alt:hover { background: var(--white); color: var(--ink); box-shadow: none; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--blue); transform: translateY(-2px); }

.head { display: grid; gap: 10px; margin-bottom: 28px; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tag::before { content: "("; } .tag::after { content: ")"; }
.h2 { font-size: clamp(38px, 9.4vw, 84px); font-weight: 800; line-height: .96; letter-spacing: -.035em; text-wrap: balance; }
.sub { max-width: 34ch; font-size: 17px; opacity: .65; }

.stk { position: absolute; overflow: visible; }

/* ---------- 1. шапка ---------- */
.hero { padding-block: 22px 0; overflow: hidden; }
.hero__kicker { display: inline-flex; padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); font-size: 13px; font-weight: 600; }
.hero__title { margin-top: 22px; font-size: clamp(44px, 13.4vw, 168px); font-weight: 800; line-height: .9; letter-spacing: -.045em; }
.hero__for { display: inline-block; padding: .04em .2em .1em; border-radius: .22em; background: var(--lime); color: var(--ink); rotate: -3deg; margin-right: .06em; }
.hero__lead { margin-top: 24px; max-width: 26ch; font-size: clamp(18px, 2vw, 24px); font-weight: 500; line-height: 1.32; letter-spacing: -.01em; }
/* главная кнопка первого экрана: крупная, с расходящимся свечением */
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 28px; }
.hero__main { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 420px; min-height: 68px; padding: 0 12px 0 28px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: -.02em; transition: background-color .2s, transform .2s; }
.hero__main i { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 20px; font-style: normal; transition: transform .25s; }
.hero__main:hover { background: var(--white); transform: translateY(-2px); }
.hero__main:hover i { transform: translateX(4px); }
.hero__more { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px; border-bottom: 1.5px solid rgba(255, 255, 255, .4); font-size: 15px; font-weight: 600; transition: border-color .2s; }
.hero__more i { font-style: normal; transition: transform .25s; }
.hero__more:hover { border-color: var(--lime); }
.hero__more:hover i { transform: translateY(3px); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 249, 90, .55); } 70%, 100% { box-shadow: 0 0 0 20px rgba(212, 249, 90, 0); } }

/* лестница роста и наклейки-услуги */
.hero__art { position: relative; height: 250px; margin: 44px calc(var(--sx) * -1) 0; }
.hero__stairs { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--blue); }
.lbl { position: absolute; display: inline-flex; align-items: center; height: 40px; padding: 0 16px 1px; border-radius: 999px; background: var(--c, var(--white)); color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; rotate: var(--t, -4deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .28); }
.lbl--1 { left: 12px; bottom: calc(25% - 4px); }
.lbl--2 { --c: var(--lime); --t: 3deg; left: 21%; bottom: calc(50% - 2px); }
.lbl--3 { --c: var(--pink); --t: -3deg; left: 45%; bottom: calc(75% - 4px); }
.lbl--4 { --t: 5deg; right: 12px; top: -24px; }
.stk--spark { left: 9%; top: 6%; width: 34px; height: 34px; fill: var(--lime); }

.hero__kicker, .hero__title, .hero__lead, .hero__cta { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero__title { animation-delay: .06s; } .hero__lead { animation-delay: .14s; } .hero__cta { animation-delay: .2s; }
.hero__main { animation: pulse 2.4s ease-out 1.4s infinite; }
.hero__stairs { animation: grow .9s cubic-bezier(.2, .7, .2, 1) .15s both; transform-origin: bottom; }
.lbl, .stk--spark { animation: drop .6s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(.55s + var(--d, 0) * .09s); }
.lbl--2 { --d: 1; } .lbl--3 { --d: 2; } .lbl--4 { --d: 3; } .stk--spark { --d: 4; }
@keyframes rise { from { opacity: 0; translate: 0 24px; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes drop { from { opacity: 0; scale: .5; translate: 0 -24px; } }

@media (min-width: 900px) {
  .hero { padding-block: 40px 72px; min-height: max(min(800px, calc(100vh - 62px)), min(calc(50vw + 130px), 800px)); }
  .hero__title { margin-top: 30px; }
  .hero__cta { margin-top: 34px; }
  .hero__main { width: auto; min-height: 72px; padding-left: 32px; font-size: 20px; }
  .hero__art { position: absolute; right: 0; bottom: 0; width: min(50vw, 720px); height: min(26vw, 400px); margin: 0; }
  .lbl { height: 50px; padding-inline: 22px; font-size: 19px; }
  .lbl--1 { left: 3%; } .lbl--2 { left: 24%; } .lbl--3 { left: 49%; } .lbl--4 { right: 4%; top: -30px; }
  .stk--spark { left: 12%; top: 16%; width: 54px; height: 54px; }
}

@media (min-width: 1280px) { .hero__cta { flex-direction: row; align-items: center; gap: 26px; } }

/* ---------- 2. этапы ---------- */
.stages { padding-block: 44px 20px; background: var(--cream); }
.stages__list { display: grid; gap: 10px; }
.stage { display: flex; flex-direction: column; gap: 16px; padding: 16px 18px 20px; border-radius: 18px; background: var(--white); }
.stage__top { display: flex; align-items: center; gap: 10px; }
.stage__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); --ic: var(--white); --ibg: var(--ink); --ia: var(--lime); }
.stage__icon svg { width: 27px; height: 27px; overflow: visible; }
.stage__name { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stage__n { margin-left: auto; font-size: 13px; font-weight: 700; opacity: .4; }
.stage__n::after { content: " / 06"; }
.stage__text { font-size: clamp(24px, 2.3vw, 31px); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.stage__bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: auto; padding-top: 4px; }
.stage__bar i { height: 6px; border-radius: 3px; background: var(--grey); }
.stage__bar i.on { background: var(--blue); }
@media (min-width: 700px) { .stages__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stages { padding-block: 64px 48px; } }
@media (min-width: 1040px) { .stages__list { grid-template-columns: repeat(3, 1fr); gap: 12px; } .stage { min-height: 236px; padding: 20px 22px 24px; } }

/* ---------- 3. о Юлии ---------- */
.about { display: grid; gap: 22px; padding-block: 48px 56px; }
.about__who { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px 16px; }
.about__face { position: relative; width: 92px; height: 92px; border-radius: 50%; background: var(--blue); overflow: hidden; }
.about__face img { position: absolute; left: 0; top: 7%; width: 100%; height: auto; }
.about__id { display: grid; gap: 6px; }
.about__name { font-size: clamp(38px, 10.6vw, 96px); font-weight: 800; line-height: .92; letter-spacing: -.04em; }
.about__role { grid-column: 1 / -1; max-width: 26ch; font-size: clamp(18px, 2vw, 23px); font-weight: 500; line-height: 1.3; }
.about__facts { display: grid; gap: 22px; }

/* цифры в одну строку */
.stats { --n: clamp(30px, 8.8vw, 46px); display: grid; grid-template-columns: auto auto 1fr; padding-block: 18px; border-block: 1px solid rgba(255, 255, 255, .28); }
.stat { display: grid; gap: 6px; align-content: start; padding-inline: 14px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .28); }
.stat__n { display: flex; align-items: flex-end; height: var(--n); font-size: var(--n); font-weight: 800; line-height: .82; letter-spacing: -.05em; white-space: nowrap; }
.stat--text .stat__n { font-size: calc(var(--n) * .6); letter-spacing: -.035em; line-height: 1; }
.stat__l { font-size: 13px; line-height: 1.25; opacity: .75; }
.stat:first-child .stat__l { max-width: 10ch; }
.about__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 620px) { .about__face { width: 120px; height: 120px; } .about__who { gap: 18px 24px; } .stat { padding-inline: 24px; } .stat__l { font-size: 14px; } .stat:first-child .stat__l { max-width: none; } }
@media (min-width: 1040px) {
  .about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; padding-block: 96px; }
  .about__face { width: 168px; height: 168px; }
  .about__who { gap: 22px 32px; }
  .about__role { grid-column: 2; }
}

/* ---------- 4. услуги ---------- */
.services { padding-block: 44px 28px; background: var(--white); }
.services .head { margin-bottom: 20px; }
.services .tag { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--white); }
.services .tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.services .tag::after { content: none; }
.services__list { display: grid; }
.services__list li { display: flex; align-items: baseline; gap: 16px; padding: 16px 4px; border-top: 2px solid var(--ink); transition: background-color .2s, padding .25s; }
.services__list li:hover { background: var(--lime); padding-left: 14px; }
.services__n { flex: none; width: 2.2em; font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.services__t { font-size: clamp(19px, 2.1vw, 26px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
@media (min-width: 900px) { .services { padding-block: 64px 48px; } .services__list { grid-template-rows: repeat(5, auto); grid-auto-flow: column; grid-auto-columns: 1fr; column-gap: 56px; } }

/* ---------- 5. кейсы ---------- */
.cases { padding-block: 56px 48px; }
.cases__title { margin-bottom: 24px; font-size: clamp(76px, 22vw, 230px); font-weight: 800; line-height: .82; letter-spacing: -.055em; }
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 26px; }
.logos li:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* высота логотипа задана в пикселях: проценты внутри плитки Safari считает иначе, и высокие логотипы вылезали */
.logos button, .logos span { --lh: 32px; display: flex; align-items: center; justify-content: center; width: 100%; height: 76px; overflow: hidden; border-radius: 12px; background: var(--white); color: var(--ink); transition: transform .2s; }
.logos button:hover { transform: translateY(-3px); }
.logos img { flex: none; width: 76%; max-width: 76%; height: var(--lh); object-fit: contain; transition: filter .25s; }
.logos img.is-wide { width: 82%; max-width: 82%; }
.logos img.is-tall { height: calc(var(--lh) * 1.5); }
.logos img.is-mono { filter: brightness(0); }
.logos img.is-gray { filter: grayscale(1) contrast(1.15); }
.logos li:hover img { filter: none; }
.logos b { padding: 0 8px; font-size: 12px; font-weight: 800; line-height: 1.15; letter-spacing: .03em; text-transform: uppercase; text-align: center; }
@media (min-width: 620px) { .logos { grid-template-columns: repeat(5, 1fr); } .logos li:last-child:nth-child(odd) { grid-column: auto; } .logos button, .logos span { --lh: 36px; height: 84px; } }
@media (min-width: 1040px) { .logos { grid-template-columns: repeat(7, 1fr); gap: 10px; } .logos button, .logos span { --lh: 42px; height: 96px; } }

.reel { position: relative; }
.reel__track { display: flex; align-items: flex-start; gap: 14px; margin-inline: calc(var(--sx) * -1); padding: 8px var(--sx) 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: var(--sx); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.reel__track::-webkit-scrollbar { display: none; }
/* карточка кейса: квадратное фото одного размера и подпись под ним */
.case { flex: none; width: 216px; scroll-snap-align: start; }
.case img { display: block; width: 216px; height: 216px; border-radius: 14px; background: #1c1c1c; object-fit: cover; }
.case figcaption { display: grid; gap: 4px; padding: 12px 2px 0; }
.case__brand { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.case__num { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.case__title { font-size: 20px; font-weight: 800; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.case__text { font-size: 14px; line-height: 1.3; opacity: .75; text-wrap: balance; }
.reel__nav { display: none; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.reel__btn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--ink); font-size: 20px; font-weight: 700; transition: background-color .2s, transform .2s; }
.reel__btn:hover { background: var(--lime); transform: scale(1.06); }
@media (min-width: 620px) { .reel__track { gap: 18px; } .case, .case img { width: 248px; } .case img { height: 248px; } .case__num { font-size: 40px; } .case__title { font-size: 22px; } }
@media (hover: hover) and (min-width: 900px) { .reel__nav { display: flex; } }
.is-hit img { animation: hit .7s ease; }
@keyframes hit { 30% { scale: 1.05; } }

/* ---------- 6. анкета ---------- */
.form { padding-block: 40px 36px; background: var(--lime); }
.f { display: grid; gap: 16px; }
.f__field { display: grid; gap: 6px; }
.f__field > span, .f__stage legend { font-size: 14px; font-weight: 700; }
.f__field input, .f__field textarea { width: 100%; min-height: 54px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); font-size: 16px; outline: 0; transition: box-shadow .15s; }
.f__field textarea { resize: vertical; }
.f__field input:focus, .f__field textarea:focus { box-shadow: 4px 4px 0 var(--ink); }
.f__stage legend { margin-bottom: 10px; }
.f__stage label { display: inline-flex; margin: 0 6px 8px 0; }
.f__stage input { position: absolute; opacity: 0; pointer-events: none; }
.f__stage label span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s; }
.f__stage input:checked + span { background: var(--ink); color: var(--white); }
.f__stage input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
/* согласие на обработку данных: без отметки анкета не отправляется */
.f__agree { display: flex; align-items: flex-start; gap: 12px; max-width: 52ch; font-size: 14px; line-height: 1.4; cursor: pointer; }
.f__agree input { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin: 0; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); cursor: pointer; -webkit-appearance: none; appearance: none; }
.f__agree input::after { content: ""; width: 12px; height: 7px; border-left: 3px solid var(--lime); border-bottom: 3px solid var(--lime); rotate: -45deg; translate: 0 -2px; opacity: 0; }
.f__agree input:checked { background: var(--ink); }
.f__agree input:checked::after { opacity: 1; }
.f__agree a, .foot__copy a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.f__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.f__send { justify-self: start; }
.f__send:disabled { opacity: .6; cursor: default; }
.f__error { padding: 12px 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); font-size: 15px; font-weight: 600; }
.f__error a { text-decoration: underline; }
.f__done { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.f.is-sent > :not(.f__done) { display: none; }
@media (min-width: 760px) { .f { grid-template-columns: 1fr 1fr; } .f__field--wide, .f__stage, .f__agree, .f__send, .f__error, .f__done { grid-column: 1 / -1; } }
@media (min-width: 900px) { .form { padding-block: 64px 56px; } }

/* ---------- подвал ---------- */
.foot { display: grid; gap: 14px; padding-block: 44px 56px; }
.foot__logo { font-size: clamp(34px, 9vw, 110px); font-weight: 800; line-height: .95; letter-spacing: -.04em; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__links a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.foot__links a:hover { color: var(--lime); }
.foot__copy, .foot__note { max-width: 60ch; font-size: 13px; opacity: .55; }

/* ---------- страницы документов: политика и согласие ---------- */
.doc { margin: 8px; padding: 40px 20px 56px; border-radius: var(--r); background: var(--cream); color: var(--ink); }
.doc__in { max-width: 760px; margin-inline: auto; }
.doc__back { display: inline-block; margin-bottom: 26px; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.doc h1 { font-size: clamp(32px, 6.4vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.doc__date { margin-top: 14px; font-size: 14px; opacity: .6; }
.doc h2 { margin-top: 34px; font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.doc p, .doc ul { margin-top: 12px; font-size: 17px; line-height: 1.6; }
.doc ul { padding-left: 22px; list-style: disc; }
.doc p a { text-decoration: underline; text-underline-offset: 3px; }
.doc .todo { padding: 1px 6px; border-radius: 6px; background: #ffe45c; color: var(--ink); }
/* в сборке одним файлом документы лежат внутри страницы и открываются поверх неё по ссылке */
.doc--overlay { display: none; position: fixed; inset: 0; z-index: 60; margin: 0; border-radius: 0; overflow: auto; overscroll-behavior: contain; }
.doc--overlay:target { display: block; }
@media (min-width: 900px) { .doc { padding: 72px 48px 88px; } }

/* ---------- появление при прокрутке ---------- */
/* Скрипт вешает .reveal на блок, .in при входе в экран и снимает оба после анимации.
   Один класс вместо списка селекторов: у пунктов услуг правило «спрятать» было сильнее правила «показать», и они не появлялись. */
.reveal { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; translate: 0 0; }

/* снимки страницы (tools/shot*.): без анимаций, иначе вне экрана они застывают на первом кадре */
.shot *, .shot *::before, .shot *::after { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
