/* ============================================================
   MCT — Moscow Car Tuning
   Тёмная премиальная тема, красный акцент.
   ============================================================ */

:root {
  --bg: #0a0b0d;
  --bg-2: #0d0f12;
  --card: #14161a;
  --card-2: #171a1f;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f3f4f6;
  --muted: #9aa1a9;
  --faint: #6b7178;
  --red: #e11119;
  --red-2: #ff2530;
  --red-dim: rgba(225, 17, 25, 0.5);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 8px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn i.ico-arrow { flex: 0 0 auto; }
.btn--red { background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff; box-shadow: 0 12px 30px rgba(225, 17, 25, 0.28); }
.btn--red:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(225, 17, 25, 0.42); }
.btn--ghost { background: rgba(255, 255, 255, 0.02); color: var(--ink); border-color: rgba(255, 255, 255, 0.16); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }

/* стрелка-иконка */
.ico-arrow { width: 18px; height: 12px; position: relative; display: inline-block; }
.ico-arrow::before { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.6px; background: currentColor; transform: translateY(-50%); }
.ico-arrow::after { content: ""; position: absolute; top: 50%; right: 0; width: 7px; height: 7px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.ico-arrow--left { transform: scaleX(-1); }

/* ================= ШАПКА ================= */
/* хедер плавает поверх видео (fixed), полупрозрачный; видео идёт от самого верха */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10, 11, 13, 0.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
/* лёгкая тёмная подложка сверху — читаемость меню поверх светлого видео */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 7, 9, 0.5), rgba(6, 7, 9, 0));
  transition: opacity 0.3s ease;
}
/* когда ушли за хиро (в контент) — хедер плотнее для читаемости */
.header.scrolled {
  background: rgba(10, 11, 13, 0.9);
  border-bottom-color: var(--line);
}
.header.scrolled::before { opacity: 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 76px; }

.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__logo { font-size: 26px; font-weight: 800; letter-spacing: 0.04em; }
.brand__t { color: var(--red); }
.brand__sub { font-size: 9px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__link {
  font-size: 14px; font-weight: 600; color: rgba(243, 244, 246, 0.82);
  position: relative; padding: 6px 0; transition: color 0.2s ease;
}
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform 0.28s ease; }
.nav__link:hover { color: #fff; }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__right { display: flex; align-items: center; gap: 22px; }
.header__contacts { text-align: right; display: flex; flex-direction: column; }
.header__phone { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
.header__phone:hover { color: var(--red-2); }
.header__hours { font-size: 10.5px; color: var(--muted); letter-spacing: 0.02em; }
.header__cta { padding: 12px 20px; }

.burger { display: none; width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); cursor: pointer; place-items: center; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; margin: 2.5px 0; transition: transform 0.25s ease, opacity 0.25s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= HERO (видео скрабится скроллом) ================= */
/* Пин-контейнер даёт высоту прокрутки для скраба; .hero липнет и остаётся
   на экране, пока видео проматывается кадр-за-кадром, затем страница идёт дальше. */
.hero-pin { position: relative; height: 320vh; height: 320dvh; }
.hero {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.hero__media { position: absolute; inset: 0; z-index: 0; background: #000; overflow: hidden; }
.hero__poster, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero__poster { z-index: 0; }
/* первый кадр видео = постер → мягко проявляем по прозрачности, без рывка */
.hero__video { z-index: 1; opacity: 0; will-change: opacity; }
.hero.vid-in .hero__video { opacity: 1; transition: opacity 0.6s ease; }
@media (prefers-reduced-motion: reduce) { .hero__video { opacity: 1; } }

.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,11,13,0.92) 4%, rgba(10,11,13,0.74) 32%, rgba(10,11,13,0.26) 62%, rgba(10,11,13,0.08) 100%),
    linear-gradient(0deg, rgba(10,11,13,0.78) 0%, rgba(10,11,13,0) 36%);
  /* во время чистого скраба видео скрим скрыт; проявляется вместе с текстом */
  opacity: 0; transition: opacity 0.7s ease;
}
.hero.content-in .hero__scrim, .hero.stats-up .hero__scrim { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__scrim { opacity: 1; } }
/* текст появляется под конец скраба видео (класс content-in из main.js) */
.hero__inner {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(84px, 11vh, 120px); padding-bottom: clamp(120px, 20vh, 200px);
  opacity: 0; transform: translateY(26px); pointer-events: none; /* скрыт — не кликается */
  transition: opacity 0.7s ease, transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hero.content-in .hero__inner { opacity: 1; transform: none; pointer-events: auto; }
/* плашка тоже не кликается, пока скрыта */
.hero__statswrap { pointer-events: none; }
.hero.stats-up .hero__statswrap { pointer-events: auto; }

/* Плашка статистики — выезжает снизу после появления текста (класс stats-up) */
.hero__statswrap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding-bottom: clamp(22px, 4vh, 44px);
  transform: translateY(calc(100% + 44px)); opacity: 0;
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.6s ease;
  will-change: transform;
}
.hero.stats-up .hero__statswrap { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero__inner, .hero__statswrap { opacity: 1 !important; transform: none !important; transition: none; }
}

.hero__eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(243,244,246,0.9); margin-bottom: 22px; }
.eyebrow__bar { width: 30px; height: 2px; background: var(--red); display: inline-block; }

.hero__title { font-size: clamp(36px, 6vw, 74px); font-weight: 800; line-height: 1.03; letter-spacing: 0.01em; text-transform: uppercase; text-shadow: 0 2px 24px rgba(0,0,0,0.55); }
.hero__title > span { display: block; min-height: 1.03em; }
.hero__title .accent { color: var(--red); }
/* символы во время scramble-эффекта (остаются инлайн внутри строки) */
.hero__title .scr { color: var(--red-2); opacity: 0.82; }

.hero__text { font-size: clamp(15px, 1.4vw, 18px); color: rgba(230,232,236,0.9); margin: 22px 0 34px; text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Плашка статистики ---------- */
.stats {
  margin-top: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 34px);
  padding: clamp(22px, 2.6vw, 34px) clamp(20px, 2.4vw, 40px);
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(20,22,26,0.6), rgba(13,15,18,0.6));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.stat { display: flex; align-items: center; gap: 16px; }
.stat__ico { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); color: var(--red-2); background: rgba(225,17,25,0.06); }
.stat__ico svg { width: 22px; height: 22px; }
.stat__num { display: block; font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: 0.01em; }
.stat__label { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ================= Секции ================= */
.section { padding: clamp(64px, 9vh, 110px) 0; }
/* смещение якорей под sticky-шапку — плавный скролл к блокам (одностраничник) */
.section, #footer { scroll-margin-top: 84px; }
.section--tight { padding-top: clamp(20px, 3vh, 40px); }
.section__title { font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; display: flex; align-items: center; gap: 16px; margin-bottom: clamp(34px, 5vh, 56px); }
.ttl-bar { width: 34px; height: 3px; background: var(--red); flex: 0 0 auto; }
.section__cta { display: flex; justify-content: center; margin-top: clamp(30px, 4vh, 48px); }

/* ---------- Услуги ---------- */
.services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.svc {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  padding-bottom: 22px; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.svc:hover { transform: translateY(-6px); border-color: rgba(225,17,25,0.4); box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
.svc__img { height: 150px; background-size: cover; background-position: center; position: relative; }
.svc__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,26,0) 55%, var(--card)); }
.svc__title { font-size: 16px; font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; padding: 20px 20px 10px; }
.svc__text { font-size: 13px; line-height: 1.6; color: var(--muted); padding: 0 20px 14px; }
.svc__more { display: inline-grid; place-items: center; color: var(--red-2); margin-left: 20px; transition: transform 0.2s ease; }
.svc:hover .svc__more { transform: translateX(5px); }

/* ---------- Почему выбирают нас ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 3vw, 48px); }
.feat__ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); color: var(--red-2); margin-bottom: 20px; }
.feat__ico svg { width: 26px; height: 26px; }
.feat__title { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 12px; }
.feat__text { font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.feat { position: relative; padding-left: 0; }

/* ---------- О нас ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.about__text .section__title { margin-bottom: 26px; }
.about__text p { font-size: 15.5px; line-height: 1.7; color: rgba(230,232,236,0.82); margin-bottom: 18px; max-width: 46ch; }
.about__text .btn { margin-top: 12px; }
.about__media { min-height: clamp(280px, 34vw, 420px); border-radius: 16px; border: 1px solid var(--line); background-size: cover; background-position: center; box-shadow: 0 24px 60px rgba(0,0,0,0.45); }

/* ---------- Проекты ---------- */
.projects__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(30px, 4vh, 46px); }
.projects__head .section__title { margin-bottom: 0; }
.projects__nav { display: flex; gap: 10px; }
.pnav { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color 0.2s ease, background 0.2s ease; }
.pnav:hover { border-color: var(--red-dim); background: rgba(225,17,25,0.08); }
.pnav .ico-arrow { width: 20px; }

.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.proj { transition: transform 0.25s ease; }
.proj__img { height: clamp(180px, 15vw, 220px); border-radius: 14px; background-size: cover; background-position: center; border: 1px solid var(--line); position: relative; overflow: hidden; }
.proj__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35)); opacity: 0; transition: opacity 0.25s ease; }
.proj:hover { transform: translateY(-6px); }
.proj:hover .proj__img::after { opacity: 1; }
.proj__name { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; margin: 18px 0 6px; }
.proj__tags { font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em; }

/* ================= CTA ================= */
.cta { position: relative; overflow: hidden; }
.cta__media { position: absolute; inset: 0; z-index: 0; background: url('../img/cta.jpg') no-repeat right center / cover; }
.cta__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--bg) 6%, rgba(10,11,13,0.86) 36%, rgba(10,11,13,0.35) 62%, rgba(10,11,13,0.1) 100%); }
.cta__inner { position: relative; z-index: 2; padding: clamp(70px, 12vh, 130px) 0; }
.cta__title { font-size: clamp(28px, 4vw, 50px); font-weight: 800; text-transform: uppercase; line-height: 1.06; letter-spacing: 0.01em; text-shadow: 0 2px 24px rgba(0,0,0,0.6); }
.cta__text { font-size: clamp(14px, 1.3vw, 17px); color: rgba(230,232,236,0.82); margin: 22px 0 34px; }

/* ================= ПОДВАЛ ================= */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: clamp(50px, 7vh, 80px); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 60px); padding-bottom: clamp(40px, 6vh, 64px); }
.footer__brand .brand__logo { font-size: 28px; font-weight: 800; }
.footer__brand .brand__sub { display: block; font-size: 9px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.footer__desc { font-size: 13.5px; color: var(--muted); margin: 18px 0 22px; line-height: 1.6; }
.socials { display: flex; gap: 12px; }
.soc { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.soc svg { width: 20px; height: 20px; }
.soc:hover { color: #fff; border-color: var(--red-dim); background: rgba(225,17,25,0.08); }

.footer__col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 20px; }
.footer__col a, .footer__col span { display: block; font-size: 14px; color: rgba(230,232,236,0.78); margin-bottom: 13px; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--red-2); }
.footer__col--contacts .footer__phone { font-size: 17px; font-weight: 800; color: #fff; }

.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 26px; margin-top: 4px; border-top: 1px solid var(--line); }
.footer__bottom span, .footer__bottom a { font-size: 12.5px; color: var(--faint); }
.footer__bottom a:hover { color: var(--muted); }
.footer__bottom { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

/* ================= Анимации входа ================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.22,0.61,0.36,1), transform 0.7s cubic-bezier(0.22,0.61,0.36,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ================= Адаптив ================= */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .header__cta { display: none; }
}
@media (max-width: 900px) {
  .nav, .header__contacts { display: none; }
  .burger { display: grid; }
  .projects { grid-template-columns: repeat(4, 1fr); grid-auto-flow: column; grid-auto-columns: 78%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .projects::-webkit-scrollbar { display: none; }
  .proj { flex: 0 0 78%; scroll-snap-align: start; }
  .about { grid-template-columns: 1fr; }
  .about__media { order: -1; min-height: 240px; }
  .footer__inner { grid-template-columns: 1fr 1fr; row-gap: 40px; }

  /* мобильное меню */
  .nav.is-open { display: flex; position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; background: rgba(9,10,12,0.98); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); z-index: 49; padding: 8px 0; }
  .nav.is-open .nav__link { padding: 16px clamp(20px, 6vw, 48px); font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav.is-open .nav__link::after { display: none; }
}
@media (max-width: 620px) {
  .services { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .proj { flex-basis: 86%; }

  /* хиро на мобильных: текст по верху, компактная плотная плашка снизу без наложения */
  .hero__inner { justify-content: flex-start; padding-top: clamp(92px, 14vh, 120px); padding-bottom: 0; }
  .hero__title { font-size: clamp(30px, 8vw, 40px); }
  .hero__text { font-size: 14px; margin: 14px 0 20px; }
  .hero__statswrap { padding-bottom: 14px; }
  .stats {
    grid-template-columns: 1fr 1fr; gap: 12px 14px; padding: 16px;
    background: rgba(13, 15, 18, 0.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
  .stat { gap: 12px; }
  .stat__ico { width: 38px; height: 38px; }
  .stat__ico svg { width: 18px; height: 18px; }
  .stat__num { font-size: 19px; }
  .stat__label { font-size: 10px; }
}
@media (max-width: 420px) {
  .services { grid-template-columns: 1fr; }
}

/* ================= Модалки (попапы) ================= */
.modal { position: fixed; inset: 0; z-index: 100; visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility 0s linear .3s; }
.modal.open { visibility: visible; opacity: 1; transition: opacity .3s ease; }
#modal-privacy { z-index: 110; }
.modal__overlay { position: absolute; inset: 0; background: rgba(4, 5, 7, 0.74); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal__box {
  position: relative; z-index: 1;
  width: min(460px, calc(100vw - 32px));
  margin: max(7vh, 32px) auto 40px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(26px, 4vw, 40px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  transform: translateY(20px) scale(0.98);
  transition: transform .38s cubic-bezier(.22, .61, .36, 1);
  max-height: calc(100vh - 64px); overflow-y: auto;
}
.modal.open .modal__box { transform: none; }
.modal--wide .modal__box { width: min(680px, calc(100vw - 32px)); }

.modal__x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: color .2s, border-color .2s, background .2s; z-index: 2; }
.modal__x svg { width: 20px; height: 20px; }
.modal__x:hover { color: #fff; border-color: var(--red-dim); background: rgba(225, 17, 25, 0.08); }
.modal__title { font-size: clamp(21px, 3vw, 28px); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 10px; padding-right: 44px; }
.modal__sub { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }

/* форма обратного звонка */
.field { display: block; margin-bottom: 18px; }
.field__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 9px; }
.field__input { width: 100%; padding: 15px 18px; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s; }
.field__input::placeholder { color: var(--faint); font-weight: 500; }
.field__input:focus { outline: none; border-color: var(--red-dim); }
.field.invalid .field__input { border-color: var(--red); }
.field__err { display: none; font-size: 12px; color: var(--red-2); margin-top: 7px; }
.field.invalid .field__err { display: block; }

.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin-bottom: 22px; }
.consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent__box { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; border: 1px solid var(--line); border-radius: 6px; position: relative; transition: border-color .2s, background .2s; }
.consent__box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .18s ease; }
.consent input:checked + .consent__box { background: var(--red); border-color: var(--red); }
.consent input:checked + .consent__box::after { transform: rotate(45deg) scale(1); }
.consent input:focus-visible + .consent__box { border-color: var(--red-2); box-shadow: 0 0 0 3px rgba(225, 17, 25, 0.25); }
.consent__text { font-size: 12.5px; line-height: 1.55; color: var(--muted); }

.cbform__submit { width: 100%; justify-content: center; }
.cbform__submit:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.cbform__note { font-size: 11.5px; color: var(--faint); line-height: 1.5; margin-top: 14px; text-align: center; }

.linklike { background: none; border: none; padding: 0; font: inherit; color: var(--red-2); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linklike:hover { color: #ff5a62; }

.modal__done { text-align: center; padding: 8px 0; }
.modal__done-ico { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; border: 1px solid rgba(225, 17, 25, .4); background: rgba(225, 17, 25, .1); color: var(--red-2); margin-bottom: 18px; }
.modal__done-ico svg { width: 30px; height: 30px; }
.modal__done .btn { margin-top: 6px; }

.policy { font-size: 14px; line-height: 1.65; color: rgba(230, 232, 236, .82); }
.policy__meta { font-size: 12.5px; color: var(--faint); margin-bottom: 18px; }
.policy h4 { font-size: 15px; font-weight: 800; color: var(--ink); margin: 20px 0 8px; }
.policy p { margin-bottom: 4px; }

body.modal-open { overflow: hidden; }

@media (max-width: 620px) {
  .modal__box { margin: 16px auto; padding: 24px 20px; max-height: calc(100vh - 32px); }
  .modal__title { font-size: 20px; padding-right: 40px; }
}

/* ================= Интро-прелоадер ================= */
.nc-preloader { display: none; }
.nc-preloading { overflow: hidden; }
.nc-preloading body { overflow: hidden; }
.nc-preloading .nc-preloader {
  display: block;
  position: fixed; inset: 0; z-index: 99999;
  background: transparent;
  overflow: hidden;
}
.nc-preloader__curtain {
  position: absolute; inset: 0; z-index: 1;
  background: #000; pointer-events: none;
}
.nc-preloader__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 2; pointer-events: none;
}
.nc-preloader__video {
  position: absolute; z-index: 3; opacity: 0;
  object-fit: cover; object-position: center;
  will-change: left, top, width, height, opacity, filter;
}
.nc-preloader__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 4;
  background: rgba(255, 255, 255, 0.08);
}
.nc-preloader__bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--red), var(--red-2));
  transition: width 0.2s ease;
}
