/* ============================================================
   КЛИПЗАВОД — лендинг. Дизайн-токены + компоненты + секции.
   Шрифты: Golos Text (текст). Заголовки в макете — Wadik;
   подключите Wadik при наличии лицензии, иначе fallback Golos.
   ============================================================ */

/* --- Шрифт заголовков Wadik. Положите файлы в assets/fonts/ (см. README там).
   Достаточно woff2; .woff/.ttf/.otf тоже подхватятся, если назвать так же. --- */
@font-face {
  font-family: "Wadik";
  src: url("../assets/fonts/Wadik-Bold.woff2") format("woff2"),
       url("../assets/fonts/Wadik-Bold.woff") format("woff"),
       url("../assets/fonts/Wadik-Bold.ttf") format("truetype"),
       url("../assets/fonts/Wadik-Bold.otf") format("opentype");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Wadik";
  src: url("../assets/fonts/Wadik-Regular.woff2") format("woff2"),
       url("../assets/fonts/Wadik-Regular.woff") format("woff"),
       url("../assets/fonts/Wadik-Regular.ttf") format("truetype"),
       url("../assets/fonts/Wadik-Regular.otf") format("opentype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange:    #ff4100;
  --orange-hi: #ff5a24;
  --black:     #000000;
  --white:     #ffffff;
  --light:     #ededed;
  --gray:      #b4b4b4;
  --line:      #313131;
  --card:      #0a0a0a;

  --container: 1360px;
  --pad: 40px;

  --font: "Golos Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Wadik", "Golos Text", var(--font);

  --r: 10px;          /* радиус карточек/полей */
  --pre-duration: 2.6s;
}

* { box-sizing: border-box; }

html.is-loading, html.is-loading body { overflow: hidden; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }

.section { padding-block: 80px; position: relative; }
.section-rule {
  position: relative; height: 1px; background: var(--line); margin-bottom: 48px;
}
.section-rule::before, .section-rule::after {
  content: ""; position: absolute; top: -7px; width: 15px; height: 15px; background: var(--light);
}
.section-rule::before { left: 0; }
.section-rule::after  { right: 0; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--orange); font-weight: 600; margin: 0 0 14px;
}
.h-sect {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; color: var(--orange);
  margin: 0;
}
.h-sect--light { color: var(--white); }
.h-sect--up { text-transform: uppercase; color: var(--white); }
.o { color: var(--orange); }
.lead { color: var(--gray); font-size: clamp(16px, 1.4vw, 19px); max-width: 760px; margin: 16px 0 0; }
.head-block { margin-bottom: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 40px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #000; }
.btn--primary:hover { background: var(--orange-hi); }
.btn--ghost { background: transparent; color: #fff; border-color: var(--light); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--ghost .ico { color: currentColor; }

.linkarrow { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-weight: 600; font-size: 15px; }
.linkarrow:hover { gap: 12px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: 70px; display: flex; align-items: center;
  background: transparent; transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-stuck { background: rgba(0,0,0,.85); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.header .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: center; }
.brand .mark { width: 30px; height: 26px; }
.brand .wordmark { width: 143px; height: 14px; }
.brand .mark, .brand .wordmark { color: inherit; }
.header .btn { justify-self: end; padding: 11px 22px; font-size: 14px; }
.burger { justify-self: start; display: flex; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.burger span { width: 24px; height: 2px; background: var(--orange); display: block; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 100px 0 56px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,.85) 100%); }
.hero .container { position: relative; z-index: 1; }
.hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 11vw, 150px); line-height: .92; letter-spacing: .01em; margin: 0; }
.hero__sub { color: var(--gray); font-size: clamp(16px, 1.5vw, 20px); max-width: 540px; margin: 22px 0 0; }
.hero__sub b { color: var(--white); font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

/* ---------- Clients ---------- */
.clients { text-align: center; }
.clients .h-sect { margin: 0 0 56px; }
.clients__row { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.clients__row img { height: 52px; width: auto; object-fit: contain; filter: grayscale(1) brightness(1.7); opacity: .85; transition: .25s; }
.clients__row img:hover { filter: none; opacity: 1; }

/* ---------- Stats ---------- */
.stats__row { display: flex; flex-wrap: wrap; }
.stat { flex: 1 1 0; min-width: 200px; padding: 8px 32px 8px 0; position: relative; }
.stat + .stat { padding-left: 48px; border-left: 1px solid var(--line); }
.stat__num { font-family: var(--display); font-weight: 800; color: var(--orange); font-size: clamp(40px, 4.4vw, 58px); line-height: 1; }
.stat__label { color: var(--gray); font-size: 16px; margin-top: 10px; }

/* ---------- Generic grid + card ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.card__num { color: var(--orange); font-weight: 600; font-size: 14px; }
.card__title { font-weight: 600; font-size: 18px; margin: 12px 0 8px; }
.card__text { color: var(--gray); font-size: 14px; margin: 0; }

/* ---------- Skills (advantages) — 3x2 grid: white heading box + 4 cells + image ---------- */
.skills__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.skills__head, .skill, .skills__media { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skills__head { background: var(--light); color: #000; padding: 36px; display: flex; align-items: flex-end; }
.skills__head h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.04; margin: 0; color: #000; }
.skill { padding: 32px; display: flex; flex-direction: column; min-height: 280px; }
.skill__num { color: var(--orange); font-weight: 600; font-size: 14px; }
.skill__name { text-transform: uppercase; letter-spacing: .04em; font-size: 16px; margin: auto 0 12px; }
.skill__text { color: var(--gray); font-size: 14px; margin: 0; }
.skills__media { position: relative; overflow: hidden; background: #000; }
.skills__media img { position: absolute; right: -6%; bottom: -12%; height: 152%; width: auto; max-width: none; }

/* ---------- Services intro ---------- */
.svcintro-section { position: relative; overflow: hidden; }
.svcintro__decor { position: absolute; z-index: 0; right: clamp(-60px, -3vw, -10px); top: 50%; transform: translateY(-50%); width: auto; height: auto; max-width: 46%; max-height: 86%; object-fit: contain; pointer-events: none; }
.svcintro { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.svcintro__title { font-family: var(--display); font-weight: 800; text-transform: uppercase; color: var(--orange); font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; margin: 0; }
.svcintro__left .btn { margin-top: 32px; }
.svcintro__box { position: relative; border: 1px solid var(--line); background: rgba(0,0,0,.55); backdrop-filter: blur(3px); padding: 36px; max-width: 540px; }
.svcintro__box::before { content: ""; position: absolute; top: -1px; left: -1px; width: 14px; height: 14px; background: var(--light); }
.svcintro__box .eyebrow { margin: 0 0 16px; }
.svcintro__box p { color: var(--gray); font-size: 15px; line-height: 1.55; margin: 0; }

/* ---------- Services tiles ---------- */
.tile { display: flex; flex-direction: column; gap: 8px; }
.tile .linkarrow { margin-top: auto; padding-top: 12px; }
.tile--cta { background: var(--orange); border-color: var(--orange); }
.tile--cta .card__title, .tile--cta .card__text { color: #000; }
.tile--cta .linkarrow { color: #000; }

/* ---------- Cases ---------- */
.cases__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* горизонтальный скролл кейсов */
.cases__scroll { display: flex; gap: 20px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; padding-bottom: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.cases__scroll .case { flex: 0 0 300px; scroll-snap-align: start; }
.cases__scroll::-webkit-scrollbar { height: 6px; }
.cases__scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.cases__scroll::-webkit-scrollbar-thumb:hover { background: var(--orange); }
.cases__scroll::-webkit-scrollbar-track { background: transparent; }
.case { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 3/4; cursor: pointer; }
.case img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.case:hover img { transform: scale(1.05); }
.case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.8) 100%); }
.case__label { position: absolute; left: 16px; bottom: 16px; z-index: 1; font-weight: 600; letter-spacing: .06em; font-size: 14px; }
.case__play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; z-index: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.5); opacity: 0; transition: opacity .25s, background .25s, border-color .25s; }
.case:hover .case__play { background: var(--orange); border-color: var(--orange); opacity: 1; }
.case__play svg { width: 18px; height: 18px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.step { padding-top: 18px; border-top: 2px solid var(--orange); }
.step__num { font-family: var(--display); font-weight: 800; font-size: 28px; }
.step__title { font-weight: 600; font-size: 17px; margin: 10px 0 8px; }
.step__text { color: var(--gray); font-size: 14px; margin: 0; }

/* ---------- Guarantees ---------- */
.guarantees__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guar__check { color: var(--orange); font-size: 22px; line-height: 1; font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 980px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__q { width: 100%; background: none; border: 0; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 20px; font-weight: 600; text-align: left; }
.faq__q .sign { color: var(--orange); font-size: 26px; line-height: 1; transition: transform .25s ease; flex: none; }
.faq__item.is-open .faq__q .sign { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { color: var(--gray); font-size: 16px; margin: 0 0 24px; max-width: 820px; }

/* ---------- Blog ---------- */
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post__media { border-radius: 8px; overflow: hidden; aspect-ratio: 16/10; margin-bottom: 18px; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post:hover .post__media img { transform: scale(1.04); }
.post__meta { display: flex; gap: 18px; color: var(--gray); font-size: 13px; margin-bottom: 12px; }
.post__meta span { display: inline-flex; align-items: center; gap: 6px; }
.post__meta svg { width: 16px; height: 16px; }
.post__title { font-size: 18px; font-weight: 500; margin: 0; }
.post:hover .post__title { color: var(--orange); }

/* ---------- Final CTA ---------- */
.finalcta { padding-block: 96px; text-align: left; }
.finalcta h2 { font-family: var(--display); font-weight: 800; color: #fff; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; max-width: 1000px; margin: 0; }
.finalcta p { color: var(--gray); font-size: 18px; margin: 20px 0 0; max-width: 760px; }
.finalcta__btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding-block: 72px; overflow: hidden; }
.footer__decor { position: absolute; right: -60px; bottom: -90px; width: clamp(280px, 32%, 500px); z-index: 0; pointer-events: none; }
.footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; }
.footer__logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.footer__logo .mark { width: 44px; height: 37px; }
.footer__logo .wordmark { width: 190px; height: 19px; }
.footer__contacts { display: flex; gap: 56px; margin-bottom: 32px; flex-wrap: wrap; }
.footer__lab { display: block; color: var(--gray); font-size: 13px; margin-bottom: 10px; }
.footer__contacts a { font-size: 18px; color: #fff; }
.footer__contacts a:hover { color: var(--orange); }
.footer__socials { display: flex; gap: 12px; margin-bottom: 40px; }
.footer__socials a { width: 44px; height: 44px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--light); transition: .2s; }
.footer__socials a:hover { border-color: var(--orange); color: var(--orange); }
.footer__socials svg { width: 20px; height: 20px; }
.footer__legal { color: var(--gray); font-size: 13px; line-height: 1.9; max-width: 440px; }
.footer__policy { display: inline-block; margin-top: 16px; color: var(--gray); font-size: 13px; text-decoration: underline; }
.footer__form-title { font-size: 18px; color: var(--gray); margin: 0 0 22px; max-width: 360px; }
.footer__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.footer__fields .field { margin-top: 0; }
.footer__submit-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; flex-wrap: wrap; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--gray); font-size: 12px; max-width: 360px; cursor: pointer; line-height: 1.45; }
.consent input { margin-top: 2px; accent-color: var(--orange); flex: none; }
.consent a { color: var(--light); text-decoration: underline; }
.footer__submit-row .btn { margin: 0; }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 1100; background: var(--black); transform: translateY(-100%); transition: transform .35s ease; display: flex; flex-direction: column; padding: 24px var(--pad) 40px; }
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 46px; }
.mobile-menu__close { background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; width: 44px; height: 44px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; }
.mobile-menu nav a { font-family: var(--display); font-weight: 800; font-size: 30px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 80px 24px; background: var(--black); transition: opacity .45s ease-in, transform .45s ease-in, visibility 0s linear .45s; will-change: opacity, transform; }
#preloader.is-hidden { opacity: 0; transform: translateY(-16px); visibility: hidden; pointer-events: none; }
.pre-crosshair { position: absolute; top: 40px; left: 50%; width: min(1300px, calc(100% - 80px)); transform: translateX(-50%); opacity: 0; animation: pre-fade .6s ease-out .05s forwards; }
.pre-crosshair .h-line { height: 1px; width: 100%; background: var(--line); }
.pre-crosshair .v-line { position: absolute; top: 0; left: 50%; width: 1px; height: 46px; background: var(--line); transform: translateX(-50%); }
.pre-crosshair .dot { position: absolute; top: 44px; left: 50%; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); transform: translateX(-50%); }
.pre-logo { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pre-emblem, .pre-wordmark, .pre-tagline { opacity: 0; transform: translateY(16px); animation: pre-rise .7s cubic-bezier(.16,1,.3,1) forwards; }
.pre-emblem { animation-delay: .10s; width: 92px; }
.pre-wordmark { animation-delay: .24s; width: 280px; max-width: 70vw; }
.pre-tagline { animation-delay: .38s; margin: 6px 0 0; max-width: 420px; text-align: center; font-size: 18px; line-height: 1.45; color: var(--gray); }
.pre-tagline b { color: var(--white); font-weight: 500; }
.pre-loader { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 18px; opacity: 0; animation: pre-fade .6s ease-out .5s forwards; }
.pre-loader-row { display: flex; align-items: center; gap: 10px; }
.pre-spinner { width: 18px; height: 18px; animation: pre-spin .9s linear infinite; }
.pre-loader-text { font-size: 14px; color: var(--gray); letter-spacing: .02em; }
.pre-progress { width: 220px; max-width: 60vw; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.pre-progress span { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: left center; transform: scaleX(0); animation: pre-fill var(--pre-duration) cubic-bezier(.4,0,.2,1) forwards; }
@keyframes pre-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes pre-fade { to { opacity: 1; } }
@keyframes pre-spin { to { transform: rotate(360deg); } }
@keyframes pre-fill { to { transform: scaleX(1); } }

/* ============================================================
   MODALS
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.is-open { display: flex; }
.modal__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); animation: m-fade .25s ease; }
.modal__card { position: relative; z-index: 1; width: 100%; background: #0d0d0d; border: 1px solid var(--line); border-radius: var(--r); padding: 40px; animation: m-rise .3s cubic-bezier(.16,1,.3,1); max-height: 92vh; overflow: auto; }
.modal--callback .modal__card { max-width: 500px; }
.modal--brief .modal__card { max-width: 720px; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal__head h3 { font-family: var(--display); font-weight: 800; font-size: 26px; margin: 0; }
.modal__close { background: none; border: 0; color: var(--gray); font-size: 22px; cursor: pointer; line-height: 1; padding: 4px; }
.modal__close:hover { color: #fff; }
.modal__sub { color: var(--gray); font-size: 15px; margin: 12px 0 0; }
.field { width: 100%; background: #000; border: 1px solid var(--line); border-radius: 6px; color: #fff; padding: 15px 18px; font-size: 16px; margin-top: 14px; }
.field::placeholder { color: var(--gray); }
.field:focus { outline: none; border-color: var(--orange); }
.modal .btn { width: 100%; justify-content: center; margin-top: 18px; }
.modal__note { color: var(--gray); font-size: 12px; margin: 14px 0 0; }

/* brief steps */
.brief__step-label { color: var(--orange); font-weight: 600; font-size: 13px; margin: 16px 0 8px; }
.brief__track { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.brief__track span { display: block; height: 100%; background: var(--orange); border-radius: 2px; transition: width .3s ease; }
.brief__q { font-size: 22px; font-weight: 600; margin: 20px 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { border: 1px solid var(--line); background: transparent; color: #fff; border-radius: 40px; padding: 12px 20px; font-size: 15px; cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--orange); }
.chip.is-active { background: var(--orange); border-color: var(--orange); color: #000; font-weight: 600; }
.brief__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.brief__panel[hidden] { display: none; }

@keyframes m-fade { from { opacity: 0; } }
@keyframes m-rise { from { opacity: 0; transform: translateY(16px); } }

/* ============================================================
   SCROLL REVEAL — фирменный: линия чертится, точка бежит,
   угловые маркеры выскакивают, контент проявляется каскадом
   ============================================================ */
/* 1. линия-разделитель прочерчивается слева направо */
.reveal .section-rule { transform: scaleX(0); transform-origin: left center; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in .section-rule { transform: scaleX(1); }
/* 2. угловые квадраты: поп со вспышкой (оранжевый → светлый) */
.reveal .section-rule::before, .reveal .section-rule::after { transform: scale(0); background: var(--orange); transition: transform .4s cubic-bezier(.34,1.56,.64,1), background-color .5s ease; }
.reveal.in .section-rule::before { transform: scale(1); background: var(--light); transition-delay: .08s, .38s; }
.reveal.in .section-rule::after { transform: scale(1); background: var(--light); transition-delay: .5s, .7s; }
/* 3. оранжевая точка пробегает по линии в такт прочерчиванию */
.rule-run { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px 2px var(--orange); opacity: 0; pointer-events: none; }
.reveal.in .rule-run { animation: ruleRun .65s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes ruleRun { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
/* 4. контент секции проявляется каскадом снизу-вверх */
.reveal .container > *:not(.section-rule) { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in .container > *:not(.section-rule) { opacity: 1; transform: none; }
.reveal.in .container > *:nth-child(2) { transition-delay: .22s; }
.reveal.in .container > *:nth-child(3) { transition-delay: .36s; }
.reveal.in .container > *:nth-child(4) { transition-delay: .48s; }
.reveal.in .container > *:nth-child(5) { transition-delay: .58s; }
.reveal.in .container > *:nth-child(n+6) { transition-delay: .66s; }

/* ============================================================
   HERO VIDEO
   ============================================================ */
.hero__bg video { width: 100%; height: 100%; object-fit: cover; }
.hero__bg .kenburns { animation: kenburns 20s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }

/* ============================================================
   VIDEO MODAL
   ============================================================ */
.modal--video .modal__card { max-width: 1040px; padding: 0; background: transparent; border: 0; overflow: visible; }
.video-wrap { position: relative; aspect-ratio: 16/9; background: #000; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.video-wrap video, .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.modal--video .modal__close { position: absolute; top: -44px; right: 0; color: #fff; font-size: 28px; z-index: 2; }

/* ============================================================
   ARTICLE MODAL
   ============================================================ */
.modal--article .modal__card { max-width: 820px; }
.article__meta { display: flex; gap: 16px; color: var(--gray); font-size: 13px; margin: 0 0 16px; }
.article__body h2 { font-family: var(--display); font-weight: 800; font-size: clamp(24px,3vw,34px); line-height: 1.15; margin: 0 0 18px; }
.article__body img { width: 100%; border-radius: 8px; margin: 6px 0 22px; }
.article__body p { color: var(--light); font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.article__body h3 { font-size: 20px; margin: 24px 0 10px; color: #fff; }

/* ============================================================
   BRIEF FORM (full — grouped, underline style)
   ============================================================ */
.brief2__intro { color: var(--gray); font-size: 15px; line-height: 1.5; margin: 10px 0 4px; }
.brief2__group { margin-top: 34px; }
.brief2__group-title { text-align: center; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--orange); margin: 0 0 4px; }
.brief2 .uline { position: relative; }
.brief2 .uline input, .brief2 .uline select, .brief2 .uline textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: #fff; font-family: inherit; font-size: 15px; padding: 16px 24px 16px 0; appearance: none; -webkit-appearance: none; border-radius: 0;
}
.brief2 .uline textarea { resize: vertical; min-height: 30px; line-height: 1.5; }
.brief2 .uline input::placeholder, .brief2 .uline textarea::placeholder { color: var(--gray); }
.brief2 .uline input:focus, .brief2 .uline select:focus, .brief2 .uline textarea:focus { outline: none; border-bottom-color: var(--orange); }
.brief2 .uline select { color: var(--gray); cursor: pointer; }
.brief2 .uline.sel::after { content: ""; position: absolute; right: 6px; top: 20px; width: 8px; height: 8px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); pointer-events: none; }
.brief2 option { background: #0d0d0d; color: #fff; }
.brief2__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 34px; flex-wrap: wrap; }
.brief2__foot .btn { margin: 0; width: auto; }

/* ============================================================
   POLICY MODAL
   ============================================================ */
.modal--policy .modal__card { max-width: 880px; }
.policy { max-height: 68vh; overflow-y: auto; padding-right: 10px; margin-top: 8px; }
.policy h3 { font-size: 18px; color: #fff; margin: 26px 0 10px; }
.policy h4 { font-size: 15px; color: #fff; margin: 18px 0 8px; }
.policy p, .policy li { color: var(--gray); font-size: 14px; line-height: 1.65; }
.policy p { margin: 0 0 12px; }
.policy ul { margin: 8px 0 14px; padding-left: 20px; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie { position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 1500; max-width: 580px; margin: 0 auto; background: #0d0d0d; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; display: flex; gap: 18px; align-items: center; box-shadow: 0 24px 60px rgba(0,0,0,.6); transform: translateY(160%); transition: transform .45s cubic-bezier(.16,1,.3,1); }
.cookie.in { transform: none; }
.cookie p { margin: 0; color: var(--gray); font-size: 13px; line-height: 1.5; flex: 1; }
.cookie a { color: var(--light); text-decoration: underline; }
.cookie .btn { flex: none; padding: 12px 24px; font-size: 14px; }

/* footer legal — построчно */
.footer__legal span { display: block; }

/* ============================================================
   RESPONSIVE — tablet (<=1024)
   ============================================================ */
@media (max-width: 1024px) {
  :root { --pad: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cases__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .guarantees__grid { grid-template-columns: repeat(2, 1fr); }
  .blog__grid { grid-template-columns: repeat(2, 1fr); }
  .svcintro { grid-template-columns: 1fr; gap: 32px; }
  .svcintro__box { max-width: 620px; }
  .svcintro__decor { opacity: .35; right: -140px; width: 460px; }
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 44px; }
  .footer__decor { opacity: .4; }
}

/* ============================================================
   RESPONSIVE — mobile (<=600)
   ============================================================ */
@media (max-width: 600px) {
  :root { --pad: 20px; }
  .section { padding-block: 56px; }
  .section-rule { margin-bottom: 32px; }
  .header .btn { display: none; }
  .svcintro__decor { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .skills__grid { grid-template-columns: 1fr; }
  .cases__grid { grid-template-columns: 1fr; }
  .cases__scroll .case { flex-basis: 78%; }
  .steps { grid-template-columns: 1fr; }
  .guarantees__grid { grid-template-columns: 1fr; }
  .blog__grid { grid-template-columns: 1fr; gap: 28px; }
  .skills__media { display: none; }
  .footer__fields { grid-template-columns: 1fr; }
  .footer__contacts { gap: 28px; }
  .footer__decor { display: none; }
  .stats__row { flex-direction: column; gap: 24px; }
  .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .hero { min-height: 92svh; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .modal__card { padding: 28px 22px; }
  .modal__head h3 { font-size: 22px; }
  .brief2__foot { flex-direction: column; align-items: stretch; }
  .brief2__foot .btn { justify-content: center; }
  .cookie { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; }
  .cookie .btn { justify-content: center; }
  .modal--video .modal__close { top: 8px; right: 10px; }
}

/* ============================================================
   ACCESSIBILITY — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pre-crosshair, .pre-emblem, .pre-wordmark, .pre-tagline, .pre-loader { animation: none; opacity: 1; transform: none; }
  .pre-spinner { animation: none; }
  .pre-progress span { animation: none; transform: scaleX(1); }
  #preloader { transition: opacity .2s ease, visibility 0s linear .2s; }
  #preloader.is-hidden { transform: none; }
  .case img, .post__media img { transition: none; }
  .modal__scrim, .modal__card { animation: none; }
  .reveal .section-rule, .reveal .section-rule::before, .reveal .section-rule::after, .reveal .container > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .reveal .section-rule::before, .reveal .section-rule::after { background: var(--light) !important; }
  .rule-run { display: none !important; }
  .cookie { transition: none; }
  .hero__bg .kenburns { animation: none; }
}
