:root { --edge: clamp(20px, 5vw, 64px); --ink: #151515; --muted: #6E6E68; --line: #E4E3DE; --blue: #4D5BFF; --accent: #4D5BFF; --tint: #EEF0FF; --night: #18181A; --soft: #F7F7F5; --soft-line: #E4E3DE; --bg: #F7F7F5; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 "Golos Text", system-ui, sans-serif; }
.wrap { width: min(1320px, 100% - 2 * clamp(20px, 5vw, 64px)); margin-inline: auto; }
a:focus-visible, .tile:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* шапка */
.bar { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.bar__logo { font: 800 24px "Manrope", sans-serif; letter-spacing: -.025em; color: var(--ink); text-decoration: none; }
.bar nav { display: flex; gap: 32px; align-items: center; }
.bar nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }

/* кнопки и ссылки */
/* кнопка без цветовой заливки: при наведении текст перекатывается вверх, кнопка тянется за курсором (рецепт Apple, пружина) */
:root { --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1); }
.btn { position: relative; display: inline-flex; align-items: center; min-height: 54px; padding: 0 28px; border-radius: 999px; background: #fff; color: var(--ink);
  font-weight: 600; font-size: 16px; text-decoration: none; transition: background .25s, scale .5s var(--spring); }
.btn:hover { background: #E9EBEF; }
.btn:active { scale: .95; transition-duration: .12s; }
.btn__roll { display: inline-grid; height: 1.25em; line-height: 1.25em; overflow: hidden; }
.btn__roll > span { transition: transform .55s var(--spring); }
.btn:hover .btn__roll > span, .btn:focus-visible .btn__roll > span { transform: translateY(-100%); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .btn__roll > span { transition: none; } .btn:hover .btn__roll > span { transform: none; } }
.link { color: var(--ink); transition: text-decoration-color .2s; font-weight: 600; text-decoration: underline; text-decoration-color: #C9CEDA; text-underline-offset: 6px; }

/* обложка по Reelio: тёмная сцена со скруглёнными углами, три ролика во всю высоту, заголовок снизу */
.hero { padding: 8px; background: var(--bg); }
.hero__box { position: relative; display: flex; flex-direction: column; height: calc(100svh - 16px); min-height: 640px; max-height: 1100px;
  border-radius: 20px; background: var(--night); color: #F2F2EF; overflow: hidden; }
.hero .bar__logo, .hero .bar nav a:not(.btn) { color: #F2F2EF; }
.hero .bar nav a:not(.btn) { opacity: .75; transition: opacity .2s; }
.hero .bar nav a:not(.btn):hover { opacity: 1; }
.reels { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); align-content: center; gap: 24px; width: min(1320px, 100% - 2 * clamp(20px, 5vw, 64px)); margin-inline: auto; padding-top: 4px; container-type: size; }
.reel { position: relative; flex: none; margin: 0; cursor: pointer; transition: transform .5s cubic-bezier(.3, .7, .2, 1), opacity .4s; }
/* ролик заполняет свою колонку сетки на всю доступную высоту, лишнее по краям кадра обрезается */
.reel video { width: 100%; aspect-ratio: 9 / 16; height: auto; max-height: calc(100cqh - 34px); object-fit: cover; border-radius: 12px; display: block; background: #1A1D22; }
.reel figcaption { height: 30px; display: flex; align-items: end; gap: 8px; font-size: 14px; color: #8D939B; }
.reel figcaption b { color: #F2F2EF; font-weight: 500; }
.reels.has-focus .reel { opacity: .45; }
.reels.has-focus .reel.is-focus { opacity: 1; transform: scale(1.025); }
.reel__sound { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(13, 15, 18, .6); color: #fff; cursor: pointer; display: grid; place-items: center; }
.reel__sound svg { width: 18px; height: 18px; }
.hero__foot { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: clamp(20px, 3vh, 36px) 0 clamp(24px, 4vh, 44px); }
.hero h1 { margin: 0; font: 800 clamp(40px, min(5.2vw, 8.6vh), 88px)/.94 "Manrope", sans-serif; letter-spacing: -.035em; }
.hero .lead { margin: 14px 0 0; max-width: 34em; font-size: clamp(15px, 1.1vw, 17px); color: #8D939B; }
.dots { display: none; }
@media (max-width: 809px) {
  .bar { height: 64px; gap: 12px; }
  .bar__logo { font-size: 20px; }
  .btn--sm { padding: 0 16px; font-size: 14px; white-space: nowrap; }
  .bar nav a:not(.btn) { display: none; }
  .hero__box { height: calc(100svh - 16px); min-height: 640px; max-height: none; }
  /* лента роликов занимает всё свободное место и листается свайпом; края выровнены по логотипу */
  .reels { display: flex; width: auto; margin: 0 var(--edge); padding: 0; gap: 12px; justify-content: flex-start; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0; scrollbar-width: none; container-type: size; }
  .reels::-webkit-scrollbar { display: none; }
  /* один ролик на экран: на всю колонку, высота – всё свободное место; следующий листается свайпом, точки показывают, сколько их */
  .reel { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
  .reel video { width: 100%; height: max(240px, calc(100cqh - 30px)); max-height: none; aspect-ratio: auto; }
  .reel figcaption { height: 30px; }
  .dots { display: flex; justify-content: center; margin: 0; }
  .dots button { all: unset; box-sizing: border-box; padding: 12px 4px; cursor: pointer; }
  .dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: width .3s var(--out), background .3s; }
  .dots i.on { width: 18px; border-radius: 3px; background: #fff; }
  .hero__foot { flex-direction: column; align-items: start; gap: 12px; padding: 14px 0 20px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .hero__side { gap: 12px; }
  .hero .lead { font-size: 15px; line-height: 1.4; }
  .facts { margin: 0; gap: 6px; } .facts li { padding: 4px 10px; font-size: 13px; }
  .hero__side .btn { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .reel { transition: none; } .reels.has-focus .reel.is-focus { transform: none; } html { scroll-behavior: auto; } }

/* студия: огромное название и текст, который проявляется по словам при прокрутке */
.studio { background: var(--soft); padding: clamp(64px, 10vw, 140px) 0; }
.studio__grid { display: grid; grid-template-columns: 4fr 8fr; gap: 40px clamp(32px, 6vw, 96px); }
.studio__who { display: flex; align-items: center; gap: 14px; margin: 0; align-self: start; }
.studio__who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.studio__who figcaption { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.studio__who b { font-size: 16px; font-weight: 600; color: var(--ink); }
.reveal { margin: 0; font: 600 clamp(24px, 2.6vw, 40px)/1.22 "Manrope", sans-serif; letter-spacing: -.02em; color: var(--ink); }
.reveal .w { color: #B4B4AE; transition: color .3s; }
.reveal .w.on { color: var(--ink); }
@media (max-width: 809px) { .studio__grid { grid-template-columns: 1fr; } }

/* работы: тёмный блок, компактная сетка – два горизонтальных ролика сверху, четыре вертикальных ниже */
.works { margin: 0; padding: clamp(64px, 8vw, 112px) 0; border-radius: 0; background: var(--night); color: #F2F2EF; }
.works__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.works__head p { margin: 0; color: #8D939B; }
.works__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 20px; }
.work { margin: 0; }
.work--h { grid-column: span 2; }
.work__media { position: relative; overflow: hidden; border-radius: 12px; background: #1A1D22; cursor: pointer; }
.work--h .work__media { aspect-ratio: 16 / 9; }
.work--v .work__media { aspect-ratio: 9 / 16; }
.work__media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .6s var(--spring); }
.work:hover .work__media video { scale: 1.03; }
.work h3 { margin: 16px 0 8px; font: 700 clamp(17px, 1.4vw, 21px)/1.25 "Manrope", sans-serif; letter-spacing: -.01em; }
.work__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.work__meta li { padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; font-size: 12px; color: #C9CDD2; }
@media (max-width: 809px) { .works__grid { grid-template-columns: 1fr 1fr; gap: 32px 12px; } .works__head { flex-direction: column; align-items: start; } }

/* общий заголовок светлых секций */
.h2 { margin: 0; font: 800 clamp(40px, 5vw, 72px)/1 "Manrope", sans-serif; letter-spacing: -.035em; }

/* услуги: строки на всю ширину, при наведении строка подсвечивается */
.svc { padding: clamp(80px, 10vw, 140px) 0; }

/* этапы: последовательность, поэтому с номерами */
.steps { background: var(--soft); padding: clamp(80px, 10vw, 140px) 0; }
.steps__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.steps__head p { margin: 0; max-width: 24em; font-size: 19px; color: var(--muted); }
.steps__list { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.steps__list li { padding: 20px 16px 24px; border-top: 2px solid var(--ink); }
.steps__list span { font: 700 14px "Manrope", sans-serif; color: var(--muted); }
.steps__list h3 { margin: 28px 0 8px; font: 700 19px/1.2 "Manrope", sans-serif; }
.steps__list p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
@media (max-width: 1199px) { .steps__list { grid-template-columns: repeat(4, 1fr); gap: 24px 12px; } }
@media (max-width: 809px) { .steps__list { grid-template-columns: 1fr 1fr; } .steps__head { flex-direction: column; align-items: start; } }
/* все светлые секции на той же вертикали, что и содержимое тёмных блоков (+8px отступа сцены) */
body > section:not(.hero) > .wrap { width: min(1320px, 100% - 2 * (clamp(20px, 5vw, 64px) + 8px)); }

/* цены */
.price { padding: clamp(80px, 10vw, 140px) 0; }
.price__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
.plan { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 16px; background: var(--soft); }
.plan h3 { margin: 0; font: 700 18px "Manrope", sans-serif; color: var(--muted); }
.plan__sum { margin: 8px 0 0; font: 800 clamp(36px, 3.6vw, 52px)/1 "Manrope", sans-serif; letter-spacing: -.03em; }
.plan p:not(.plan__sum) { margin: 0 0 16px; color: var(--muted); flex: 1; }
.plan .btn { align-self: start; background: var(--ink); color: #fff; }
.plan .btn:hover { background: #2B2B2E; }
.plan--dark { background: var(--night); color: #F2F2EF; }
.plan--dark h3, .plan--dark p:not(.plan__sum) { color: #8D939B; }
.plan--dark .btn { background: #fff; color: var(--ink); }
.plan--dark .btn:hover { background: #E9EBEF; }
.price__note { margin: 24px 0 0; color: var(--muted); }

/* вопросы */
.faq { background: var(--soft); padding: clamp(80px, 10vw, 140px) 0; }
.faq__grid { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; }
.faq details { border-bottom: 1px solid var(--soft-line); }
.faq details:first-child { border-top: 1px solid var(--soft-line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font: 700 clamp(18px, 1.5vw, 21px)/1.3 "Manrope", sans-serif; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; max-width: 40em; color: var(--muted); }

/* контакты и подвал: тёмная сцена, как обложка */
.contact { margin: 0; padding: clamp(80px, 12vw, 160px) 0 32px; border-radius: 0; background: var(--night); color: #F2F2EF; }
.contact__title { margin: 0; max-width: 14em; font: 800 clamp(40px, 5.4vw, 80px)/1 "Manrope", sans-serif; letter-spacing: -.035em; }
.contact__lead { margin: 24px 0 0; max-width: 32em; color: #8D939B; font-size: 18px; }
.contact__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.foot { display: flex; justify-content: space-between; gap: 16px; padding-right: 76px; margin-top: clamp(80px, 10vw, 140px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #8D939B; }
.foot p { margin: 0; }
.foot a { color: #C9CDD2; }

/* плавающая кнопка Telegram */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(14, 19, 32, .12); transition: transform .3s cubic-bezier(.3, .7, .2, 1), background .3s, color .3s; }
.fab svg { width: 24px; height: 24px; }
.fab:hover { transform: scale(1.08); background: var(--ink); color: #fff; }

@media (max-width: 809px) { .price__grid, .faq__grid { grid-template-columns: 1fr; } }

/* клиенты сразу под обложкой: названия крупно, под ними что делали */
.clients { padding: clamp(56px, 7vw, 96px) 0; }
.clients__title { margin: 0 0 32px; font: 600 15px "Golos Text", sans-serif; color: var(--muted); }
.clients__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.clients__list li { padding: 22px 20px 0 0; }
.clients__list b { font: 800 clamp(18px, 1.55vw, 24px)/1.15 "Manrope", sans-serif; letter-spacing: -.02em; }
.clients__list span { font-size: 14px; color: var(--muted); }
@media (max-width: 1199px) { .clients__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; } }
@media (max-width: 809px) { .clients__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; } .clients__list li { padding-right: 0; } }

/* факты на обложке: цена, срок, договор – то, что заказчик ищет первым */
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.facts li { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: 14px; color: #F2F2EF; }
.work__task { margin: -4px 0 12px; font-size: 14px; color: #8D939B; }

/* ===== анимации по мотивам эффектов Framer: заставка, вход обложки, параллакс, шторки, линии, счётчики ===== */
:root { --out: cubic-bezier(.2, .8, .2, 1); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }

/* 1. заставка: буквы выезжают по одной, потом шторка уходит вверх */
.intro { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: var(--night); transition: transform .9s var(--out); }
.intro__word { margin: 0; display: flex; overflow: hidden; font: 800 clamp(48px, 9vw, 140px)/1 "Manrope", sans-serif; letter-spacing: -.04em; color: #F2F2EF; }
.intro__word span { display: inline-block; transform: translateY(105%); transition: transform .7s var(--out) calc(var(--i) * 60ms); }
.js-motion.intro-on .intro { display: grid; }
.intro.go .intro__word span { transform: none; }
.intro.away { transform: translateY(-100%); }

/* 2. вход обложки: строки заголовка из-под маски, ролики лесенкой */
.js-motion .hero h1 .line > span, .js-motion .reel, .js-motion .hero .lead, .js-motion .hero .facts, .js-motion .hero__foot > .btn { transition: transform 1s var(--out), opacity .8s var(--out); }
.js-motion:not(.hero-in) .hero h1 .line > span { transform: translateY(110%); }
.js-motion:not(.hero-in) .reel { opacity: 0; transform: translateY(60px) scale(.96); }
.js-motion:not(.hero-in) .hero .lead, .js-motion:not(.hero-in) .hero .facts, .js-motion:not(.hero-in) .hero__foot > .btn { opacity: 0; transform: translateY(16px); }
.js-motion .hero h1 .line:nth-child(2) > span { transition-delay: .08s; }
.js-motion .reel:nth-child(2) { transition-delay: .09s; } .js-motion .reel:nth-child(3) { transition-delay: .18s; }
.js-motion .hero .lead { transition-delay: .25s; } .js-motion .hero .facts { transition-delay: .32s; } .js-motion .hero__foot > .btn { transition-delay: .38s; }

/* 3. обложка от прокрутки: значения ставит motion.js в --p (0…1) */
.hero__box { transform: scale(calc(1 - var(--p, 0) * .06)); transform-origin: 50% 0; border-radius: calc(20px + var(--p, 0) * 16px); }
.reel { translate: 0 calc(var(--p, 0) * var(--rate, 0) * -1px); }
.reel:nth-child(1) { --rate: 40; } .reel:nth-child(2) { --rate: 110; } .reel:nth-child(3) { --rate: 70; }

/* 4. работы: карточка открывается шторкой снизу */
.js-motion .work { transition: clip-path 1s var(--out), transform 1s var(--out), opacity .6s; }
.js-motion .work:not(.in) { clip-path: inset(18% 0 0 0 round 12px); transform: translateY(48px); opacity: 0; }

/* 5. этапы: линия над шагом прорисовывается слева направо */
.steps__list li { position: relative; border-top-color: transparent; }
.steps__list li::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--ink); transform-origin: 0 50%; transition: transform .7s var(--out) calc(var(--i, 0) * 110ms); }
.js-motion .steps__list:not(.in) li::before { transform: scaleX(0); }

/* 7. кнопка Telegram появляется после обложки */
.js-motion .fab { transition: transform .5s var(--spring), opacity .3s, background .3s, color .3s; }
.js-motion:not(.past-hero) .fab { opacity: 0; transform: scale(.6); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .js-motion .intro { display: none !important; }
  .hero__box, .reel { transform: none; translate: none; }
}

/* низ обложки: слева заголовок, справа подзаголовок, факты и кнопка – так ролики сохраняют высоту */
.hero__foot { align-items: end; }
.hero__side { flex: 0 0 min(400px, 34%); display: flex; flex-direction: column; align-items: start; gap: 16px; }
.hero__side .lead { margin: 0; }
.hero__side .facts { margin: 0; }
.js-motion .hero__side > .btn { transition: transform 1s var(--out), opacity .8s var(--out), background .25s, scale .5s var(--spring); transition-delay: .38s; }
.js-motion:not(.hero-in) .hero__side > .btn { opacity: 0; transform: translateY(16px); }
@media (max-width: 809px) { .hero__side { flex-basis: auto; } }
/* телефон: плавающая кнопка закрывала текст – убираем её, подвал в колонку */
@media (max-width: 809px) { .fab { display: none; } .foot { flex-direction: column; padding-right: 0; } }

/* планшет 810–1199: заголовок на всю ширину, под ним в ряд подзаголовок и кнопка – ролики получают высоту */
@media (min-width: 810px) and (max-width: 1199px) {
  .hero__box { height: auto; min-height: 0; max-height: none; }
  .reels { flex: none; container-type: normal; padding-top: 8px; }
  .reel video { aspect-ratio: 3 / 4; max-height: none; }
  .hero__foot { flex-direction: column; align-items: stretch; gap: 18px; padding-top: 16px; }
  .hero__side { flex: none; width: 100%; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
  .hero__side .lead { flex: 1 1 320px; max-width: 34em; }
  .hero h1 { font-size: clamp(40px, 6.4vw, 72px); }
  .works__grid { gap: 32px 16px; }
  .plan { padding: 22px; }
}
.btn, .faq summary, .fab { -webkit-tap-highlight-color: transparent; }
@media (hover: none) { .btn--sm { min-height: 44px; } .faq summary { padding-block: 18px; } }

/* кнопка обложки на всю ширину текстового блока; светлое пятно ходит за курсором (цвет кнопки остаётся белым) */
.hero__side { align-items: stretch; }
.hero__side .btn { justify-content: center; min-height: 58px; font-size: 17px; overflow: hidden; isolation: isolate; }
.hero__side .btn::before { content: ""; position: absolute; left: var(--sx, 50%); top: var(--sy, 50%); width: 14px; height: 14px; border-radius: 50%; background: #D6E3FF;
  transform: translate(-50%, -50%) scale(0); transition: transform .6s var(--out); z-index: -1; pointer-events: none; }
.hero__side .btn:hover::before, .hero__side .btn:focus-visible::before { transform: translate(-50%, -50%) scale(60); }
@media (min-width: 810px) and (max-width: 1199px) { .hero__side { align-items: stretch; } .hero__side .btn { flex: 1 1 100%; } }

.nowrap { white-space: nowrap; }

/* значки услуг (Lucide, лицензия ISC): круг, при наведении на строку заливается и значок белеет */
.svc__ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink); transition: background .3s var(--out), color .3s, scale .5s var(--spring); }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
/* наведение и фокус: везде, где можно нажать или раскрыть */
.bar nav a:not(.btn), .foot a, .clients__list li, .faq summary, .plan { transition: opacity .2s, color .2s, background .3s var(--out), transform .4s var(--out); }
.foot a:hover { color: #fff; }
.plan { transition: transform .4s var(--out), background .3s; }
.plan:hover { transform: translateY(-4px); }
.clients__list li:hover b { color: var(--blue-ui, #4D5BFF); }
.faq summary:hover { color: #4D5BFF; }
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid #4D5BFF; outline-offset: 3px; border-radius: 12px; }
.hero a:focus-visible, .contact a:focus-visible { outline-color: #fff; }

/* вопросы раскрываются плавно (Chrome 131+, Safari и Firefox пока раскрывают мгновенно) */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--out), content-visibility .45s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) { .plan:hover { transform: none; } .faq details::details-content { transition: none; } }

/* услуги – bento: плитки разной ширины, на каждой значок, название, строка */
.bento { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.bento__tile { grid-column: span var(--span, 2); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 190px; padding: 22px; border-radius: 16px; background: var(--soft); isolation: isolate; transition: transform .4s var(--out); }
.bento__tile .svc__ico { background: #fff; margin-bottom: auto; }
.bento__tile h3 { margin: 0; font: 700 clamp(20px, 1.7vw, 25px)/1.15 "Manrope", sans-serif; letter-spacing: -.02em; }
.bento__tile p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.bento__tile:hover { transform: translateY(-3px); }
.bento__tile:hover .svc__ico { background: var(--ink); color: #fff; scale: 1.08; }
@media (max-width: 1199px) { .bento__tile { grid-column: span 3; } .bento__tile:first-child { grid-column: span 6; } }
@media (max-width: 809px) { .bento { grid-template-columns: 1fr; } .bento__tile, .bento__tile:first-child { grid-column: auto; min-height: 0; } .bento__tile .svc__ico { margin-bottom: 4px; } }

/* подсветка за курсором: пятно света на карточке, плоский цвет без градиентных фонов */
[data-spot]::after { content: ""; position: absolute; left: var(--mx, -999px); top: var(--my, -999px); width: 280px; height: 280px; margin: -140px 0 0 -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: -1; }
[data-spot]:hover::after { opacity: 1; }
.plan { position: relative; overflow: hidden; isolation: isolate; }
.plan--dark[data-spot]::after { background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%); z-index: 0; }
.work[data-spot] { position: relative; padding: 10px 10px 18px; border-radius: 18px; background: #12161B; isolation: isolate; overflow: hidden; }
.work[data-spot]::after { background: radial-gradient(circle, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 70%); z-index: 0; }
.work[data-spot] h3, .work[data-spot] .work__task, .work[data-spot] .work__meta { margin-left: 8px; margin-right: 8px; position: relative; z-index: 1; }
.work[data-spot] .work__media { position: relative; z-index: 1; }

/* фильтр работ */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 28px; }
.filter button { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 18px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font: 600 15px "Golos Text", sans-serif; color: #C9CDD2; transition: background .25s, color .25s, border-color .25s; }
.filter button:hover { border-color: rgba(255, 255, 255, .5); color: #fff; }
.filter button.on { background: #fff; color: var(--ink); border-color: #fff; }
.work[hidden] { display: none; }
.works__grid.is-filtered .work--h { grid-column: span 2; }

/* скроллбар в тон сайта */
html { scrollbar-width: thin; scrollbar-color: #8D939B transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #8D939B; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #6E6E68; background-clip: padding-box; }

/* цифры: что уже сделано, стоят на месте */
.nums { list-style: none; margin: clamp(48px, 7vw, 96px) 0 0; padding: clamp(28px, 4vw, 44px) 0 0; border-top: 1px solid var(--soft-line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.nums b { display: block; font: 800 clamp(56px, 7.2vw, 112px)/.9 "Manrope", sans-serif; letter-spacing: -.045em; color: var(--ink); }
.nums span { display: block; margin-top: 14px; max-width: 14em; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.35; color: var(--muted); }
@media (max-width: 809px) { .nums { grid-template-columns: 1fr; gap: 28px; } .nums li { display: flex; align-items: baseline; gap: 16px; } .nums b { font-size: 64px; min-width: 2.2ch; } .nums span { margin: 0; } }
@media (min-width: 810px) and (max-width: 1199px) { .nums { grid-template-columns: repeat(2, 1fr); } }

.nums__note { margin: 36px 0 0; font: 600 clamp(18px, 1.6vw, 24px)/1.3 "Manrope", sans-serif; letter-spacing: -.01em; color: var(--ink); }

/* низ обложки на компьютере: сетка в три колонки, как у роликов; заголовок в двух, текст и кнопка в третьей (левый край ровно под третьим роликом) */
@media (min-width: 1200px) {
  .hero__foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .hero__foot > h1 { grid-column: 1 / span 2; }
  .hero__side { grid-column: 3; flex: none; width: 100%; }
  .hero__side .lead { max-width: none; font-size: 16px; }
}
@media (min-width: 1200px) { .hero__side .lead { text-wrap: balance; } .hero__side { gap: 14px; } .hero__side .facts { gap: 8px; } }

/* отзыв заказчика: её слова дословно */
.quote { margin: clamp(40px, 6vw, 80px) 0 0; padding-top: 28px; border-top: 1px solid var(--soft-line); max-width: 900px; }
.quote blockquote { margin: 0; font: 700 clamp(24px, 3vw, 44px)/1.15 "Manrope", sans-serif; letter-spacing: -.025em; color: var(--ink); }
.quote figcaption { margin-top: 20px; color: var(--muted); font-size: 16px; }

/* отзыв: слева крупная фраза, справа полный текст */
.review { display: grid; grid-template-columns: 5fr 7fr; gap: 24px clamp(32px, 6vw, 96px); margin: clamp(48px, 7vw, 96px) 0 0; padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--soft-line); }
.review__lead { margin: 0; font: 800 clamp(26px, 3vw, 46px)/1.1 "Manrope", sans-serif; letter-spacing: -.03em; color: var(--ink); }
.review__text { margin: 0; display: grid; gap: 14px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; color: var(--ink); }
.review__text p { margin: 0; }
.review figcaption { grid-column: 1 / -1; color: var(--muted); font-size: 16px; }
@media (max-width: 809px) { .review { grid-template-columns: 1fr; } }

/* подвал: две ссылки рядом */
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 809px) { .foot__links { flex-direction: column; } }

/* страница документа (политика) */
.doc-page { background: #fff; }
.doc-bar { display: flex; justify-content: space-between; align-items: center; height: 84px; }
.doc-bar .bar__logo { color: var(--ink); }
.doc-back { color: var(--muted); text-decoration: none; font-weight: 500; }
.doc-back:hover { color: var(--ink); }
.doc { max-width: 760px; margin-inline: 0; padding: clamp(24px, 4vw, 56px) 0 clamp(64px, 9vw, 120px); width: min(760px, 100% - 2 * var(--edge)); margin-left: max(var(--edge), calc((100% - 1320px) / 2)); }
.doc h1 { margin: 0; font: 800 clamp(34px, 4.4vw, 56px)/1.05 "Manrope", sans-serif; letter-spacing: -.035em; }
.doc__date { margin: 12px 0 40px; color: var(--muted); }
.doc h2 { margin: 36px 0 10px; font: 700 clamp(20px, 2vw, 26px)/1.2 "Manrope", sans-serif; letter-spacing: -.02em; }
.doc p { margin: 0 0 14px; font-size: 17px; line-height: 1.6; }
.doc a { color: var(--ink); text-decoration-color: #B9C2D0; text-underline-offset: 3px; }

/* низ обложки на компьютере: слева заголовок и под ним подзаголовок, справа плашки и кнопка */
.hero__title .lead { margin: 18px 0 0; max-width: 34em; font-size: clamp(16px, 1.2vw, 18px); color: #8D939B; }
@media (min-width: 1200px) { .hero__foot > .hero__title { grid-column: 1 / span 2; } .hero__side { justify-content: flex-end; } }
@media (min-width: 810px) and (max-width: 1199px) { .hero__side { justify-content: space-between; } }

/* плавающее меню: появляется, когда обложка ушла, всегда ведёт на главное и по разделам */
.float { position: fixed; top: 12px; left: 50%; z-index: 60; width: min(980px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 22px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); translate: -50% -160%; opacity: 0; pointer-events: none; transition: translate .5s var(--out), opacity .3s; }
.past-hero .float { translate: -50% 0; opacity: 1; pointer-events: auto; }
.float__logo { font: 800 20px "Manrope", sans-serif; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.float__links { display: flex; gap: 6px; }
.float__links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none; transition: background .2s, color .2s; }
.float__links a:hover { color: var(--ink); background: var(--soft); }
.float__links a.on { color: var(--ink); background: var(--soft); }
.float .btn { background: var(--ink); color: #fff; }
.float .btn:hover { background: #2B2B2E; }
section[id], .studio, .clients { scroll-margin-top: 84px; }
@media (max-width: 809px) { .float__links { display: none; } .float { padding-left: 18px; } .float__cta { min-height: 40px; } }
@media (prefers-reduced-motion: reduce) { .float { transition: none; } }

/* правки по аудиту: порядок секций, 5 этапов, микротексты */
.hero__note { margin: 0; font-size: 13px; line-height: 1.4; color: #8D939B; }
.clients .nums { margin-top: clamp(40px, 5vw, 64px); border-top-color: var(--line); }
.works__more { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 48px); }
.works__more p { margin: 0; font: 700 clamp(18px, 1.6vw, 22px) "Manrope", sans-serif; }
.steps { background: #fff; }
.steps__list { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1199px) { .steps__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 809px) { .steps__list { grid-template-columns: 1fr; } }
.price { background: var(--soft); }
.plan { background: #fff; }
.plan--dark { background: var(--night); }
.proof { padding: clamp(80px, 10vw, 140px) 0; }
.proof .review { margin: 0; padding-top: 0; border-top: 0; }
.contact__note { margin: 16px 0 0; font-size: 14px; color: #8D939B; }

/* палитра «Дорогой digital»: тёплая база #F7F7F5, графит #151515, один акцент #4D5BFF, тинт #EEF0FF, тёмные блоки #18181A */
.svc, .steps, .proof { background: #fff; }
.work[data-spot] { background: #222226; }
.work__media { background: #2A2A2E; }
.hero__side .btn, .contact__buttons .btn { background: var(--accent); color: #fff; }
.hero__side .btn:hover, .contact__buttons .btn:hover { background: #3D4AE0; }
.hero__side .btn::before { background: #3340C9; }
.nums b { color: var(--accent); }
.nums span { color: var(--ink); }
.clients__list b { color: #55554F; transition: color .25s; }
.clients__list li:hover b { color: var(--ink); }
.bento__tile .svc__ico, .svc__ico { background: var(--tint); color: var(--accent); }
.bento__tile:hover .svc__ico { background: var(--accent); color: #fff; }
.filter button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.review__lead { color: var(--ink); }
.plan--dark .btn { background: #fff; color: var(--ink); }
.plan--dark .btn:hover { background: #E9EBEF; }
@media (max-width: 809px) { .nums b { min-width: 3.3ch; } }

/* посадочные страницы под поисковые запросы */
.lp-bar { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.lp-bar nav { display: flex; gap: 28px; align-items: center; }
.lp-bar nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.lp .btn { background: var(--ink); color: #fff; }
.lp .btn:hover { background: #2B2B2E; }
.lp .btn.lp-cta, .lp .contact__buttons .btn { background: var(--accent); }
.lp .btn.lp-cta:hover, .lp .contact__buttons .btn:hover { background: #3D4AE0; }
.lp .plan--dark .btn { background: #fff; color: var(--ink); }
.lp-hero { background: var(--soft); padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 8vw, 110px); }
.lp-crumbs { margin: 0 0 clamp(28px, 4vw, 56px); font-size: 14px; color: var(--muted); }
.lp-crumbs a { color: var(--muted); }
.lp-hero h1 { margin: 0; max-width: 14em; font: 800 clamp(40px, 6.4vw, 96px)/1 "Manrope", sans-serif; letter-spacing: -.04em; text-wrap: balance; }
.lp-lead { margin: 28px 0 0; max-width: 32em; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--muted); }
.lp-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.lp-facts li { padding: 6px 14px; border: 1px solid var(--soft-line); border-radius: 999px; font-size: 14px; background: #fff; }
.lp-cta { margin-top: 32px; min-height: 58px; font-size: 17px; }
.lp-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.lp-tasks, .lp .steps, .lp .faq { background: #fff; padding: clamp(64px, 9vw, 130px) 0; }
.lp-cards { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-card { padding: 24px; border-radius: 16px; background: var(--soft); }
.lp-card h3 { margin: 0 0 10px; font: 700 20px/1.2 "Manrope", sans-serif; }
.lp-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.lp-about, .lp .price, .lp-more { background: var(--soft); padding: clamp(56px, 8vw, 110px) 0; }
.lp-about__grid { display: grid; grid-template-columns: 4fr 8fr; gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.lp-about__grid p { margin: 0; font: 600 clamp(20px, 2vw, 28px)/1.35 "Manrope", sans-serif; letter-spacing: -.015em; }
.price__grid--two { grid-template-columns: repeat(2, 1fr); }
.lp-more__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.lp-more__links a { padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; transition: background .25s, color .25s; }
.lp-more__links a:hover { background: var(--accent); color: #fff; }
@media (max-width: 1199px) { .lp-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 809px) {
  .lp-bar nav a:not(.btn) { display: none; }
  .lp-cards, .price__grid--two, .lp-about__grid { grid-template-columns: 1fr; }
}
.lp-works-cta { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: 24px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .16); }
.lp-works-cta p { margin: 0; font: 700 clamp(22px, 2.4vw, 32px)/1.15 "Manrope", sans-serif; }
.lp .works .btn { background: #fff; color: var(--ink); }
.lp .works .btn:hover { background: #E9EBEF; }
@media (max-width: 809px) { .lp-works-cta { grid-column: span 2 !important; } }
.bento__tile h3 a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--out); }
.bento__tile h3 a:hover, .bento__tile h3 a:focus-visible { background-size: 100% 2px; }
