/* ЕВРОТЕРМ-К — design tokens. Change colors here. */
:root {
  /* Brand red (logo #E91E22) and a deeper shade for buttons (white text passes WCAG AA). */
  --red: oklch(0.6 0.22 27);
  --red-deep: oklch(0.52 0.2 27);
  --red-deeper: oklch(0.45 0.18 27);
  /* Neutrals tinted toward the brand hue. */
  --paper: oklch(0.985 0.004 40);
  --paper-2: oklch(0.96 0.007 40);
  --plate: oklch(0.935 0.006 40);
  --line: oklch(0.87 0.008 40);
  --muted: oklch(0.47 0.015 40);
  --ink: oklch(0.23 0.015 40);
  --ink-2: oklch(0.19 0.014 40);
  --on-ink: oklch(0.96 0.006 40);
  --on-ink-muted: oklch(0.76 0.012 40);

  --font-body: "Sofia Sans", system-ui, "Segoe UI", sans-serif;
  --font-display: "Sofia Sans Extra Condensed", "Sofia Sans", system-ui, sans-serif;

  --space-3xs: 4px; --space-2xs: 8px; --space-xs: 12px; --space-sm: 16px; --space-md: 24px;
  --space-lg: 32px; --space-xl: 48px; --space-2xl: 64px; --space-3xl: 96px;
  --section: clamp(64px, 9vw, 128px);
  --radius: 6px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--red-deep); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--red-deep); outline-offset: 3px; border-radius: 2px; }
.ico { width: 1em; height: 1em; flex: none; }

h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); line-height: .95; letter-spacing: -.005em; }
h1 { font-size: clamp(3rem, 1.9rem + 4.6vw, 5.75rem); font-weight: 800; }
h2 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.6rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0; }
.prose { display: grid; gap: var(--space-sm); max-width: 62ch; }
.lead { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.label {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.text-link { display: inline-flex; align-items: center; gap: var(--space-2xs); font-weight: 700; text-decoration: none; }
.text-link .ico { transition: transform .3s var(--ease-out); }
.text-link:hover .ico { transform: translateX(3px); }

.skip { position: absolute; left: -9999px; top: var(--space-2xs); }
.skip:focus { left: var(--space-sm); z-index: 20; background: var(--ink); color: var(--on-ink); padding: var(--space-2xs) var(--space-sm); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: var(--section) 0; }
.section.tint { background: var(--paper-2); }
.section.flush { padding-top: 0; }
.section-head { display: grid; gap: var(--space-xs); margin-bottom: clamp(32px, 4vw, 56px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: var(--space-lg); min-height: 76px; }
.brand { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.logo img { width: 140px; mix-blend-mode: multiply; }
/* Partner wordmark beside the company logo, separated by a hairline. */
.partner-logo { box-sizing: content-box; width: 156px; padding: var(--space-2xs) 0 var(--space-2xs) var(--space-sm); border-left: 1px solid var(--line); }
.site-header nav { display: flex; gap: var(--space-lg); margin-left: auto; }
.site-header nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; padding: var(--space-2xs) 0;
  background: linear-gradient(var(--red), var(--red)) no-repeat left bottom / 0 2px;
  transition: background-size .35s var(--ease-out);
}
.site-header nav a:hover, .site-header nav a[aria-current] { background-size: 100% 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  padding: 14px 24px; border-radius: var(--radius);
  background: var(--red-deep); color: var(--on-ink); border: 1px solid var(--red-deep);
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, transform .15s var(--ease-out);
}
.btn:hover { background: var(--red-deeper); border-color: var(--red-deeper); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { padding: 10px 16px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); }

/* Rating plate — the signature element: a riveted nameplate like the one on the machine */
.plate {
  --screw: radial-gradient(circle, var(--muted) 0 1.5px, var(--line) 2px 3.5px, transparent 4px);
  position: relative; padding: var(--space-md) var(--space-md) var(--space-sm);
  background:
    var(--screw) top 10px left 10px / 10px 10px no-repeat,
    var(--screw) top 10px right 10px / 10px 10px no-repeat,
    var(--screw) bottom 10px left 10px / 10px 10px no-repeat,
    var(--screw) bottom 10px right 10px / 10px 10px no-repeat,
    var(--plate);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.plate-title { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 var(--space-xs) var(--space-xs); border-bottom: 1px solid var(--line); }
.plate dl { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.plate dl > div { padding: var(--space-xs); border-bottom: 1px solid var(--line); }
.plate dl > div:nth-child(odd) { border-right: 1px solid var(--line); }
.plate dl > div:nth-last-child(-n+2) { border-bottom: 0; }
.plate dt { font-size: .8rem; color: var(--muted); }
.plate dd { margin: 0; font: 700 clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem)/1.05 var(--font-display); font-variant-numeric: tabular-nums; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 88px) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: var(--space-md); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-xs); font-size: 1.1rem; }
.checks li { display: flex; align-items: baseline; gap: var(--space-xs); }
.checks .ico { color: var(--red-deep); transform: translateY(2px); }
.hero-copy .actions { margin-top: var(--space-xs); }
.hero-copy .plate { max-width: 440px; }
/* The hero picture is a finished portrait poster with its own text, so it is shown whole, never cropped. */
.hero-media > img { border-radius: var(--radius); width: 100%; }

/* Text split */
.split-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }

/* Model line-up */
.lineup-group { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: var(--space-xl) 0 var(--space-xs); }
.section-head + .lineup-group { margin-top: 0; }
.lineup { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.lineup li { border-bottom: 1px solid var(--line); }
.model {
  display: grid; grid-template-columns: 88px minmax(0, 1.9fr) repeat(4, minmax(0, 1fr)) auto;
  align-items: center; gap: var(--space-md);
  padding: var(--space-sm) var(--space-xs); color: var(--ink); text-decoration: none;
  transition: background-color .25s var(--ease-out);
}
.model img { width: 88px; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s var(--ease-out); }
.model-name { display: grid; gap: 4px; font: 800 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1 var(--font-display); }
.model-name small { font: 400 .85rem/1.35 var(--font-body); color: var(--muted); }
.fig { display: grid; gap: 2px; }
.fig b { font: 700 clamp(1.35rem, 1.1rem + .8vw, 1.75rem)/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fig small { font-size: .8rem; color: var(--muted); }
.model-go { display: inline-flex; align-items: center; gap: var(--space-2xs); font-weight: 700; color: var(--red-deep); }
.model-go .ico { transition: transform .3s var(--ease-out); }
.model:hover { background: var(--paper-2); }
.model:hover img { transform: scale(1.04); }
.model:hover .model-go .ico { transform: translateX(4px); }
.model[aria-current] { background: var(--paper-2); }
.model[aria-current] .model-go { color: var(--muted); }

/* Image + text feature */
.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature > img { border-radius: var(--radius); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--space-lg); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; column-gap: var(--space-sm); row-gap: var(--space-2xs); }
.steps li::before {
  content: "0" counter(step); grid-row: span 2;
  font: 800 2.6rem/0.9 var(--font-display); color: var(--red);
}
.steps p { color: var(--muted); }

/* Facts */
.facts { margin: 0; display: grid; border-top: 1px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-md); align-items: baseline; padding: var(--space-lg) 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 800 clamp(3rem, 2rem + 4vw, 5.5rem)/0.9 var(--font-display); color: var(--ink); }
.facts dd { margin: 0; display: grid; gap: var(--space-2xs); max-width: 48ch; }
.facts dd p { color: var(--muted); }

/* Product page */
.product-hero { padding-top: clamp(24px, 4vw, 48px); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: var(--space-lg); }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.product-media { background: var(--paper-2); border-radius: var(--radius); padding: clamp(16px, 4vw, 48px); }
.product-media img { mix-blend-mode: multiply; margin: 0 auto; max-height: 520px; width: auto; }
.product-copy { display: grid; gap: var(--space-md); }
.model-title { font-size: clamp(2.75rem, 1.9rem + 3.4vw, 5rem); line-height: .9; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-sm); margin-top: var(--space-lg); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; mix-blend-mode: multiply; }

/* Description rows: title left, text right */
.desc { border-top: 1px solid var(--ink); }
.desc-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-xs) clamp(24px, 5vw, 80px); padding: var(--space-lg) 0; border-bottom: 1px solid var(--line); }
.desc-row h3 { font: 700 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.05 var(--font-display); }
.dots { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2xs); }
.dots li { position: relative; padding-left: var(--space-md); }
.dots li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* Spec sheet: wide tables scroll sideways, first column stays put */
.table-scroll { overflow-x: auto; border-top: 1px solid var(--ink); }
.table-scroll + .table-scroll { margin-top: var(--space-xl); }
.spec-table { width: 100%; min-width: calc(240px + var(--cols) * 128px); border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { padding: 10px var(--space-sm) 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table thead th { font-size: .8rem; font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--ink); }
.spec-table tbody th[scope="row"], .spec-table thead th:first-child {
  position: sticky; left: 0; background: var(--paper); width: var(--label, 240px); min-width: var(--label, 240px); font-weight: 400; color: var(--muted);
}
.spec-table td { font-weight: 600; font-variant-numeric: tabular-nums; }
.spec-table.wide td { white-space: nowrap; }
.spec-table td[colspan] { white-space: normal; }
/* One value shared by all models: keep it in view while scrolling sideways. */
.spec-table td[colspan] span { position: sticky; left: calc(var(--label, 240px) + var(--space-sm)); display: inline-block; }
.spec-table .grp th { padding-top: var(--space-md); font-weight: 700; color: var(--ink); border-bottom-color: var(--ink); }
.spec-table .grp.sub th { padding-top: var(--space-sm); font-weight: 600; border-bottom-color: var(--line); }
.spec-table .grp span { position: sticky; left: 0; display: inline-block; max-width: min(72ch, 86vw); }

/* Contacts */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.people li { display: grid; gap: var(--space-2xs); padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; border-bottom: 1px solid var(--line); }
.people li + li { padding-left: var(--space-lg); border-left: 1px solid var(--line); }
.person { font-size: 1.2rem; font-weight: 600; }
.big-phone { font: 800 clamp(2.6rem, 1.6rem + 4vw, 4.75rem)/1 var(--font-display); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; transition: color .2s; }
.big-phone:hover { color: var(--red-deep); }
/* Distributor form: label above each field, hint below */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.field { display: grid; gap: var(--space-2xs); align-content: start; justify-items: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--red-deep); outline-offset: 1px; border-color: var(--ink); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red-deep); }
.hint { font-size: .85rem; color: var(--muted); }
.hp { display: none; }
.office-address { font: 700 clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem)/1.05 var(--font-display); margin-top: var(--space-xs); }
.map { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }

/* Call band + footer */
.call { background: var(--ink); color: var(--on-ink); padding: clamp(56px, 8vw, 104px) 0; }
.call .label { color: var(--on-ink-muted); }
.call-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.call-text { font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); line-height: 1.55; margin-top: var(--space-xs); max-width: 36ch; }
.call-phones { display: grid; gap: var(--space-sm); justify-items: start; }
.call-number {
  display: grid; color: var(--on-ink); text-decoration: none;
  font: 800 clamp(3rem, 1.6rem + 6vw, 6.5rem)/0.95 var(--font-display); font-variant-numeric: tabular-nums;
  transition: color .2s;
}
.call-number small { font: 600 .78rem/1.6 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-muted); }
.call-number:hover { color: oklch(0.72 0.17 27); }
.site-footer { background: var(--ink-2); color: var(--on-ink-muted); padding: var(--space-2xl) 0 var(--space-md); font-size: .95rem; line-height: 1.7; }
.site-footer .label { color: var(--on-ink); margin-bottom: var(--space-2xs); }
.site-footer a { color: var(--on-ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-lg); }
.copy { margin-top: var(--space-xl); padding-top: var(--space-md); border-top: 1px solid oklch(0.32 0.015 40); font-size: .85rem; }

/* Motion: one staggered entrance per page */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .8s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* Tablet */
@media (max-width: 1000px) {
  .model { grid-template-columns: 80px minmax(0, 1fr) repeat(2, minmax(0, 1fr)); row-gap: var(--space-sm); }
  .model img { width: 80px; grid-row: span 2; }
  .model-name { grid-row: span 2; }
  .model-go { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .split-text { grid-template-columns: 1fr; }
  /* Two logos need the room: the header call button becomes a phone icon (the number stays in its label). */
  .header-row, .site-header nav { gap: var(--space-md); }
  .logo img, .partner-logo { width: 120px; }
  .header-call { padding: 13px 14px; }
  .header-call span { display: none; }
}

/* Phone */
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; gap: 0 var(--space-sm); min-height: 0; padding-top: var(--space-2xs); }
  .logo img { width: clamp(96px, 30vw, 116px); }
  .partner-logo { width: clamp(96px, 32vw, 120px); padding-left: var(--space-xs); }
  .brand { gap: var(--space-xs); }
  .site-header .btn-sm { margin-left: auto; }
  .site-header nav { order: 3; width: 100%; margin: 0; gap: 0; justify-content: space-between; border-top: 1px solid var(--line); }
  .site-header nav a { padding: var(--space-xs) 0; }

  .hero-grid, .split-text, .feature, .product, .desc-row, .form, .call-grid { grid-template-columns: 1fr; }
  .spec-table { --label: 150px; min-width: calc(150px + var(--cols) * 120px); }

  .model { grid-template-columns: 72px 1fr 1fr; gap: var(--space-xs) var(--space-sm); padding: var(--space-md) 0; }
  .model img { width: 72px; grid-row: span 3; align-self: start; }
  .model-name { grid-column: 2 / -1; grid-row: auto; }

  .facts > div { grid-template-columns: 1fr; gap: var(--space-xs); }
  .people { grid-template-columns: 1fr; }
  .people li, .people li + li { padding: var(--space-md) 0; border-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
