/* =========================================================================
   Auto Trend — публичная часть
   Без inline-стилей: CSP разрешает только style-src 'self'.
   ========================================================================= */

:root {
  --bg: #0b0d12;
  --bg-alt: #10131a;
  --surface: #151922;
  --surface-2: #1c212c;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #eef1f6;
  --muted: #a3acbb;
  --accent: #e3141b;
  --accent-hover: #ff2d34;
  --ok: #3ccf7e;
  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 76px;
  --container: 1200px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: rgba(227, 20, 27, .6); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--accent); color: #fff; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; margin-bottom: 12px; }

/* Honeypot: прячем от людей, но НЕ через display:none — некоторые боты это проверяют. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn__spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-hover); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.more-link { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* ------------------------------------------------------------------ Шапка */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(11, 13, 18, .92); border-bottom: 1px solid var(--line);
  transition: background-color .3s, border-color .3s;
}
/* Размытие фона — на псевдоэлементе, а НЕ на самой шапке: backdrop-filter у шапки
   превращает её в «контейнер» для position: fixed, и мобильное меню сжималось
   до высоты шапки и обрезалось. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.page-home .site-header { position: fixed; left: 0; right: 0; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); border-bottom-color: rgba(255,255,255,.12); }
.page-home .site-header::before { display: none; }
.page-home .site-header.is-scrolled { background: rgba(11, 13, 18, .94); border-bottom-color: var(--line); }
.page-home .site-header.is-scrolled::before { display: block; }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { flex: none; display: block; }
.logo img { width: 170px; height: auto; }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav__list a {
  position: relative; display: block; padding: 6px 0;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: #fff;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.account-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--accent); color: #fff; cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.account-btn:hover { background: var(--accent); transform: rotate(-8deg); }
.burger { display: none; width: 42px; height: 42px; position: relative; background: none; border: 0; cursor: pointer; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(120% 90% at 70% 30%, #2a3142 0%, #12151d 55%, #07080b 100%);
  isolation: isolate;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,6,10,.55) 0%, rgba(5,6,10,.15) 35%, rgba(5,6,10,.25) 65%, rgba(5,6,10,.85) 100%),
    rgba(40, 46, 80, .28);
}
.hero--no-video .hero__shade { background: linear-gradient(180deg, rgba(5,6,10,.2), rgba(5,6,10,.7)); }

.hero__content { position: relative; display: grid; place-items: center; min-height: 220px; text-align: center; padding-top: var(--header-h); }
.hero__slide {
  grid-area: 1 / 1; max-width: 860px;
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease);
  pointer-events: none;
}
.hero__slide.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.hero__slide.is-leaving { opacity: 0; transform: translateY(-22px); filter: blur(6px); }
.hero__title {
  margin: 0; font-size: clamp(26px, 3.6vw, 46px); font-weight: 600; line-height: 1.3; letter-spacing: -.005em;
  color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); text-wrap: balance;
}

.hero__nav {
  position: absolute; left: 0; right: 0; bottom: clamp(56px, 9vh, 96px);
  display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 24px;
}
.hero__track {
  position: relative; width: min(900px, 100%); height: 52px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 26px;
}
.hero__line {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%);
  background-image: radial-gradient(circle, rgba(255, 60, 60, .85) 1px, transparent 1.4px);
  background-size: 9px 2px; background-repeat: repeat-x; background-position: left center;
}
.hero__progress {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left; opacity: .85;
}
.hero__dot {
  position: relative; z-index: 1; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%;
  background: var(--accent); cursor: pointer; box-shadow: 0 0 0 4px rgba(227, 20, 27, .18);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.hero__dot::before { content: ""; position: absolute; inset: -12px; } /* увеличенная зона нажатия для пальца */
.hero__dot:hover { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(227, 20, 27, .28); }
.hero__dot.is-active { transform: scale(.6); }
.hero__wheel {
  position: absolute; left: 0; top: 50%; z-index: 2; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  pointer-events: none; transition: transform 1s var(--ease); will-change: transform;
}
.hero__wheel-spin { display: block; width: 100%; height: 100%; transition: transform 1s var(--ease); will-change: transform; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.hero__wheel .wheel { width: 100%; height: 100%; }
.hero__toggle {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.25); color: #fff; cursor: pointer;
}
.hero__toggle:hover { border-color: #fff; }
.hero__toggle .icon-play { display: none; }
.hero.is-paused .hero__toggle .icon-play { display: block; }
.hero.is-paused .hero__toggle .icon-pause { display: none; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; margin-left: -18px; width: 36px; height: 36px;
  display: grid; place-items: center; color: rgba(255,255,255,.7); animation: bob 2.2s ease-in-out infinite;
}

/* ------------------------------------------------------------------ Секции */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: 48px 0 96px; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__title { font-size: clamp(26px, 3vw, 38px); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 32px; }

.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.prose { color: #d6dbe4; font-size: 17px; line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.lead { font-size: 20px; line-height: 1.6; color: #fff; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.feature {
  padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(227, 20, 27, .5); }
.feature__num { display: block; color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: .1em; margin-bottom: 18px; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card__media { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder { display: grid; place-items: center; height: 100%; background: radial-gradient(circle at 30% 20%, #262c3a, #14171f); }
.card__placeholder .wheel { width: 64px; height: 64px; opacity: .5; }
.card__body { padding: 22px 22px 26px; }
.card__date { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.card__title { font-size: 19px; margin-bottom: 10px; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--accent-hover); }
.card__text { color: var(--muted); font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.cta { background: linear-gradient(120deg, #1a0d10 0%, #0b0d12 60%); border-top: 1px solid var(--line); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta__inner p { max-width: 560px; margin: 0; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ Внутренние страницы */
.page-head { padding: 48px 0 8px; }
.page-head__title { font-size: clamp(30px, 4.4vw, 50px); margin: 0 0 12px; text-wrap: balance; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.material__date { color: var(--muted); font-size: 15px; }
.material__body { padding-top: 24px; padding-bottom: 96px; }
.material__figure { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.material__figure img { width: 100%; }
.material__back { margin-top: 48px; }
.empty { color: var(--muted); padding: 40px 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 48px; }
.pager__link { padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; }
.pager__link:hover { border-color: #fff; }
.pager__info { color: var(--muted); }

.contact__grid { display: grid; grid-template-columns: 4fr 6fr; gap: 56px; }
.contact__heading { font-size: 22px; margin-bottom: 20px; }
.contact__list { margin: 0; }
.contact__list dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-top: 18px; }
.contact__list dd { margin: 4px 0 0; font-size: 17px; }
.contact__list a { text-decoration: none; }
.contact__form-wrap { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }

.error-page { padding: 120px 0; text-align: center; }
.error-page__wheel { display: inline-block; width: 88px; height: 88px; animation: roll 6s linear infinite; }
.error-page__wheel .wheel { width: 100%; height: 100%; }
.error-page__code { font-size: 15px; color: var(--accent); font-weight: 800; letter-spacing: .2em; margin: 20px 0 6px; }

/* ------------------------------------------------------------------ Формы */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field__label { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.field__input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-strong); color: #fff;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
textarea.field__input { resize: vertical; min-height: 140px; }
.field__input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.06); box-shadow: 0 0 0 3px rgba(227, 20, 27, .2); }
.field--invalid .field__input, .field__input[aria-invalid="true"] { border-color: #ff5a5f; }
.field__error { display: none; margin: 0; color: #ff7a7e; font-size: 13px; }
.field__error.is-visible { display: block; animation: fadeIn .25s ease; }
.notice { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.notice--ok { background: rgba(60, 207, 126, .12); border: 1px solid rgba(60, 207, 126, .4); }
.notice--error { background: rgba(255, 90, 95, .1); border: 1px solid rgba(255, 90, 95, .4); }
.form__alert { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(255, 90, 95, .1); border: 1px solid rgba(255, 90, 95, .4); color: #ffb3b5; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

.phone { display: flex; gap: 8px; }
.phone__country {
  flex: none; width: 108px; min-height: 48px; padding: 0 10px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-strong); color: #fff; cursor: pointer;
}
.phone__country option { background: var(--surface); }
.phone__input { letter-spacing: .03em; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ Попап авторизации */
.auth {
  width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0;
  background: transparent; color: var(--text); overflow: visible;
}
.auth::backdrop { background: rgba(4, 5, 8, 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); transition: background-color .35s, backdrop-filter .35s; }
.auth.is-open::backdrop { background: rgba(4, 5, 8, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.auth__panel {
  position: relative; padding: 30px 30px 32px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #1a1f2a 0%, #12151c 100%); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(28px) scale(.96);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
  max-height: calc(100dvh - 24px); overflow-y: auto;
}
.auth.is-open .auth__panel { opacity: 1; transform: none; }
.auth__panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.auth__close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s, transform .3s var(--ease);
}
.auth__close:hover { background: rgba(255,255,255,.12); color: #fff; transform: rotate(90deg); }
.auth__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.auth__wheel { width: 40px; height: 40px; flex: none; }
.auth__wheel .wheel { width: 100%; height: 100%; }
.auth.is-open .auth__wheel { animation: rollIn .9s var(--ease) both; }
.auth__title { font-size: 22px; margin: 0; }

.auth__tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); margin-bottom: 24px; }
.auth__tab { position: relative; z-index: 1; min-height: 40px; border: 0; background: none; color: var(--muted); font-weight: 600; cursor: pointer; border-radius: 999px; transition: color .25s; }
.auth__tab.is-active { color: #fff; }
.auth__indicator {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--accent); box-shadow: 0 6px 18px rgba(227, 20, 27, .35);
  transition: transform .45s var(--ease);
}
.auth[data-tab="register"] .auth__indicator { transform: translateX(100%); }

.auth__viewport { overflow: hidden; transition: height .45s var(--ease); }
.auth__track { display: flex; width: 200%; transition: transform .5s var(--ease); align-items: flex-start; }
.auth[data-tab="register"] .auth__track { transform: translateX(-50%); }
.auth__pane { width: 50%; padding: 2px; transition: opacity .35s; }
.auth__pane:not(.is-active) { opacity: 0; }
.auth__forgot { margin: -4px 0 0; text-align: right; font-size: 14px; }
.auth__forgot a { color: var(--muted); }
.auth__note { margin: 4px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.auth__success { text-align: center; padding: 18px 0 6px; }
.auth__success:focus { outline: none; }
.auth__check { margin: 0 auto 18px; color: var(--ok); }
.auth__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s var(--ease) forwards; }
.auth__check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .5s var(--ease) forwards; }
.auth__success h3 { font-size: 22px; }
.auth__success .btn { margin-top: 8px; }

/* ------------------------------------------------------------------ Подвал */
.site-footer { background: #07080b; border-top: 1px solid var(--line); padding-top: 64px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer__logo { width: 150px; margin-bottom: 16px; }
.site-footer__title { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.contact-list, .footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact-list a, .footer-nav a { text-decoration: none; }
.contact-list a:hover, .footer-nav a:hover { color: var(--accent-hover); }
.site-footer__bottom { margin-top: 48px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ Анимации */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes roll { to { transform: rotate(360deg); } }
@keyframes rollIn { from { transform: translateX(-60px) rotate(-240deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ------------------------------------------------------------------ Адаптивность */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .logo img { width: 140px; }
  .burger { display: block; }
  /* Мобильное меню — панель справа */
  .nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(320px, 86vw);
    padding: 28px 24px; background: rgba(11, 13, 18, .98); border-left: 1px solid var(--line);
    transform: translateX(100%); visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s .4s;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { font-size: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__list a::after { display: none; }
  .site-header__actions { margin-left: auto; }
  body.nav-open { overflow: hidden; }
  .page-home .site-header { background: rgba(11, 13, 18, .6); }

  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero__title { font-size: clamp(22px, 6.4vw, 30px); }
  .hero__nav { gap: 10px; padding: 0 12px; bottom: 70px; }
  .hero__track { padding: 0 16px; height: 44px; }
  .hero__wheel { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .hero__dot { width: 12px; height: 12px; }
  .features, .cards { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .contact__form-wrap { padding: 22px 18px; }
  .auth__panel { padding: 24px 18px 26px; border-radius: 18px; }
  .section__head { flex-direction: column; gap: 8px; }
  .cta__actions, .cta__actions .btn { width: 100%; }
}

/* Пользователь просит меньше движения — убираем анимации и автопрокрутку колеса */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.form__hint { font-size: 13px; margin: 0; }
