@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/geist.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0809;
  --surface: #120f10;
  --surface-2: #181415;
  --line: rgba(242, 236, 234, 0.08);
  --line-strong: rgba(242, 236, 234, 0.16);
  --text: #f2eeec;
  --muted: #988e8b;
  --dim: #675f5c;
  --accent: #ff6b3d;
  --accent-ink: #1c0903;
  --radius: 6px;
  --radius-lg: 12px;
  --container: 1320px;
  --gutter: clamp(16px, 3vw, 40px);
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 128px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.nowrap { white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: 6px; }
.skip:focus { left: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: var(--radius); border: 1px solid transparent;
  font: 500 15px/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #ff8459; }
.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { border-color: rgba(242, 236, 234, 0.36); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* шапка: строка с логотипом + строка вкладок-категорий, всегда с фоном */
.header { position: sticky; top: 0; z-index: 50; background: rgba(10, 8, 9, 0.97); border-bottom: 1px solid var(--line); }
.header__top { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 18px/1 var(--font); letter-spacing: -0.03em; }
.logo svg { width: 26px; height: 26px; }
.header__cta { display: flex; gap: 8px; margin-left: auto; }
.tabs { display: flex; gap: 4px; height: 48px; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: inline-flex; align-items: center; padding: 0 14px; font-size: 14px; color: var(--muted); white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.tabs a:first-child { padding-left: 0; }
.tabs a:hover { color: var(--text); border-bottom-color: var(--accent); }
.tabs .tabs__sep { width: 1px; margin: 14px 10px; background: var(--line-strong); flex: none; }

/* hero-баннер */
.hero { padding: clamp(16px, 2.4vw, 32px) 0 0; }
.banner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.banner__copy { padding: clamp(32px, 5vw, 80px); }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.label::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 1px; }
.banner h1 { margin-top: 24px; font-size: clamp(38px, 4.2vw, 64px); text-wrap: pretty; }
.banner h1 em { font-style: normal; color: var(--accent); }
.banner__lead { margin-top: 20px; max-width: 500px; color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); }
.banner__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.media { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.media img, .media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, rgba(0, 0, 0, 0.5) 80%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 58%, rgba(0, 0, 0, 0.5) 80%, transparent 100%);
}
.media video { opacity: 0; transition: opacity .8s var(--ease); }
.media.is-playing video { opacity: 1; }

/* полоса преимуществ под баннером */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.strip li { display: flex; gap: 14px; align-items: flex-start; padding: 28px 24px 28px 0; }
.strip li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.strip svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.strip strong { display: block; font-weight: 500; }
.strip span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }

/* секции и заголовки: заголовок + подпись стопкой, ссылка справа */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.head h2 { font-size: clamp(30px, 3vw, 44px); }
.head p { margin-top: 12px; color: var(--muted); max-width: 520px; }
.head__link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); white-space: nowrap; transition: color .2s var(--ease); }
.head__link svg { width: 16px; height: 16px; }
.head__link:hover { color: var(--text); }

/* bento-каталог */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(280px, auto); gap: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .3s var(--ease); scroll-margin-top: 140px;
}
.tile:hover { border-color: var(--line-strong); }
.tile__img { flex: 1; min-height: 0; overflow: hidden; }
.tile__img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease);
  -webkit-mask-image: radial-gradient(farthest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(farthest-side, #000 62%, transparent 100%);
}
.tile:hover .tile__img img { transform: scale(1.04); }
.tile__body { padding: 20px 22px 22px; }
.tile__tag { font-size: 13px; color: var(--accent); }
.tile h3 { margin-top: 6px; font-size: 20px; letter-spacing: -0.025em; }
.tile p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile--big h3 { font-size: clamp(24px, 2.2vw, 32px); }
.tile--big .tile__body { padding: 28px 30px 30px; }
.tile--wide { grid-column: span 2; flex-direction: row; }
.tile--wide .tile__img { flex: 0 0 52%; }
.tile--wide .tile__body { align-self: flex-end; }
.tile--small .tile__img { height: 210px; flex: none; }

/* таймлайн шагов */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 40px; }
.timeline::before { content: ''; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; top: -40px; left: 0; width: 15px; height: 15px; background: var(--bg); border: 1px solid var(--accent); border-radius: 3px; }
.timeline li:first-child::before { background: var(--accent); }
.timeline__num { font-size: 13px; color: var(--accent); }
.timeline h3 { margin-top: 8px; font-size: 22px; }
.timeline p { margin-top: 10px; color: var(--muted); max-width: 360px; }

/* полоса для студий: всё по центру */
.studios { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.studios h2 { margin: 20px auto 0; font-size: clamp(32px, 3.4vw, 52px); max-width: 14em; text-wrap: balance; }
.studios__lead { margin: 18px auto 0; max-width: 560px; color: var(--muted); }
.studios .btn { margin-top: 32px; }
.studios__points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); text-align: left; }
.studios__points li { padding: 28px 28px 0 0; }
.studios__points li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.studios__points strong { display: block; font-weight: 500; }
.studios__points span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }

/* FAQ в две колонки */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 17px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding: 0 32px 24px 0; color: var(--muted); }

/* футер: плашка поддержки + одна строка */
.footer { padding: 0 0 32px; font-size: 14px; }
.help {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.help h2 { font-size: clamp(26px, 2.6vw, 36px); }
.help p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.help p a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 32px 0; border-bottom: 1px solid var(--line); margin-top: 48px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.footer__links a { color: var(--muted); transition: color .2s var(--ease); }
.footer__links a:hover { color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; padding-top: 24px; color: var(--dim); }

/* место под реквизиты юрлица; legal--placeholder снять, когда впишем реальные данные */
.legal { display: grid; gap: 4px; line-height: 1.5; }
.legal__name { color: var(--muted); }
.legal--placeholder { padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: 8px; }

.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: .08s; }
.js [data-reveal-delay="2"] { transition-delay: .16s; }
.js [data-reveal-delay="3"] { transition-delay: .24s; }

@media (min-width: 1800px) { :root { --container: 1440px; } }

@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip li:nth-child(3) { padding-left: 0; border-left: 0; }
  .strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .banner { grid-template-columns: 1fr; }
  .banner__media { order: -1; max-width: 300px; margin: 8px auto -24px; }
  .banner__copy { padding: 24px 22px 28px; }
  .timeline { grid-template-columns: 1fr; gap: 28px; padding: 0 0 0 36px; }
  .timeline::before { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; }
  .timeline li::before { top: 4px; left: -36px; }
  .studios__points { grid-template-columns: 1fr; }
  .studios__points li, .studios__points li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .faq { grid-template-columns: 1fr; }
  .head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .header__cta .btn--ghost { display: none; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile--big, .tile--wide { grid-column: auto; grid-row: auto; }
  .tile--wide { flex-direction: column; }
  .tile__img, .tile--wide .tile__img, .tile--small .tile__img { flex: none; aspect-ratio: 4 / 3; height: auto; }
  .strip { grid-template-columns: 1fr; }
  .strip li, .strip li + li { padding: 18px 0; border-left: 0; }
  .strip li + li { border-top: 1px solid var(--line); }
  .banner__actions .btn { flex: 1 1 auto; }
  .help .btn { width: 100%; }
  .footer__links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.section--tight { padding-top: 0; }
