/* GROFF landing — engineering-sheet layout: drafting-grid hero with a dimensioned loader drawing,
   spec "nameplates" for models. Palette: GROFF Orange (working tools, actions) + RAL 7016 anthracite (loader, text, dark blocks). */
:root {
  /* ФИРМЕННЫЕ ЦВЕТА GROFF
     GROFF Orange  #EE7623  — рабочие органы, кнопки, акценты (для покраски: RAL 2011 Tieforange)
     RAL 7016      #383E42  — антрацитово-серый: погрузчик, текст, тёмные блоки */
  --groff-orange: #ee7623;
  --ral7016: #383e42;
  --ral7016-deep: #22282b;     /* текст на оранжевом (контраст 5:1) */
  --on-dark: #f1f3f4;          /* текст на RAL 7016 */

  --paper: #f3f3f1;            /* светлый «камень», тёплый нейтральный */
  --surface: #ffffff;
  --sunk: #e9e9e6;
  --ink: var(--ral7016);
  --muted: #61676b;
  --line: #dcdcd8;
  --grid: rgba(56, 62, 66, 0.07);
  --accent: var(--groff-orange);
  --accent-hover: #f48a42;
  --accent-strong: #b04f0d;    /* оранжевый для мелкого текста на светлом фоне */
  --accent-display: #e0661a;   /* оранжевый для крупных заголовков */
  --accent-ink: var(--ral7016-deep);
  --btn-ink: #ffffff;           /* текст на оранжевых кнопках, как в макете */
  --accent-soft: #fde6d4;
  --dark: var(--ral7016);
  --loader: var(--ral7016);    /* цвет погрузчика на схеме */
  --tractor: #a3abb0;          /* трактор на схеме — второстепенный */
  --ok: #2f7a4b;
  --danger: #b3261e;
  --wa: #1fa855;
  --wa-ink: #ffffff;

  --f-display: "Fira Sans Extra Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --f-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* Фирменный шрифт GROFF: логотип, слово GROFF и названия моделей GM… */
  --f-brand: "Chakra Petch", "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.15rem;
  --fs-xl: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  --fs-hero: clamp(2.3rem, 1.4rem + 3.6vw, 4rem);

  --r: 4px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121618; --surface: #1a1f22; --sunk: #20262a; --ink: #e9ecee; --muted: #9ba5ab;
    --line: #2d3539; --grid: rgba(200, 210, 215, 0.05);
    --accent: #f08236; --accent-hover: #f59a5a; --accent-strong: #f59a5a; --accent-display: #f08236; --accent-ink: #22282b; --btn-ink: #ffffff; --accent-soft: #3b2616;
    --dark: #2c3235; --loader: #a9b1b6; --tractor: #5a646a;
    --ok: #6fc28f; --danger: #ff8a80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121618; --surface: #1a1f22; --sunk: #20262a; --ink: #e9ecee; --muted: #9ba5ab;
    --line: #2d3539; --grid: rgba(200, 210, 215, 0.05);
    --accent: #f08236; --accent-hover: #f59a5a; --accent-strong: #f59a5a; --accent-display: #f08236; --accent-ink: #22282b; --btn-ink: #ffffff; --accent-soft: #3b2616;
    --dark: #2c3235; --loader: #a9b1b6; --tractor: #5a646a;
    --ok: #6fc28f; --danger: #ff8a80;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: 0.005em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

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

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
}

/* ---------- buttons ----------
   По макету: основная — оранжевая, слегка скруглённая, с мягкой тенью и стрелкой;
   вторичная — контурная, при наведении заливается антрацитом. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.75em;
  font-family: var(--f-body); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.045em; text-transform: uppercase;
  padding: 1.05em 1.3em; border: 1.5px solid transparent; border-radius: 3px; text-decoration: none; cursor: pointer; line-height: 1.1;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .1s;
}
.btn-sm { font-size: 0.78rem; padding: 0.85em 1.3em; gap: 0.6em; }
.btn-block { width: 100%; }

.btn-accent { background: var(--accent); color: var(--btn-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-accent:active { transform: translateY(1px); }
.btn-accent:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* стрелка у кнопок-переходов (не у WhatsApp) */
.btn-accent:not(.wa-link)::after, a.btn-ghost::after {
  content: ""; width: 1.1em; height: 0.8em; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 15'%3E%3Cpath d='M0 7.5h18M12 1.5l6.5 6-6.5 6' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 15'%3E%3Cpath d='M0 7.5h18M12 1.5l6.5 6-6.5 6' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s;
}
.btn-accent:hover::after, a.btn-ghost:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px -12px rgba(20, 24, 26, 0.18);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-word { font-family: var(--f-brand); font-weight: 700; font-size: 1.75rem; letter-spacing: 0.06em; }
.logo-word-sm { font-size: 1.4rem; }
.main-nav { display: flex; gap: 32px; flex: 1; justify-content: center; }
.main-nav a { text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.main-nav a:hover { color: var(--accent-strong); }
.main-nav a:hover { color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line);
    padding-inline: var(--gutter); padding-block: 8px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding-block: 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-md); color: var(--ink); }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-toggle {
    display: inline-flex; margin-left: auto; font: 600 var(--fs-sm) var(--f-body);
    background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; cursor: pointer;
  }
  .header-cta { order: 3; }
}
@media (max-width: 520px) { .header-cta { display: none; } }

/* ---------- переключатель языка EN / PL ---------- */
.lang-switch { display: flex; flex: none; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.lang-switch a {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 2px;
  font: 500 0.72rem/1 var(--f-mono); letter-spacing: 0.06em; color: var(--muted); text-decoration: none; transition: background-color .15s, color .15s;
}
.lang-switch a:hover { color: var(--ink); background: var(--sunk); }
.lang-switch a[aria-current] { background: var(--ink); color: var(--paper); }
.lang-switch a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lang-switch .flag { width: 18px; height: 12px; flex: none; border-radius: 1.5px; box-shadow: 0 0 0 1px rgba(20, 24, 26, 0.18); }
.main-nav a { white-space: nowrap; }
@media (max-width: 1360px) { .main-nav { gap: 22px; } }
@media (max-width: 1240px) { .main-nav { gap: 16px; } .header-row { gap: 18px; } }
@media (max-width: 1100px) {
  .lang-switch { margin-left: auto; }
  .nav-toggle { margin-left: 0; order: 4; }
}

/* ---------- hero (по макету) ----------
   Слева светлая панель с текстом, справа фото погрузчика с диагональным краем и мягким переходом,
   внизу — белая карточка с цифрами, наезжающая на фото. */
.hero { position: relative; overflow: hidden; background: var(--paper); padding-block: clamp(28px, 4vw, 48px) 0; }

.hero-media {
  position: absolute; top: 0; right: 0; bottom: 118px; left: 45%;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 62%; display: block; }
.hero-media::after {          /* мягкий переход от светлой панели к фото */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 70%, transparent) 12%, transparent 32%);
}
.ghost-brand {
  position: absolute; left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter) + 24%)); top: 56px; z-index: 0;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 9vw, 8rem); line-height: 1; letter-spacing: 0.02em;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--line) 70%, transparent); pointer-events: none; user-select: none; white-space: nowrap;
}
.ghost-brand.is-groff { font-family: var(--f-brand); font-weight: 700; }
.brand { font-family: var(--f-brand); letter-spacing: 0.02em; }

.hero-inner > * { pointer-events: auto; }
.hero-inner { pointer-events: none; position: relative; z-index: 1; min-height: clamp(460px, 44vw, 600px); }
.hero-copy { display: flex; flex-direction: column; gap: 20px; max-width: min(580px, 52%); padding-bottom: 48px; }
.eyebrow-line { display: flex; flex-direction: column; gap: 10px; }
.eyebrow-line::after { content: ""; width: 28px; height: 2px; background: var(--accent); }
.hero h1 {
  font-family: var(--f-body); font-weight: 800; font-size: clamp(2.2rem, 1.2rem + 2.9vw, 3.6rem);
  line-height: 1.02; letter-spacing: -0.025em; color: var(--ink);
}
.hero h1 .hl { color: var(--accent-display); }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 28em; }
.fit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fit-list:empty { display: none; }
.fit-list li { font-family: var(--f-mono); font-size: var(--fs-xs); padding: 5px 10px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.variant-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: clamp(20px, 2.5vw, 32px); }
.variant-label { font-size: var(--fs-xs); color: var(--muted); }
.variant-links a { font-size: var(--fs-xs); color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; padding-block: 2px; transition: color .15s, border-color .15s; }
.variant-links a:hover { color: var(--ink); border-bottom-color: var(--line); }
.variant-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--muted); }


.hero-stats {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border-radius: 2px; box-shadow: 0 18px 40px -24px rgba(20, 24, 26, 0.35);
  margin-left: auto; width: min(100%, 1040px);
}
.stat { display: flex; flex-direction: column; gap: 6px; padding: 26px 28px 28px; min-width: 0; position: relative; }
.stat::before { content: ""; position: absolute; left: 28px; top: 0; width: 28px; height: 3px; background: var(--accent); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat-n { font-family: var(--f-body); font-weight: 700; font-size: 1.9rem; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-n .upto { font-size: 0.58em; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.stat-l { font-size: 0.72rem; line-height: 1.4; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* смена баннера: фото — плавное наложение (см. swapPhoto в script.js), текст — поочерёдное появление */
.hero-media picture { position: absolute; inset: 0; display: block; overflow: hidden; }
.hero-media .hm-layer { opacity: 0; transition: opacity .9s cubic-bezier(.4, 0, .2, 1); }
.hero-media .hm-layer img { transform: scale(1.06); transition: transform 1.6s cubic-bezier(.16, 1, .3, 1); }
.hero-media .hm-layer.is-in { opacity: 1; }
.hero-media .hm-layer.is-in img { transform: none; }
.hero.is-switching .hero-copy > * { animation: copyin .6s cubic-bezier(.16, 1, .3, 1) both; }
.hero.is-switching .hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero.is-switching .hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero.is-switching .hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero.is-switching .hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero.is-switching .ghost-brand { animation: ghostin 1s cubic-bezier(.16, 1, .3, 1) both; }
.hero.is-switching .stat-n { animation: copyin .6s cubic-bezier(.16, 1, .3, 1) .15s both; }
@keyframes copyin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ghostin { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .hero-stats { width: 100%; }
}
@media (max-width: 900px) {
  .hero { padding-top: 20px; }
  .hero-inner { min-height: 0; }
  .hero-copy { max-width: none; padding-bottom: 24px; }
  .hero-media img { object-position: 45% 70%; }
  .hero-media { position: relative; left: auto; right: auto; bottom: auto; top: auto; aspect-ratio: 4 / 3; clip-path: none; margin-inline: calc(-1 * var(--gutter)); }
  .hero-media::after { background: linear-gradient(180deg, var(--paper) 0%, transparent 16%); }
  .hero { display: flex; flex-direction: column; }
  .hero-inner { order: 1; } .hero-media { order: 2; } .hero > .wrap:last-child { order: 3; }
  .ghost-brand { left: auto; right: -0.04em; font-size: 4.2rem; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -40px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
/* панель листания баннеров (компьютер) */
.hero-nav {
  position: absolute; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); bottom: 64px; z-index: 3; display: flex; align-items: center; gap: 14px;
  padding: 8px 10px; border-radius: 999px; background: color-mix(in srgb, var(--dark) 78%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff;
}
.hn-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  font: 400 1.6rem/1 var(--f-body); padding-bottom: 3px; color: #fff; background: rgba(255,255,255,.12); transition: background .15s, transform .15s;
}
.hn-btn:hover { background: var(--accent); }
.hn-btn:active { transform: scale(.94); }
.hn-dots { display: flex; gap: 6px; }
.hn-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .2s, background .2s; }
.hn-dot:hover { background: #fff; }
.hn-dot.on { width: 22px; background: var(--accent); }
.hn-count { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .05em; opacity: .85; min-width: 52px; text-align: center; }
.hn-btn:focus-visible, .hn-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 900px) { .hero-nav { display: none; } }
.swipe-dots { display: none; position: absolute; left: 0; right: 0; bottom: 6px; justify-content: center; gap: 6px; z-index: 2; pointer-events: none; }
.swipe-dots span { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 30%, transparent); transition: width .2s, background .2s; }
.swipe-dots span.on { width: 20px; border-radius: 4px; background: var(--accent); }
/* мобильная версия: ссылки марок → фото → текст, чтобы смена баннера была видна сразу */
@media (max-width: 900px) {
  .hero-inner { display: contents; }
  .hero .variant-links { order: 1; padding-inline: var(--gutter); margin-bottom: 14px; position: relative; z-index: 1; }
  .hero-media { order: 2; margin-inline: 0; aspect-ratio: 4 / 3; }
  .hero-media::after { background: linear-gradient(180deg, var(--paper) 0%, transparent 5%, transparent 94%, var(--paper) 100%); }
  .hero-media img { object-position: var(--pos-m, 50% 60%) !important; }
  .hero-copy { order: 3; padding-inline: var(--gutter); padding-top: 22px; position: relative; z-index: 1; gap: 16px; }
  .hero > .wrap:last-child { order: 4; }
  .hero-stats { margin-top: 4px; }
  .ghost-brand { display: none; }
  /* строка марок листается пальцем в одну линию */
  .hero .variant-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; gap: 6px; }
  .hero .variant-links::-webkit-scrollbar { display: none; }
  .hero .variant-links a { flex: none; scroll-snap-align: start; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
  .hero .variant-links a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .variant-label { flex: none; }
  .hero-media { touch-action: pan-y; }
  .swipe-dots { display: flex; }
}
@media (max-width: 560px) {
  .lead { font-size: 0.95rem; line-height: 1.5; }
  .hero h1 { font-size: 2rem; }
  .fit-list { gap: 6px; }
  .fit-list li { font-size: 0.7rem; padding: 4px 8px; }
  .stat { padding: 18px 16px 20px; }
  .stat::before { left: 16px; }
  .stat-n { font-size: 1.35rem; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--sunk); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section-lead { color: var(--muted); font-size: var(--fs-lg); }

/* ---------- models ---------- */
.kit-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 24px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); }
.kit-label { font-family: var(--f-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-strong); }
.kit-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kit-strip li { font-size: var(--fs-sm); font-weight: 500; padding: 4px 10px; background: var(--sunk); border-radius: 2px; }
.models-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .models-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .models-grid { grid-template-columns: minmax(0, 1fr); } }
.model {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  min-width: 0; position: relative;
}
.model.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.model-badge {
  position: absolute; top: -11px; right: 16px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--f-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 2px;
}
.model-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 20px 20px 0; }
.model-name { font-family: var(--f-brand); font-weight: 700; font-size: 2.1rem; line-height: 1; }
.model-name span { color: var(--muted); font-weight: 600; font-size: 0.55em; letter-spacing: 0.08em; margin-right: 6px; }
.model-class { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.model-bars { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 4px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: var(--fs-sm); }
.bar-label { color: var(--muted); }
.bar-value { font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.bar-track { grid-column: 1 / -1; height: 6px; background: var(--sunk); border-radius: 1px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); }
.model-specs { margin: 0; padding: 12px 20px; display: flex; flex-direction: column; }
.model-specs div { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.model-specs div:last-child { border-bottom: 0; }
.model-specs dt { color: var(--muted); }
.model-specs dt { flex: none; max-width: 48%; }
.model-specs dd { margin: 0; min-width: 0; font-family: var(--f-mono); font-size: 0.8rem; text-align: right; overflow-wrap: anywhere; hyphens: auto; font-variant-numeric: tabular-nums; }
.model-fit { margin-top: auto; padding: 14px 20px 20px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.model-fit strong { display: block; font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }

/* ---------- compatibility ---------- */
.compat-tools { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 var(--fs-sm) var(--f-body); padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .chip-n { font-family: var(--f-mono); font-size: 0.75em; opacity: 0.6; margin-left: 6px; }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.compat-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: var(--fs-sm); }
.compat-table th {
  text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0;
}
.compat-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compat-table tr:last-child td { border-bottom: 0; }
.compat-table .num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.compat-table .brand-cell { font-weight: 600; white-space: nowrap; }
.compat-table .loader-cell { font-family: var(--f-brand); font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.compat-table tr.is-hl td { background: var(--accent-soft); }
.compat-empty { margin-top: 14px; color: var(--muted); }

/* ---------- features ---------- */
.features-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .features-layout { grid-template-columns: minmax(0, 1fr); } }
.feature-block { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 16px; height: 16px; border-radius: 2px;
  background: var(--accent);
}
.check-list li::after {
  content: ""; position: absolute; left: 4px; top: calc(0.3em + 3px); width: 8px; height: 5px;
  border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg);
}
.spec-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.spec-list div { padding: 14px 16px 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.spec-list div:nth-child(even) { padding-left: 16px; padding-right: 0; border-left: 1px solid var(--line); }
.spec-list dt { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 4px; }
.spec-list dd { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 560px) {
  .spec-list { grid-template-columns: minmax(0, 1fr); }
  .spec-list div:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- attachments ---------- */
.att-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1080px) { .att-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .att-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .att-grid { grid-template-columns: minmax(0, 1fr); } }
.att { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 0 18px 18px; min-width: 0; overflow: hidden; }
.att-img { position: relative; margin-inline: -18px; margin-bottom: 6px; aspect-ratio: 4 / 3; background: #ffffff; border-bottom: 1px solid var(--line); }
.att-img img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; filter: drop-shadow(0 8px 10px rgba(20, 24, 26, 0.18)); transition: transform .3s; }
.att:hover .att-img img { transform: scale(1.04); }
.att h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.05rem; }
.att p { font-size: var(--fs-sm); color: var(--muted); }
/* ---------- выбор цвета рабочих органов ---------- */
.paint-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-bottom: 18px; }
.paint-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.paint-label { font-family: var(--f-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-strong); margin-right: 6px; }
.paint-sw {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; cursor: pointer;
  font: 500 var(--fs-sm)/1 var(--f-body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; transition: border-color .15s, box-shadow .15s;
}
.paint-sw:hover { border-color: var(--muted); }
.paint-sw[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.paint-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sw-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18), inset 0 2px 3px rgba(255, 255, 255, 0.25); flex: none; }
.sw-ral { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--muted); }
.paint-hint { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.att-img img { transition: opacity .14s; }
.att-grid.is-repaint .att-img img { opacity: 0.25; }
@media (max-width: 560px) {
  .paint-label { width: 100%; }
  .paint-sw { padding: 5px 10px 5px 6px; }
  .sw-ral { display: none; }
}
.att-tag { margin-top: auto; font-family: var(--f-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-strong); }

/* ---------- dealers ---------- */
.dealer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
@media (max-width: 960px) { .dealer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dealer-grid { grid-template-columns: minmax(0, 1fr); } }
.dealer-item { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 26px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.dealer-item + .dealer-item { padding-left: 22px; border-left: 1px solid var(--line); }
@media (max-width: 960px) {
  .dealer-item:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .dealer-item + .dealer-item { padding-left: 0; border-left: 0; }
}
.dealer-item h3 { font-size: 1.3rem; }
.dealer-item p { color: var(--muted); font-size: var(--fs-sm); }

.steps { margin-top: clamp(40px, 6vw, 64px); display: flex; flex-direction: column; gap: 18px; }
.steps-title { font-size: 1.5rem; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .steps-list { grid-template-columns: minmax(0, 1fr); } }
.steps-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.step-n {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 2px;
  background: var(--dark); color: var(--on-dark); font-family: var(--f-display); font-weight: 800; font-size: 1.2rem;
}
.steps-list strong { font-family: var(--f-display); font-size: 1.2rem; }
.steps-list p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- contact ---------- */
.section-contact { background: var(--dark); color: var(--on-dark); }
.section-contact .eyebrow { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-copy { display: flex; flex-direction: column; gap: 16px; }
.contact-copy p { color: color-mix(in srgb, var(--on-dark) 75%, transparent); }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.contact-mail { font-family: var(--f-mono); font-size: 1.05rem; color: var(--on-dark); user-select: all; overflow-wrap: anywhere; }
.section-contact .btn-ghost { color: var(--on-dark); border-color: color-mix(in srgb, var(--on-dark) 45%, transparent); }
.section-contact .btn-ghost:hover { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.contact-card { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; padding: 20px; border: 1px solid color-mix(in srgb, var(--on-dark) 18%, transparent); border-radius: var(--r); }
.contact-person { display: flex; flex-direction: column; gap: 2px; }
.contact-person strong { font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; color: var(--on-dark); }
.contact-person span { font-size: var(--fs-sm); color: color-mix(in srgb, var(--on-dark) 65%, transparent); }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.contact-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; border-top: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent); }
.contact-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-num { font-family: var(--f-mono); font-size: 1.05rem; color: var(--on-dark); text-decoration: none; overflow-wrap: anywhere; }
a.contact-num:hover { text-decoration: underline; }
.contact-note { font-size: var(--fs-xs); color: color-mix(in srgb, var(--on-dark) 60%, transparent); }
.contact-address { font-style: normal; font-size: var(--fs-xs); line-height: 1.6; color: color-mix(in srgb, var(--on-dark) 60%, transparent); }
.contact-list .btn { flex: none; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: none; }
.contact-note { display: inline-flex; align-items: center; gap: 7px; }
.contact-note .flag { width: 18px; height: 12px; flex: none; border-radius: 1.5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
@media (max-width: 420px) { .contact-list li { flex-wrap: wrap; } .contact-actions { width: 100%; justify-content: flex-start; } }
.footer-company { flex-basis: 100%; }
.footer-company a { color: inherit; }

.lead-form {
  display: flex; flex-direction: column; gap: 14px; background: var(--surface); color: var(--ink);
  padding: clamp(18px, 3vw, 28px); border-radius: var(--r);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.field-row { display: flex; gap: 14px; }
@media (max-width: 520px) { .field-row { flex-direction: column; } }
.field label { font-size: var(--fs-sm); font-weight: 500; }
.field input, .field select, .field textarea {
  font: var(--fs-md) var(--f-body); padding: 10px 12px; border-radius: var(--r);
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field.has-error input { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: var(--fs-sm); }
.form-done { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--ok); border-radius: var(--r); }
.form-done strong { color: var(--ok); }
.form-done p { font-size: var(--fs-sm); color: var(--muted); }
.form-summary { margin: 0; white-space: pre-wrap; font-family: var(--f-mono); font-size: 0.8rem; background: var(--paper); padding: 12px; border-radius: var(--r); max-height: 220px; overflow: auto; }
.form-done-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lead-form .btn-ghost { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); border-top: 1px solid color-mix(in srgb, var(--on-dark) 15%, transparent); }
.footer-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; padding-block: 28px; }
.footer-row p { font-size: var(--fs-sm); color: color-mix(in srgb, var(--on-dark) 70%, transparent); }
.footer-note { flex-basis: 100%; font-size: var(--fs-xs) !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn::after { transition: none; }
  .hero.is-switching .hero-copy > *, .hero.is-switching .ghost-brand, .hero.is-switching .stat-n { animation: none; }
  .hero-media .hm-layer, .hero-media .hm-layer img { transition: none; }
}

/* ---------- плавающая кнопка WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 40;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: var(--wa); color: var(--wa-ink); text-decoration: none;
  font-family: var(--f-body); font-weight: 600; font-size: var(--fs-sm);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .15s, box-shadow .15s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.wa-float svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 520px) {
  .wa-float { padding: 11px 16px 11px 13px; gap: 8px; font-size: 0.9rem; }
  .wa-float svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

/* ---------- форма: согласие, ошибки полей, антиспам ---------- */
.field-check { gap: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.78rem !important; font-weight: 400 !important; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 18px !important; height: 18px; margin-top: 2px; accent-color: var(--accent); padding: 0 !important; }
.field.has-error .check { color: var(--danger); }
.field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-err { font-size: 0.75rem; color: var(--danger); }
.lead-form { position: relative; }
.field #f-country-other { margin-top: 8px; }
.lead-form button[disabled] { opacity: .6; cursor: progress; }

.form-note { font-size: 0.8rem; color: var(--ink); font-weight: 500; }
.form-privacy { font-size: 0.72rem; line-height: 1.45; color: var(--muted); }

/* ---------- подрамники ---------- */
.sf-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .sf-grid { grid-template-columns: minmax(0, 1fr); } }
.sf-card { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; min-width: 0; }
.sf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.sf-head h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.1rem; }
.sf-loader { font-size: var(--fs-xs); color: var(--muted); }
.sf-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-view { position: relative; display: block; padding: 10px; border: 0; background: #fff; cursor: zoom-in; min-width: 0; }
.sf-view + .sf-view { border-left: 1px solid var(--line); }
.sf-view img { display: block; width: 100%; height: auto; aspect-ratio: 14 / 9; object-fit: contain; transition: transform .25s; }
.sf-view:hover img { transform: scale(1.03); }
.sf-view span { position: absolute; left: 10px; bottom: 8px; font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: #61676b; background: rgba(255,255,255,.85); padding: 2px 6px; }
.sf-view:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(20, 24, 26, .88); }
.lb-fig { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; background: #fff; border-radius: 2px; }
.lb-fig figcaption { color: #f1f3f4; font-size: var(--fs-sm); text-align: center; }
.lb-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; cursor: pointer; }
.lb-nav { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; padding-bottom: 4px; cursor: pointer; }
.lb-nav:hover, .lb-close:hover { background: var(--accent); }
@media (max-width: 600px) {
  .lightbox { padding: 60px 8px 16px; flex-wrap: wrap; }
  .lb-fig { order: 1; width: 100%; }
  .lb-nav { order: 2; }
}

.sf-note { margin-top: 20px; padding: 14px 18px; background: var(--surface); color: var(--ink); border-left: 4px solid var(--accent); font-size: 16px; line-height: 1.5; }
.sf-note a { color: var(--accent-strong); font-weight: 600; white-space: nowrap; }

/* ---------- Конструкция: фото узлов ---------- */
.build-photos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(32px, 5vw, 56px); }
.bp { position: relative; display: block; padding: 0; border: 0; overflow: hidden; background: var(--sunk); cursor: zoom-in; grid-column: span 2; aspect-ratio: 16 / 9; color: #fff; text-align: left; font: inherit; }
.bp:first-child { grid-column: 1 / 5; grid-row: 1 / 3; aspect-ratio: auto; }
.bp:nth-child(2) { grid-column: 5 / 7; grid-row: 1; }
.bp:nth-child(3) { grid-column: 5 / 7; grid-row: 2; }
.bp-tall img { object-position: 50% 6%; }
.bp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.bp:hover img { transform: scale(1.045); }
.bp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 24, 26, .85) 0%, rgba(20, 24, 26, .45) 38%, rgba(20, 24, 26, 0) 62%); pointer-events: none; }
.bp-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; padding: 14px 16px; }
.bp-n { grid-row: span 2; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: .08em; color: var(--accent); padding-top: 2px; }
.bp-cap strong { font-size: 1rem; font-weight: 600; line-height: 1.25; }
.bp-d { font-size: 0.82rem; line-height: 1.4; color: rgba(255, 255, 255, .82); }
.bp:first-child .bp-cap { padding: 22px 24px; }
.bp:first-child .bp-cap strong { font-size: 1.3rem; }
.bp:first-child .bp-d { font-size: 0.92rem; }
.bp:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1100px) { .bp:not(:first-child) .bp-d { display: none; } }
@media (max-width: 760px) {
  .build-photos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .build-photos::-webkit-scrollbar { display: none; }
  .bp, .bp:first-child, .bp:nth-child(2), .bp:nth-child(3) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .bp:not(:first-child) .bp-d { display: block; }
  .bp:first-child .bp-cap { padding: 14px 16px; }
  .bp:first-child .bp-cap strong { font-size: 1rem; }
  .bp:first-child .bp-d { font-size: 0.82rem; }
}
@media (prefers-reduced-motion: reduce) { .bp img { transition: none; } }
.lightbox.lb-photo .lb-fig img { background: transparent; align-self: center; }
