/* ============================================================
   AVTORAMKI MD — winter edition
   Visual layer: deep winter hero, cream paper, soft green accent.
   Loaded after theme.css / redesign.css / constructor.css.
   ============================================================ */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable.woff2') format('woff2');
}

:root {
  --page-width: 1200px;
  --header-height: 58px;
  --paper: #f4f4f2;
  --paper-soft: #ececea;
  --paper-deep: #e3e3df;
  --surface: #fbfbf9;
  --surface-2: #ffffff;
  --ink: #1b1c1a;
  --heading: #242522;
  --muted: #626460;
  --muted-soft: #757771;
  --line: #e1e1dc;
  --line-strong: #cfd0c9;
  --accent: #86bf95;
  --accent-deep: #4f8d62;
  --accent-ink: #2f5f3d;
  --accent-soft: #e1eee4;
  --accent-wash: #f0f7f1;
  --night: #0a0b0c;
  --night-2: #111314;
  --night-3: #181a1b;
  --white-soft: #f0f0ee;
  --radius-card: 20px;
  --radius-btn: 14px;
  --radius-header: 16px;
  --shadow-card: 0 24px 60px -42px rgba(0, 0, 0, .3);
  --shadow-float: 0 30px 90px -48px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.22, .7, .22, 1);
  --font-body: 'Inter Variable', 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'Inter Variable', 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-display: 'Inter Variable', 'Inter', 'Segoe UI', Arial, sans-serif;
}

html {
  background: var(--paper);
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, .22) transparent;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(0, 0, 0, .2); }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, .34); }
::-webkit-scrollbar-corner { background: transparent; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html { -webkit-user-select: none; user-select: none; }

input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

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

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

a { color: inherit; }

button, input, select, textarea { font-family: var(--font-body); }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 560;
  letter-spacing: -.045em;
  line-height: 1.02;
  color: var(--heading);
  text-wrap: balance;
}

p { margin: 0; }

.page-width {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.mono {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  margin: 0;
  border-radius: 50%;
  background: var(--accent-deep);
  flex: 0 0 6px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1;
}

.kicker svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--accent-deep); }

.winter-title {
  max-width: 15ch;
  margin: 0 0 18px;
  font-size: clamp(40px, 5.3vw, 64px);
  font-weight: 520;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--heading);
}

.winter-lead {
  max-width: 54ch;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(134, 191, 149, .16);
  flex: 0 0 6px;
}

@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pulse-dot 2.8s ease-in-out infinite; }
  @keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(134, 191, 149, .12); }
    50% { box-shadow: 0 0 0 7px rgba(134, 191, 149, .03); }
  }
}

/* ---------- buttons ---------- */

.button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}

.button:hover, .btn:hover { transform: translateY(-1px); }

.button:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

.button--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.button--primary:hover { background: #000; border-color: #000; }

.button--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px -16px rgba(79, 141, 98, .7);
}

.button--accent:hover { background: #79b489; border-color: #79b489; }

.button--secondary {
  background: #e5e5e1;
  border-color: #e5e5e1;
  color: #4a4a48;
}

.button--secondary:hover { background: #dcdcd7; border-color: #dcdcd7; }

.button--soft {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent-ink);
}

.button--soft:hover { background: #d5e7da; border-color: #d5e7da; }

.button--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

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

.button--full-width { width: 100%; }

.button__arrow { display: inline-block; transition: transform .25s var(--ease); }
.button:hover .button__arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 560;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}

.link-arrow:hover { border-color: var(--ink); gap: 12px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 500;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 12px; }

/* ---------- fixed winter header ---------- */

.site-header {
  --control-bg: rgba(255, 255, 255, .05);
  --control-border: rgba(255, 255, 255, .09);
  --control-hover: rgba(255, 255, 255, .1);
  --control-hover-border: rgba(255, 255, 255, .18);
  --control-ink: #fff;
  --control-muted: rgba(255, 255, 255, .56);
  --control-thumb: rgba(245, 245, 243, .92);
  --control-thumb-ink: #1b1c1b;
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 120;
  width: min(calc(100% - 32px), 980px);
  height: var(--header-height);
  transform: translateX(-50%);
  background: rgba(17, 18, 19, .58);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-header);
  color: #fff;
  box-shadow: 0 18px 48px -32px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(24px) saturate(1.08);
  backdrop-filter: blur(24px) saturate(1.08);
  transition: top .3s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}

.site-header.is-solid,
.site-header.is-menu-open {
  background: rgba(244, 244, 242, .88);
  border-color: rgba(28, 28, 26, .08);
  color: var(--ink);
  box-shadow: 0 18px 48px -34px rgba(12, 26, 22, .4);
}

.site-header.is-menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0 18px 0 20px;
}

.site-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: currentColor;
  text-decoration: none;
  flex: 0 0 auto;
}

.site-brand__mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .09);
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}

.site-brand__mark svg { width: 17px; height: 17px; }

.site-header.is-solid .site-brand__mark,
.site-header.is-menu-open .site-brand__mark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}


/* BMW 3/4 Series logo next to the wordmark. */
.site-brand .site-brand__mark--car {
  display: block;
  position: relative;
  width: 84px;
  height: 42px;
  flex: 0 0 84px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  overflow: visible;
  perspective: 180px;
}
.site-brand__car-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 62%;
  transition: opacity .3s var(--ease), filter .45s var(--ease);
  will-change: opacity, transform;
}
html[data-theme="dark"] .site-brand__car-img--white,
html[data-theme="light"] .site-brand__car-img--black { opacity: 1; }

html[data-theme="dark"] .site-brand__car-img--white {
  filter: drop-shadow(0 7px 9px rgba(0, 0, 0, .38));
}
.site-header.is-solid .site-brand .site-brand__mark--car,
.site-header.is-menu-open .site-brand .site-brand__mark--car,
html[data-theme="dark"] .site-header.is-solid .site-brand .site-brand__mark--car,
html[data-theme="dark"] .site-header.is-menu-open .site-brand .site-brand__mark--car {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: inherit;
}
.site-brand__mark--car.is-switching .site-brand__car-img {
  animation: brand-car-swap .72s var(--ease) both;
}
@keyframes brand-car-swap {
  0%, 100% { transform: rotateY(0deg) scale(1); }
  45% { transform: rotateY(86deg) scale(.94); }
  55% { transform: rotateY(-86deg) scale(.94); }
}
@media (max-width: 760px) {
  .site-brand .site-brand__mark--car { width: 56px; height: 32px; flex-basis: 56px; }
}

.site-brand__text {
  font-size: 15px;
  font-weight: 640;
  line-height: 1;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.site-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b7b7b9;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.1;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}

.site-nav a::after,
.site-nav a.is-active::before { display: none; }

.site-nav__icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  align-items: center;
  justify-content: center;
  opacity: .85;
  transition: opacity .25s var(--ease);
}

.site-nav__icon svg { display: block; width: 15px; height: 15px; }

.site-nav a:hover { color: #fff; }
.site-nav a:hover .site-nav__icon { opacity: 1; }
.site-nav a.is-active { color: #fff; }
.site-nav a.is-active .site-nav__icon { opacity: 1; }

.site-header.is-solid .site-nav a,
.site-header.is-menu-open .site-nav a { color: #71716f; }
.site-header.is-solid .site-nav a:hover,
.site-header.is-menu-open .site-nav a:hover { color: var(--ink); }
.site-header.is-solid .site-nav a.is-active,
.site-header.is-menu-open .site-nav a.is-active { color: var(--ink); }

.site-header__actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.theme-switch,
.lang-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: stretch;
  height: 28px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: var(--control-bg);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

.theme-switch { width: 54px; }
.lang-switch { width: 70px; }
.theme-switch:hover,
.lang-switch:hover { border-color: var(--control-hover-border); }

.theme-switch__thumb,
.lang-switch__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  border-radius: 999px;
  background: var(--control-thumb);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .13);
  pointer-events: none;
  transition: transform .24s var(--ease), background .3s var(--ease);
}

html[data-theme="dark"] .theme-switch__thumb { transform: translateX(100%); }
html[lang="ru"] .lang-switch__thumb { transform: translateX(100%); }
html[data-theme="dark"] .theme-switch__thumb,
html[data-theme="dark"] .lang-switch__thumb {
  box-shadow: 0 1px 2px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .14);
}

.theme-switch__option,
.lang-switch button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 1 1 50%;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--control-muted);
  font-family: var(--font-body);
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .22s var(--ease);
}

.theme-switch__option svg { display: block; width: 13px; height: 13px; }
.lang-switch button { flex-basis: 0; min-width: 0; font-size: 9.5px; font-weight: 650; letter-spacing: .07em; }
.lang-switch button + button { border-left: 0; }
.lang-switch button.is-active { border-radius: 999px; }
.theme-switch__option:hover,
.lang-switch button:hover { color: var(--control-ink); }
.theme-switch__option[aria-pressed="true"],
.theme-switch__option[aria-pressed="true"]:hover,
.lang-switch button.is-active,
.lang-switch button.is-active:hover { color: var(--control-thumb-ink); }

.theme-switch__option:focus-visible,
.lang-switch button:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--control-ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.header-cart:hover {
  background: var(--control-hover);
  border-color: var(--control-hover-border);
}

.header-cart svg { width: 15px; height: 15px; flex: 0 0 15px; }
.header-cart__label { display: none; }

.site-header.is-solid,
.site-header.is-menu-open {
  --control-bg: rgba(28, 28, 26, .05);
  --control-border: rgba(28, 28, 26, .12);
  --control-hover: rgba(28, 28, 26, .06);
  --control-hover-border: rgba(28, 28, 26, .2);
  --control-ink: var(--ink);
  --control-muted: var(--muted);
  --control-thumb: #fff;
  --control-thumb-ink: #1b1c1b;
}

html[data-theme="dark"] .site-header {
  --control-bg: rgba(255, 255, 255, .06);
  --control-border: rgba(255, 255, 255, .12);
  --control-hover: rgba(255, 255, 255, .1);
  --control-hover-border: rgba(255, 255, 255, .2);
  --control-ink: var(--ink);
  --control-muted: var(--muted);
  --control-thumb: rgba(44, 45, 44, .9);
  --control-thumb-ink: var(--ink);
}

html[data-theme="dark"] .site-header.is-solid,
html[data-theme="dark"] .site-header.is-menu-open {
  --control-bg: rgba(255, 255, 255, .07);
  --control-border: rgba(255, 255, 255, .12);
  --control-hover: rgba(255, 255, 255, .1);
  --control-hover-border: rgba(255, 255, 255, .2);
  --control-thumb: rgba(38, 39, 38, .94);
  --control-thumb-ink: var(--ink);
}

.site-nav__lang { display: none; }

.cart-count {
  display: grid;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  place-items: center;
  border-radius: 99px;
  background: var(--accent);
  color: #07130c;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0;
}

.cart-count[hidden] { display: none; }

.menu-toggle {
  display: none;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--control-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}

.menu-toggle:hover {
  background: var(--control-bg);
  border-color: var(--control-border);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 15px;
  height: 1.5px;
  margin: 0 auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .25s var(--ease), background .25s var(--ease);
}

.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; margin: 0; }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }
.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle.is-open span::after { transform: translateY(-5px) rotate(-45deg); }


/* ---------- snowfall layer ---------- */

/* Snow is a quiet page texture, not a screen overlay: it sits above the
   page background but behind every content surface, and keeps its viewport
   anchoring stable while mobile browser chrome opens and closes. */
.snowfall {
  position: fixed !important;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
  backface-visibility: hidden;
}

.snowfall canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

body > main,
body > [data-site-footer],
.site-footer { position: relative; z-index: 2; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 140;
  width: 100%;
  height: 2px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent) 62%, #cfe6d4);
  transition: opacity .25s ease;
}
.scroll-progress.is-visible { opacity: 1; }
html[data-theme="dark"] .scroll-progress { background: linear-gradient(90deg, var(--accent), #a0d6ad 62%, #d8eddd); }
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none; } }

/* ---------- home hero ---------- */

.winter-hero {
  position: relative;
  display: flex;
  min-height: clamp(560px, 68svh, 680px);
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 116px 0 64px;
  background: var(--night);
  color: #fff;
  isolation: isolate;
}

.winter-hero__bg { position: absolute; inset: 0; z-index: -3; }
.winter-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 74%;
  filter: saturate(.72) brightness(.72) contrast(1.04);
  transform: scale(1.015);
}

.winter-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(75% 55% at 50% 36%, rgba(10, 11, 12, .1) 0%, rgba(10, 11, 12, .44) 58%, rgba(10, 11, 12, .88) 100%),
    linear-gradient(180deg, rgba(10, 11, 12, .74) 0%, rgba(10, 11, 12, .2) 32%, rgba(10, 11, 12, .42) 66%, rgba(10, 11, 12, .96) 100%);
}

.winter-hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.winter-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 3.2vh;
  padding-bottom: 0;
  text-align: center;
}


.winter-hero__title {
  max-width: 12ch;
  margin: 17px 0 16px;
  color: #fff;
  font-size: clamp(44px, 6.4vw, 82px);
  font-weight: 520;
  line-height: 1.06;
  letter-spacing: -.03em;
  text-shadow: 0 3px 32px rgba(0, 0, 0, .18);
}

.winter-hero__title span { display: block; }
.winter-hero__title span + span { color: #f4f5f4; }

.winter-hero__lead {
  max-width: 480px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -.005em;
  text-wrap: pretty;
}

.winter-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}

.button--hero-light {
  min-height: 45px;
  padding: 0 20px;
  background: var(--white-soft);
  border-color: var(--white-soft);
  color: #292927;
  font-size: 14.5px;
}

.button--hero-light:hover { background: #fff; border-color: #fff; }

.button--hero-glass {
  min-height: 45px;
  padding: 0 20px;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 14.5px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.button--hero-glass:hover { background: rgba(255, 255, 255, .17); }

.winter-hero__specimen {
  position: relative;
  width: min(680px, 92%);
  margin: 34px auto 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05));
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.specimen__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 9px;
  color: rgba(255, 255, 255, .54);
  font-size: 9px;
  font-weight: 550;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.specimen__bar > span { display: inline-flex; align-items: center; gap: 7px; }

.specimen__stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1909 / 1140;
  border-radius: 15px;
  background:
    radial-gradient(80% 100% at 50% 10%, rgba(255, 255, 255, .92), rgba(225, 235, 236, .92) 58%, rgba(204, 220, 218, .94) 100%),
    #e8eeec;
  box-shadow: inset 0 0 0 1px rgba(12, 29, 38, .06);
}

.specimen__stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(53, 84, 96, .2) 0 1px, transparent 1.5px), radial-gradient(circle, rgba(53, 84, 96, .12) 0 1.4px, transparent 1.8px);
  background-position: 20px 26px, 92px 68px;
  background-size: 146px 146px, 228px 228px;
  opacity: .6;
  pointer-events: none;
}

.specimen__stage canvas,
.specimen__stage img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .5s var(--ease);
}

.specimen__stage canvas.is-ready, .specimen__stage img.is-ready { opacity: 1; }

.winter-hero__facts {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .55);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .02em;
}

.winter-hero__facts li { padding: 0 14px; border-left: 1px solid rgba(255, 255, 255, .17); line-height: 1.3; }
.winter-hero__facts li:first-child { border-left: 0; }

.winter-hero__edge {
  position: absolute;
  z-index: 4;
  right: -1px;
  bottom: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: 58px;
  pointer-events: none;
}

.winter-hero__edge path { fill: var(--paper); }
.winter-hero__edge .edge-soft { fill: #fff; opacity: .72; }

/* ---------- generic winter sections ---------- */

.winter-section { position: relative; padding: clamp(64px, 8vw, 108px) 0; }
.winter-section + .winter-section { border-top: 1px solid rgba(41, 41, 39, .06); }

.snow-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(61, 93, 110, .17) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(61, 93, 110, .1) 0 1.5px, transparent 1.9px),
    radial-gradient(circle, rgba(61, 93, 110, .08) 0 1px, transparent 1.3px);
  background-position: 28px 34px, 148px 96px, 76px 210px;
  background-size: 238px 238px, 354px 354px, 170px 170px;
  opacity: .7;
}

/* ---------- feature section ---------- */

.feature-section { padding-top: clamp(56px, 6.4vw, 86px); }

.feature__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5.5vw, 76px);
  align-items: center;
}

.feature__copy .winter-title { max-width: 12ch; }
.feature__copy .winter-lead { max-width: 42ch; }

.feature__actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.feature-panel {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background: linear-gradient(150deg, #102432, #0a1a25 72%);
  box-shadow: var(--shadow-card);
  color: #fff;
}

.feature-panel::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 62%;
  height: 65%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 191, 149, .18), transparent 68%);
  pointer-events: none;
}

.feature-panel__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 7px 11px;
  color: rgba(255, 255, 255, .48);
  font-size: 9px;
  font-weight: 550;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.live-pill { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .7); }

.feature-panel__stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1909 / 1140;
  border-radius: 16px;
  background:
    radial-gradient(80% 110% at 50% 6%, #fff, #e8efec 58%, #d2e1dd 100%);
  box-shadow: inset 0 0 0 1px rgba(12, 29, 38, .06);
}

.feature-panel__stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(53, 84, 96, .2) 0 1px, transparent 1.5px), radial-gradient(circle, rgba(53, 84, 96, .12) 0 1.3px, transparent 1.8px);
  background-position: 28px 34px, 112px 82px;
  background-size: 152px 152px, 258px 258px;
  opacity: .55;
  pointer-events: none;
}

.feature-panel__stage canvas, .feature-panel__stage img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s var(--ease); }
.feature-panel__stage canvas.is-ready, .feature-panel__stage img.is-ready { opacity: 1; }
.feature-panel__stage #hproBaseImgFeature { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 1; pointer-events: none; }
.feature-panel__stage noscript img { position: relative; opacity: 1; }

/* Brand-only plate run: white marks sit in the clean lower band of each frame. */
.feature-panel__stage .feature-brands {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s var(--ease);
}
.feature-panel__stage.is-brands .feature-brands { opacity: 1; }
.feature-panel__stage .feature-brand-slot {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36%;
  height: 4.7%;
  transform: translate(-50%, -50%);
}
.feature-panel__stage .feature-brand-slot--top { top: 40.88%; }
.feature-panel__stage .feature-brand-slot--bottom { top: 88.42%; }
.feature-panel__stage .feature-brand {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateY(1px) scale(.88);
  transition: opacity .28s var(--ease), transform .45s var(--ease);
}
.feature-panel__stage .feature-brand.is-active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .feature-panel__stage .feature-brand { transition: none; }
}

.feature-panel__foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding-top: 10px;
}

.feature-chip {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .45);
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: .01em;
}

.feature-chip b { display: block; margin-top: 3px; color: rgba(255, 255, 255, .88); font-size: 11px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- showcase ---------- */

.showcase { background: #f0f0ec; }
.showcase__head { max-width: 720px; margin: 0 auto; text-align: center; }
.showcase__head .winter-title { max-width: none; margin-left: auto; margin-right: auto; }
.showcase__head .winter-lead { margin-left: auto; margin-right: auto; }

.showcase__stage {
  position: relative;
  display: flex;
  min-height: 360px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 34px;
  padding: clamp(30px, 5.5vw, 72px);
  border: 1px solid #dfe6e4;
  border-radius: 26px;
  background:
    radial-gradient(80% 110% at 50% 0%, #fbfcfa 0%, #eaf1ef 48%, #d9e5e4 100%);
}

.showcase__stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(55, 91, 103, .18) 0 1px, transparent 1.5px), radial-gradient(circle, rgba(55, 91, 103, .1) 0 1.5px, transparent 1.9px);
  background-position: 20px 26px, 134px 104px;
  background-size: 190px 190px, 320px 320px;
  opacity: .65;
  pointer-events: none;
}

.showcase__stage::after {
  content: '';
  position: absolute;
  top: 18%;
  left: 50%;
  width: min(62%, 620px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 191, 149, .2), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.showcase__plate {
  position: relative;
  z-index: 1;
  width: min(760px, 92%);
  height: auto;
  filter: drop-shadow(0 26px 26px rgba(16, 37, 35, .24));
  transform: rotate(-1.4deg);
}

.showcase__glass {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: #4b6355;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.showcase__glass .live-dot { width: 5px; height: 5px; flex-basis: 5px; box-shadow: none; }

.showcase__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 18px; }

.showcase__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.showcase__chips li { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .55); color: var(--muted); font-size: 10.5px; line-height: 1; }

/* ---------- pricing ---------- */

.pricing-section { background: #efefeb; }
.pricing__head { max-width: 680px; margin: 0 auto 34px; text-align: center; }
.pricing__head .winter-title { max-width: none; margin-left: auto; margin-right: auto; }
.pricing__head .winter-lead { margin-left: auto; margin-right: auto; }

.pricing__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fbfbf9;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }

.price-card--featured { border-color: rgba(101, 158, 116, .68); box-shadow: 0 0 0 1px rgba(134, 191, 149, .14), 0 22px 44px -38px rgba(61, 113, 75, .55); }
.price-card--featured:hover { box-shadow: 0 0 0 1px rgba(134, 191, 149, .22), 0 26px 54px -34px rgba(61, 113, 75, .55); }

.price-card__badge {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
}

.price-card__art {
  position: relative;
  display: flex;
  height: 214px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(41, 41, 39, .06);
  background: radial-gradient(75% 120% at 50% 0%, #fafcf9, #e5eeea 55%, #d3e2dd 100%);
}

.price-card--custom .price-card__art { background: radial-gradient(75% 120% at 50% 0%, #f8fcf8, #e5efe5 55%, #d3e5d6 100%); }

.price-card__art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(50, 85, 82, .19) 0 1px, transparent 1.4px), radial-gradient(circle, rgba(50, 85, 82, .1) 0 1.3px, transparent 1.7px);
  background-position: 18px 18px, 76px 46px;
  background-size: 124px 124px, 208px 208px;
  opacity: .55;
}

.price-card__art img { position: relative; z-index: 1; width: auto; max-width: 92%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(19, 43, 38, .2)); transform: none; transition: transform .55s var(--ease); }
.price-card:hover .price-card__art img { transform: scale(1.025); }

.price-card__body { display: flex; flex: 1; flex-direction: column; padding: 21px 21px 20px; }

.price-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.price-card h3 { margin: 0 0 5px; font-size: 23px; font-weight: 570; letter-spacing: -.035em; }
.price-card__meta { color: var(--muted-soft); font-size: 10.5px; line-height: 1.4; }

.price-card__price { flex: 0 0 auto; text-align: right; }
.price-card__price small { display: block; margin-bottom: 2px; color: var(--muted-soft); font-size: 9px; line-height: 1; }
.price-card__price strong { display: block; font-size: 23px; font-weight: 600; line-height: 1; letter-spacing: -.045em; color: var(--ink); white-space: nowrap; }
.price-card__price strong span { font-size: 12px; font-weight: 500; letter-spacing: 0; }

.price-card__desc { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.price-card__features { display: grid; gap: 9px; margin: 16px 0 20px; padding: 16px 0 0; border-top: 1px dashed var(--line); list-style: none; }
.price-card__features li { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.price-check { width: 14px; height: 14px; margin-top: 1px; flex: 0 0 14px; color: var(--accent-deep); }

.price-card__body .button { width: 100%; margin-top: auto; }

/* ---------- help ---------- */

.help-section { padding-top: clamp(56px, 7vw, 92px); padding-bottom: clamp(56px, 7vw, 92px); }

.help-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 74px);
  border-radius: 28px;
  background: #0a0b0c;
  color: #fff;
  box-shadow: var(--shadow-float);
}

.help-card__bg { position: absolute; inset: 0; background: url('../img/winter/hero-winter.jpg') center 62% / cover no-repeat; opacity: .42; filter: saturate(.65) brightness(.76); transform: scale(1.02); }
.help-card__veil { position: absolute; inset: 0; background: radial-gradient(70% 100% at 20% 50%, rgba(8, 9, 10, .74) 0%, rgba(8, 9, 10, .42) 56%, rgba(8, 9, 10, .76) 100%), linear-gradient(90deg, rgba(8, 9, 10, .74), rgba(8, 9, 10, .1)); }

.help-card__content { position: relative; z-index: 1; max-width: 590px; }
.help-card .kicker { color: rgba(255, 255, 255, .6); }
.help-card .kicker svg { color: #c8e6d0; }
.help-card__title { margin: 0 0 13px; color: #fff; font-size: clamp(38px, 5.2vw, 62px); font-weight: 520; line-height: 1.05; letter-spacing: -.03em; }
.help-card__lead { max-width: 46ch; margin: 0 0 24px; color: rgba(255, 255, 255, .68); font-size: 14.5px; line-height: 1.6; }
.help-card__actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.help-card .button--accent { background: var(--accent); border-color: var(--accent); color: #163a24; font-weight: 550; }
.help-card .button--accent:hover { background: #9acba6; border-color: #9acba6; }
.help-card .button--hero-glass { color: #fff; }

.help-card__flake { position: absolute; z-index: 1; right: clamp(24px, 7vw, 90px); bottom: clamp(20px, 5vw, 56px); width: clamp(80px, 14vw, 160px); height: auto; color: rgba(255, 255, 255, .18); pointer-events: none; }

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding: 30px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.site-footer > .page-width { container-type: inline-size; }

.footer-wordmark {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin: 0 0 28px;
  color: var(--ink);
  font-size: clamp(56px, 11.6vw, 138px);
  font-size: 17.2cqw;
  font-weight: 850;
  line-height: .78;
  letter-spacing: -.085em;
  user-select: none;
}

.footer-wordmark__dot { display: inline-block; flex: 0 0 auto; width: .13em; height: .13em; margin-left: .04em; border-radius: 50%; background: var(--accent); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr 1fr;
  gap: 36px;
  padding: 26px 0 30px;
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line-strong);
}

.footer-brand p { max-width: 38ch; margin: 0 0 18px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.footer-brand .footer-tagline { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 11.5px; font-weight: 550; }
.footer-brand .footer-tagline .live-dot { width: 5px; height: 5px; flex-basis: 5px; box-shadow: none; }

.footer-col h4 { margin: 0 0 13px; color: var(--muted-soft); font-size: 9.5px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.footer-col a { display: block; width: fit-content; margin: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.4; text-decoration: none; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--ink); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 18px; color: var(--muted-soft); font-size: 9.5px; line-height: 1.4; letter-spacing: .01em; }
.footer-bottom span { display: inline-flex; align-items: center; gap: 7px; }
.footer-bottom .footer-mde { color: var(--muted); }

/* ---------- reveal motion ---------- */

html.lang-enter body { animation: site-lang-in .52s var(--ease) both; }
html.lang-leaving body { animation: site-lang-out .22s ease both; pointer-events: none; }

@keyframes site-lang-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes site-lang-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html.lang-leaving body,
  html.lang-enter body { animation: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .8s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .reveal-ready [data-reveal="fade"] { transform: none; }
  .reveal-ready [data-reveal="left"] { transform: translateX(-28px); }
  .reveal-ready [data-reveal="right"] { transform: translateX(28px); }
  .reveal-ready [data-reveal="scale"] { transform: translateY(16px) scale(.985); }
  .reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
  .reveal-ready [data-reveal-delay='1'] { --reveal-delay: 60ms; }
  .reveal-ready [data-reveal-delay='2'] { --reveal-delay: 120ms; }
  .reveal-ready [data-reveal-delay='3'] { --reveal-delay: 180ms; }

  .winter-hero__inner > * { animation: hero-in .9s var(--ease) both; }
  .no-intro .winter-hero__inner > * { animation: none; }
  .winter-hero__inner > *:nth-child(2) { animation-delay: .08s; }
  .winter-hero__inner > *:nth-child(3) { animation-delay: .16s; }
  .winter-hero__inner > *:nth-child(4) { animation-delay: .22s; }
  .winter-hero__inner > *:nth-child(5) { animation-delay: .3s; }

  @keyframes hero-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}

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

/* ---------- shared inner-page anchors ---------- */

body:not(.page-home) main { padding-top: 104px; padding-bottom: 70px; }
body.page-constructor main { padding-top: 104px; padding-bottom: 70px; }

/* ---------- inner page heroes ---------- */

.page-hero {
  width: 100%;
  max-width: none;
  position: relative;
  overflow: hidden;
  margin: 0 0 30px;
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 28px;
  background: linear-gradient(145deg, #17191a, #121415 62%, #0e1011);
  color: #fff;
  box-shadow: var(--shadow-float);
  isolation: isolate;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .17) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, .1) 0 1.5px, transparent 1.9px);
  background-position: 30px 34px, 168px 90px;
  background-size: 262px 262px, 390px 390px;
  opacity: .65;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -8%;
  bottom: -55%;
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 191, 149, .2), transparent 68%);
  pointer-events: none;
}

.page-hero > * { position: relative; z-index: 1; }

.page-hero .eyebrow {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
}

.page-hero .eyebrow::before { background: var(--accent); }

.page-hero h1 {
  max-width: 15ch;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 560;
  line-height: 1.01;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.page-hero p {
  max-width: 51ch;
  margin: 0;
  color: rgba(255, 255, 255, .65);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

body:not(.page-home) main.page-width { padding-bottom: 70px; }

/* ---------- catalog ---------- */

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  background: none;
}

.filter-chip {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfbf9;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.filter-chip:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-1px); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.catalog-search {
  width: min(270px, 100%);
  min-height: 40px;
  margin: 0 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfbf9;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12.5px;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.catalog-search::placeholder { color: var(--muted-soft); }
.catalog-search:focus { border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(134, 191, 149, .16); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.related-products .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fbfbf9;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.product-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 50px -36px rgba(15, 39, 31, .55); }

.product-card__media {
  position: relative;
  display: flex;
  overflow: hidden;
  aspect-ratio: 2.0;
  align-items: center;
  justify-content: center;
  padding: 25px 18px;
  border: 0;
  border-radius: 13px;
  background: radial-gradient(75% 110% at 50% 0%, #fafcf9, #e9f0ec 55%, #d9e6e1 100%);
  text-decoration: none;
}

.product-card__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(49, 83, 77, .18) 0 1px, transparent 1.4px), radial-gradient(circle, rgba(49, 83, 77, .1) 0 1.2px, transparent 1.6px);
  background-position: 16px 20px, 76px 48px;
  background-size: 126px 126px, 206px 206px;
  opacity: .6;
  pointer-events: none;
}

.product-card__media img { position: relative; z-index: 1; left: 28%; flex: 0 0 auto; width: 160%; max-width: none; height: auto; object-fit: contain; transition: transform .5s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.035) rotate(-1deg); }

.product-card__badge {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 11px;
  max-width: calc(100% - 22px);
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 7px;
  background: rgba(255, 255, 255, .72);
  color: #476253;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.product-card__body { display: flex; flex: 1; flex-direction: column; padding: 15px 8px 8px; }
.product-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-card__title { margin: 0; font-size: 20px; font-weight: 560; line-height: 1.1; letter-spacing: -.038em; }
.product-card__title a { color: var(--ink); text-decoration: none; }
.product-card__price { flex: 0 0 auto; color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.product-card__short { margin: 7px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.product-card__specs { margin: 5px 0 0; color: var(--muted-soft); font-size: 10.5px; line-height: 1.45; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 15px; border-top: 1px dashed var(--line); }
.product-card__price { font-size: 14px; }
.product-card__actions { display: flex; align-items: center; gap: 12px; }
.product-card__link { color: var(--accent-ink); font-size: 11px; font-weight: 600; line-height: 1; text-decoration: none; }
.product-card__link::after { content: ' →'; }
.product-card__add { display: grid; width: 31px; height: 31px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); cursor: pointer; transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.product-card__add:hover { transform: translateY(-1px); border-color: var(--accent); background: var(--accent); color: #17341f; }
.product-card__add.is-busy { opacity: .45; pointer-events: none; }

.product-breadcrumb { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--muted-soft); font-size: 11px; line-height: 1.4; }
.product-breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.product-breadcrumb a:hover { color: var(--ink); }
.product-breadcrumb span:last-child { max-width: 50ch; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }

.catalog-empty {
  grid-column: 1 / -1;
  padding: 46px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, .5);
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

/* ---------- product detail ---------- */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: start;
  margin: 5px 0 0;
}

.product-gallery {
  position: sticky;
  top: 94px;
  display: flex;
  overflow: hidden;
  aspect-ratio: 1.12;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4.5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: radial-gradient(78% 104% at 50% 0%, #fcfdfb, #e9f0ec 58%, #d8e5e0 100%);
}

.product-gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(50, 83, 77, .17) 0 1px, transparent 1.4px), radial-gradient(circle, rgba(50, 83, 77, .1) 0 1.3px, transparent 1.7px);
  background-position: 24px 26px, 120px 78px;
  background-size: 176px 176px, 286px 286px;
  opacity: .6;
  pointer-events: none;
}

.product-gallery img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 20px 22px rgba(17, 42, 34, .2));
}

.product-info { padding-top: 4px; }
.product-info .eyebrow { margin-bottom: 11px; }
.product-info h1 { max-width: 15ch; margin: 0 0 15px; font-size: clamp(38px, 4.6vw, 58px); font-weight: 520; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }

.product-price {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0 0 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-price #productPrice { color: var(--ink); font-size: 27px; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.product-price small { margin-bottom: 2px; color: var(--muted-soft); font-size: 10px; line-height: 1.3; }

.product-description { max-width: 48ch; margin: 0 0 12px; color: var(--muted); font-size: 14.5px; line-height: 1.62; }
.product-meta { margin: 0 0 21px; color: var(--muted-soft); font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: .02em; }

.product-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.product-actions .button { flex: 1 1 170px; }
.product-actions .button--primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 14px 28px -18px rgba(55, 111, 72, .8); }
.product-actions .button--primary:hover { background: #79b489; border-color: #79b489; }
.product-actions .button--cart { background: #fff; border-color: var(--line); color: var(--ink); }
.product-actions .button--cart:hover { border-color: var(--line-strong); }

.product-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .52);
}

.product-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 7px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: -.005em;
}

.product-benefit img { width: 18px; height: 18px; flex: 0 0 18px; object-fit: contain; opacity: .7; }

.product-details { margin-top: 16px; }
.product-details details { border-top: 1px solid var(--line); }
.product-details details:last-child { border-bottom: 1px solid var(--line); }
.product-details summary { position: relative; padding: 15px 26px 15px 0; color: var(--ink); font-size: 13px; font-weight: 550; line-height: 1.3; cursor: pointer; list-style: none; }
.product-details summary::-webkit-details-marker { display: none; }
.product-details summary::after { content: '+'; position: absolute; top: 50%; right: 2px; color: var(--muted-soft); font-size: 18px; font-weight: 300; line-height: 1; transform: translateY(-50%); transition: transform .25s var(--ease); }
.product-details details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.product-details details p { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.product-details details p:last-child { margin-bottom: 15px; }

.related-products { margin-top: clamp(48px, 7vw, 76px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 20px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 3.8vw, 42px); font-weight: 520; line-height: 1.05; letter-spacing: -.03em; }

/* ---------- contacts ---------- */

.contacts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 88px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfbf9;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.contact-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 22px 38px -32px rgba(14, 38, 29, .5); }

.contact-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.contact-card__icon svg { display: block; width: 23px; height: 23px; }

.contact-card h3 { margin: 0 0 3px; color: var(--ink); font-size: 20px; font-weight: 560; line-height: 1.15; letter-spacing: -.035em; }
.contact-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; word-break: break-word; }

.contact-note {
  position: relative;
  display: flex;
  max-width: none;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  overflow: hidden;
  margin-top: 16px;
  padding: clamp(25px, 4vw, 38px);
  border-radius: 20px;
  background: linear-gradient(145deg, #0c1e2c, #0a1721);
  color: #fff;
  isolation: isolate;
}

.contact-note::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .13) 0 1px, transparent 1.4px), radial-gradient(circle, rgba(255, 255, 255, .08) 0 1.2px, transparent 1.6px);
  background-position: 22px 22px, 109px 49px;
  background-size: 190px 190px, 286px 286px;
  opacity: .7;
}

.contact-note::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -5%;
  bottom: -50%;
  width: 39%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 191, 149, .22), transparent 68%);
}

.contact-note__body { max-width: 68ch; }
.contact-note .button { flex: 0 0 auto; }
.contact-note h3 { margin: 0 0 8px; color: #fff; font-size: clamp(23px, 3vw, 30px); font-weight: 560; line-height: 1.1; letter-spacing: -.04em; }
.contact-note p { max-width: 58ch; margin: 0 0 8px; color: rgba(255, 255, 255, .62); font-size: 12.5px; line-height: 1.55; }
.contact-note__hours { margin: 12px 0 0 !important; color: rgba(255, 255, 255, .5) !important; font-size: 11px !important; }
.contact-note__hours strong { color: rgba(255, 255, 255, .82); font-weight: 550; }

/* ---------- delivery ---------- */

.delivery-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfbf9;
}

.delivery-step { padding: 22px 20px; border-left: 1px solid var(--line); }
.delivery-step:first-child { border-left: 0; }
.delivery-step__num { display: block; margin-bottom: 19px; color: var(--accent-deep); font-size: 11px; font-weight: 650; line-height: 1; letter-spacing: .09em; }
.delivery-step h3 { margin: 0 0 8px; color: var(--ink); font-size: 17px; font-weight: 550; line-height: 1.2; letter-spacing: -.03em; }
.delivery-step p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; }

.delivery-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.delivery-info { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fbfbf9; }
.delivery-info h3 { margin: 0 0 8px; font-size: 19px; font-weight: 550; line-height: 1.2; letter-spacing: -.035em; }
.delivery-info p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

.delivery-faq { max-width: 960px; margin: 24px auto 0; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 20px; background: #fbfbf9; }
.delivery-faq h2 { margin: 0 0 18px; font-size: clamp(28px, 3.8vw, 38px); font-weight: 560; line-height: 1.06; letter-spacing: -.05em; }
.delivery-faq details { border-top: 1px solid var(--line); }
.delivery-faq details:last-child { border-bottom: 1px solid var(--line); }
.delivery-faq summary { position: relative; padding: 14px 26px 14px 0; color: var(--ink); font-size: 13px; font-weight: 550; line-height: 1.4; cursor: pointer; list-style: none; }
.delivery-faq summary::-webkit-details-marker { display: none; }
.delivery-faq summary::after { content: '+'; position: absolute; top: 50%; right: 2px; color: var(--muted-soft); font-size: 18px; font-weight: 300; line-height: 1; transform: translateY(-50%); transition: transform .25s var(--ease); }
.delivery-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.delivery-faq details p { max-width: 70ch; margin: 0 0 14px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* ---------- constructor shell ---------- */

.constructor-page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 112px 24px 70px; background: none; }

.constructor-page__head {
  position: relative;
  overflow: hidden;
  margin: 0 0 22px;
  padding: clamp(30px, 5.4vw, 58px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 28px;
  background: linear-gradient(145deg, #17191a, #121415 66%, #0e1011);
  color: #fff;
  box-shadow: var(--shadow-float);
  isolation: isolate;
}

.constructor-page__head::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .16) 0 1px, transparent 1.4px), radial-gradient(circle, rgba(255, 255, 255, .09) 0 1.3px, transparent 1.7px);
  background-position: 26px 28px, 142px 74px;
  background-size: 234px 234px, 342px 342px;
  opacity: .7;
}

.constructor-page__head .eyebrow { margin-bottom: 15px; color: rgba(255, 255, 255, .68); }
.constructor-page__head .eyebrow::before { background: var(--accent); }
.constructor-page__head h1 { max-width: 13ch; margin: 0 0 12px; color: #fff; font-size: clamp(40px, 5.4vw, 62px); font-weight: 560; line-height: 1.01; letter-spacing: -.055em; }
.constructor-page__head p { max-width: 51ch; margin: 0; color: rgba(255, 255, 255, .62); font-size: 14px; line-height: 1.6; }

#avto-constructor {
  --avto-ui-font: var(--font-body);
  --avto-panel-bg: #fbfbf9;
  --avto-bg-soft: #f1f1ed;
  --avto-brd: var(--line);
  --avto-brd-strong: var(--line-strong);
  --avto-shadow: none;
  --avto-blue: var(--accent-deep);
  --avto-text: var(--ink);
  --avto-muted: var(--muted);
  max-width: none;
  padding: 0;
}

#avto-constructor::before { display: none; }
#avto-constructor .avto__title-row { display: none !important; }
#avto-constructor .avto__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 24px; align-items: start; margin: 0; }
#avto-constructor .avto__preview { max-width: none; margin: 0; }
#avto-constructor .avto__stage { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#avto-constructor .avto__canvas { border: 0; border-radius: 0; background: transparent; box-shadow: none; }

#avto-constructor .avto__controls {
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#avto-constructor .avto__check-row { margin-bottom: 12px; }
#avto-constructor .avto__chip { height: 35px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: none; color: var(--muted); font-size: 11px; font-weight: 550; letter-spacing: -.005em; text-transform: none; }
#avto-constructor .avto__chip:hover { border-color: var(--line-strong); box-shadow: none; }
#avto-constructor .avto__check span { color: var(--muted); font-size: 11px; font-weight: 550; letter-spacing: 0; text-transform: none; }
#avto-constructor .avto__check input { width: 15px; height: 15px; flex-basis: 15px; border-color: var(--line-strong); border-radius: 4px; }
#avto-constructor .avto__check input:checked { border-color: var(--accent-deep); }
#avto-constructor .avto__check input::before { box-shadow: inset 1em 1em var(--accent-deep); }
#avto-constructor .avto__reset { background: var(--ink); border-color: var(--ink); color: #fff; }
#avto-constructor .avto__reset:hover { background: #000; border-color: #000; color: #fff; }

#avto-constructor .avto__field { margin-bottom: 12px; }
#avto-constructor .avto__label { margin-bottom: 6px; color: var(--muted-soft); font-size: 9px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
#avto-constructor .avto__field input { height: 43px; border: 1px solid var(--line); border-radius: 11px; background: #f6f6f3; color: var(--ink); font-size: 14px; font-weight: 500; box-shadow: none; }
#avto-constructor .avto__field input:focus { border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(134, 191, 149, .16); }

#avto-constructor .avto__bundle-grid { gap: 7px; }
#avto-constructor .avto__bundle-btn { min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #f6f6f3; color: var(--muted); font-size: 11px; font-weight: 550; box-shadow: none; line-height: 1.25; }
#avto-constructor .avto__bundle-btn:hover { border-color: var(--line-strong); transform: none; box-shadow: none; }
#avto-constructor .avto__bundle-btn.is-active { border-color: var(--accent-deep); background: var(--accent-soft); color: var(--accent-ink); box-shadow: none; }
#avto-constructor .avto__bundle-price { margin: 2px 0 9px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--accent-wash); box-shadow: none; }
#avto-constructor .avto__bundle-price-label { color: var(--muted-soft); font-size: 9px; font-weight: 600; letter-spacing: .08em; }
#avto-constructor .avto__bundle-price-value { color: var(--accent-ink); font-size: 17px; font-weight: 650; }

#avto-constructor .avto__toggle { min-height: 47px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 11px; background: #f6f6f3; color: var(--ink); font-size: 12.5px; font-weight: 500; box-shadow: none; }
#avto-constructor .avto__toggle:hover { border-color: var(--line-strong); transform: none; box-shadow: none; }
#avto-constructor .avto__toggle-caption { color: var(--muted-soft); font-size: 8.5px; font-weight: 650; letter-spacing: .09em; }
#avto-constructor .avto__toggle-current span { color: var(--ink); font-size: 12px; font-weight: 500; }
#avto-constructor #avtoLineToggle-constructor .avto__toggle-caption { color: var(--muted); }

#avto-constructor .avto__drawer.is-open { margin-top: 7px; }
#avto-constructor .avto__search { height: 37px; border: 1px solid var(--line); border-radius: 9px; background: #f6f6f3; color: var(--ink); font-size: 12px; font-weight: 500; }
#avto-constructor .avto__search:focus { border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(134, 191, 149, .14); }
#avto-constructor .avto__list { gap: 5px; max-height: 246px; }
#avto-constructor .avto__item { min-height: 39px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #f8f8f5; color: var(--muted); font-size: 12px; font-weight: 450; line-height: 1.3; }
#avto-constructor .avto__item:hover { border-color: var(--line-strong); transform: none; box-shadow: none; }
#avto-constructor .avto__item.is-active { border-color: var(--accent-deep); background: var(--accent-soft); color: var(--accent-ink); box-shadow: none; }
#avto-constructor .avto__color { width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px var(--line); }
#avto-constructor .avto__color.is-active { border-color: #fff; outline: 2px solid var(--accent-deep); }

#avto-constructor .avto__actions { gap: 8px; margin-top: 11px; }
#avto-constructor .avto__actions .button { min-height: 47px; border-radius: 11px !important; font-family: var(--font-body) !important; font-size: 12px !important; font-weight: 550 !important; letter-spacing: .02em !important; }
#avto-constructor .avto__actions .button[name='add'] { border: 1px solid var(--accent) !important; background: var(--accent) !important; color: #fff !important; box-shadow: 0 16px 28px -18px rgba(55, 111, 72, .8) !important; }
#avto-constructor .avto__actions .button[name='add']:hover { background: #79b489 !important; border-color: #79b489 !important; box-shadow: 0 18px 30px -16px rgba(55, 111, 72, .7) !important; }
#avto-constructor .avto__actions .button--secondary { border: 1px solid var(--line) !important; background: #f6f6f3 !important; color: var(--muted) !important; box-shadow: none !important; }

#avto-constructor .avto__preset-nav { margin-top: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: #f6f6f3; box-shadow: none; }
#avto-constructor .avto__preset-nav-btn, #avto-constructor .avto__preset-clear { min-height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 550; }
#avto-constructor .avto__preset-nav-status { color: var(--muted); font-size: 10px; }
#avto-constructor .avto__preset-clear { background: #fff; }

#avto-constructor .avto__benefits { margin-top: 12px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--accent-wash); box-shadow: none; }
#avto-constructor .avto__benefit-item { padding: 5px 0; color: var(--muted); font-size: 11px; font-weight: 450; }
#avto-constructor .avto__benefit-item + .avto__benefit-item { border-top: 1px dashed var(--line); }
#avto-constructor .avto__benefit-item img { width: 16px; height: 16px; flex-basis: 16px; opacity: .7; }
#avto-constructor .avto__benefit-item span { color: var(--muted); }

#avto-constructor .avto__specs, #avto-constructor .avto__quick-cases, #avto-constructor .avto__faq { margin-top: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f6f6f3; box-shadow: none; }
#avto-constructor .avto__specs-title { margin-bottom: 7px; color: var(--muted-soft); font-size: 9px; font-weight: 650; letter-spacing: .1em; }
#avto-constructor .avto__spec-chip { min-height: 27px; padding: 0 8px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 9.5px; font-weight: 500; }
#avto-constructor .avto__spec-chip--btn.is-active { border-color: var(--accent-deep); background: var(--accent-soft); color: var(--accent-ink); }
#avto-constructor .avto__info-grid { gap: 7px; margin-top: 10px; }
#avto-constructor .avto__info-card { padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fbfbf9; }
#avto-constructor .avto__info-card-title { color: var(--ink); font-size: 11.5px; font-weight: 600; }
#avto-constructor .avto__info-card p { color: var(--muted); font-size: 10px; line-height: 1.45; }
#avto-constructor .avto__faq-item { border: 1px solid var(--line); border-radius: 9px; background: #fbfbf9; }
#avto-constructor .avto__faq-item summary { padding: 10px; color: var(--ink); font-size: 10.5px; font-weight: 550; }
#avto-constructor .avto__faq-content { padding: 9px 10px 10px; color: var(--muted); font-size: 10.5px; }

/* cart drawer */

.cart-root { position: fixed; z-index: 220; inset: 0; visibility: hidden; pointer-events: none; }
.cart-root.is-open { visibility: visible; pointer-events: auto; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(9, 10, 11, .44); opacity: 0; transition: opacity .35s var(--ease); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.cart-root.is-open .cart-backdrop { opacity: 1; }

.cart-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  width: min(420px, calc(100% - 24px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  background: #f7f7f4;
  color: var(--ink);
  box-shadow: 0 34px 90px -30px rgba(6, 17, 25, .6);
  transform: translateX(calc(100% + 24px));
  transition: transform .4s var(--ease);
}

.cart-root.is-open .cart-panel { transform: none; }

.cart-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 21px 20px 16px; border-bottom: 1px solid var(--line); }
.cart-panel__head h2 { margin: 0 0 4px; font-size: 25px; font-weight: 560; line-height: 1; letter-spacing: -.045em; }
.cart-panel__head p { margin: 0; color: var(--muted-soft); font-size: 10px; line-height: 1.3; }
.cart-panel__close { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: 19px; line-height: 1; cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease); }
.cart-panel__close:hover { border-color: var(--ink); color: var(--ink); }
.cart-panel__body { flex: 1; overflow-y: auto; padding: 14px 20px; }
.cart-empty { display: flex; min-height: 260px; flex-direction: column; align-items: center; justify-content: center; padding: 30px 16px; text-align: center; }
.cart-empty svg { width: 42px; height: 42px; margin-bottom: 14px; color: var(--accent-deep); opacity: .55; }
.cart-empty h3 { margin: 0 0 7px; font-size: 21px; font-weight: 560; letter-spacing: -.035em; }
.cart-empty p { max-width: 25ch; margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.cart-item { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.cart-item:first-child { padding-top: 0; }
.cart-item__media { display: flex; overflow: hidden; width: 80px; height: 62px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; background: #edf1ee; }
.cart-item__media img { width: 100%; height: 100%; object-fit: contain; }
.cart-item__body { min-width: 0; }
.cart-item__title { margin: 0 0 4px; color: var(--ink); font-size: 12.5px; font-weight: 550; line-height: 1.3; }
.cart-item__meta { margin: 0; color: var(--muted-soft); font-size: 9.5px; line-height: 1.35; }
.cart-item__price { margin-top: 6px; color: var(--accent-ink); font-size: 11px; font-weight: 600; line-height: 1; }
.cart-item__remove { display: grid; width: 26px; height: 26px; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted-soft); font-size: 15px; line-height: 1; cursor: pointer; }
.cart-item__remove:hover { background: #ecece7; color: var(--ink); }
.cart-panel__foot { padding: 17px 20px 20px; border-top: 1px solid var(--line); background: #fbfbf9; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.cart-total span { color: var(--muted); font-size: 11px; }
.cart-total strong { color: var(--ink); font-size: 21px; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.cart-panel__foot .button { width: 100%; }
.cart-panel__note { margin: 9px 0 0; color: var(--muted-soft); font-size: 9.5px; line-height: 1.4; text-align: center; }

.cart-item__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; }
.cart-item__qty { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cart-item__qty button { display: grid; width: 24px; height: 24px; place-items: center; border: 0; background: transparent; color: var(--muted); font-size: 13px; line-height: 1; cursor: pointer; }
.cart-item__qty button:hover { background: var(--paper-soft); color: var(--ink); }
.cart-item__qty span { min-width: 21px; color: var(--ink); font-size: 10.5px; font-weight: 600; line-height: 1; text-align: center; }
.footer-mde { display: inline-flex; align-items: center; gap: 7px; }
.footer-mde .live-dot { width: 5px; height: 5px; flex-basis: 5px; box-shadow: none; }

@media (min-width: 761px) and (max-width: 1099px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: 0; order: 3; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .35);
    transform: none;
    white-space: normal;
  }
  .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; }
  .site-nav a:hover, .site-nav a.is-active { color: var(--ink); background: rgba(28, 28, 26, .05); }
  .site-nav__icon, .site-nav__icon svg { width: 17px; height: 17px; flex-basis: 17px; }
  .site-header.is-solid .site-nav a, .site-header.is-menu-open .site-nav a { color: var(--muted); }
  .site-header__actions { margin-left: auto; }
}

/* ---------- responsive inner pages ---------- */

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-layout { grid-template-columns: 1fr; gap: 22px; }
  .product-gallery { position: relative; top: auto; width: 100%; max-width: 720px; aspect-ratio: 1.32; }
  .delivery-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-step:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .delivery-step:nth-child(4) { border-top: 1px solid var(--line); }
  #avto-constructor .avto__grid { grid-template-columns: 1fr; gap: 17px; }
  #avto-constructor .avto__preview { position: relative; top: auto; max-width: 740px; }
  #avto-constructor .avto__controls { max-width: 740px; }
}

@media (max-width: 374px) {
  .site-header__actions > .lang-switch { display: none; }
  .site-header .site-nav__lang {
    display: inline-flex;
    width: 76px;
    height: 30px;
    align-self: flex-start;
    margin: 12px;
    --control-bg: rgba(28, 28, 26, .075);
    --control-border: rgba(28, 28, 26, .14);
  }
  html[data-theme="dark"] .site-nav__lang {
    --control-bg: rgba(255, 255, 255, .07);
    --control-border: rgba(255, 255, 255, .14);
  }
}

@media (max-width: 760px) {
  .page-hero { margin-bottom: 20px; padding: 30px 22px; border-radius: 20px; }
  .page-hero h1 { font-size: clamp(35px, 9.4vw, 45px); }
  .page-hero p { font-size: 13.5px; line-height: 1.55; }
  .catalog-toolbar { gap: 6px; }
  .filter-chip { min-height: 36px; padding: 0 12px; font-size: 11px; }
  .catalog-search { width: 100%; margin-left: 0; }
  .product-grid, .related-products .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-card { padding: 8px; }
  .product-card__media { aspect-ratio: 2.0; }
  .product-card__title { font-size: 19px; }
  .product-card__body { padding: 13px 7px 7px; }
  .product-gallery { aspect-ratio: 1.25; padding: 24px; border-radius: 18px; }
  .product-info h1 { font-size: clamp(34px, 9vw, 45px); }
  .product-price #productPrice { font-size: 24px; }
  .product-actions .button { flex: 1 1 100%; }
  .product-benefits { grid-template-columns: 1fr; gap: 0; padding: 8px 11px; }
  .product-benefit { padding: 7px 2px; }
  .related-products { margin-top: 40px; }
  .contacts-grid { grid-template-columns: 1fr; gap: 9px; }
  .contact-card { min-height: 82px; padding: 15px; gap: 12px; }
  .contact-card__icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; }
  .contact-card__icon svg { width: 21px; height: 21px; }
  .contact-card h3 { font-size: 18px; }
  .contact-note { align-items: flex-start; flex-direction: column; gap: 18px; padding: 24px 20px; border-radius: 17px; }
  .contact-note .button { width: 100%; justify-content: center; }
  .contact-note__body { max-width: none; }
  .delivery-steps { grid-template-columns: 1fr; border-radius: 17px; }
  .delivery-step, .delivery-step:nth-child(3), .delivery-step:nth-child(4) { padding: 18px; border-top: 1px solid var(--line); border-left: 0; }
  .delivery-step:first-child { border-top: 0; }
  .delivery-step__num { margin-bottom: 10px; }
  .delivery-info-grid { grid-template-columns: 1fr; gap: 9px; }
  .delivery-info { padding: 19px; border-radius: 15px; }
  .delivery-faq { padding: 20px; border-radius: 17px; }
  .constructor-page { padding: 88px 16px 50px; }
  .constructor-page__head { padding: 28px 20px; border-radius: 20px; }
  .constructor-page__head h1 { font-size: clamp(34px, 9vw, 45px); }
  #avto-constructor { padding: 0; }
  #avto-constructor .avto__controls { padding: 0; border-radius: 0; }
  #avto-constructor .avto__canvas { border-radius: 0; }
  #avto-constructor .avto__icons-row { grid-template-columns: 1fr; gap: 12px; }
  #avto-constructor .avto__field--half { margin-bottom: 0; }
  #avto-constructor .avto__benefits { padding: 7px 12px; }
  #avto-constructor .avto__specs, #avto-constructor .avto__quick-cases, #avto-constructor .avto__faq { padding: 10px; }
  .cart-panel { top: auto; right: 8px; bottom: 8px; left: 8px; width: auto; max-height: calc(100svh - 16px); border-radius: 20px; transform: translateY(calc(100% + 16px)); }
  .cart-root.is-open .cart-panel { transform: none; }
  .cart-panel__head { padding: 17px 16px 13px; }
  .cart-panel__body { padding: 11px 16px; }
  .cart-panel__foot { padding: 14px 16px 16px; }
  .cart-empty { min-height: 220px; }
}

@media (max-width: 390px) {
  .page-hero { padding: 25px 18px; }
  .product-card__top { gap: 8px; }
  .product-card__price { font-size: 12px; }
  .product-card__title { font-size: 18px; }
  .contact-card__icon { width: 36px; height: 36px; flex-basis: 36px; }
  .contact-card h3 { font-size: 17px; }
}


/* ---------- responsive home ---------- */

@media (max-width: 980px) {
  .feature__grid { grid-template-columns: 1fr; gap: 32px; }
  .feature__copy .winter-title { max-width: 15ch; }
  .feature-panel { max-width: 700px; width: 100%; }
  .pricing__grid { gap: 14px; }
  .footer-grid { grid-template-columns: 1fr .8fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .page-width { padding-left: 18px; padding-right: 18px; }
  .site-header { top: 8px; width: calc(100% - 20px); height: 54px; }
  .site-header__inner { padding: 0 11px 0 12px; gap: 8px; }
  .site-brand { gap: 7px; }
  .site-brand__mark { width: 26px; height: 26px; border-radius: 7px; }
  .site-brand__mark svg { width: 16px; height: 16px; }
  .site-brand__text { font-size: 14px; }
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; width: 30px; height: 28px; flex: 0 0 30px; align-items: center; justify-content: center; }
  .site-header__actions { gap: 4px; }
  .theme-switch { width: 50px; height: 28px; }
  .lang-switch { width: 56px; height: 28px; }
  .theme-switch__option svg { width: 13px; height: 13px; }
  .lang-switch button { font-size: 9px; letter-spacing: .06em; }
  .header-cart {
    position: relative;
    width: 30px;
    height: 28px;
    padding: 0;
    justify-content: center;
  }
  .header-cart__label { display: none; }
  .header-cart .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 13px;
    height: 13px;
    padding: 0 3px;
    font-size: 7.5px;
  }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .35);
    transform: none;
    white-space: normal;
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; }
  .site-nav a.is-active, .site-nav a:hover { color: var(--ink); background: rgba(28, 28, 26, .05); }
  .site-nav__icon, .site-nav__icon svg { width: 17px; height: 17px; flex-basis: 17px; }
  .site-header.is-solid .site-nav a, .site-header.is-menu-open .site-nav a { color: var(--muted); }

  .winter-hero { min-height: 0; padding: 108px 0 48px; }
  .winter-hero__inner { justify-content: flex-start; padding-top: 0; }
  .winter-hero__title { font-size: clamp(44px, 12vw, 58px); margin: 14px 0 14px; max-width: 10ch; }
  .winter-hero__lead { max-width: 340px; margin-bottom: 21px; font-size: 14.5px; line-height: 1.55; }
  .winter-hero__facts { margin: 18px auto 0; font-size: 9px; }
  .winter-hero__facts li { padding: 0 10px; }
  .winter-hero__edge { height: 40px; }
  .winter-section { padding: 58px 0; }
  .winter-title { font-size: clamp(36px, 10vw, 48px); line-height: 1.02; }
  .winter-lead { font-size: 14.5px; line-height: 1.6; margin-bottom: 23px; }
  .feature-section { padding-top: 46px; }
  .feature__actions .button { flex: 1 1 auto; }
  .feature-panel { padding: 8px; border-radius: 19px; }
  .feature-panel__stage { border-radius: 13px; }
  .feature-panel__foot { gap: 5px; padding-top: 7px; }
  .feature-chip { padding: 7px 8px; font-size: 8.5px; }
  .feature-chip b { font-size: 9.5px; }
  .showcase__stage { min-height: 250px; padding: 40px 20px 24px; border-radius: 20px; margin-top: 24px; }
  .showcase__glass { top: 12px; left: 12px; font-size: 8.5px; }
  .showcase__foot { align-items: flex-start; }
  .showcase__chips li { font-size: 9.5px; }
  .pricing__head { margin-bottom: 24px; }
  .pricing__grid { grid-template-columns: 1fr; }
  .price-card__art { height: 178px; padding: 12px; }
  .price-card__body { padding: 18px; }
  .price-card h3 { font-size: 21px; }
  .price-card__price strong { font-size: 21px; }
  .help-section { padding-top: 46px; padding-bottom: 46px; }
  .help-card { padding: 30px 22px 34px; border-radius: 22px; }
  .help-card__title { font-size: clamp(36px, 10vw, 48px); }
  .help-card__flake { right: 10px; bottom: 12px; width: 74px; opacity: .7; }
  .footer-wordmark { margin-bottom: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 22px 0 26px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; padding-top: 16px; }
  .footer-bottom span { display: flex; margin-top: 6px; }
  .site-footer { padding-top: 22px; }
  #avto-constructor { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 390px) {
  .winter-hero__title { font-size: 42px; }
  .winter-hero__facts { font-size: 8px; }
  .winter-hero__facts li { padding: 0 7px; }
  .price-card__head { gap: 8px; }
  .price-card__price strong { font-size: 19px; }
  .price-card__price strong span { font-size: 10px; }
}


/* ============================================================
   Dark theme
   ============================================================ */

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0a0b0c;
  --paper-soft: #0f1011;
  --paper-deep: #151718;
  --surface: #141516;
  --surface-2: #1a1c1d;
  --ink: #c7c7ca;
  --ink-soft: #b6b7ba;
  --heading: #c7c7ca;
  --muted: #9da19f;
  --muted-soft: #8b8f8d;
  --line: #242627;
  --line-strong: #36393a;
  --accent: #96cfa2;
  --accent-deep: #7bb98a;
  --accent-ink: #d5efda;
  --accent-soft: #19221b;
  --accent-wash: #131a15;
  --color-bg: #0a0b0c;
  --color-text: #c7c7ca;
  --color-muted: #9da19f;
  --color-line: #242627;
  --shadow-card: 0 24px 60px -42px rgba(0, 0, 0, .8);
  --shadow-float: 0 30px 90px -48px rgba(0, 0, 0, .92);
  scrollbar-color: rgba(255, 255, 255, .28) transparent;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .36); }
html[data-theme="dark"] ::selection { background: var(--accent); color: #08130d; }

html[data-theme="dark"] .site-header {
  background: rgba(10, 11, 12, .56);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: 0 18px 48px -32px rgba(0, 0, 0, .85);
}

html[data-theme="dark"] .site-header.is-solid,
html[data-theme="dark"] .site-header.is-menu-open {
  background: rgba(10, 11, 12, .92);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 18px 48px -34px rgba(0, 0, 0, .85);
}

html[data-theme="dark"] .site-header.is-menu-open { background: var(--paper); }
html[data-theme="dark"] .site-header.is-solid .site-brand__mark,
html[data-theme="dark"] .site-header.is-menu-open .site-brand__mark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
html[data-theme="dark"] .site-header.is-solid .site-nav a:hover,
html[data-theme="dark"] .site-header.is-menu-open .site-nav a:hover { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .site-header.is-solid .site-nav a.is-active,
html[data-theme="dark"] .site-header.is-menu-open .site-nav a.is-active { background: transparent; }
html[data-theme="dark"] .cart-count { color: #07130c; }

html[data-theme="dark"] .winter-hero__edge .edge-soft { fill: var(--paper); opacity: .32; }

html[data-theme="dark"] .showcase,
html[data-theme="dark"] .pricing-section { background: var(--paper-soft); }
html[data-theme="dark"] .winter-section + .winter-section { border-top-color: var(--line); }

html[data-theme="dark"] .price-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .delivery-steps,
html[data-theme="dark"] .delivery-info,
html[data-theme="dark"] .delivery-faq,
html[data-theme="dark"] .product-benefits,
html[data-theme="dark"] .showcase__chips li {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

html[data-theme="dark"] .price-card:hover,
html[data-theme="dark"] .product-card:hover { box-shadow: 0 24px 50px -36px rgba(0, 0, 0, .8); }
html[data-theme="dark"] .price-card--featured { border-color: var(--line-strong); box-shadow: 0 22px 44px -38px rgba(0, 0, 0, .7); }
html[data-theme="dark"] .price-card--featured:hover { border-color: var(--muted-soft); box-shadow: 0 26px 54px -34px rgba(0, 0, 0, .7); }

html[data-theme="dark"] .showcase__chips li { color: var(--muted); }
html[data-theme="dark"] .price-card__badge { color: #07130c; }

html[data-theme="dark"] .filter-chip,
html[data-theme="dark"] .catalog-search,
html[data-theme="dark"] .product-card__add,
html[data-theme="dark"] .product-actions .button--cart,
html[data-theme="dark"] .cart-panel__close,
html[data-theme="dark"] .cart-item__qty {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .filter-chip.is-active { background: var(--accent); border-color: var(--accent); color: #07130c; }
html[data-theme="dark"] .filter-chip:hover { color: var(--ink); border-color: var(--line-strong); }
html[data-theme="dark"] .catalog-search::placeholder { color: var(--muted-soft); }
html[data-theme="dark"] .product-actions .button--primary { color: #07130c; }
html[data-theme="dark"] .product-actions .button--cart:hover { background: var(--paper-deep); border-color: var(--line-strong); }
html[data-theme="dark"] .product-benefit img,
html[data-theme="dark"] #avto-constructor .avto__benefit-item img { filter: invert(1) grayscale(1) brightness(1.6); opacity: .62; }
html[data-theme="dark"] .catalog-empty { border-color: var(--line-strong); background: rgba(255, 255, 255, .025); color: var(--muted); }

html[data-theme="dark"] .button--primary { background: var(--accent); border-color: var(--accent); color: #07130c; box-shadow: 0 14px 28px -18px rgba(0, 0, 0, .7); }
html[data-theme="dark"] .button--primary:hover { background: #a0d6ad; border-color: #a0d6ad; color: #07130c; }
html[data-theme="dark"] .button--secondary { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
html[data-theme="dark"] .button--secondary:hover { background: var(--paper-deep); border-color: var(--line-strong); }
html[data-theme="dark"] .button--soft { background: var(--surface-2); border-color: var(--line-strong); color: #f4f5f4; }
html[data-theme="dark"] .button--soft:hover { background: var(--paper-deep); border-color: var(--line-strong); }

html[data-theme="dark"] #avto-constructor {
  --avto-panel-bg: var(--surface);
  --avto-bg-soft: var(--surface-2);
  --avto-brd: var(--line);
  --avto-brd-strong: var(--line-strong);
  --avto-text: var(--ink);
  --avto-muted: var(--muted);
}
html[data-theme="dark"] #avto-constructor .avto__chip,
html[data-theme="dark"] #avto-constructor .avto__field input,
html[data-theme="dark"] #avto-constructor .avto__search,
html[data-theme="dark"] #avto-constructor .avto__bundle-btn,
html[data-theme="dark"] #avto-constructor .avto__toggle,
html[data-theme="dark"] #avto-constructor .avto__preset-nav,
html[data-theme="dark"] #avto-constructor .avto__specs,
html[data-theme="dark"] #avto-constructor .avto__quick-cases,
html[data-theme="dark"] #avto-constructor .avto__faq,
html[data-theme="dark"] #avto-constructor .avto__item,
html[data-theme="dark"] #avto-constructor .avto__spec-chip,
html[data-theme="dark"] #avto-constructor .avto__preset-nav-btn,
html[data-theme="dark"] #avto-constructor .avto__preset-clear {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] #avto-constructor .avto__item.is-active,
html[data-theme="dark"] #avto-constructor .avto__spec-chip--btn.is-active,
html[data-theme="dark"] #avto-constructor .avto__bundle-btn.is-active { background: var(--accent-soft); border-color: var(--accent-deep); color: var(--accent-ink); }
html[data-theme="dark"] #avto-constructor .avto__bundle-price,
html[data-theme="dark"] #avto-constructor .avto__benefits { background: var(--surface-2); border-color: var(--line); }
html[data-theme="dark"] #avto-constructor .avto__info-card,
html[data-theme="dark"] #avto-constructor .avto__faq-item { background: var(--surface-2); border-color: var(--line); }
html[data-theme="dark"] #avto-constructor .avto__reset { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
html[data-theme="dark"] #avto-constructor .avto__reset:hover { background: var(--paper-soft); border-color: var(--ink); color: var(--ink); }
html[data-theme="dark"] #avto-constructor .avto__actions .button[name='add'] { color: #07130c !important; }
html[data-theme="dark"] #avto-constructor .avto__actions .button[name='add']:hover { background: #a0d6ad !important; border-color: #a0d6ad !important; color: #07130c !important; }
html[data-theme="dark"] #avto-constructor .avto__actions .button--secondary { background: var(--surface-2) !important; border-color: var(--line) !important; color: var(--muted) !important; }
html[data-theme="dark"] #avto-constructor .avto__color { border-color: rgba(255, 255, 255, .25); }

html[data-theme="dark"] .order-modal__panel { background: var(--surface); color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .65); }
html[data-theme="dark"] .order-modal__close,
html[data-theme="dark"] .order-form input,
html[data-theme="dark"] .order-form textarea { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .order-summary { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
html[data-theme="dark"] .order-modal__head p,
html[data-theme="dark"] .order-form label,
html[data-theme="dark"] .order-note { color: var(--muted); }
html[data-theme="dark"] .order-form input:focus,
html[data-theme="dark"] .order-form textarea:focus { border-color: var(--accent); }

html[data-theme="dark"] .cart-panel { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: 0 34px 90px -30px rgba(0, 0, 0, .8); }
html[data-theme="dark"] .cart-panel__foot { background: var(--paper-soft); border-color: var(--line); }
html[data-theme="dark"] .cart-item__qty button:hover { background: var(--paper-deep); color: var(--ink); }
html[data-theme="dark"] .cart-item__remove { color: var(--muted); }
html[data-theme="dark"] .cart-item__remove:hover { background: var(--paper-soft); color: var(--ink); }
html[data-theme="dark"] .cart-empty svg { color: var(--accent); }

html[data-theme="dark"] .site-footer { background: var(--paper); border-top-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .footer-grid { border-top-color: var(--line-strong); border-bottom-color: var(--line-strong); }

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select { color: var(--ink); }

@media (max-width: 1099px) {
  html[data-theme="dark"] .site-nav { background: var(--paper); border-color: var(--line); box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .8); }
  html[data-theme="dark"] .site-nav a:hover,
  html[data-theme="dark"] .site-nav a.is-active { color: #fff; background: rgba(255, 255, 255, .07); }
  html[data-theme="dark"] .site-header.is-solid .site-nav a,
  html[data-theme="dark"] .site-header.is-menu-open .site-nav a { color: var(--muted); }
  html[data-theme="dark"] .site-header.is-solid .site-nav a.is-active,
  html[data-theme="dark"] .site-header.is-menu-open .site-nav a.is-active { color: #fff; }
}

/* Keep the black product plates on a light stage in dark mode, otherwise the frames disappear. */
html[data-theme="dark"] .price-card__art,
html[data-theme="dark"] .product-card__media,
html[data-theme="dark"] .product-gallery,
html[data-theme="dark"] .showcase__stage,
html[data-theme="dark"] .feature-panel__stage,
html[data-theme="dark"] .specimen__stage,
html[data-theme="dark"] #avto-constructor .avto__stage {
  border-color: var(--line);
  background: radial-gradient(78% 120% at 50% 0%, #fafbf9, #f0f2ee 56%, #e4e7e2 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .035);
}
html[data-theme="dark"] .price-card--custom .price-card__art { background: radial-gradient(78% 120% at 50% 0%, #fafbf9, #f0f2ee 56%, #e4e7e2 100%); }
html[data-theme="dark"] .price-card__art::before,
html[data-theme="dark"] .product-card__media::before,
html[data-theme="dark"] .product-gallery::before,
html[data-theme="dark"] .showcase__stage::before,
html[data-theme="dark"] .feature-panel__stage::before,
html[data-theme="dark"] .specimen__stage::before { background-image: radial-gradient(circle, rgba(48, 79, 60, .2) 0 1px, transparent 1.4px), radial-gradient(circle, rgba(48, 79, 60, .1) 0 1.3px, transparent 1.7px); opacity: .55; }
html[data-theme="dark"] .price-card__art img,
html[data-theme="dark"] .product-gallery img,
html[data-theme="dark"] .showcase__plate { filter: drop-shadow(0 22px 24px rgba(16, 37, 26, .24)); }
html[data-theme="dark"] .showcase__glass,
html[data-theme="dark"] .product-card__badge { border-color: rgba(28, 47, 36, .13); background: rgba(249, 250, 246, .78); color: #3e5548; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html[data-theme="dark"] #avto-constructor .avto__stage { border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(9, 24, 16, .055); }
html[data-theme="dark"] .cart-item__media { border-color: var(--line); background: radial-gradient(80% 120% at 50% 0%, #f7f8f3, #e9efe8 58%, #dbe6de 100%); }

/* ---------- interaction polish and page transitions ---------- */

.product-layout { transition: opacity .4s var(--ease), transform .55s var(--ease); }
.product-layout.is-loading { opacity: 0; transform: translateY(8px); }
.product-layout.is-loaded { opacity: 1; transform: none; }

.button:active, .btn:active { transform: translateY(0) scale(.985); }
.product-card:active { transform: translateY(-1px) scale(.995); }
.header-cart:active, .menu-toggle:active { transform: scale(.96); }
.theme-switch button:active, .lang-switch button:active { transform: scale(.94); }

@media (prefers-reduced-motion: no-preference) {
  details[open] > *:not(summary) { animation: details-in .26s var(--ease) both; }
  @keyframes details-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
  }

  .specimen__stage::after,
  .feature-panel__stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .54) 48%, transparent 64%), url("../img/frame-pair-blur.jpg");
    background-size: 220% 100%, 100% 100%;
    background-position: 110% 0, center;
    background-repeat: no-repeat;
    animation: preview-sheen 1.7s var(--ease) infinite;
    opacity: .92;
    transition: opacity .35s var(--ease);
  }
  .specimen__stage:has(canvas.is-ready)::after,
  .feature-panel__stage:has(canvas.is-ready)::after {
    opacity: 0;
    animation: none;
  }
  @keyframes preview-sheen {
    from { background-position: 110% 0, center; }
    to { background-position: -110% 0, center; }
  }
}

@media (max-width: 1099px) {
  .site-nav {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), display .22s allow-discrete;
  }
  .site-nav.is-open { opacity: 1; transform: none; }
  @starting-style {
    .site-nav.is-open { opacity: 0; transform: translateY(-6px); }
  }
}

/* Keep the outgoing page on screen until the next document is ready.
   No crossfade: mixing a dark and a light page reads as a flash. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation: none; opacity: 1; }


/* ---------- neutral surface system (reference-matched) ---------- */

/* One quiet near-black for every dark showcase panel. No blue/green cast. */
.page-hero,
.constructor-page__head {
  border-color: rgba(255, 255, 255, .09);
  background: linear-gradient(145deg, #17191a 0%, #121415 58%, #0e1011 100%);
  box-shadow: 0 28px 80px -54px rgba(0, 0, 0, .7);
}

.page-hero::after,
.feature-panel::before,
.contact-note::after,
.showcase__stage::after { display: none; }

/* Only the fixed canvas is snow. Decorative dot fields scrolled with the page. */
.snow-dots,
.page-hero::before,
.constructor-page__head::before,
.contact-note::before,
.price-card__art::before,
.product-card__media::before,
.product-gallery::before,
.showcase__stage::before,
.feature-panel__stage::before,
.specimen__stage::before { display: none; }

.feature-panel {
  border-color: rgba(255, 255, 255, .1);
  background: linear-gradient(150deg, #161819, #0b0c0d 74%);
  box-shadow: 0 28px 70px -50px rgba(0, 0, 0, .7);
}

.contact-note {
  border: 1px solid rgba(255, 255, 255, .09);
  background: #141516;
}

.help-card { background: #0a0b0c; }
.help-card__bg { opacity: .5; filter: grayscale(1) brightness(.66) contrast(1.04); }
.help-card__veil {
  background:
    radial-gradient(70% 100% at 20% 50%, rgba(8, 9, 10, .78) 0%, rgba(8, 9, 10, .42) 56%, rgba(8, 9, 10, .8) 100%),
    linear-gradient(90deg, rgba(8, 9, 10, .8), rgba(8, 9, 10, .12));
}
.help-card .kicker svg { color: var(--accent); }

/* Sections share the page colour; only a barely lighter band separates them. */
.showcase,
.pricing-section { background: var(--paper-soft); }

/* Boxes: one surface, one border, one radius language. */
.price-card,
.product-card,
.contact-card,
.delivery-steps,
.delivery-info,
.delivery-faq,
.product-benefits,
.showcase__chips li,
.order-summary,
.cart-panel { background: var(--surface); border-color: var(--line); }

.price-card,
.product-card,
.contact-card,
.delivery-steps,
.delivery-info,
.delivery-faq,
.product-benefits,
.order-summary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }

html[data-theme="light"] .price-card,
html[data-theme="light"] .product-card,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .delivery-steps,
html[data-theme="light"] .delivery-info,
html[data-theme="light"] .delivery-faq,
html[data-theme="light"] .product-benefits,
html[data-theme="light"] .order-summary { box-shadow: 0 1px 2px rgba(0, 0, 0, .025); }

.price-card:hover,
.product-card:hover,
.contact-card:hover { box-shadow: 0 24px 50px -40px rgba(0, 0, 0, .42); }

.price-card--featured,
.price-card--featured:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 44px -40px rgba(0, 0, 0, .45);
}

/* Controls and smaller trays. */
.filter-chip,
.catalog-search,
.product-card__add,
.product-actions .button--cart,
.cart-panel__close,
.cart-item__qty,
.order-modal__close,
.order-form input,
.order-form textarea,
#avto-constructor .avto__chip,
#avto-constructor .avto__field input,
#avto-constructor .avto__search,
#avto-constructor .avto__bundle-btn,
#avto-constructor .avto__toggle,
#avto-constructor .avto__preset-nav,
#avto-constructor .avto__specs,
#avto-constructor .avto__quick-cases,
#avto-constructor .avto__faq,
#avto-constructor .avto__item,
#avto-constructor .avto__spec-chip,
#avto-constructor .avto__preset-nav-btn,
#avto-constructor .avto__preset-clear {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink);
}

#avto-constructor .avto__info-card,
#avto-constructor .avto__faq-item,
#avto-constructor .avto__bundle-price,
#avto-constructor .avto__benefits { background: var(--surface-2); border-color: var(--line); }
#avto-constructor .avto__reset { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
#avto-constructor .avto__reset:hover { background: var(--paper-soft); border-color: var(--ink); }

/* Product plates need a light, neutral stage in both themes. */
.price-card__art,
.price-card--custom .price-card__art,
.product-card__media,
.product-gallery,
.showcase__stage,
.feature-panel__stage,
.specimen__stage,
.cart-item__media,
html[data-theme="dark"] .price-card__art,
html[data-theme="dark"] .price-card--custom .price-card__art,
html[data-theme="dark"] .product-card__media,
html[data-theme="dark"] .product-gallery,
html[data-theme="dark"] .showcase__stage,
html[data-theme="dark"] .feature-panel__stage,
html[data-theme="dark"] .specimen__stage,
html[data-theme="dark"] .cart-item__media {
  border-color: var(--line);
  background: radial-gradient(78% 120% at 50% 0%, #fafbf9, #f0f2ee 56%, #e4e7e2 100%);
}

.product-card__badge {
  border-color: rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .82);
  color: #555a56;
}

.order-modal__panel { background: var(--surface); }
.order-form input,
.order-form textarea { background: var(--surface-2); }

@media (max-width: 900px) {
  .page-hero,
  .constructor-page__head { border-radius: 22px; }
}


/* Contact note hours: opaque colors avoid low-alpha text rasterization on dark surfaces */
.contact-note__hours { color: #c6cac8 !important; font-size: 12px !important; letter-spacing: .01em; }
.contact-note__hours strong { color: #ffffff; }

/* ---------- reference pass: one continuous page, no section dividers ---------- */

.site-nav a.is-active::before { display: none !important; }

.winter-section + .winter-section { border-top: 0; }
.showcase,
.pricing-section,
html[data-theme="dark"] .showcase,
html[data-theme="dark"] .pricing-section { background: var(--paper); }

.winter-hero__edge { display: none; }

.page-hero h1,
.constructor-page__head h1,
.delivery-faq h2,
.contact-note h3 {
  font-weight: 520;
  letter-spacing: -.03em;
  line-height: 1.05;
}

/* ============================================================
   Dark-theme typography: reference grey, no pure-white text
   ============================================================ */

html[data-theme="dark"] .site-header { color: var(--ink); }

html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a.is-active,
html[data-theme="dark"] .site-header.is-solid .site-nav a:hover,
html[data-theme="dark"] .site-header.is-solid .site-nav a.is-active,
html[data-theme="dark"] .site-header.is-menu-open .site-nav a:hover,
html[data-theme="dark"] .site-header.is-menu-open .site-nav a.is-active { color: var(--ink); }

html[data-theme="dark"] .winter-hero,
html[data-theme="dark"] .feature-panel,
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .help-card,
html[data-theme="dark"] .contact-note,
html[data-theme="dark"] .constructor-page__head { color: var(--ink); }

html[data-theme="dark"] .winter-hero__title,
html[data-theme="dark"] .winter-hero__title span + span,
html[data-theme="dark"] .page-hero h1,
html[data-theme="dark"] .constructor-page__head h1,
html[data-theme="dark"] .help-card__title,
html[data-theme="dark"] .contact-note h3,
html[data-theme="dark"] .feature-chip b { color: var(--ink); }

html[data-theme="dark"] .winter-hero__lead,
html[data-theme="dark"] .page-hero p,
html[data-theme="dark"] .constructor-page__head p,
html[data-theme="dark"] .help-card__lead,
html[data-theme="dark"] .contact-note p,
html[data-theme="dark"] .live-pill { color: var(--muted); }

html[data-theme="dark"] .winter-hero__facts,
html[data-theme="dark"] .specimen__bar,
html[data-theme="dark"] .feature-panel__head,
html[data-theme="dark"] .feature-chip,
html[data-theme="dark"] .page-hero .eyebrow,
html[data-theme="dark"] .constructor-page__head .eyebrow,
html[data-theme="dark"] .help-card .kicker { color: var(--muted-soft); }

html[data-theme="dark"] .button--hero-glass,
html[data-theme="dark"] .button--soft { color: var(--ink); }
html[data-theme="dark"] .button--accent { color: #07130c; }
html[data-theme="dark"] .skip-link { color: #07130c; }
html[data-theme="dark"] .toast { color: var(--ink); }

html[data-theme="dark"] .contact-note__hours { color: var(--muted-soft) !important; }
html[data-theme="dark"] .contact-note__hours strong { color: var(--ink); }


/* ---------- clean centred page headers ---------- */

.page-hero,
.constructor-page__head {
  overflow: visible;
  margin: 0 auto 30px;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-align: center;
}

.page-hero::before,
.page-hero::after,
.constructor-page__head::before { display: none; }

.page-hero h1,
.constructor-page__head h1 {
  margin: 0 auto 14px;
  color: var(--ink);
  text-wrap: balance;
}

.page-hero h1 { max-width: 20ch; }
.constructor-page__head h1 { max-width: none; white-space: nowrap; text-wrap: nowrap; }

.page-hero p,
.constructor-page__head p {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- pricing gallery: live catalogue frames ---------- */

.price-card__art--gallery { padding: 0; }

.price-card__gallery {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.price-card__gallery img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  max-width: 94%;
  max-height: calc(100% - 14px);
  object-fit: contain;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 16px)) scale(.965);
  transition: opacity .72s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}

.price-card__gallery img.is-active {
  z-index: 3;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.price-card__gallery img.is-fallback { z-index: 1; }

.price-card:hover .price-card__gallery img.is-active {
  transform: translate(-50%, -50%) scale(1.025);
}

.price-card__art--gallery::after {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -60%;
  right: -60%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .46) 50%, transparent 62%);
  opacity: 0;
  transform: translateX(-65%);
}

.price-card__art--gallery.is-cycling::after {
  animation: pricing-gallery-sheen 1s var(--ease);
}

@keyframes pricing-gallery-sheen {
  0% { opacity: 0; transform: translateX(-65%); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: translateX(65%); }
}

@media (max-width: 760px) {
  .constructor-page__head h1 { white-space: normal; text-wrap: balance; }
}

@media (prefers-reduced-motion: reduce) {
  .price-card__gallery img { transition: none; }
  .price-card:hover .price-card__gallery img.is-active { transform: translate(-50%, -50%) scale(1); }
  .price-card__art--gallery.is-cycling::after { animation: none; }
}
