/* ООО «Генерация» — дизайн-система. Один шрифт, одна сетка, один акцент. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f4f1eb;
  --bg-2: #ece7de;
  --surface: #ffffff;
  --ink: #15171a;
  --ink-2: #2b3036;
  --muted: #5e646c;
  --line: rgba(21, 23, 26, 0.12);
  --line-2: rgba(21, 23, 26, 0.2);
  --accent: #cf2a1f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(207, 42, 31, 0.1);
  --dark: #15171a;
  --dark-2: #1d2024;
  --on-dark: #ece9e3;
  --on-dark-muted: #a3a8af;
  --header-bg: rgba(244, 241, 235, 0.72);
  --shadow-1: 0 1px 2px rgba(21, 23, 26, 0.06), 0 8px 24px rgba(21, 23, 26, 0.06);
  --shadow-2: 0 2px 4px rgba(21, 23, 26, 0.06), 0 22px 48px rgba(21, 23, 26, 0.12);
  --emboss-hi: rgba(255, 255, 255, 0.95);
  --emboss-lo: rgba(92, 70, 44, 0.2);
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 1240px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 72px;
  --mk-accent: var(--accent);
  --mk-cut: var(--bg);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0f1113;
  --bg-2: #15181b;
  --surface: #181b1f;
  --ink: #ebe8e2;
  --ink-2: #c9c6c0;
  --muted: #9ba1a9;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --accent: #e3392d;
  --accent-soft: rgba(227, 57, 45, 0.14);
  --dark: #0a0b0d;
  --dark-2: #121417;
  --header-bg: rgba(15, 17, 19, 0.7);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.4), 0 22px 48px rgba(0, 0, 0, 0.45);
  --emboss-hi: rgba(255, 255, 255, 0.07);
  --emboss-lo: rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

*,
*::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) + 16px);
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "tnum" 0, "ss01" 1;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: var(--line-2);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--accent);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.25rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 62ch;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
}

.sr-only,
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip:focus {
  left: 8px;
}

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

.section {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  overflow: hidden;
}

.section-tight {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.section-tint {
  background: var(--bg-2);
}

.section-dark {
  background: var(--dark);
  color: var(--on-dark);
}

.section-dark .eyebrow {
  color: var(--on-dark-muted);
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  max-width: 760px;
}

.row-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  max-width: none;
  flex-wrap: wrap;
}

.row-head h2 {
  margin: 0;
}

.text-link {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-top: 1.6em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--ink-2);
}

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 18px -6px rgba(207, 42, 31, 0.55);
}

.btn-accent:hover {
  box-shadow: 0 10px 26px -8px rgba(207, 42, 31, 0.65);
  transform: translateY(-1px);
}

.btn-line {
  border-color: var(--line-2);
  background: transparent;
}

.btn-line:hover {
  border-color: var(--ink);
}

.btn-line:hover .vplay {
  background: var(--accent);
  color: var(--accent-ink);
}

.section-dark .btn-line,
.cta .btn-line {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--on-dark);
}

.btn-ghost {
  background: var(--bg-2);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-sm {
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
}

.btn-lg {
  min-height: 56px;
  padding: 0.9rem 1.7rem;
  font-size: 1.02rem;
}

.btn-wide {
  width: 100%;
}

.btn.is-done {
  background: var(--ink);
  color: var(--bg);
}

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple-ink {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: currentColor;
  opacity: 0.22;
  transform: scale(0);
  animation: ripple 0.65s var(--ease) forwards;
}

@keyframes ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* ---------- Прогресс и шапка ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 3px;
  width: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 10px rgba(207, 42, 31, 0.5);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s, backdrop-filter 0.35s, box-shadow 0.35s;
}

.site-header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(0, 0, 0, 0.35);
}

.page-home .site-header.is-scrolled {
  background: var(--bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

.page-home .site-header .brand {
  position: relative;
  isolation: isolate;
}

.page-home .site-header .brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 19px;
  top: 50%;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.72);
  background: radial-gradient(circle, rgba(255, 186, 110, 0.95) 0%, rgba(207, 42, 31, 0.42) 34%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.page-home .site-header .brand .mk {
  transition: filter 0.45s var(--ease);
}

.page-home .site-header.is-scrolled .brand::before {
  opacity: 0;
}

.page-home .site-header .brand-glow-name {
  display: block;
  margin-left: 0.7rem;
  max-width: 0;
  overflow: hidden;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), filter 0.45s var(--ease), max-width 0.45s var(--ease);
}

.page-home .site-header.is-scrolled .brand .mk,
.page-home .site-header.is-scrolled .brand-glow-name {
  filter: none;
}

.page-home .site-header.is-scrolled .brand-glow-name {
  opacity: 1;
  max-width: 13rem;
  transform: none;
}

.brand-glow-name {
  display: none;
}

@media (max-width: 720px) {
  .page-home .site-header .brand-glow-name {
    margin-left: 0.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .page-home .site-header.is-scrolled .brand-glow-name {
    max-width: 7.6rem;
  }

  .page-home .site-header.is-scrolled .brand::before {
    width: 84px;
  }
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  text-decoration: none;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.nav a {
  position: relative;
  white-space: nowrap;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}

.nav a:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--accent);
}

.nav-mobile-only {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  margin-right: 0.15rem;
  color: inherit;
}

.icon-btn {
  width: 32px;
  height: 32px;
  margin-left: 0.15rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  opacity: 0.55;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s, opacity 0.2s;
}

.icon-btn:hover {
  color: var(--ink);
  opacity: 1;
}

.icon-btn:focus-visible {
  outline: 1px solid var(--line-2);
  outline-offset: 3px;
  opacity: 1;
}

.icon-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  grid-area: 1 / 1;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}

.i-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

[data-theme="dark"] .i-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

[data-theme="dark"] .i-moon {
  opacity: 1;
  transform: none;
}

.header-cta {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
}

.page-home .header-cta {
  display: none;
}

.tkp-count,
.mobile-bar [data-tkp-count] {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 0.75rem;
  display: inline-grid;
  place-items: center;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.burger span:first-child {
  top: 17px;
}

.burger span:last-child {
  top: 25px;
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Логотип ---------- */
.mk-a,
.mk-b,
.mk-c,
.lk-a,
.lk-b,
.lk-c {
  display: none;
}

html[data-logo="a"] .mk-a,
html[data-logo="b"] .mk-b,
html[data-logo="c"] .mk-c {
  display: block;
}

html[data-logo="a"] .lk-a,
html[data-logo="b"] .lk-b,
html[data-logo="c"] .lk-c {
  display: inline-flex;
}

[data-logo-force] .mk-a,
[data-logo-force] .mk-b,
[data-logo-force] .mk-c {
  display: none !important;
}

[data-logo-force] .lk-a,
[data-logo-force] .lk-b,
[data-logo-force] .lk-c {
  display: none !important;
}

[data-logo-force="a"] .mk-a,
[data-logo-force="b"] .mk-b,
[data-logo-force="c"] .mk-c {
  display: block !important;
}

[data-logo-force="a"] .lk-a,
[data-logo-force="b"] .lk-b,
[data-logo-force="c"] .lk-c {
  display: inline-flex !important;
}

.lockup {
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}

.lockup .mk {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.lk-text {
  display: grid;
  line-height: 1.05;
}

.lk-text b {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lk-text b.caps {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.08rem;
}

.lk-text small {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 3px;
}

.lk-word {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
}

.lk-word i {
  width: 6px;
  height: 28px;
  background: var(--accent);
  border-radius: 1px;
}

/* Emboss: знак выдавлен в фон — цвет фона + свет сверху-слева, тень снизу-справа */
.mk.emboss,
.mk.emboss-dark {
  color: var(--bg);
  --mk-accent: var(--bg);
  --mk-cut: var(--bg-2);
  filter: drop-shadow(-1.5px -1.5px 1px var(--emboss-hi)) drop-shadow(2.5px 3px 3px var(--emboss-lo));
}

.mk.emboss-dark {
  color: var(--dark);
  --mk-accent: var(--dark);
  --mk-cut: #202328;
  filter: drop-shadow(-1px -1px 0.5px rgba(255, 255, 255, 0.07)) drop-shadow(2px 3px 3px rgba(0, 0, 0, 0.8));
}

/* Tonal / blend: знак растворён в цвете блока */
.mk.tonal {
  color: var(--ink);
  --mk-accent: var(--ink);
  --mk-cut: var(--bg-2);
  opacity: 0.055;
  mix-blend-mode: multiply;
}

[data-theme="dark"] .mk.tonal {
  color: #fff;
  --mk-accent: #fff;
  opacity: 0.045;
  mix-blend-mode: screen;
}

/* Knockout: знак вырезан из плашки — плашка акцентная, знак в цвет фона секции */
.mk.knockout {
  color: var(--dark);
  --mk-accent: var(--dark);
  background: var(--accent);
  border-radius: 22%;
  padding: 9%;
}

.mk.knockout.mk-c {
  color: var(--accent);
  --mk-cut: var(--dark);
  --mk-accent: var(--dark);
  background: none;
  padding: 0;
}

.brand-plate {
  display: inline-flex;
}

.brand-plate.is-knockout {
  background: var(--on-dark);
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
}

.brand-plate.is-knockout .lockup {
  color: var(--dark);
  --mk-accent: var(--dark);
  --mk-cut: var(--on-dark);
}

.brand-plate.is-knockout small {
  color: #5e646c;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: left;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + clamp(2.2rem, 5vw, 3.6rem)) 0 clamp(3rem, 6vw, 4.5rem);
  background: var(--bg);
}

.hero-emboss {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: min(640px, 72vw);
  aspect-ratio: 1;
  right: -8vw;
  top: 46%;
  transform: translateY(-50%);
  opacity: 0.55;
}

.hero-emboss .mk {
  width: 100%;
  height: 100%;
}

.hero-emboss .mk.emboss {
  filter: drop-shadow(-3px -3px 2px var(--emboss-hi)) drop-shadow(5px 6px 6px var(--emboss-lo));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.5rem);
  max-width: 14ch;
  margin-bottom: 1rem;
}

.hero h1 .h1-line {
  display: block;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
    max-width: 100%;
  }

  .hero h1 .h1-line {
    white-space: normal;
  }

  .hero-shot,
  .hero-shot-item {
    min-width: 0;
  }
}

.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.hero-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-facts div {
  padding: 1.4rem 1rem;
  text-align: left;
}

.hero-facts div+div {
  border-left: 1px solid var(--line);
}

.hero-facts dt {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.hero-facts dd {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Категории ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.cat-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: transparent;
}

.cat-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  overflow: hidden;
}

.cat-card:first-child .cat-media {
  aspect-ratio: auto;
  flex: 1;
}

.cat-media .ph {
  height: 100%;
}

.cat-cta {
  grid-column: span 2;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--on-dark);
  background: var(--dark);
  border-color: var(--dark);
  justify-content: flex-end;
  position: relative;
}

.cat-cta .cat-body {
  padding: 2.6rem 1.4rem 1.4rem;
}

.cat-cta .cat-body small {
  color: rgba(255, 255, 255, 0.62);
  display: block;
}

.cat-cta .cat-meta {
  color: #fff;
  margin-top: 0.8rem;
}

.cat-cta::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  width: 28px;
  height: 4px;
  background: var(--accent);
}

.cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.cat-card:hover .cat-media img {
  transform: scale(1.04);
}

.cat-body {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem 1.15rem;
}

.cat-body b {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.cat-card:first-child .cat-body b {
  font-size: 1.5rem;
}

.cat-body small {
  color: var(--muted);
  font-size: 0.88rem;
}

.cat-meta {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Быстрый подбор ---------- */
.tonal-mark {
  position: absolute;
  right: -8vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(720px, 80vw);
  pointer-events: none;
}

.tonal-mark .mk {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.quick-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.quick-calc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: var(--shadow-1);
}

.qc-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}

.qc-value {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin: 0.1rem 0 0.6rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 28px;
  margin-bottom: 1.1rem;
}

.qc-result {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  padding: 1.1rem 0;
  margin-top: 1.1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.qc-result small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.qc-result a {
  text-decoration: none;
}

.qc-result b {
  font-size: 1.15rem;
}

.qc-result .muted {
  display: block;
  font-size: 0.85rem;
}

.qc-price {
  text-align: right;
  white-space: nowrap;
}

.qc-price b {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.qc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--bg-2);
  border-radius: 14px;
}

.seg label {
  position: relative;
  cursor: pointer;
}

.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg span {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.seg small {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
}

.seg input:checked+span {
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.seg input:focus-visible+span {
  outline: 2px solid var(--accent);
}

.seg-sm span {
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
}

/* ---------- Роли, шаги, отрасли ---------- */
.roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.role {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.role:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-1);
}

.role h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.role h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.role p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  counter-reset: s;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.steps li {
  counter-increment: s;
  padding: 1.5rem 1.2rem 0 0;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.steps li::before {
  content: "0" counter(s);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.steps b {
  font-size: 1.1rem;
}

.steps span {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

.ind-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.ind-list li {
  padding: 1.4rem 1.4rem 1.4rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.3rem;
  align-content: start;
}

.ind-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
  margin-bottom: 0.45rem;
}

.ind-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ind-list b {
  font-size: 1.08rem;
}

.ind-list>li>span:not(.ind-media) {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Карточки товаров ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card-cell {
  display: contents;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: transparent;
}

.card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
}

.card-media {
  aspect-ratio: 4 / 3;
  background: #f6f3ee;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.035);
}

[data-theme="dark"] .card-media,
[data-theme="dark"] .cat-media {
  filter: brightness(0.92);
}

.card-body {
  padding: 1rem 1.1rem 0.4rem;
  flex: 1;
}

.card-body h3 {
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
}

.card-spec {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem 1.05rem;
}

.price {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price small {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8em;
}

.ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  background: radial-gradient(circle at 50% 42%, #fff, #efeae2);
  color: #8d8a85;
}

.ph svg {
  width: 42%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.ph span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.empty {
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 900px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-weight: 700;
  font-size: 1.08rem;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  margin: 0 0 1.3rem;
  color: var(--muted);
  max-width: 70ch;
}

/* ---------- CTA и формы ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.cta-knockout {
  position: absolute;
  left: -6vw;
  bottom: -10vw;
  width: min(520px, 60vw);
  aspect-ratio: 1;
  opacity: 0.9;
  pointer-events: none;
}

.cta-knockout .mk {
  width: 100%;
  height: 100%;
  opacity: 0.16;
}

.cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.cta .eyebrow {
  color: var(--on-dark-muted);
}

.cta-copy p {
  color: var(--on-dark-muted);
  max-width: 48ch;
}

.cta-contacts {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.cta-contacts a {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.cta-contacts small {
  display: block;
  color: var(--on-dark-muted);
  font-size: 0.82rem;
}

.card-form {
  background: var(--surface);
  color: var(--ink);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: var(--shadow-2);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.form-grid label,
.field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.span-2 {
  grid-column: span 2;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-2);
  background: var(--bg);
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--surface);
}

input[aria-invalid="true"] {
  border-color: var(--accent);
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

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

.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.2em;
}

.form-status.is-ok {
  color: #1f8a4c;
}

.form-status.is-err {
  color: var(--accent);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.form-actions .btn {
  flex: 1;
}

.hint {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0.25rem 0 0.75rem;
}

.lead-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(620px, calc(100vw - 2rem));
  width: 100%;
  color: var(--ink);
}

.lead-dialog::backdrop {
  background: rgba(10, 11, 13, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lead-dialog[open] {
  animation: dlg 0.35s var(--ease);
}

@keyframes dlg {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

.lead-dialog .lead-form {
  position: relative;
  background: var(--surface);
  border-radius: 20px;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  box-shadow: var(--shadow-2);
}

.lead-dialog h2 {
  font-size: 1.7rem;
}

/* ---------- Витрина на первом экране ---------- */
.hero-shot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  margin: clamp(1.8rem, 4vw, 2.8rem) 0 clamp(1.5rem, 3vw, 2.2rem);
}

.hero-shot-item {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.hero-shot-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: transparent;
}

.hero-shot-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(180deg, #f3ece0, #fff);
  transition: transform 0.6s var(--ease);
}

.hero-shot-item:hover img {
  transform: scale(1.04);
}

.hero-shot-item span {
  position: relative;
  padding: 0.85rem 1.1rem 0.95rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.dialog-close {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-2);
  font-size: 1.4rem;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 80;
  transform: translate(-50%, calc(100% + 2rem));
  background: var(--ink);
  color: var(--bg);
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-2);
  max-width: calc(100vw - 2rem);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s var(--ease), opacity 0.3s, visibility 0s 0.4s;
}

.toast.is-on {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.toast a {
  color: inherit;
  font-weight: 800;
}

/* ---------- Внутренние страницы ---------- */
.page-hero {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1rem, 3vw, 2rem);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
}

.filters {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.hscroll {
  position: relative;
  min-width: 0;
}

.hscroll.is-swipe {
  padding-bottom: 1.15rem;
}

.hscroll.is-swipe>.chips,
.hscroll.is-swipe>.tabs,
.hscroll.is-swipe>.gallery-thumbs {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}

.swipe-hint {
  display: none;
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  pointer-events: none;
  white-space: nowrap;
}

.hscroll.is-swipe .swipe-hint {
  display: flex;
}

.swipe-hint i {
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  animation: swipe-nudge 1.35s ease-in-out infinite;
}

@keyframes swipe-nudge {

  0%,
  100% {
    transform: translateX(0) rotate(-45deg);
  }

  50% {
    transform: translateX(4px) rotate(-45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .swipe-hint i {
    animation: none;
  }
}

.chip {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.chip small {
  color: var(--muted);
  font-weight: 600;
  margin-left: 0.2rem;
}

.chip:hover {
  border-color: var(--ink);
}

.chip.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.chip.is-active small {
  color: inherit;
  opacity: 0.7;
}

.filter-tools {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.search {
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}

.product {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.gallery-main {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: #f6f3ee;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
}

.gallery-thumbs button {
  width: 96px;
  flex-shrink: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: none;
}

.gallery-thumbs button.is-active {
  border-color: var(--accent);
}

.buy {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.buy h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.buy-price {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 0;
  margin: 1.3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.buy-price>span {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.buy-price>span small {
  font-size: 0.55em;
  color: var(--muted);
  font-weight: 600;
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Заставка мобильной версии ---------- */
.splash {
  display: none;
}

.splash.is-on {
  --sp-size: 112px;
  --sp-speed: 1;
  --sp-buzz: 1.5px;
  --sp-rot: 1.5deg;
  --sp-glow: 0.45;
  --sp-ring: 5;
  --sp-flame: 1;
  --sp-heat: 0.32;
  --sp-dim: 7%;
  --sp-gap: 1.25;
  --sp-type: 1;
  --sp-track: 0.01em;
  --sp-bar: 132px;
  --sp-rise: 0px;
  --sp-exit: 1.06;
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(207, 42, 31, var(--sp-heat)), transparent 58%),
    radial-gradient(circle at 50% 120%, rgba(255, 140, 60, calc(var(--sp-heat) * 0.38)), transparent 60%),
    hsl(220 8% var(--sp-dim));
  color: #f4f1eb;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.splash.is-out {
  opacity: 0;
  transform: scale(var(--sp-exit));
  pointer-events: none;
}

html.splash-on body {
  overflow: hidden;
}

.splash-core {
  display: grid;
  justify-items: center;
  text-align: center;
  transform: translateY(var(--sp-rise));
}

.splash-mk {
  width: var(--sp-size);
  height: var(--sp-size);
  overflow: visible;
  filter: drop-shadow(0 0 22px rgba(207, 42, 31, var(--sp-glow)));
  animation: sp-buzz calc(0.4s * var(--sp-speed)) calc(0.95s * var(--sp-speed)) linear;
}

.splash.no-word .splash-lines {
  display: none;
}

.splash-lines {
  margin: 1.15rem 0 0;
  text-align: center;
  font-weight: 800;
  line-height: var(--sp-gap);
  opacity: 0;
  animation: sp-fade calc(0.6s * var(--sp-speed)) calc(0.55s * var(--sp-speed)) ease forwards;
}

.splash-lines span {
  display: block;
  white-space: nowrap;
  font-size: clamp(calc(0.72rem * var(--sp-type)), calc(4.05vw * var(--sp-type)), calc(1.28rem * var(--sp-type)));
  letter-spacing: var(--sp-track);
}

.sp-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--sp-ring);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transform: rotate(-90deg);
  transform-origin: 32px 32px;
  animation: sp-ring calc(0.9s * var(--sp-speed)) calc(0.1s * var(--sp-speed)) var(--ease) forwards;
}

.sp-flame {
  fill: var(--accent);
  transform-origin: 32px 49px;
  opacity: 0;
  transform: scale(calc(var(--sp-flame) * 0.3)) translateY(10px);
  animation: sp-ignite calc(0.86s * var(--sp-speed)) calc(0.7s * var(--sp-speed)) cubic-bezier(0.45, 0.02, 0.12, 1) forwards;
}

.splash-word {
  margin-top: 1.4rem;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.5em;
  margin-right: -0.5em;
  opacity: 0;
  animation: sp-word calc(0.8s * var(--sp-speed)) calc(0.55s * var(--sp-speed)) var(--ease) forwards;
}

.splash-sub {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(244, 241, 235, 0.6);
  opacity: 0;
  animation: sp-fade calc(0.6s * var(--sp-speed)) calc(0.9s * var(--sp-speed)) ease forwards;
}

.splash.no-bar .splash-bar {
  display: none;
}

.splash-bar {
  position: relative;
  width: var(--sp-bar);
  height: 2px;
  margin-top: 1.6rem;
  border-radius: 2px;
  background: rgba(244, 241, 235, 0.14);
  overflow: hidden;
}

.splash-load {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
}

.splash-load>i {
  display: block;
  height: 100%;
  width: calc(var(--sp-load, 0) * 100%);
  background: var(--accent);
  box-shadow: 0 0 10px rgba(207, 42, 31, 0.5);
  position: relative;
}

.splash-load svg {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 14px;
  height: 20px;
  overflow: visible;
  transform: translate(42%, 2%) scale(calc(0.25 + (1 - var(--sp-load, 0)) * 0.75));
  transform-origin: 50% 100%;
  opacity: calc(1 - var(--sp-load, 0));
  pointer-events: none;
}

.splash-load svg path {
  fill: var(--accent);
}

.splash-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--sp-load, 0) * 100%);
  background: var(--accent);
}

@keyframes sp-ring {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes sp-ignite {
  0% {
    opacity: 0;
    transform: scale(calc(var(--sp-flame) * 0.3)) translateY(10px);
    filter: brightness(0.7);
  }

  68% {
    opacity: 1;
    transform: scale(calc(var(--sp-flame) * 0.93)) translateY(1px);
    filter: brightness(1);
  }

  84% {
    opacity: 1;
    transform: scale(calc(var(--sp-flame) * 1.03));
    filter: brightness(1.32);
  }

  100% {
    opacity: 1;
    transform: scale(var(--sp-flame));
    filter: none;
  }
}

@keyframes sp-flicker {

  0%,
  100% {
    opacity: 1;
    transform: scale(var(--sp-flame));
  }

  50% {
    opacity: 1;
    transform: scale(calc(var(--sp-flame) * 1.04), calc(var(--sp-flame) * 0.97));
    filter: brightness(1.15);
  }
}

@keyframes sp-word {
  to {
    opacity: 1;
    letter-spacing: 0.08em;
    margin-right: -0.08em;
  }
}

@keyframes sp-fade {
  to {
    opacity: 1;
  }
}

@keyframes sp-bar {
  to {
    transform: none;
  }
}

@keyframes sp-buzz {

  0%,
  100% {
    transform: none;
  }

  20% {
    transform: translate(calc(var(--sp-buzz) * -1), 0) rotate(calc(var(--sp-rot) * -1));
  }

  40% {
    transform: translate(var(--sp-buzz), 0) rotate(var(--sp-rot));
  }

  60% {
    transform: translate(calc(var(--sp-buzz) * -0.6), 0) rotate(calc(var(--sp-rot) * -0.6));
  }

  80% {
    transform: translate(calc(var(--sp-buzz) * 0.6), 0) rotate(calc(var(--sp-rot) * 0.5));
  }
}

@media (prefers-reduced-motion: reduce) {

  .splash-mk,
  .sp-ring,
  .sp-flame,
  .splash-lines,
  .splash-bar::after {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
    letter-spacing: 0.08em;
  }
}

body:has(.splash-tune) .splash.is-on {
  padding-right: 400px;
}

.splash-tune {
  position: fixed;
  z-index: 420;
  top: 1rem;
  right: 1rem;
  width: min(360px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.1rem 1.15rem 1rem;
  border-radius: 18px;
  background: rgba(244, 241, 235, 0.96);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.splash-tune-play {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -1.1rem -1.15rem 0.75rem;
  padding: 0.75rem 1.15rem;
  background: rgba(244, 241, 235, 0.98);
}

.splash-tune-play .btn {
  flex: 1 1 calc(50% - 0.3rem);
}

.splash-tune-play .splash-status {
  flex: 1 1 100%;
  margin: 0;
}

.splash-tune-play .splash-status:empty {
  display: none;
}

.splash-tune h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.splash-tune p,
.splash-tune label {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
}

.splash-tune label {
  display: grid;
  gap: 0.2rem;
}

.splash-tune label b {
  font-weight: 700;
}

.splash-tune input[type="range"],
.splash-tune select {
  width: 100%;
}

.splash-tune .splash-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.splash-tune-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.2rem 0 0.7rem;
}

.splash-status {
  min-height: 1.2em;
  font-weight: 700;
}

.splash-note {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 1100px) {
  body:has(.splash-tune) .splash.is-on {
    padding-right: 0;
    align-items: start;
    padding-top: 6vh;
  }

  .splash-tune {
    top: auto;
    bottom: 0.7rem;
    max-height: 48vh;
  }
}

@media (max-width: 720px) {
  body:has(.splash-tune) .splash.is-on {
    padding-bottom: 42vh;
  }

  .splash-tune {
    right: 0.6rem;
    left: 0.6rem;
    width: auto;
  }
}

/* ---------- Мессенджеры: те же линии, что у иконок сайта, без плашек ---------- */
.header-msg {
  display: flex;
  align-items: center;
}

.msg-ico,
.msg-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.msg-ico {
  width: 36px;
  height: 36px;
  justify-content: center;
}

.msg-ico svg,
.msg-link svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  display: block;
}

.msg-tg {
  fill: url(#tgInk);
}

.msg-max {
  fill: url(#maxInk);
}

.msg-fold {
  fill: #fff;
  opacity: 0.62;
}

.msg-ico svg {
  width: 22px;
  height: 22px;
}

.msg-ico:hover,
.msg-link:hover {
  color: var(--accent);
}

.msg-link span {
  display: grid;
  line-height: 1.15;
}

.footer-phones .msg-link {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.65rem;
  align-items: center;
}

.footer-phones .msg-link svg {
  width: 22px;
  height: 22px;
}

.cta-contacts .msg-link {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-contacts .msg-link small,
.footer-phones .msg-link small {
  font-weight: 400;
  letter-spacing: 0;
}

.buy-reach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.3rem;
  margin-top: 0.15rem;
}

.buy-reach .msg-link {
  font-weight: 700;
  color: var(--ink);
}

.msg-dialog {
  max-width: min(460px, calc(100vw - 2rem));
}

.msg-phone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.3rem;
  margin: 0.8rem 0;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  display: grid;
  gap: 0.55rem;
}

.ticks li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-2);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.phone-line {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}

.phone-line b {
  color: var(--ink);
}

.product-details {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.product-details h2 {
  font-size: 1.5rem;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.specs th,
.specs td {
  text-align: left;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.specs th {
  font-weight: 500;
  color: var(--muted);
  padding-right: 1.5rem;
  width: 55%;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.specs td {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.info {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.info h2 {
  font-size: 1.35rem;
}

.info p {
  color: var(--ink-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.about-facts {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  align-self: start;
}

.about-facts div {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.about-facts dt {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.about-facts dd {
  margin: 0;
  color: var(--muted);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.contact-card {
  display: grid;
  gap: 0.3rem;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

a.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-1);
}

.contact-card small {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-card b {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.req-wrap {
  max-width: 900px;
}

.req-table th {
  width: 34%;
}

.req-table td {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.copy-btn {
  border: 1px solid var(--line-2);
  background: transparent;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  flex-shrink: 0;
}

.copy-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.copy-btn.is-done {
  color: #1f8a4c;
  border-color: #1f8a4c;
}

.req-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.8rem;
}

.tkp-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.tkp-list {
  display: grid;
  gap: 0.6rem;
}

.tkp-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.tkp-row a {
  font-weight: 700;
  text-decoration: none;
}

.tkp-row input {
  width: 72px !important;
  min-height: 40px !important;
  text-align: center;
}

.tkp-row .price {
  min-width: 120px;
  text-align: right;
}

.tkp-del {
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.tkp-del:hover {
  background: var(--bg-2);
  color: var(--accent);
}

.tkp-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.2rem 1rem;
  font-size: 1.1rem;
  border-top: 2px solid var(--ink);
  margin-top: 0.8rem;
}

.tkp-total b {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.tkp-layout .card-form h2 {
  font-size: 1.4rem;
}

/* ---------- Калькуляторы ---------- */
.tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 4px;
  background: var(--bg-2);
  border-radius: 16px;
  margin-bottom: 1.4rem;
}

.tabs button {
  flex: 1 0 auto;
  border: 0;
  background: transparent;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.92rem;
}

.tabs button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

.calc-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
  animation: fadeUp 0.45s var(--ease);
}

.calc-panel[hidden] {
  display: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.calc-form,
.calc-result {
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: calc(var(--radius) + 4px);
}

.calc-form {
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  align-content: start;
}

.calc-result {
  background: var(--dark);
  color: var(--on-dark);
  display: grid;
  gap: 0.4rem;
  align-content: start;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.calc-result .hint {
  color: var(--on-dark-muted);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.field-row-4 {
  grid-template-columns: repeat(2, 1fr);
}

.field small {
  font-weight: 500;
}

.res-label {
  margin: 0;
  color: var(--on-dark-muted);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.res-big {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.res-sub {
  margin: 0;
  color: var(--on-dark-muted);
}

.res-model {
  margin: 1rem 0 0.6rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 0.2rem;
}

.res-model small {
  color: var(--on-dark-muted);
}

.res-model b {
  font-size: 1.3rem;
}

.res-model .price {
  color: #fff;
  font-size: 1.15rem;
}

.res-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.bars {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.bar {
  display: grid;
  gap: 0.3rem;
}

.bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
}

.bar-top b {
  font-variant-numeric: tabular-nums;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--on-dark-muted);
  transform-origin: 0 50%;
  transition: width 0.6s var(--ease);
}

.bar.is-best .bar-fill {
  background: var(--accent);
}

.bar.is-best .bar-top span::after {
  content: " — дешевле всего";
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Бренд-доска ---------- */
.brand-concept+.brand-concept {
  border-top: 1px solid var(--line);
}

.brand-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.brand-head p.muted {
  max-width: 62ch;
  margin: 0;
}

.brand-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.board {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 220px;
}

.board figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.board-lockup,
.board-mark {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.board-light {
  background: #f4f1eb;
  --bg: #f4f1eb;
  --mk-cut: #f4f1eb;
}

.board-light .lockup {
  color: #15171a;
}

.board-dark {
  background: #15171a;
  --mk-cut: #15171a;
}

.board-dark .lockup {
  color: #ece9e3;
}

.board-dark .lk-text small {
  color: #a3a8af;
}

.board-mark .mk {
  width: 140px;
  height: 140px;
}

.board-emboss {
  background: var(--bg);
}

.board-tonal {
  background: var(--bg-2);
}

.board-tonal .mk.tonal {
  opacity: 0.12;
}

.board-knock {
  background: #15171a;
  --dark: #15171a;
}

.board-plate {
  grid-column: span 2;
  background: linear-gradient(135deg, #3a3e44, #1c1f23);
}

.nameplate {
  align-self: center;
  justify-self: center;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.3rem;
  background: linear-gradient(180deg, #e9e6df, #cfcac1);
  color: #1b1d20;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 6px 16px rgba(0, 0, 0, 0.5);
  --mk-cut: #dcd8d0;
}

.np-mark .mk {
  width: 46px;
  height: 46px;
}

.nameplate b {
  display: block;
  letter-spacing: 0.18em;
  font-size: 1rem;
}

.nameplate small {
  font-size: 0.72rem;
  color: #4d5056;
}

.board-icons {
  background: var(--surface);
}

.icons-row {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  justify-content: center;
}

.icons-row span .mk {
  width: var(--s);
  height: var(--s);
}

/* ---------- Футер, мобильная панель ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
  padding: clamp(3rem, 7vw, 5rem) 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-emboss {
  position: absolute;
  right: -5vw;
  top: -8vw;
  width: min(560px, 70vw);
  aspect-ratio: 1;
  pointer-events: none;
}

.footer-emboss .mk {
  width: 100%;
  height: 100%;
}

.footer-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  color: var(--on-dark-muted);
  max-width: 44ch;
  margin-top: 1.2rem;
}

.footer-phones {
  display: grid;
  gap: 0.7rem;
}

.footer-phones a {
  text-decoration: none;
  display: grid;
}

.footer-phones b {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.footer-phones small {
  color: var(--on-dark-muted);
  font-size: 0.8rem;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2.5rem var(--pad);
}

.footer-h {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  color: #cfccc6;
  font-size: 0.95rem;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  color: #fff;
}

.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(var(--mobile-bar-h, 0px) + 1rem);
  z-index: 80;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 720px;
  margin: 0 auto;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(21, 23, 26, 0.14);
}

.cookie-bar p {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.cookie-bar a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar .btn {
  flex: none;
  min-height: 40px;
  padding: 0.45rem 1rem;
}

@media (min-width: 981px) {
  .cookie-bar {
    bottom: 1.25rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 2rem));
  }
}

.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: var(--on-dark-muted);
}

.footer-made {
  flex: 1 0 100%;
  margin: 0.15rem 0 0;
  text-align: center;
  font-size: 0.75rem;
}

.footer-made a {
  color: inherit;
  text-decoration: none;
}

.footer-made a:hover {
  color: #fff;
}

.mobile-bar {
  display: none;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), fill 0.5s, stroke 0.5s !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {

  .header-phone,
  .site-header .lk-text small {
    display: none;
  }

  .header-inner {
    gap: 1rem;
  }

  .nav a {
    padding: 0.5rem 0.6rem;
    font-size: 0.92rem;
  }

  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .roles {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 1rem;
  }

  .brand-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 64px;
  }

  .site-header.is-scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bg);
  }

  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0.75rem var(--pad) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    z-index: 80;
  }

  .nav a,
  .nav .msg-link {
    padding: 0.9rem 0.25rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    font-weight: 600;
  }

  .nav a[aria-current="page"]::after {
    display: none;
  }

  .nav-mobile-only {
    display: block;
  }

  .header-actions {
    margin-left: auto;
  }

  .quick-grid,
  .cta-grid,
  .product-layout,
  .product-details,
  .calc-panel,
  .tkp-layout,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .buy,
  .calc-result {
    position: static;
  }

  .hero-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-facts div:nth-child(3) {
    border-left: 0;
  }

  .hero-facts div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .ind-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 720px) {
  body {
    font-size: 1rem;
    padding-bottom: 64px;
  }

  .header-cta {
    display: none;
  }

  .footer-phones .msg-link,
  .cta-contacts li:has(.msg-link),
  .buy-reach {
    display: none;
  }

  .page-home .mobile-bar {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .mobile-bar a[href*="/tkp"] {
    display: none;
  }

  .toast {
    bottom: 76px;
  }

  .lockup .mk {
    width: 32px;
    height: 32px;
  }

  .lk-text b {
    font-size: 1.1rem;
  }

  .lk-text small {
    display: none;
  }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .cat-card:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .cat-card:first-child .cat-media {
    aspect-ratio: 16 / 10;
  }

  .cat-body {
    padding: 0.75rem 0.8rem 0.9rem;
  }

  .cat-body b {
    font-size: 0.98rem;
  }

  .cat-meta {
    font-size: 0.78rem;
  }

  .cat-card:first-child .cat-body b {
    font-size: 1.2rem;
  }

  .cat-body small {
    display: none;
  }

  .cat-cta .cat-body small {
    display: block;
  }

  .cat-cta .cat-body {
    padding: 2.2rem 1rem 1rem;
  }

  .cat-cta::before {
    top: 1rem;
    left: 1rem;
  }

  .roles,
  .steps,
  .ind-list,
  .contacts-grid,
  .info-grid,
  .brand-board {
    grid-template-columns: 1fr;
  }

  .board-plate {
    grid-column: auto;
  }

  .form-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .hero-shot {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .hero-shot-item {
    border-radius: var(--radius);
  }

  .hero-shot-item span {
    padding: 0.6rem 0.75rem 0.7rem;
    font-size: 0.85rem;
  }

  .card-body {
    padding: 0.7rem 0.75rem 0.2rem;
  }

  .card-body h3 {
    font-size: 0.92rem;
  }

  .card-spec {
    font-size: 0.78rem;
  }

  .card-foot {
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 0.75rem 0.8rem;
  }

  .card-foot .price {
    white-space: normal;
    font-size: 0.95rem;
  }

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

  .tkp-row {
    grid-template-columns: 1fr auto;
  }

  .tkp-row .price {
    grid-column: 1;
    text-align: left;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-bar a,
  .mobile-bar button {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    background: transparent;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-bar a:first-child {
    color: var(--accent);
  }

  .mobile-bar [data-tkp-count] {
    background: var(--accent);
    color: #fff;
  }
}

.video-groups {
  display: grid;
  gap: 2.2rem;
}

.video-groups h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.video-links {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .video-links {
    grid-template-columns: 1fr 1fr;
  }
}

.video-links a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.4rem;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  line-height: 1.35;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vplay {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 2px rgba(21, 23, 26, 0.16);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.vplay svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  display: block;
  fill: currentColor;
}

.vplay-sm {
  width: 28px;
  height: 28px;
  box-shadow: none;
}

.vplay-sm svg {
  width: 13px;
  height: 13px;
}

.video-links a:hover {
  border-color: transparent;
  box-shadow: var(--shadow-1);
}

.video-links .vplay {
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0.42rem 0.55rem;
  border-radius: 7px;
  background: #111318;
  color: #fff;
  box-shadow: none;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.video-links a {
  min-height: 3.6rem;
}

.video-links a:hover .vplay {
  background: #111318;
  color: #fff;
  transform: none;
}
