/* ==========================================================================
   components.css — page components, rebuilt from the Claude Design prototype.
   --------------------------------------------------------------------------
   HOME (prototype-accurate): hero + product showcase card (hatch + floating
   spec chips wrapping a real photo), stats strip, "two directions" / catalog
   cards, services cards, dark trust band, lead form.

   CATALOG / CONTENT / NEWS / CONTACTS: kept from the previous build, restyled
   purely through the token system (legacy aliases in tokens.css map --ink /
   --muted / --panel / --anchor / --radius … onto the new design tokens), so
   those pages render coherently in the new theme until they get their own pass.

   All colors come from tokens.css. No raw color literals belong here.
   ========================================================================== */

/* ==========================================================================
   SHARED SECTION PRIMITIVES
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow .tick {
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.eyebrow b {
  color: var(--accent);
  font-weight: 500;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ==========================================================================
   HERO — background video (full-bleed dark band) + light stat strip below
   ========================================================================== */
.hero-video {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(460px, 66vh, 680px);
  display: flex;
  align-items: center;
  /* light text + translucent lines, since content sits over dark footage */
  --text: #F4F6F7;
  --text-2: #C7CED3;
  --text-3: #9AA2A8;
  --line: rgba(236, 240, 243, .14);
  --line-2: rgba(236, 240, 243, .24);
  --surface: rgba(255, 255, 255, .06);
}

.hero-video__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-video__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(96deg, rgba(10, 12, 15, .92) 0%, rgba(10, 12, 15, .66) 44%, rgba(10, 12, 15, .30) 100%),
    linear-gradient(0deg, rgba(10, 12, 15, .55), transparent 38%);
}

.hero-video__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 40px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-video .hero__copy {
  max-width: 720px;
}

.hero-video__pin {
  flex: none;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 19px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, #0a0c0f 55%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  transition: border-color .25s, transform .25s var(--ease);
}

.hero-video__pin:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.hero-video__pin-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-video__pin-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: var(--text);
  max-width: 24ch;
}

.hero-video__pin-go {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 4px;
}

.hero-strip {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
}

.hero-strip .stat-strip {
  margin-top: clamp(28px, 4vw, 48px);
}

/* ==========================================================================
   HERO (legacy two-column copy + showcase — kept for reuse)
   ========================================================================== */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 40px) clamp(40px, 6vw, 80px);
}

.hero__glow {
  position: absolute;
  right: -6%;
  top: 6%;
  width: min(58%, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--glow) 0%, var(--glow-soft) 38%, transparent 68%);
  filter: blur(8px);
  animation: emberPulse 6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 26px;
}

.hero__badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex: none;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.3vw, 56px);
  line-height: 1.05;
  letter-spacing: -.018em;
  margin-bottom: 24px;
  text-wrap: balance;
  /* wrap only at word boundaries — never split a word like «останавливается» */
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-2);
  max-width: 46ch;
  margin-bottom: 34px;
  text-wrap: pretty;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__cta-row .btn {
  padding: 16px 30px;
  font-size: 17px;
}

.hero__cta-row .btn--ghost {
  padding: 16px 26px;
  font-size: 16px;
}

/* --- product showcase card (hatch stage + real photo + floating chips) --- */
.showcase {
  position: relative;
  z-index: 2;
}

.showcase__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}

.showcase__stage {
  aspect-ratio: 4 / 4.1;
  position: relative;
  background: var(--ph-base);
  overflow: hidden;
}

.showcase__hatch {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, var(--ph-stripe) 0 14px, transparent 14px 28px);
  pointer-events: none;
}

.showcase__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(116deg, rgba(255, 255, 255, .12) 0%, transparent 26%, transparent 72%, rgba(255, 255, 255, .06) 100%);
  pointer-events: none;
}

.showcase__heat {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translateX(-50%);
  width: 76%;
  height: 40%;
  background: radial-gradient(72% 100% at 50% 0%, var(--glow), transparent 72%);
  filter: blur(7px);
  pointer-events: none;
}

/* the photo sits inside a framed "device" panel resting on the hatched steel
   backdrop — so a real (rectangular, own-background) product shot reads as a
   deliberately placed tile, not a raw rectangle floating on the stripes. */
.showcase__device {
  position: absolute;
  left: 50%;
  top: 11%;
  width: 76%;
  height: 60%;
  transform: translateX(-50%);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--ph-box);
  box-shadow: 0 26px 50px -20px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
  z-index: 1;
}

.showcase__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase__contact {
  position: absolute;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  width: 52%;
  height: 11px;
  border-radius: 50%;
  background: var(--ph-contact);
  filter: blur(12px);
}

/* floating readout chips */
.showcase__chip {
  position: absolute;
  padding: 10px 13px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-2);
  z-index: 2;
}

.showcase__chip--tl {
  left: 6%;
  top: 6%;
}

.showcase__chip--r {
  right: 6%;
  top: 26%;
}

.showcase__chip-k {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.showcase__chip-v {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
}

.showcase__chip-v span {
  color: var(--accent);
}

.showcase__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 92%, transparent), transparent);
  z-index: 2;
}

.showcase__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.showcase__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.1;
}

.showcase__open {
  flex: none;
  padding: 11px 16px;
  border-radius: 13px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s;
}

.showcase__open:hover {
  transform: translateY(-2px);
  color: var(--bg);
}

/* ==========================================================================
   STATS STRIP (hero trust strip)
   ========================================================================== */
.stat-strip {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.stat-strip__cell {
  background: var(--bg);
  padding: 22px 20px;
}

.stat-strip__n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -.02em;
  color: var(--text);
}

.stat-strip__l {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 4px;
}

/* legacy .stats / .stat (blocks.njk trust macro fallback) */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.stat {
  background: var(--bg);
  padding: 22px 20px;
}

.stat .n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1;
}

.stat .n span {
  color: var(--accent);
}

.stat .l {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 6px;
}

/* ==========================================================================
   GENERIC SECTION + HEADINGS
   ========================================================================== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 90px) clamp(18px, 4vw, 40px);
}

.section--band {
  max-width: none;
  padding: 0;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section--band > .wrap {
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(48px, 6vw, 96px);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 38px;
  max-width: 100%;
}

.section__index {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--text);
  text-wrap: balance;
}

.section__intro {
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ==========================================================================
   "TWO DIRECTIONS" / CATALOG CATEGORY CARDS
   ========================================================================== */
/* each direction (Thermosmoke / MeatLine) is its own labelled block */
.dir-block {
  margin-bottom: clamp(30px, 4vw, 52px);
}

.dir-block:last-child {
  margin-bottom: 0;
}

.dir-block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 22px;
  margin-bottom: clamp(20px, 2.4vw, 28px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

/* the brand identifies the direction at a glance: a bold name + accent mark */
.dir-block__id {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 18px;
}

.dir-block__id::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.dir-block__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.8vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  transition: color 0.2s;
}

.dir-block__brand:hover {
  color: var(--accent);
}

.dir-block__kicker {
  color: var(--text-2);
  font-size: 14.5px;
}

.dir-block__all {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .2s;
}

.dir-block__all:hover {
  color: var(--accent);
}

.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}

.dir-card {
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  transition: transform .35s var(--ease), border-color .3s;
}

.dir-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.dir-card__media {
  aspect-ratio: 16 / 10;
  position: relative;
  background: var(--surface-2);
  background-image: repeating-linear-gradient(135deg, var(--ph-stripe) 0 14px, transparent 14px 28px);
  overflow: hidden;
}

.dir-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* line-art fallback shown on the hatched media when a category has no photo */
.dir-card__ic {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.dir-card__ic svg {
  width: 46px;
  height: 46px;
  opacity: .85;
}

.dir-card__brand {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  padding: 4px 9px;
  border-radius: var(--r-xs);
}

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

.dir-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}

.dir-card__text {
  color: var(--text-2);
  font-size: 14.5px;
  text-wrap: pretty;
}

.dir-card__more {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ==========================================================================
   SERVICES CARDS
   ========================================================================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.svc-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.4vw, 32px);
  min-height: 248px;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}

.svc-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.svc-card__ghost {
  position: absolute;
  right: 14px;
  top: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--text);
  opacity: .05;
  pointer-events: none;
}

.svc-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.svc-card__no {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: auto;
}

.svc-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin: 28px 0 10px;
  letter-spacing: -.01em;
}

.svc-card__text {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ==========================================================================
   DARK TRUST BAND (cinematic steel)
   ========================================================================== */
.trust {
  position: relative;
  overflow: hidden;
  margin-top: clamp(20px, 3vw, 44px);
  color: #F1F4F6;
  background:
    radial-gradient(115% 80% at 86% -10%, #311618 0%, transparent 44%),
    linear-gradient(180deg, #181B20 0%, #101216 100%);
  /* local token overrides so child text/lines read on the dark band */
  --text: #F1F4F6;
  --text-2: #A7AFB6;
  --text-3: #727A82;
  --line: rgba(236, 240, 243, .11);
  --line-2: rgba(236, 240, 243, .20);
  --accent: #F5483B;
  --glow: rgba(245, 72, 59, .32);
}

.trust__hatch {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(122deg, rgba(255, 255, 255, .022) 0 2px, transparent 2px 10px);
  pointer-events: none;
}

.trust__glow {
  position: absolute;
  right: -6%;
  top: -24%;
  width: min(52%, 580px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 64%);
  filter: blur(12px);
  pointer-events: none;
}

.trust .wrap {
  position: relative;
  padding-top: clamp(56px, 7vw, 108px);
  padding-bottom: clamp(56px, 7vw, 108px);
}

.trust__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 68px);
}

.trust__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.03;
  letter-spacing: -.022em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.trust__title em {
  font-style: normal;
  color: var(--accent);
}

.trust__sub {
  color: var(--text-2);
  font-size: 18px;
  max-width: 46ch;
  text-wrap: pretty;
}

.trust__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  border-top: 1px solid var(--line-2);
}

.trust__stat {
  padding: clamp(26px, 3vw, 40px) 24px clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
}

.trust__stat-n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 4.6vw, 66px);
  letter-spacing: -.03em;
  line-height: .98;
  color: var(--text);
}

.trust__stat-l {
  color: var(--text-2);
  font-size: 14.5px;
  margin-top: 14px;
}

.trust__clients {
  margin-top: clamp(34px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust__clients-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-right: 4px;
}

.trust__client {
  padding: 11px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-2);
  background: rgba(255, 255, 255, .02);
}

/* legacy .trust .logos (real client-logo assets when supplied) */
.trust .logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  margin-top: clamp(34px, 4vw, 56px);
}

.trust .logos__item img {
  height: 34px;
  width: auto;
  opacity: .8;
}

/* ==========================================================================
   LEAD CTA + LEAD FORM
   ========================================================================== */
.lead {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 6vw, 96px);
}

.lead .wrap {
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(48px, 6vw, 96px);
}

.lead-cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.lead-cta__intro .eyebrow {
  margin-bottom: 16px;
}

.lead-cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -.022em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.lead-cta__text {
  color: var(--text-2);
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 30px;
  text-wrap: pretty;
}

.lead-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-point {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: 15.5px;
}

.lead-point .tick-c {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-family: var(--font-mono);
}

.lead-form {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 38px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}

.lead-form__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 24px);
  color: var(--text);
  margin-bottom: 2px;
}

.lead-form__field {
  display: grid;
  gap: 7px;
}

.lead-form__field label,
.lead-form__field > span {
  font-size: 13px;
  color: var(--text-2);
}

.lead-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  transition: border-color .2s;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: var(--text-3);
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--accent);
}

.lead-form input:focus:not(:focus-visible),
.lead-form textarea:focus:not(:focus-visible) {
  outline: none;
}

.lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
}

.lead-form__consent input {
  width: auto;
  margin-top: 3px;
}

.lead-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  padding: 16px;
  font-size: 16px;
}

.lead-form__note {
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.5;
}

/* ---- form validation feedback (forms.js) -------------------------------- */
.field-error {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--danger);
}

.lead-form [aria-invalid="true"] {
  border-color: var(--danger);
}

.form-error {
  font-size: 13px;
  line-height: 1.5;
  color: var(--danger);
}

.lead-form .btn[disabled] {
  opacity: .6;
  cursor: progress;
}

.form-success {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--success);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
}

/* ==========================================================================
   BOARD (legacy standalone CTA band — blocks.njk `cta` macro)
   ========================================================================== */
.board {
  background: var(--bg-2);
  color: var(--text);
  padding: clamp(48px, 6vw, 90px) 0;
  border-top: 1px solid var(--line);
}

.board h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 20px 0 8px;
  max-width: 780px;
}

.board .sub {
  color: var(--text-2);
  font-size: 16px;
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* ==========================================================================
   MESSENGERS (legacy)
   ========================================================================== */
.messengers {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.messenger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  background: var(--surface);
  transition: border-color .25s, color .25s;
}

.messenger:hover {
  border-color: var(--accent);
  color: var(--text);
}

.messenger .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   CATALOG — section / category / product pages (token-restyled)
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
  font-weight: 500;
}

.bgrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-12 { grid-column: span 12; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), border-color .3s;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.product-card__media {
  aspect-ratio: 4 / 3;
  background: var(--ph-base);
  position: relative;
}

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

.product-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-card__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.product-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--text);
}

.product-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.product-card__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
  margin-top: auto;
}

.product-card__meta span {
  color: var(--accent);
}

.product-card__specs {
  margin: 4px 0 0;
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--text-2);
}

.product-card__spec {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 4px;
}

.product-card__spec dt { color: var(--text-3); }
.product-card__spec dd { margin: 0; text-align: right; }

.product-card__price {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
}

.product-card__price--muted {
  color: var(--text-3);
  font-size: 13.5px;
}

.product-card__cta {
  padding: 0 22px 22px;
}

.product-card__cta .btn {
  width: 100%;
  justify-content: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

/* breadcrumbs */
.crumbs,
.breadcrumbs {
  padding: 22px 0 4px;
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
}

.crumbs__item a {
  color: var(--text-3);
  text-decoration: none;
  transition: color .2s;
}

.crumbs__item a:hover { color: var(--text); }
.crumbs__item [aria-current='page'] { color: var(--accent); }
.crumbs__sep { color: var(--line-2); }

/* category cards grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  padding: 0 0 20px;
  text-decoration: none;
  transition: transform .35s var(--ease), border-color .3s;
}

.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.cat-card .product-card__media {
  margin-bottom: 8px;
}

.cat-card__icon {
  margin: 22px 20px 2px;
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--accent);
  transition: border-color .3s, background .3s, color .3s;
}

.cat-card__icon svg {
  width: 26px;
  height: 26px;
}

.cat-card:hover .cat-card__icon {
  border-color: var(--accent);
}

/* fill the tile with the accent only for the custom line-art icons (Запчасти);
   original render/photo icons keep their light tile so the image stays clean */
.cat-card:hover .cat-card__icon:not(:has(.cat-ico-img)) {
  background: var(--accent);
  color: var(--accent-ink);
}

.cat-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--text);
  padding: 0 20px;
}

.cat-card__text {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
  padding: 0 20px;
}

.cat-card__more {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px 0;
}

/* product page layout */
.product__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* clean product "lightbox": a single white panel, no hatch/nested frame, so
   the white-background renders sit on it seamlessly */
.product__stage {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}

.product__main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 6%;
}

.product__brand {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--text-3);
}

.product__chip--1 { left: 16px; top: 16px; }
.product__chip--2 { right: 16px; top: 30%; }

.product__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.product__thumb {
  width: 76px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s;
}

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

.product__thumb.is-active,
.product__thumb:hover {
  border-color: var(--accent);
}

.product__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.product__article {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 20px;
}

.product__article span { color: var(--text-2); }

.product__price { margin-bottom: 22px; }

.product__price-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  color: var(--text);
  letter-spacing: -.02em;
}

.product__price-value--muted {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-2);
}

.product__lead {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 26px;
}

.product__section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--text);
  margin: 56px 0 20px;
}

.benefits-list {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list__item {
  position: relative;
  padding-left: 26px;
  color: var(--text-2);
  line-height: 1.55;
}

.benefits-list__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

.product__description {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
  max-width: 760px;
}

.product__description p { margin: 0 0 14px; }

/* headline metrics — the few numbers a buyer cares about, shown big above the
   full grid (selection done by the `specMetrics` filter in main.ts) */
.spec-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: clamp(16px, 2.4vw, 36px);
  margin-bottom: clamp(18px, 2.2vw, 26px);
  padding-bottom: clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--line);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.metric__value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 7px;
  font-family: var(--font-display);
  color: var(--text);
}

.metric__num {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
}

.metric__pre {
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--text-3);
}

.metric__unit {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.3vw, 15px);
  color: var(--text-2);
}

.metric__label {
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-3);
}

/* compact, responsive spec grid rendered as soft data tiles — key caption above
   a mono value; a long list flows into several columns instead of one tall run */
.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 8px;
  margin: 0;
}

.spec {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 15px 14px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  transition: border-color .25s, background .25s;
}

/* a thin accent stub on the left edge, grows on hover */
.spec::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity .25s, top .25s var(--ease), bottom .25s var(--ease);
}

.spec:hover {
  background: var(--surface);
  border-color: var(--line-2);
}

.spec:hover::before {
  opacity: 1;
  top: 10px;
  bottom: 10px;
}

.spec__key {
  margin: 0;
  font-size: 12px;
  letter-spacing: .01em;
  line-height: 1.3;
  color: var(--text-3);
}

.spec__value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--text);
}

.docs-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}

.doc-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.doc-link__ic {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}

.doc-link__ic svg {
  width: 22px;
  height: 22px;
}

.doc-link__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.doc-link__name {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--text);
}

.doc-link__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.doc-link__go {
  margin-left: auto;
  flex: none;
  color: var(--text-3);
  font-size: 18px;
  transition: color .2s, transform .2s;
}

.doc-link:hover .doc-link__go {
  color: var(--accent);
  transform: translateY(2px);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed--file {
  background: #05070a;
}

.video-embed__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* category "video in action" block */
.cat-videos {
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.cat-videos__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--text);
  margin-bottom: 22px;
}

/* framed, captioned video card (designed gallery) */
.vcard {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s;
}

.vcard:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.vcard__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05070a;
}

.vcard__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.vcard__tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, #05070a 55%, transparent);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
}

.vcard__play {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--accent);
}

.vcard__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
}

.vcard__label {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.3;
}

.vcard__no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  flex: none;
}

/* cinematic dark "technical features" block (mirrors the original site) */
.tech-highlights {
  position: relative;
  overflow: hidden;
  margin-top: clamp(44px, 5vw, 68px);
  border-radius: var(--r-lg);
  color: #F1F4F6;
  background:
    radial-gradient(120% 90% at 88% -10%, #341619 0%, transparent 46%),
    linear-gradient(180deg, #181B20 0%, #101216 100%);
  --text: #F1F4F6;
  --text-2: #B7BEC4;
  --text-3: #828A91;
  --accent: #F5483B;
  --line: rgba(236, 240, 243, .12);
}

.tech-highlights__hatch {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(122deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 11px);
  pointer-events: none;
}

.tech-highlights__inner {
  position: relative;
  padding: clamp(28px, 3.6vw, 50px);
}

.tech-highlights__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.tech-highlights__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.9vw, 36px);
  letter-spacing: -.02em;
  color: #fff;
  margin: 10px 0 20px;
}

.tech-highlights .prose {
  color: var(--text-2);
  max-width: none;
}

.tech-highlights .prose strong { color: #fff; }
.tech-highlights .prose li::marker { color: var(--accent); }
.tech-highlights .prose a { color: var(--accent); }

/* lighter sibling for short «Технические особенности» — keeps the heading so the
   text never reads as a stray, unframed run, without the heavy dark treatment */
.tech-notes {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg);
}

.tech-notes__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.tech-notes__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -.02em;
  color: var(--text);
  margin: 10px 0 16px;
}

.tech-notes .prose { max-width: none; }

/* spare-parts CTA on the product page — a compact, fully clickable dark banner
   (the original site leaked this as loose text inside «Технические особенности») */
.parts-cta {
  --accent: #F5483B;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(20px, 2.4vw, 30px) clamp(22px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  color: #F1F4F6;
  text-decoration: none;
  background:
    radial-gradient(120% 130% at 90% -20%, #341619 0%, transparent 52%),
    linear-gradient(180deg, #181B20 0%, #101216 100%);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.parts-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.7);
}

.parts-cta__cog {
  flex: none;
  width: clamp(42px, 4vw, 56px);
  height: clamp(42px, 4vw, 56px);
  color: var(--accent);
}

.parts-cta__cog svg {
  width: 100%;
  height: 100%;
}

.parts-cta__copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.parts-cta__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.parts-cta__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.parts-cta__go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.parts-cta__go .arr {
  transition: transform 0.25s var(--ease);
}

.parts-cta:hover .parts-cta__go .arr {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .parts-cta {
    flex-wrap: wrap;
  }
  .parts-cta__go {
    width: 100%;
    justify-content: center;
  }
}

/* highlighted technical-specs panel */
.spec-panel {
  position: relative;
  overflow: hidden;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(20px, 2.2vw, 28px) clamp(20px, 2.4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.spec-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.spec-panel__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(21px, 2.3vw, 26px);
  color: var(--text);
  margin: 0 0 clamp(14px, 1.6vw, 20px);
}

/* legacy lead-cta layout used by category/product/content templates */
.lead-cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  color: var(--text);
  margin: 18px 0 14px;
}

/* ==========================================================================
   THANK-YOU PAGE (/spasibo/)
   ========================================================================== */
.thanks {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.thanks__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--text);
}

.thanks__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-3);
}

.thanks__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   CONTENT PAGES — article layout (.content) + prose
   ========================================================================== */
.content__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.content__article { max-width: 820px; }
.content__head { margin-bottom: 28px; }

.content__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 14px 0 0;
}

.content__aside {
  position: sticky;
  top: 96px;
}

.prose {
  max-width: 70ch;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.7;
}

.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 1.7em 0 .5em;
}

.prose h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.25;
  color: var(--text);
  margin: 1.5em 0 .45em;
}

.prose h4,
.prose h5,
.prose h6 {
  font-weight: 600;
  font-size: 16.5px;
  color: var(--text);
  margin: 1.4em 0 .4em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
}

.prose li { margin: 0 0 .4em; }
.prose li::marker { color: var(--accent); }

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover { color: var(--accent-hot); }
.prose strong { color: var(--text); font-weight: 600; }

.prose blockquote {
  margin: 1.2em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent);
  color: var(--text);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  margin: 1.2em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 15px;
}

.prose th,
.prose td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.8em 0;
}

.content__figure { margin: 0 0 1.2em; }

.content__figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

.content__figure--lead { margin: 0 0 28px; }

.content__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
  margin: 1.4em 0;
}

/* a lone image shouldn't stretch full-bleed nor shrink to a tiny cell */
.content__gallery--single {
  grid-template-columns: minmax(0, 520px);
}

.content__videos {
  margin: 1.4em 0;
  display: grid;
  gap: 18px;
}

.content__docs {
  margin: clamp(28px, 4vw, 44px) 0;
}

.content__docs-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--text);
  margin-bottom: 16px;
}

.content__back {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.arr--back { margin-right: 6px; }

/* ==========================================================================
   NEWS / ARTICLES — listing cards
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .3s, transform .35s var(--ease);
}

.news-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.news-card__media {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}

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

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.news-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.28;
  color: var(--text);
  margin: 0;
}

.news-card__text {
  color: var(--text-3);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__more {
  margin-top: auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* media section tabs (Все / Новости / Статьи) */
.media-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.media-tab {
  padding: 9px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color .2s, color .2s, background .2s;
}

.media-tab:hover {
  border-color: var(--accent);
  color: var(--text);
}

.media-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ==========================================================================
   ACCORDION (vacancies and other collapsible lists)
   ========================================================================== */
.accordion {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 12px;
}

.accordion__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--text);
  margin-bottom: 4px;
}

.acc-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s, box-shadow .25s;
}

.acc-item[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.acc-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.acc-item__head::-webkit-details-marker {
  display: none;
}

.acc-item__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
}

.acc-item__chev {
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 4px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform .25s var(--ease), border-color .2s;
}

.acc-item[open] .acc-item__chev {
  transform: rotate(-135deg);
  border-color: var(--accent);
}

.acc-item__body {
  padding: 2px 20px 20px;
  max-width: none;
}

.acc-item__body > :first-child {
  margin-top: 0;
}

/* ==========================================================================
   CONTACTS
   ========================================================================== */
.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: start;
}

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

.contacts__group-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
  margin: 0 0 12px;
}

.contacts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacts__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contacts__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.contacts__value {
  color: var(--text);
  font-size: 17px;
  text-decoration: none;
}

a.contacts__value {
  color: var(--text);
  transition: color .2s;
}

a.contacts__value:hover { color: var(--accent); }

.contacts__requisites {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contacts__req-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
  margin: 0;
}

.contacts__req-list dt {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-3);
}

.contacts__req-list dd {
  margin: 0;
  color: var(--text);
  font-size: 14.5px;
}

.contacts__map {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
}

.contacts__map-frame {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

.contacts__map-pin {
  font-size: 28px;
  color: var(--accent);
}

.contacts__map-text { font-size: 15px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .bgrid { gap: 18px; }
  .col-7,
  .col-5 { grid-column: span 12; }
}

@media (max-width: 900px) {
  .product__layout,
  .content__layout,
  .contacts {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .content__aside { position: static; }
}

/* ==========================================================================
   QUALITY / TRUST GUARANTEES (shared partial — product + category pages)
   ========================================================================== */
.quality {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.quality__head {
  margin-bottom: clamp(20px, 2.4vw, 30px);
}

.quality__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  margin-top: 8px;
  text-wrap: balance;
}

.quality__grid {
  display: grid;
  gap: clamp(14px, 1.6vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.quality__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.35s var(--ease);
}

.quality__item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.quality__ic {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 700;
}

.quality__item-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}

.quality__item-text {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ==========================================================================
   OFFICE CITY CARDS (shared: contacts + "Где купить") — each with a Yandex map
   ========================================================================== */
.contact-cities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  gap: clamp(18px, 2.5vw, 28px);
  margin-bottom: clamp(34px, 4.5vw, 56px);
}

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

.city-card:hover {
  border-color: var(--accent);
}

.city-card__body {
  padding: clamp(20px, 2.4vw, 28px);
}

.city-card__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 23px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.city-card__note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.city-card__row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

.city-card__row:first-of-type {
  border-top: 0;
}

.city-card__k {
  flex: none;
  min-width: 74px;
  color: var(--text-3);
  font-size: 12.5px;
  padding-top: 2px;
}

.city-card__v {
  color: var(--text-2);
  text-wrap: pretty;
}

.city-card__v a {
  color: var(--text);
}

.city-card__v a:hover {
  color: var(--accent);
}

.city-card__map {
  margin-top: auto;
  aspect-ratio: 16 / 9;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.city-card__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   SPARE-PARTS SECTION INDEX — products grouped by category bin (with photos)
   ========================================================================== */
.zap-group {
  margin-bottom: clamp(36px, 5vw, 60px);
}

.zap-group:last-child {
  margin-bottom: 0;
}

.zap-group__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.zap-group__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.zap-group__title:hover {
  color: var(--accent);
}

.zap-group__rule {
  flex: 1 1 30px;
  height: 1px;
  background: var(--line);
}

.zap-group__all {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.2s;
}

.zap-group__all:hover {
  color: var(--accent);
}

/* ==========================================================================
   VIDEO SHOWCASE — featured, always-balanced layouts.
   Every tile keeps the same 16:9 frame; rows share one width so their edges
   line up and nothing reads as ragged. Collapses to a single column on phones.
   ========================================================================== */
.video-showcase {
  --vs-gap: clamp(14px, 1.6vw, 20px);
}

/* 1 — a single large clip, left-aligned with the section heading above it */
.video-showcase--one {
  max-width: 920px;
}

/* 2 / 4 — even grids (2-up, 4 wraps to 2×2) */
.video-showcase--two,
.video-showcase--quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--vs-gap);
}

/* 3 / 5+ — a featured lead clip above an even row of the rest. Both the lead
   and the row share the same width, so their left/right edges align. */
.video-showcase--featured {
  display: grid;
  gap: var(--vs-gap);
  max-width: 980px;
}

.video-showcase__lead {
  width: 100%;
}

.video-showcase__rest {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--vs-gap);
}

@media (max-width: 720px) {
  .video-showcase--two,
  .video-showcase--quad,
  .video-showcase__rest {
    grid-template-columns: 1fr;
  }
}
