﻿/* ==========================================================================
   Техномаг — стили
   01. Токены и темы        06. Главный экран      11. Аксессуары
   02. Сброс и база         07. Бегущая строка      12. Преимущества
   03. Утилиты и кнопки     08. Категории           13. CTA
   04. Шапка и меню         09. ТВ-приставки        14. Контакты
   05. Подвал               10. Акустика            15. Мобильное, адаптив
   ========================================================================== */

/* ---------- 01. Токены и темы ---------- */
:root {
  --yellow: #FFED00;
  --yellow-rgb: 255, 237, 0;
  --yellow-deep: #E8D600;
  --red: #F5121C;
  --ink-fixed: #0A0A09;

  --font-display: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1320px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 6px;
  --radius-lg: 10px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 78px;
}

html[data-theme="dark"] {
  --bg: #0A0A09;
  --bg-2: #111110;
  --bg-3: #181817;
  --card: #121211;
  --ink: #F4F4EF;
  --ink-2: #A6A69D;
  --ink-3: #6E6E65;
  --line: rgba(244, 244, 239, .13);
  --line-strong: rgba(244, 244, 239, .30);
  --header-bg: rgba(10, 10, 9, .72);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-2: #F5F5F1;
  --bg-3: #ECECE6;
  --card: #FFFFFF;
  --ink: #0C0C0A;
  --ink-2: #56564E;
  --ink-3: #8B8B81;
  --line: rgba(12, 12, 10, .13);
  --line-strong: rgba(12, 12, 10, .28);
  --header-bg: rgba(255, 255, 255, .78);
  --shadow: 0 24px 50px -28px rgba(12, 12, 10, .35);
  color-scheme: light;
}

/* ---------- 02. Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: .005em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection { background: var(--yellow); color: var(--ink-fixed); }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--ink-fixed);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 8vw, 118px); position: relative; }

/* ---------- 03. Утилиты и кнопки ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.eyebrow__dot {
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(var(--yellow-rgb), .16);
}

.btn {
  --btn-h: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding-inline: 26px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .22s var(--ease), background-color .22s var(--ease),
              color .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.btn svg { flex: none; transition: transform .22s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--sm { --btn-h: 46px; padding-inline: 18px; font-size: 11px; }

.btn--accent {
  background: var(--yellow);
  color: var(--ink-fixed);
}
.btn--accent:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(var(--yellow-rgb), .8);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}
html[data-theme="light"] .btn--ghost:hover { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }

.btn--dark { background: var(--ink-fixed); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .7); }

.btn--dark-outline { border-color: rgba(10, 10, 9, .35); color: var(--ink-fixed); }
.btn--dark-outline:hover { background: rgba(10, 10, 9, .08); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--yellow); border-color: var(--yellow); }
.link-arrow:hover svg { transform: translateX(4px); }
html[data-theme="light"] .link-arrow:hover { color: var(--ink); }

/* Заголовок секции */
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }

.section-head__index {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: clamp(20px, 2.5vw, 34px);
}
.section-head__index span {
  background: var(--yellow);
  color: var(--ink-fixed);
  padding: 4px 7px 5px;
  font-weight: 600;
  letter-spacing: .08em;
}

.section-head__row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
}

.section-head__title {
  font-size: clamp(30px, 4.4vw, 62px);
  letter-spacing: -.005em;
}
.section-head__title em {
  font-style: normal;
  color: var(--yellow);
}

.section-head__text {
  color: var(--ink-2);
  font-size: clamp(15px, 1.15vw, 17px);
  max-width: 46ch;
  padding-bottom: 6px;
}

.section-head--onDark .section-head__text { color: #A6A69D; }

/* Появление при прокрутке */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 04. Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.header.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.header.is-scrolled .header__inner { height: 64px; }

.logo { flex: none; display: block; }
.logo img {
  height: 38px;
  width: auto;
  transition: height .3s var(--ease);
}
.header.is-scrolled .logo img { height: 33px; }

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: 26px; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-block: 6px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__link--ext { color: var(--ink-3); }
.nav__link--ext svg { opacity: .7; }

.header__tools { display: flex; align-items: center; gap: 14px; flex: none; }

.header__phone {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.header__phone:hover { color: var(--yellow); }
html[data-theme="light"] .header__phone:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

/* Переключатель темы */
.theme-toggle {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  flex: none;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.theme-toggle__knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  transition: transform .35s var(--ease), background-color .3s var(--ease);
}
html[data-theme="light"] .theme-toggle__knob { transform: translateX(26px); }

.theme-toggle__sun, .theme-toggle__moon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  transition: opacity .25s var(--ease), color .25s var(--ease);
}
.theme-toggle__sun { right: 7px; }
.theme-toggle__moon { left: 7px; }
html[data-theme="dark"] .theme-toggle__sun { opacity: .55; color: var(--ink); }
html[data-theme="dark"] .theme-toggle__moon { opacity: .45; }
html[data-theme="light"] .theme-toggle__sun { opacity: .45; }
html[data-theme="light"] .theme-toggle__moon { opacity: .55; color: var(--ink); }
.theme-toggle:hover { border-color: var(--yellow); }

/* Бургер */
.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  position: relative;
  flex: none;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 18px; height: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg);
  padding: calc(var(--header-h) + 24px) var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }

.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.05;
}
.mobile-menu__link span {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--yellow);
  width: 20px;
  flex: none;
}
.mobile-menu__link--ext { color: var(--ink-2); }

.mobile-menu__foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu__phone { font-size: 19px; font-weight: 500; }
.mobile-menu__hours { color: var(--ink-3); font-size: 13px; margin-top: 6px; }

/* ---------- 05. Подвал ---------- */
.footer {
  background: #070706;
  color: #F4F4EF;
  padding-top: clamp(48px, 6vw, 76px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
html[data-theme="light"] .footer { background: #0A0A09; }

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr .8fr .9fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(36px, 4vw, 56px);
}

.footer__brand { max-width: 380px; }
.logo--footer img { height: 52px; width: auto; }
.footer__desc {
  margin-top: 20px;
  color: #9C9C93;
  font-size: 14px;
  line-height: 1.65;
}
.footer__help {
  display: inline-block;
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yellow);
  border-bottom: 1px solid rgba(var(--yellow-rgb), .35);
  padding-bottom: 3px;
}

.footer__title {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6E6E65;
  margin-bottom: 16px;
}
.footer__nav, .footer__contacts { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer__nav a { color: #D9D9D1; transition: color .2s var(--ease); width: fit-content; }
.footer__nav a:hover { color: var(--yellow); }
.footer__contacts a, .footer__contacts p { color: #D9D9D1; }
.footer__contacts a:hover { color: var(--yellow); }
.footer__contacts p { color: #9C9C93; font-size: 13.5px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px 26px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #6E6E65;
  font-size: 12px;
}
.footer__note { max-width: 52ch; text-align: right; }

/* ---------- 06. Главный экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 5vw, 76px) clamp(28px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: .65;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 90%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
}

.hero__text { position: relative; z-index: 2; }

.eyebrow--hero { margin-bottom: clamp(18px, 2.2vw, 28px); }

.hero__title {
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: .95;
  letter-spacing: -.01em;
  margin-bottom: clamp(18px, 2.2vw, 28px);
}
.hero__title-line { display: block; }
.hero__title em {
  font-style: normal;
  color: var(--yellow);
}
.hero__mark {
  display: inline-block;
  white-space: nowrap;
  background: var(--yellow);
  color: var(--ink-fixed);
  padding: .02em .16em .06em;
  margin-left: -.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__lead {
  max-width: 44ch;
  color: var(--ink-2);
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.6;
  margin-bottom: clamp(24px, 2.6vw, 34px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(28px, 3.4vw, 46px);
}

.hero__facts {
  display: flex;
  gap: clamp(22px, 3vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 480px;
}
.hero__facts li { display: flex; gap: 10px; align-items: baseline; }
.hero__facts b {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1;
  color: var(--yellow);
}
.hero__facts span {
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3);
}

/* Сцена с товарами */
.hero__stage {
  position: relative;
  align-self: stretch;
  min-height: clamp(380px, 42vw, 560px);
  isolation: isolate;
}

.hero__disc {
  position: absolute;
  left: 50%; top: 46%;
  width: min(100%, 500px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%,
      rgba(var(--yellow-rgb), .95) 0%,
      rgba(var(--yellow-rgb), .82) 45%,
      rgba(var(--yellow-rgb), 0) 70%);
  filter: blur(2px);
  z-index: -1;
}

.hero__ring {
  position: absolute;
  left: 50%; top: 46%;
  width: min(96%, 470px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  opacity: .5;
  z-index: -1;
}

.hero__speaker {
  position: absolute;
  right: 8%;
  bottom: 0;
  z-index: 1;
  height: 96%;
  width: auto;
  filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .45));
  animation: float 9s ease-in-out infinite;
}

.hero__box {
  position: absolute;
  left: 0;
  bottom: 9%;
  z-index: 0;
  width: 41%;
  height: auto;
  transform: rotate(-8deg);
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .5));
  animation: float 9s ease-in-out infinite reverse;
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  50% { transform: translateY(-10px) rotate(-6deg); }
}
.hero__speaker { animation-name: float-speaker; }
@keyframes float-speaker {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__sticker {
  position: absolute;
  top: 2%;
  right: 0;
  z-index: 3;
  background: var(--yellow);
  color: var(--ink-fixed);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 9px 13px;
  transform: rotate(4deg);
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .6);
  text-align: center;
}

/* ---------- 07. Бегущая строка ---------- */
.ticker {
  position: relative;
  overflow: hidden;
  background: var(--yellow);
  color: var(--ink-fixed);
  padding-block: 11px;
  margin-block: 26px 0;
  transform: rotate(-1.1deg) scale(1.03);
  border-block: 1px solid rgba(0, 0, 0, .12);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.ticker__track span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__track i {
  width: 6px; height: 6px;
  background: var(--ink-fixed);
  border-radius: 50%;
  flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 09. ТВ-приставки ---------- */
.section--tv {
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(var(--yellow-rgb), .07), transparent 70%),
    var(--bg);
  border-block: 1px solid var(--line);
}

.tv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.tv-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tv-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow); }

.tv-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

/* Режим «Фото по ширине» — высота карточки подстраивается под снимок. */
.tm-card-image--natural .tv-card__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Режим «Фото целиком в рамке» — единая высота, изображение не обрезается. */
.tm-card-image--fit .tv-card__media {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.tm-card-image--fit .tv-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.tv-card__meta {
  display: none;
}

.tv-card__brand {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 6px;
}

.tv-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #F4F4EF;
  background: rgba(10, 10, 9, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 4px 7px;
  border-radius: 2px;
  line-height: 1.25;
}

.tv-card__stock {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  background: rgba(10, 10, 9, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #F4F4EF;
  line-height: 1.25;
}
.tv-card__stock::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  flex: none;
}
.tv-card__stock--in-stock::before { background: #35C86B; }
.tv-card__stock--out-of-stock::before { background: var(--red); }

.tv-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.tv-card__title {
  font-size: 25px;
  margin-bottom: 8px;
}
.tv-card__desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.tv-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 18px;
}
.tv-card__specs div { background: var(--card); padding: 9px 11px; }
.tv-card__specs dt {
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.tv-card__specs dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.tv-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tv-card__price {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
}

.tv-card__price-old {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 400;
  margin-top: 4px;
}

.tv-card__order { flex: none; }

.note-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.note {
  font-size: 12.5px;
  color: var(--ink-3);
  max-width: 70ch;
  line-height: 1.55;
}

/* ---------- 10. Мессенджеры и окно заказа ---------- */
.messenger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.messenger-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  text-align: center;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.messenger-card:hover {
  border-color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.messenger-card__qr {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 190px;
  padding: 10px;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 8px;
  aspect-ratio: 1;
}
.messenger-card__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.messenger-card__logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.messenger-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.1;
}
.messenger-card__note {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}

.contact-block__hint--lead {
  margin-top: 0;
  margin-bottom: 16px;
  max-width: 44ch;
}

.contact-block__value--phone { font-size: clamp(26px, 3vw, 38px); }

/* Окно заказа */
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), visibility .22s var(--ease);
}
.order-modal.is-open { opacity: 1; visibility: visible; }

.order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.order-modal__dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: clamp(24px, 3.4vw, 38px);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
  transform: translateY(14px) scale(.985);
  transition: transform .26s var(--ease);
}
.order-modal.is-open .order-modal__dialog { transform: none; }

.order-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.order-modal__close:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink-fixed);
}

.order-modal__kicker {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.order-modal__title {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1;
  margin-bottom: 12px;
  padding-right: 36px;
}
.order-modal__product {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: rgba(var(--yellow-rgb), .14);
  border: 1px solid rgba(var(--yellow-rgb), .38);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.order-modal__product[hidden] { display: none; }
.order-modal__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 22px;
}

.order-modal__grid { display: grid; gap: 10px; }

.order-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color .22s var(--ease), background-color .22s var(--ease), transform .22s var(--ease);
}
.order-option:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
}
.order-option__icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
}
.order-option__icon img { width: 100%; height: 100%; border-radius: 10px; }
.order-option__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-option__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.1;
}
.order-option__note {
  font-size: 12px;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}
.order-option__arrow { margin-left: auto; flex: none; color: var(--ink-3); transition: color .2s var(--ease), transform .2s var(--ease); }
.order-option:hover .order-option__arrow { color: var(--yellow); transform: translate(2px, -2px); }

.order-modal__phone {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}
.order-modal__phone a {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.order-modal__phone a:hover { color: var(--yellow); }

/* ---------- 12. Преимущества ---------- */
.section--why { background: var(--bg-2); border-bottom: 1px solid var(--line); }

.why {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.why__aside { position: sticky; top: calc(var(--header-h) + 30px); }
.why__title { font-size: clamp(30px, 3.6vw, 52px); margin-bottom: 18px; }
.why__text { color: var(--ink-2); font-size: 15px; max-width: 38ch; margin-bottom: 22px; }

.why__list { border-top: 1px solid var(--line); }
.why__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}
.why__item:hover { padding-left: 8px; }
.why__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  padding-top: 5px;
  letter-spacing: .06em;
}
.why__item h3 { font-size: 20px; margin-bottom: 6px; }
.why__item p { font-size: 14px; line-height: 1.55; color: var(--ink-2); max-width: 52ch; }

/* ---------- 13. CTA ---------- */
.cta {
  position: relative;
  background: var(--yellow);
  color: var(--ink-fixed);
  overflow: hidden;
  padding-block: clamp(46px, 6vw, 84px);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(10, 10, 9, .07) 1px, transparent 1px);
  background-size: calc(100% / 8) 100%;
  pointer-events: none;
}
.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 30px;
  align-items: center;
}

.cta__kicker {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(10, 10, 9, .62);
  margin-bottom: 18px;
}
.cta__title {
  font-size: clamp(30px, 4.8vw, 66px);
  line-height: 1.06;
  margin-bottom: 18px;
}
.cta__title span {
  display: inline-block;
  background: var(--ink-fixed);
  color: var(--yellow);
  padding: .02em .12em .06em;
  margin-left: -.12em;
}
.cta__lead {
  max-width: 46ch;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.55;
  color: rgba(10, 10, 9, .74);
  margin-bottom: 26px;
}
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cta__art { position: relative; align-self: stretch; min-height: 300px; }
.cta__img {
  position: absolute;
  right: 6%;
  bottom: -4%;
  height: 106%;
  width: auto;
  filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .35));
}
.cta__badge {
  position: absolute;
  left: 26%;
  bottom: 12%;
  z-index: 2;
  background: var(--ink-fixed);
  color: var(--yellow);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.35;
  padding: 8px 11px;
  transform: rotate(-4deg);
}
.cta__badge b { font-weight: 600; }

/* ---------- 14. Контакты ---------- */
.contacts {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.contacts__info { display: flex; flex-direction: column; gap: 22px; }

.contact-block { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.contact-block__label {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.contact-block__value {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink);
}
.contact-block__value a { transition: color .2s var(--ease); }
.contact-block__value a:hover { color: var(--yellow); }
html[data-theme="light"] .contact-block__value a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--yellow); }

.contact-block__value--phones { display: flex; flex-direction: column; gap: 4px; }
.contact-block__hint { font-size: 12px; color: var(--ink-3); margin-top: 7px; }

.contacts__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.contacts__map { position: relative; }
.contacts__map iframe {
  width: 100%;
  height: clamp(320px, 34vw, 470px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  filter: grayscale(.55) contrast(1.02);
  transition: filter .4s var(--ease);
}
.contacts__map:hover iframe { filter: none; }

.contacts__map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.contacts__map-link::after {
  content: "↗";
  font-size: 12px;
}
.contacts__map-link:hover { color: var(--yellow); border-color: var(--yellow); }
html[data-theme="light"] .contacts__map-link:hover { color: var(--ink); }

/* ---------- 15. Мобильное, адаптив ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-bar__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mobile-bar__btn--accent { background: var(--yellow); border-color: var(--yellow); color: var(--ink-fixed); }

.to-top {
  position: fixed;
  right: 18px;
  bottom: 94px;
  z-index: 60;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--yellow); color: var(--ink-fixed); border-color: var(--yellow); }

/* Плавная смена темы */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .32s var(--ease), color .32s var(--ease),
              border-color .32s var(--ease), fill .32s var(--ease) !important;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .nav__list { gap: 18px; }
  .header__phone { display: none; }
  .hero__title { font-size: clamp(36px, 5.6vw, 66px); }
}

@media (max-width: 1024px) {
  :root { --header-h: 70px; }
  .nav { display: none; }
  .burger { display: block; }
  .header__cta { display: none; }
  .header__tools { margin-left: auto; }

  .hero__inner { grid-template-columns: 1fr; gap: 12px; }
  .hero__stage { min-height: clamp(340px, 58vw, 460px); margin-top: 10px; }
  .hero__speaker { right: 12%; height: 100%; }
  .hero__box { width: 38%; left: 6%; bottom: 6%; }
  .hero__disc { width: min(78%, 420px); }

  .section-head__row { grid-template-columns: 1fr; gap: 16px; }
  .section-head__text { max-width: 58ch; }

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

  .why { grid-template-columns: 1fr; }
  .why__aside { position: static; }

  .cta__inner { grid-template-columns: 1fr; }
  .cta__art { min-height: 260px; margin-top: 6px; }
  .cta__img { right: 0; height: 112%; }
  .cta__badge { left: auto; right: 6%; }

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

@media (max-width: 860px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 78px; }
  .to-top { bottom: 92px; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .footer__note { text-align: left; }

  .note-row { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 700px) {
  :root { --header-h: 64px; }
  .logo img { height: 34px; }
  .theme-toggle { width: 50px; }
  html[data-theme="light"] .theme-toggle__knob { transform: translateX(20px); }

  .hero { padding-top: 22px; }
  .hero__title { font-size: clamp(32px, 9.2vw, 46px); }
  .hero__lead { font-size: 14.5px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { gap: 18px; }
  .hero__facts li { flex-direction: column; gap: 2px; }
  .hero__stage { min-height: 330px; }
  .hero__sticker { top: 0; right: 2%; font-size: 9px; padding: 7px 10px; }

  .ticker { margin-top: 14px; }
  .ticker__track span { font-size: 13px; }

  .section-head__title { font-size: clamp(27px, 8vw, 38px); }

  .tv-grid { grid-template-columns: 1fr; }
  .tv-card__foot { flex-wrap: wrap; }
  .tv-card__order { width: 100%; }

  .why__item { grid-template-columns: 34px 1fr; gap: 10px; }
  .why__item h3 { font-size: 18px; }

  .cta__title { font-size: clamp(27px, 8.4vw, 40px); }
  .cta__actions .btn { flex: 1 1 100%; }
  .cta__art { min-height: 220px; }

  .contact-block__value { font-size: 19px; }
  .contact-block__value--phone { font-size: 24px; }
  .contacts__actions .btn { flex: 1 1 auto; }
  .messenger-grid { grid-template-columns: 1fr; }
  .messenger-card__qr { max-width: 170px; }
}

@media (max-width: 420px) {
  .hero__facts b { font-size: 18px; }
  .tv-card__price { font-size: 22px; }
  .tv-card__badge,
  .tv-card__stock { font-size: 8.5px; padding: 3px 6px; letter-spacing: .05em; }
  .messenger-card { padding: 14px 10px 12px; }
  .messenger-card__name { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Печать */
@media print {
  .header, .mobile-bar, .to-top, .ticker, .footer__help, .theme-toggle, .order-modal { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- 16. Светлая тема: контраст жёлтых акцентов ---------- */
html[data-theme="light"] .hero__title em {
  color: var(--ink);
  box-shadow: inset 0 -.11em 0 var(--yellow);
}

html[data-theme="light"] .hero__facts b,
html[data-theme="light"] .why__num,
html[data-theme="light"] .mobile-menu__link span {
  background: var(--yellow);
  color: var(--ink);
  padding: 1px 5px;
  width: fit-content;
}

html[data-theme="light"] .contact-block__value a:hover {
  color: var(--ink);
  box-shadow: inset 0 -.12em 0 var(--yellow);
}

html[data-theme="light"] .section-head__title em { color: var(--ink); }
html[data-theme="light"] .section-head__title em {
  box-shadow: inset 0 -.1em 0 var(--yellow);
}