/* ══ VARIABLES ══ */
:root {
  --bg: #0d0f10;
  --bg-soft: #151819;
  --panel: #191d1f;
  --panel-strong: #202528;
  --text: #f4f1ea;
  --muted: #a7adaf;
  --muted-2: #727a7d;
  --line: rgba(244, 241, 234, 0.12);
  --accent: #82f7ff;
  --accent-strong: #47d7e8;
  --warm: #d7c7a0;
  --danger: #ff6f61;
  --radius: 8px;
  --max: 1248px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ══ GRAIN ══ */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

/* ══ HEADER — классическая линия ══ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 max(20px, calc((100% - var(--max)) / 2 + 20px));
  height: 64px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.07);
  background: rgba(13, 15, 16, 0.28);
  backdrop-filter: blur(10px);
  transition: background 300ms ease, border-color 300ms ease;
}

/* Хедер чуть темнее при скролле — добавляется классом через JS */
.site-header.scrolled {
  background: rgba(13, 15, 16, 0.72);
  border-bottom-color: var(--line);
}

.logo { display: flex; align-items: center; height: 100%; line-height: 1; }

.brand-wordmark {
  --brand-name-width: 101px;
  --brand-name-size: 16.2px;
  --brand-studio-width: 52px;
  --brand-studio-size: 6.7px;
  --brand-gap: 3.6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  color: var(--text);
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 600;
  line-height: 1;
}

.brand-wordmark-name,
.brand-wordmark-studio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
}

.brand-wordmark-name {
  width: var(--brand-name-width);
  font-size: var(--brand-name-size);
}

.brand-wordmark-studio {
  width: var(--brand-studio-width);
  margin-top: var(--brand-gap);
  color: var(--accent);
  font-size: var(--brand-studio-size);
}

.brand-wordmark--footer {
  --brand-name-width: 113px;
  --brand-name-size: 18px;
  --brand-studio-width: 58px;
  --brand-studio-size: 7.4px;
  --brand-gap: 4.2px;
}

.brand-wordmark--preloader {
  --brand-name-width: 158px;
  --brand-name-size: 25.8px;
  --brand-studio-width: 82px;
  --brand-studio-size: 10.6px;
  --brand-gap: 6px;
}

.brand-wordmark--privacy {
  --brand-name-width: 130px;
  --brand-name-size: 21px;
  --brand-studio-width: 66px;
  --brand-studio-size: 8.6px;
  --brand-gap: 4.8px;
}

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.main-nav .nav-cta {
  color: #061315;
  background: var(--accent);
  border-radius: 999px;
}
.main-nav .nav-cta:hover { background: #b4fbff; color: #061315; }

/* Telegram-контакт в навигации */
.main-nav .nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.main-nav .nav-contact svg {
  color: var(--accent);
  transition: transform 180ms ease;
}
.main-nav .nav-contact:hover svg {
  color: #061315;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

/* ══ SECTIONS ══ */
.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

/* ══ HERO — VIDEO full screen ══ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 100svh;
  /* Боковые паддинги фиксированные, контент центрируется через hero-copy max-width */
  padding: calc(64px + 48px) 0 60px;
  overflow: hidden;
  background: var(--bg);
}

.hero-visual {
  position: absolute;
  /* Full-bleed как на мобиле: видео от самого верха экрана, за хедером, без рамок */
  inset: 0;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Кадр опущен: 50% — только лучи, 20% — перебор, 35% — середина */
  object-position: center 35%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Как на мобиле: только вертикальный градиент, низ растворяется в фон страницы */
  background:
    linear-gradient(180deg,
      rgba(6,9,10,0.5) 0%,
      rgba(6,9,10,0.08) 28%,
      rgba(6,9,10,0.55) 72%,
      var(--bg) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
  text-align: center;
}

/* Сам текст ограничиваем чтобы не растягивался на весь экран */
.hero-copy > * {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* .eyebrow используется и в других секциях — центруем только в хиро */
.hero-copy .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

h1, h2, h3, p { margin-top: 0; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: none;
  margin-bottom: 18px;
  /* Крупнее: 40px на мобиле → 76px на больших экранах */
  font-size: clamp(40px, 4.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -1px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3.5vw, 54px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(18px, 1.6vw, 26px);
  line-height: 1.15;
}

.hero-text,
.section-heading p,
.intro p,
.contact-card p,
.service-card p,
.timeline-item p,
.faq-item p {
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.7;
}

.hero-text { max-width: 540px; margin-bottom: 24px; }

/* ══ BUTTONS ══ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); }

.button.primary {
  color: #061315;
  background: var(--accent);
  box-shadow: 0 20px 70px rgba(130,247,255,0.18);
}
.button.ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
}

/* ══ HERO META — с иконками, одна строка ══ */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 560px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,0.035);
}

.hero-meta svg { flex-shrink: 0; color: var(--accent); }

/* ══ MARQUEE ══ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  display: flex;
  /* Оба трека идут рядом — при сдвиге первого второй подхватывает */
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.marquee span {
  padding: 20px 22px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
.marquee span::after { content: "/"; margin-left: 24px; color: var(--accent); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══ SECTIONS SPACING ══ */
.intro, .works, .services, .process, .trust, .faq, .contact {
  padding: 100px 0 0;
}

.section-label {
  margin-bottom: 28px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 90px;
  border-bottom: 1px solid var(--line);
}
.intro-grid h2 { margin-bottom: 0; }

/* Правая колонка: фото основателя + текст */
.intro-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.founder {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.founder img {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  /* Без обводки — мягкое свечение и тень для объёма */
  box-shadow: 0 0 36px rgba(71, 215, 232, 0.16),
              0 14px 40px rgba(0, 0, 0, 0.55);
}

.founder figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.founder-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}

.founder-role {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

/* Три пункта-преимущества */
.intro-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.intro-points li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.intro-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.intro-points strong {
  color: var(--text);
  font-weight: 700;
}

.section-heading { max-width: 720px; margin-bottom: 42px; }

/* ══ WORKS GRID ══ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

/* Большие карточки — span 3 */
.work-card--large { grid-column: span 3; }
/* Маленькие — span 2 (три карточки заполняют ряд) */
.work-card--small { grid-column: span 2; }

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(25,29,31,0.72);
  box-shadow: 0 22px 80px rgba(0,0,0,0.18);
  transform: translateZ(0);
  transition: border-color 240ms ease, transform 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(135deg, rgba(130,247,255,0.16), transparent 42%);
  transition: opacity 240ms ease;
}

.work-card:hover {
  border-color: rgba(130,247,255,0.42);
  transform: translateY(-8px);
  background: rgba(32,37,40,0.82);
  box-shadow: 0 34px 110px rgba(0,0,0,0.34);
}
.work-card:hover::before { opacity: 1; }

/* Активная карточка (первый тап/клик) */
.work-card.is-active {
  border-color: rgba(130,247,255,0.6);
  transform: translateY(-8px);
  background: rgba(32,37,40,0.82);
  box-shadow: 0 34px 110px rgba(0,0,0,0.34), 0 0 0 1px rgba(130,247,255,0.3);
}
.work-card.is-active::before { opacity: 1; }
.work-card.is-active .open-label {
  opacity: 1;
  transform: translateY(0);
  bottom: 12px;
  right: 12px;
  font-size: 11px;
  padding: 0 14px;
  white-space: nowrap;
  max-width: calc(100% - 24px);
}

.work-preview {
  position: relative;
  aspect-ratio: 16/10;
  padding: 52px 18px 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(130,247,255,0.12), transparent 42%),
    linear-gradient(145deg, rgba(32,37,40,0.94), rgba(13,15,16,0.96));
  overflow: hidden;
}

.work-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(244,241,234,0.08), inset 0 -42px 80px rgba(0,0,0,0.2);
}

.work-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  border: 1px solid rgba(244,241,234,0.12);
  border-radius: 6px;
  background: rgba(7,10,11,0.7);
  box-shadow: 0 22px 70px rgba(0,0,0,0.34);
  transition: transform 650ms cubic-bezier(0.2,0.8,0.2,1), filter 650ms ease;
}
.work-card:hover .work-preview img { transform: translateY(-4px); filter: saturate(1.08) contrast(1.04); }

.browser-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  gap: 6px;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(244,241,234,0.12);
  background: rgba(13,15,16,0.76);
  backdrop-filter: blur(12px);
}
.browser-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(244,241,234,0.42); }
.browser-bar span:first-child { background: var(--danger); }
.browser-bar span:nth-child(2) { background: var(--warm); }
.browser-bar span:nth-child(3) { background: var(--accent); }

.open-label {
  position: absolute;
  right: 16px; bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(244,241,234,0.16);
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  background: rgba(13,15,16,0.68);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.work-card:hover .open-label,
.work-card:focus-visible .open-label { opacity: 1; transform: translateY(0); }

.work-info { padding: 24px; }
.work-info p { margin-bottom: 10px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.work-info span { color: var(--muted); line-height: 1.55; }

/* ══ SERVICES ══ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(25,29,31,0.72);
  box-shadow: 0 22px 80px rgba(0,0,0,0.18);
  transition: border-color 240ms ease, background 240ms ease, box-shadow 240ms ease, transform 240ms ease;
  cursor: default;
}

/* Ховер — как у accent карточки */
.service-card:hover {
  border-color: rgba(130,247,255,0.38);
  background:
    linear-gradient(145deg, rgba(130,247,255,0.1), rgba(255,255,255,0.03)),
    var(--panel);
  box-shadow: 0 32px 100px rgba(0,0,0,0.28), 0 0 0 1px rgba(130,247,255,0.2);
  transform: translateY(-4px);
}

.service-card:hover .service-price {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

/* Accent карточка — всегда подсвечена */
.service-card.accent {
  border-color: rgba(130,247,255,0.38);
  background:
    linear-gradient(145deg, rgba(130,247,255,0.12), rgba(255,255,255,0.035)),
    var(--panel);
}

.service-card.accent .service-price {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.service-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Короткое пояснение что это за формат — под заголовком карточки */
.service-card .service-sub {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 600;
  line-height: 1.4;
  opacity: 0.92;
}

.service-card ul {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.service-price {
  display: inline-flex;
  align-self: flex-start;
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* CTA текст-ссылка — появляется при ховере, без кнопки */
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
  text-decoration: none;
}
.service-cta::after {
  content: "→";
  transition: transform 180ms ease;
}
.service-card:hover .service-cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.service-card:hover .service-cta:hover::after {
  transform: translateX(3px);
}
@media (max-width: 640px) {
  .service-card.is-inview .service-cta {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ══ TIMELINE ══ */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.timeline-item {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(25,29,31,0.72);
  box-shadow: 0 22px 80px rgba(0,0,0,0.18);
  transition: border-color 240ms ease, background 240ms ease, box-shadow 240ms ease, transform 240ms ease;
  cursor: default;
}

.timeline-item:hover {
  border-color: rgba(130,247,255,0.38);
  background:
    linear-gradient(145deg, rgba(130,247,255,0.1), rgba(255,255,255,0.03)),
    var(--panel);
  box-shadow: 0 32px 100px rgba(0,0,0,0.28), 0 0 0 1px rgba(130,247,255,0.2);
  transform: translateY(-4px);
}

.timeline-item span {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.timeline-item h3 { font-size: 20px; }
.timeline-item p { font-size: 15px; }

/* ══ TRUST ══ */
.trust { padding: 100px 0 0; }

.trust-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(130,247,255,0.08), transparent 42%),
    linear-gradient(280deg, rgba(215,199,160,0.08), transparent 44%),
    var(--panel);
  box-shadow: 0 22px 80px rgba(0,0,0,0.18);
}

.trust-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 200ms ease;
}
.trust-stat:hover { transform: translateY(-3px); }

.trust-num {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -1px;
}

.trust-label { color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.4; }

.trust-services { border-left: 1px solid var(--line); padding-left: 48px; }
.trust-services .eyebrow { margin-bottom: 20px; }

.support-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 0; }

.support-list span,
.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,0.035);
}

/* Ховер на фишках «Всё включено» */
.support-list span {
  cursor: default;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.support-list span:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(71, 215, 232, 0.08);
  transform: translateY(-2px);
}

/* ══ FAQ ══ */
.faq-list { display: grid; gap: 12px; }

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(25,29,31,0.72);
  box-shadow: 0 22px 80px rgba(0,0,0,0.18);
  transition: border-color 200ms ease, background 200ms ease;
}

/* Ховер на карточке вопроса */
.faq-item:hover {
  border-color: rgba(71, 215, 232, 0.4);
  background: rgba(30,35,37,0.85);
}
.faq-question:hover::after { color: #b4fbff; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 76px;
  padding: 0 24px;
  border: 0;
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  font-family: inherit;
  text-align: left;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  transition: transform 240ms ease, color 240ms ease;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
  color: var(--warm);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 360ms ease;
}

.faq-item.is-open .faq-answer { /* max-height set via JS */ }

.faq-item p {
  max-width: 760px;
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

/* ══ CONTACT ══ */
.contact { padding-bottom: 100px; }

.contact-card {
  padding: clamp(30px, 6vw, 72px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0, rgba(130,247,255,0.18), transparent 36rem),
    var(--panel);
  box-shadow: 0 22px 80px rgba(0,0,0,0.18);
}

.contact-card h2,
.contact-card p { max-width: 780px; margin-inline: auto; }

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Адрес студии под кнопками */
.contact-location {
  margin: 26px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--muted);
}
.contact-location-icon {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: -1px;
}

/* ══ FOOTER ══ */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer div { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.site-footer a:hover { color: var(--text); }

.footer-logo { opacity: 0.9; transition: opacity 200ms ease; }
.footer-logo:hover { opacity: 1; }

/* ══ REVEAL ANIMATION ══ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ══ HERO STAGGER — поэтапное появление после прелоадера ══ */
/* Сам hero-copy не анимируем общим reveal — анимируются его дети по очереди */
.hero-copy.reveal { opacity: 1; transform: none; transition: none; }

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .hero-text,
.hero-copy .hero-actions {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 2800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 2800ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* is-ready вешается на body когда прелоадер ушёл — отсюда стартует каскад */
body.is-ready .hero-copy .eyebrow,
body.is-ready .hero-copy h1,
body.is-ready .hero-copy .hero-text,
body.is-ready .hero-copy .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

body.is-ready .hero-copy .eyebrow { transition-delay: 600ms; }
body.is-ready .hero-copy h1 { transition-delay: 1280ms; }
body.is-ready .hero-copy .hero-text { transition-delay: 2080ms; }
body.is-ready .hero-copy .hero-actions { transition-delay: 2800ms; }

/* ══ REDUCED MOTION ══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy .hero-text,
  .hero-copy .hero-actions { opacity: 1; transform: none; transition-delay: 0ms !important; }
}

/* ══ TABLET 980px ══ */
@media (max-width: 980px) {
  .site-header {
    padding: 0 16px;
    height: 64px;
  }

  .menu-toggle { display: flex; }

  .menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 16px; right: 16px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(13,15,16,0.96);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .menu-open .main-nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 14px; }

  .intro-grid { grid-template-columns: 1fr; }

  .hero { min-height: auto; padding: 100px max(16px, calc((100% - var(--max)) / 2)) 72px; }

  .work-grid { grid-template-columns: 1fr; }
  .work-card--large,
  .work-card--small { grid-column: auto; }

  .service-grid { grid-template-columns: 1fr; }

  .timeline { grid-template-columns: 1fr 1fr; }

  .trust-panel { grid-template-columns: 1fr; gap: 36px; }
  .trust-services { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 36px; }
}

/* ══ MOBILE 640px ══ */
@media (max-width: 640px) {
  .brand-wordmark--header {
    --brand-name-width: 91px;
    --brand-name-size: 14.8px;
    --brand-studio-width: 47px;
    --brand-studio-size: 6.1px;
  }

  .brand-wordmark--footer {
    --brand-name-width: 101px;
    --brand-name-size: 16.2px;
    --brand-studio-width: 52px;
    --brand-studio-size: 6.7px;
  }

  /* Хедер на мобиле — всегда 100% ширины, без обрезок */
  .site-header { width: 100%; padding: 0 16px; box-sizing: border-box; }
  .section,
  .site-footer { width: min(calc(100% - 24px), var(--max)); }

  .hero {
    min-height: 100svh;
    padding: calc(64px + 32px) 0 56px;
  }

  .hero-copy {
    padding: 0 20px;
  }

  .hero-copy > * {
    max-width: 100%;
  }

  /* На мобиле видео крупнее и поднято выше — видна вода и крупные лучи света */
  .hero .hero-visual {
    top: -80px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 150%;
    height: calc(100% + 80px);
    border-radius: 0;
  }

  /* Кадр чуть ниже центра — чтобы из-за хиро выглядывала вода */
  .hero .hero-video {
    object-position: center 38%;
  }

  .hero .hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(6,9,10,0.5) 0%,
        rgba(6,9,10,0.08) 28%,
        rgba(6,9,10,0.55) 72%,
        rgba(6,9,10,0.94) 100%);
  }

  h1 { font-size: 38px !important; line-height: 1.08; }
  h2 { font-size: 26px !important; }

  /* Контакт h2 — меньше шрифт чтобы не 3 строки */
  .contact-h2 { font-size: 24px !important; line-height: 1.3; }

  .hero-text,
  .section-heading p,
  .intro p,
  .contact-card p,
  .service-card p,
  .faq-item p { font-size: 16px !important; }

  .button { width: 100%; }
  .hero-actions,
  .contact-actions { align-items: stretch; flex-direction: column; }

  .intro, .works, .services, .process, .trust, .faq, .contact { padding-top: 72px; }
  .intro-grid { gap: 24px; padding-bottom: 64px; }

  .work-preview { min-height: 220px; }

  /* Карточки услуг на мобиле — ховер заменяем на появление в зоне видимости */
  .service-card { min-height: auto; padding: 24px; }
  .service-card.is-inview {
    border-color: rgba(130,247,255,0.38);
    background:
      linear-gradient(145deg, rgba(130,247,255,0.1), rgba(255,255,255,0.03)),
      var(--panel);
  }
  .service-card.is-inview .service-price {
    color: var(--accent);
  }

  .timeline { grid-template-columns: 1fr; }
  .timeline-item { min-height: auto; }
  .timeline-item span { margin-bottom: 24px; }
  .timeline-item.is-inview {
    border-color: rgba(130,247,255,0.38);
    background:
      linear-gradient(145deg, rgba(130,247,255,0.1), rgba(255,255,255,0.03)),
      var(--panel);
  }

  /* Trust блок — фикс сплошного текста */
  .trust-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .trust-stat { display: flex; flex-direction: column; gap: 4px; }
  .trust-num { font-size: 32px; }
  .trust-services { padding-top: 28px; }
  .support-list { margin-top: 12px; }

  .hero-meta { max-width: 100%; gap: 6px; }
  .hero-meta span { font-size: 12px; padding: 0 10px; }
  .faq-question { gap: 16px; min-height: 64px; padding: 16px 18px; font-size: 15px; line-height: 1.4; }
  .faq-item p { padding: 0 18px 20px; }

  .site-footer { align-items: flex-start; flex-direction: column; gap: 16px; }
}


/* ══ PRELOADER ══ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0f10;
  /* Плавное мягкое исчезновение */
  transition: opacity 1100ms cubic-bezier(0.4, 0, 0.2, 1),
              visibility 1100ms cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 160px;
}

.preloader-logo {
  opacity: 0;
  transform: translateY(10px);
  animation: preloader-fade-in 1000ms cubic-bezier(0.22, 1, 0.36, 1) 150ms forwards;
}

@keyframes preloader-fade-in {
  to { opacity: 1; transform: translateY(0); }
}

.preloader-bar-wrap {
  width: 100%;
  height: 2px;
  background: rgba(130, 247, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #47d7e8, #82f7ff);
  border-radius: 999px;
  /* Ширину покадрово анимирует JS (requestAnimationFrame) — CSS-переход не нужен */
  box-shadow: 0 0 12px rgba(130, 247, 255, 0.6);
}

.preloader-pct {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: "Manrope", sans-serif;
}

/* Скрываем контент только если есть прелоадер на странице */
body.has-preloader:not(.is-ready) > *:not(.preloader) {
  visibility: hidden;
}
body.has-preloader.is-ready > *:not(.preloader) {
  visibility: visible;
}

/* ══ COOKIE BANNER ══ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(calc(100% - 32px), 640px);
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(25, 29, 31, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 400ms ease, transform 400ms ease;
  pointer-events: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  pointer-events: none;
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.cookie-inner p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.cookie-inner a { color: var(--accent); text-underline-offset: 3px; text-decoration: underline; }

.cookie-btn {
  flex-shrink: 0;
  height: 38px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #061315;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 180ms ease;
}
.cookie-btn:hover { background: #b4fbff; }

@media (max-width: 640px) {
  .cookie-banner { bottom: 16px; }
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cookie-btn { width: 100%; }
}

/* ══ SERVICE GRID — 4 карточки ══ */
.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
@media (max-width: 980px) {
  .service-grid { grid-template-columns: 1fr !important; }
}

/* ══ LEGAL BLOCK ══ */
.legal-block { padding: 100px 0 0; }

.legal-panel {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 22px 80px rgba(0,0,0,0.18);
}

.legal-icon { margin-bottom: 24px; }

.legal-content { max-width: 680px; margin-bottom: 40px; }
.legal-content h2 { font-size: clamp(24px, 2.5vw, 38px); margin-bottom: 12px; }
.legal-content p { color: var(--muted); font-size: clamp(15px, 1.1vw, 17px); margin: 0; }

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.legal-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.025);
}

.legal-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(71,215,232,0.15);
  border: 1px solid rgba(71,215,232,0.4);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-item strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.legal-item p {
  color: var(--muted);
  font-size: 13px !important;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 640px) {
  .legal-block { padding-top: 72px; }
  .legal-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ══ CONSENT CHECKBOX ══ */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  cursor: pointer;
  max-width: 520px;
  margin-inline: auto;
}

.consent-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent-label span {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.6;
}

.consent-label a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Кликабельная карточка в юр. блоке */
a.legal-item {
  text-decoration: none;
  transition: border-color 220ms ease, background 220ms ease;
}
a.legal-item:hover {
  border-color: rgba(130,247,255,0.35);
  background: rgba(130,247,255,0.06);
}
a.legal-item strong { color: var(--text); }

/* ══ HERO — перекрытие ватермарка kling внизу видео-блока ══ */
.hero-watermark-cover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1;
  background: linear-gradient(to top, rgba(6,9,10,0.9) 30%, transparent 100%);
  pointer-events: none;
}
