/* Лайтек-Плюс — звуковое и световое оборудование, Симферополь. Сборка 2 от 12.09.2026.
   Тёмная «сценическая» тема: аврора-градиент и WebGL-волны в первом экране (waves.js),
   янтарь = свет, лёд = звук. Токены заданы до вёрстки, брейкпоинты 1024 / 900 / 768 / 480.
   Контрасты посчитаны по WCAG 2.1 (proverka.py), не на глаз. */

:root {
  --w-wide: 1280px; --w-text: 700px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 72px; --s7: 104px;
  --r1: 8px; --r2: 14px; --r3: 22px; --r-pill: 999px;

  --bg: #0C0E12; --bg-2: #14171E; --card: #171B23;
  --ink: #F2F5F9;   /* 17.66:1 на фоне */
  --ink-2: #A8B2C1; /* 9.02:1 */
  --ink-3: #8E99A8; /* 6.69:1 */
  --amber: #F5A524; /* свет, 9.46:1 */
  --ice: #5CC8FF;   /* звук, 10.27:1 */
  --line: #2A303B;  /* только рамки, текстом не использовать */
  --ok: #7ED9A0; --err: #FF9A8F;

  --t-12: 12px; --t-13: 13px; --t-14: 14px; --t-16: 16px; --t-18: 18px; --t-20: 20px; --t-24: 24px;
  --t-h2: clamp(26px, 3.6vw, 40px); --t-h3: clamp(18px, 2vw, 22px);
  --lh-head: 1.08; --lh-ui: 1.5; --lh-text: 1.62;
  --header-h: 68px;
  --font: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- база ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--t-16); line-height: var(--lh-text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }   /* height:auto обязателен, раз у <img> стоят width/height */
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
b, strong { font-weight: 500; }   /* шрифт подключён в 400 и 500 — жирного начертания нет, браузер не должен его рисовать сам */
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--amber); color: var(--bg); padding: 12px 20px; border-radius: 0 0 var(--r2) 0; font-weight: 500; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--s3); }
.wrap--text { max-width: calc(var(--w-text) + 2 * var(--s3)); }
.section { padding: var(--s7) 0; }
.section--alt { background: var(--bg-2); }
.eyebrow { font-size: var(--t-13); letter-spacing: .18em; text-transform: uppercase; color: var(--ice); margin-bottom: var(--s2); }
h1, h2, h3 { font-weight: 500; line-height: var(--lh-head); letter-spacing: -.01em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
.lead { color: var(--ink-2); font-size: var(--t-18); max-width: var(--w-text); margin-top: var(--s2); }
.note { font-size: var(--t-13); color: var(--ink-3); line-height: var(--lh-ui); max-width: var(--w-text); }
.grid + .note, .gallery + .note { margin-top: var(--s3); }

/* ---------- шапка и меню ---------- */
.header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(12, 14, 18, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: var(--s4); height: 100%; }
.logo { font-size: var(--t-18); font-weight: 500; letter-spacing: .02em; margin-right: auto; }
.logo b { color: var(--amber); }
.logo span { display: block; font-size: var(--t-12); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.nav { display: flex; gap: var(--s3); font-size: var(--t-14); }
.nav a { color: var(--ink-2); padding: 6px 0; }
.nav a:hover { color: var(--ink); }
.header__phone { font-size: var(--t-16); font-weight: 500; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; width: 24px; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .25s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.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); }
/* мобильное меню — прямой ребёнок body, чтобы backdrop-filter шапки не ломал fixed */
.mobilenav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 90; background: var(--bg); padding: var(--s3); display: none; flex-direction: column; overflow-y: auto; }
.mobilenav.is-open { display: flex; }
.mobilenav a { font-size: var(--t-24); font-weight: 500; padding: 12px 0; min-height: 44px; border-bottom: 1px solid var(--line); }

/* ---------- первый экран: аврора + WebGL-волны + гигантский заголовок + стекло ---------- */
.hero { position: relative; overflow: hidden; min-height: min(94vh, 860px); display: flex; align-items: center; padding: var(--s5) 0 var(--s7); }
.aurora { position: absolute; inset: -25%; pointer-events: none; filter: blur(110px); opacity: .55; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora i:nth-child(1) { left: -6%; top: 4%;  width: 52%; height: 62%; background: radial-gradient(closest-side, #F5A524, transparent); animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { left: 34%; top: -8%; width: 46%; height: 70%; background: radial-gradient(closest-side, #7A3DFF, transparent); animation: drift 22s ease-in-out infinite alternate-reverse; }
.aurora i:nth-child(3) { left: 58%; top: 18%; width: 48%; height: 64%; background: radial-gradient(closest-side, #00C2FF, transparent); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-4%, -3%, 0) scale(1) } to { transform: translate3d(6%, 5%, 0) scale(1.12) } }
/* зерно поверх градиента, чтобы не выглядело «пластиком» */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
#waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: .95; }
/* мягкая подложка слева: волны светлые, без неё лид и кнопки теряют контраст */
.hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(12, 14, 18, .92) 0%, rgba(12, 14, 18, .72) 34%, rgba(12, 14, 18, .18) 62%, transparent 78%); }
.hero__in { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(40px, 8.8vw, 128px); line-height: .92; letter-spacing: -.045em; mix-blend-mode: screen; }   /* волны просвечивают сквозь буквы */
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { font-size: clamp(16px, 1.4vw, 19px); max-width: 52ch; color: #C9D2DE; margin-top: var(--s3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.glasses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s4); max-width: 760px; }
.glass { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r2); padding: var(--s2) var(--s3); backdrop-filter: blur(16px) saturate(1.2); }
@supports not (backdrop-filter: blur(4px)) { .glass { background: rgba(23, 27, 35, .9) } }
.glass b { display: block; font-size: var(--t-18); margin-bottom: 2px; }
.glass span { font-size: var(--t-13); color: var(--ink-3); }
.glass--accent { border-color: rgba(245, 165, 36, .5); box-shadow: 0 0 40px -12px rgba(245, 165, 36, .45); }

/* ---------- кнопки: одна главная, одна контурная, одна маленькая ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 var(--s4); border-radius: var(--r-pill);
  font: 500 var(--t-16)/1 var(--font); cursor: pointer; border: 1px solid transparent;
  transition: transform .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--main { background: var(--amber); color: var(--bg); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ice); }
.btn--small { min-height: 44px; padding: 0 var(--s3); font-size: var(--t-14); }

/* ---------- сетки и карточки ---------- */
.grid { display: grid; gap: var(--s3); margin-top: var(--s5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s4); transition: border-color .25s, transform .25s; }
.card:hover { border-color: var(--ice); transform: translateY(-3px); }
.card h3 { margin-bottom: var(--s1); }
.card p { color: var(--ink-2); font-size: var(--t-14); }
.card__more { display: inline-block; margin-top: var(--s3); font-size: var(--t-13); letter-spacing: .1em; text-transform: uppercase; color: var(--ice); }

/* карточка задачи — крупный номер и список */
.task { display: flex; flex-direction: column; gap: var(--s1); min-height: 172px; }
.task__num { font-size: var(--t-13); color: var(--amber); letter-spacing: .16em; }
.task ul { margin-top: var(--s2); display: flex; flex-direction: column; gap: 4px; }
.task li { font-size: var(--t-13); color: var(--ink-3); padding-left: 14px; position: relative; }
.task li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--ice); }

/* каталог */
.cat { display: flex; flex-direction: column; gap: var(--s2); }
.cat__price { margin-top: auto; font-size: var(--t-14); color: var(--amber); }

/* ---------- доверие ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); margin-top: var(--s5); }
.trust div { border-left: 2px solid var(--amber); padding-left: var(--s3); }
.trust b { display: block; font-size: clamp(24px, 3vw, 34px); }
.trust span { font-size: var(--t-13); color: var(--ink-3); }

/* ---------- проекты (галерея 4:5) ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: var(--s5); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r2); background: var(--card); border: 1px solid var(--line); }
.gallery figcaption { font-size: var(--t-13); color: var(--ink-3); padding-top: var(--s1); line-height: var(--lh-ui); }

/* ---------- подбор комплекта (квиз + контакты) ---------- */
.pick { display: grid; gap: var(--s4); margin-top: var(--s5); }
.pick fieldset { border: 0; }
.pick legend { font-size: var(--t-13); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 12px 20px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--t-14); color: var(--ink-2); transition: .2s; }
.chip input:checked + span { border-color: var(--amber); color: var(--ink); background: rgba(245, 165, 36, .12); }
.chip input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 3px; }
.pick__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.field label { display: block; font-size: var(--t-13); color: var(--ink-3); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r1); color: var(--ink); font: var(--t-16)/1.4 var(--font); padding: 14px 16px; min-height: 52px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ice); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--err); }
.form__error { display: block; margin-top: 6px; font-size: var(--t-13); color: var(--err); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: var(--s2); font-size: var(--t-14); line-height: var(--lh-ui); color: var(--ink-2); }
.form__status--ok { color: var(--ok); }
.form__status--err { color: var(--err); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-13); color: var(--ink-3); cursor: pointer; padding: 4px 0; }
.agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--amber); flex: 0 0 auto; }
.agree a { color: var(--ice); text-decoration: underline; }

/* ---------- контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin-top: var(--s5); }
.contacts dt { font-size: var(--t-13); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: var(--s3); }
.contacts dt:first-child { margin-top: 0; }
.contacts dd { margin-top: 4px; font-size: var(--t-18); }
.contacts dd a:hover { color: var(--ice); }
.contacts h3 { margin-bottom: var(--s1); }
.contacts h3 + p { color: var(--ink-2); margin-bottom: var(--s3); }

/* ---------- подвал ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s4); font-size: var(--t-14); color: var(--ink-2); }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s5); }
.footer__head { font-size: var(--t-13); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: var(--s2); }
.footer li a { display: inline-block; padding: 6px 0; min-height: 44px; line-height: 32px; }
.footer a:hover { color: var(--ice); }
.footer__legal { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: var(--t-13); color: var(--ink-3); line-height: var(--lh-ui); }
.footer__legal a { color: var(--ink-2); }

/* ---------- страницы-документы: политика, согласие, 404 ---------- */
.doc { padding: var(--s6) 0 var(--s7); }
.doc h1 { font-size: clamp(30px, 4.5vw, 48px); margin-bottom: var(--s2); }
.doc h2 { font-size: var(--t-24); margin: var(--s5) 0 var(--s2); }
.doc h3 { margin: var(--s4) 0 var(--s1); }
.doc p { margin-bottom: var(--s2); }
.doc .lead { margin-bottom: var(--s3); }
.doc ul, .doc ol { list-style: disc; padding-left: 22px; margin-bottom: var(--s2); }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--ice); text-decoration: underline; }
.doc .btn { color: var(--bg); text-decoration: none; }
.doc table { width: 100%; border-collapse: collapse; margin-bottom: var(--s3); font-size: var(--t-14); }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--card); font-weight: 500; }

/* ---------- кнопка «наверх» ---------- */
.totop { position: fixed; right: 16px; bottom: 96px; z-index: 80; width: 48px; height: 48px; border-radius: var(--r-pill); background: var(--card); color: var(--ink); border: 1px solid var(--line); cursor: pointer; font-size: 20px; line-height: 1; display: none; }
.totop.is-visible { display: block; }

/* ---------- брейкпоинты ---------- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .header__phone { display: none; }
  .burger { display: block; }
  .hero { min-height: auto; }
  .aurora { filter: blur(60px); }
  .hero h1 { mix-blend-mode: normal; }
  .glasses { grid-template-columns: 1fr; max-width: none; }
}
@media (max-width: 768px) {
  :root { --s7: 72px; --s6: 48px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); row-gap: var(--s4); }
  .pick__row, .contacts { grid-template-columns: 1fr; }
  .contacts { gap: var(--s4); }
}
@media (max-width: 480px) {
  .gallery, .trust, .footer__cols { grid-template-columns: 1fr; }
  .footer__cols { gap: var(--s3); }
  .totop { bottom: 150px; }
}

/* уважение к «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i { animation: none; }
  .btn, .card, .chip span, .burger span { transition: none; }
}


/* ---------- стеклянные карточки первого экрана: иконка, метка, стрелка ---------- */
.glass { position: relative; padding-top: var(--s3); }
.gicon { width: 44px; height: 44px; display: block; margin-bottom: var(--s2); }
.glass__arrow { position: absolute; right: 14px; top: 12px; font-size: 15px; color: var(--ink-3); transition: transform .25s, color .25s; }
.glass:hover .glass__arrow { transform: translate(2px, -2px); color: var(--amber); }
.glass__pill {
  display: inline-block; margin-bottom: var(--s2); padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 11px; line-height: 1.6; letter-spacing: .02em; white-space: nowrap; color: var(--bg);
  background: var(--amber);
}
.glass__big { font-size: clamp(26px, 3vw, 38px); line-height: 1; letter-spacing: -.02em; }
.glass { transition: transform .3s, border-color .3s; }
.glass:hover { transform: translateY(-3px); }

/* ---------- появление секций при прокрутке ---------- */
/* появлением блоков теперь занимается anim.js через ScrollTrigger.
   Если скрипт не загрузился, на <html> ставится класс no-anim и всё видно сразу. */
.no-anim .reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .glass, .glass__arrow { transition: none; }
}

/* ---------- бренды: бегущая лента и перечень по категориям ---------- */
.tape { margin: var(--s5) 0 var(--s6); overflow: hidden; display: flex; flex-direction: column; gap: var(--s2); }
.tape__row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
             mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tape__line { display: flex; gap: var(--s3); width: max-content; will-change: transform; }
.tape__line span {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 10px var(--s3); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--t-16); color: var(--ink-2); background: var(--card);
}
.tape__row--a .tape__line { animation: lenta 46s linear infinite; }
.tape__row--b .tape__line { animation: lenta 62s linear infinite reverse; }
.tape__row--c .tape__line { animation: lenta 38s linear infinite; }
@keyframes lenta { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.tape:hover .tape__line { animation-play-state: paused; }   /* навели — прочитали */

.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4) var(--s3); }
.brands__cat { font-size: var(--t-13); letter-spacing: .14em; text-transform: uppercase; color: var(--ice); margin-bottom: var(--s2); }
.brands__col li { font-size: var(--t-14); color: var(--ink-2); padding: 3px 0; }

@media (max-width: 1024px) { .brands { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .brands { grid-template-columns: 1fr; } .tape__line span { font-size: var(--t-14); padding: 8px var(--s2); } }
@media (prefers-reduced-motion: reduce) { .tape__line { animation: none !important; } }
