/* ============================================================
   ANGREN PIPE PLANT — Design tokens
   ============================================================ */
:root{
  /* Surfaces — a light industrial ground: Sand and white alternate */
  --bg-a:          #F5F6F7;   /* Sand */
  --bg-b:          #FFFFFF;
  --bg:            var(--bg-a);
  --section-rule:  #E1E4E8;   /* hairline */
  --surface-dark:  #0A0A0B;   /* Ink — the one dark band, footer, table heads */
  --surface-dark-h:#121315;   /* Surface */
  --surface-raised:#1B1D20;   /* Raised */
  --line-dark:     #2C2F34;   /* Line on dark */

  /* Ink */
  --ink:           #0A0A0B;
  --ink-body:      #5B6169;   /* Land — 5.6:1 on Sand */
  --ink-muted:     #9BA1A8;   /* Muted — captions on dark only */
  --ink-invert:    #F5F6F7;
  --ink-invert-2:  #C9CDD2;

  /* Copper — the single accent */
  --accent:        #C9793F;   /* Copper */
  --accent-hover:  #B5682F;
  --flame:         #F0A868;   /* Flame — light copper for dark grounds */
  --accent-ink:    #0A0A0B;   /* label ink on a copper fill — 6.4:1 */
  --accent-on-bg:  #C9793F;
  --accent-deep:   #A65E2A;   /* copper for small text — 4.6:1 on Sand */
  --accent-tint:   rgba(201,121,63,.12);
  --accent-label:  #4A2C14;

  /* Supply map — keep in sync with PALETTE in tools/build-map.py */
  --map-home:      #6E3715;
  --map-export:    #B0672F;
  --map-other:     #C9CDD2;

  /* Lines */
  --rule:          #C9CDD2;
  --rule-dark:     #5B6169;

  /* Geometry: square by default, a whisper of rounding on controls */
  --r-card:        2px;
  --r-ctl:         2px;

  /* Type */
  --font-display: 'Fira Sans Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body:    'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-body:      1.0625rem;  /* 17px */
  --fs-small:     0.9375rem;  /* 15px */

  /* Spacing */
  --gutter:       clamp(1.25rem, 4vw, 2.5rem);
  --section-y:    clamp(4.5rem, 10vw, 9rem);

  /* Chrome */
  --header-h:     76px;

  /* Motion */
  --ease-out:     cubic-bezier(.22,.61,.36,1);
  --dur:          .55s;
}

/* ============================================================
   Reset / base
   ============================================================ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 1.5rem)}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink-body);
  font-family:var(--font-body);
  font-size:var(--fs-body);
  font-weight:500;
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
ul,ol{margin:0;padding:0;list-style:none}
p{margin:0}
a{color:inherit}

/* No dark ring anywhere on the site: a focused control shows itself the way it
   does under the pointer — a button takes its hover colours, a link is
   underlined — so the keyboard is never lost and no black frame appears. */
:focus-visible{outline:none}
a:not(.btn):not(.prodcard):not(.doclink):not(.contact-rail__link):focus-visible{text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:2px}

/* ============================================================
   Layout
   ============================================================ */
.container{
  width:100%;
  max-width:1180px;
  margin-inline:auto;
  padding-inline:var(--gutter);
}
.section{
  padding-block:var(--section-y);
  background:var(--bg-a);
}
.section{--card-surface:var(--bg-b)}
.section:nth-of-type(even){background:var(--bg-b);--card-surface:var(--bg-a)}
.section + .section{border-top:1px solid var(--section-rule)}

/* Section index: every block head carries its number, the way a technical
   sheet numbers its chapters. The hero is the title page and stays 00. */
body{counter-reset:sec}
.section{counter-increment:sec}
.section--hero,
.section--kpi{counter-increment:none}

/* One dark band per long page. Every component reads its colours from these
   tokens, so overriding them here inverts the whole section at once. */
.section.section--invert{
  background:var(--surface-dark);
  border-top-color:transparent;
  --card-surface:var(--surface-dark-h);
  --section-rule:var(--line-dark);
  --ink:#F5F6F7;
  --ink-body:#C9CDD2;
  --accent-deep:var(--flame);
  --accent-tint:rgba(240,168,104,.14);
}
.section--invert + .section{border-top-color:transparent}
/* Do not invert the last section of a page: the footer is dark too, and the
   two would merge into one unbroken block. */

/* ============================================================
   Typography primitives
   ============================================================ */
.eyebrow{
  display:flex;
  align-items:center;
  gap:.75rem;
  font-family:var(--font-body);
  font-weight:600;
  font-size:.75rem;               /* 12px */
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--ink-body);
  margin-bottom:1.25rem;
  font-variant-numeric:tabular-nums;
}
/* Technical label: a short copper index mark, then the caption. Block heads
   swap the mark for the section number below. */
.eyebrow::before{
  content:"";
  display:block;
  width:1.5rem;
  height:1px;
  background:var(--accent);
  flex-shrink:0;
}
.block-head > .eyebrow::before,
.process__head > .eyebrow::before,
.range__headings > .eyebrow::before,
.about__intro > .eyebrow::before,
.kpi__head > .eyebrow::before,
.section--page-head .eyebrow::before{
  content:counter(sec, decimal-leading-zero);
  width:auto;
  height:auto;
  background:none;
  font-weight:700;
  color:var(--accent-deep);
}
/* inside a card the eyebrow is already a contained label — no slash */
.partner .eyebrow::before,
.request-card .eyebrow::before,
.modal .eyebrow::before{content:none}

.display{
  position:relative;
  margin:0 0 1.875rem;
  font-family:var(--font-display);
  font-weight:800;
  /* Cyrillic caps need room the Latin set does not: the breve on Й/Ё reaches
     0.93em above the baseline while Д/Щ drop 0.17em below it, so the tightest
     leading that never lets two lines touch is 1.1 (measured in this face). */
  line-height:1.06;
  letter-spacing:-.015em;
  text-transform:uppercase;
  color:var(--ink);
}
.display > span{display:block}

/* The bar is now the page-title mark only: it tells «где я» apart from
   «раздел страницы» instead of decorating every heading. */
.display--bar{padding-left:1.75rem}
.display--bar::before{
  content:"";
  position:absolute;
  left:0; top:.08em; bottom:.08em;
  width:3px;
  background:var(--accent);
}

/* A steeper scale: the hero and page titles are the loudest thing on the
   page, section titles a clear step down, sub-heads a step further. */
.display--1{font-size:clamp(3.25rem, 6.1vw, 5.75rem)}   /* 52 → 92px */
.display--3{font-size:clamp(2.375rem, 4.6vw, 4.25rem)}  /* 38 → 68px */
.display--2{font-size:clamp(2.5rem, 5.2vw, 4.75rem)}    /* 40 → 76px */
.display--4{font-size:clamp(1.625rem, 2.6vw, 2.375rem)} /* 26 → 38px */

.prose{max-width:60ch}          /* caps the measure once the grid stacks */
.prose p + p{margin-top:1.375rem}
.prose--tight{max-width:52ch}
.prose--lede{max-width:46ch;font-size:1.1875rem;line-height:1.55}

/* Dotted rule */
.dotted{
  display:block;
  width:100%;
  height:2px;
  background-image:radial-gradient(circle at center, var(--dot,var(--rule)) 1px, transparent 1.15px);
  background-size:6px 2px;
  background-repeat:repeat-x;
}
.dotted--short{--dot:var(--rule-dark);width:52px}
.dotted--invert{--dot:#585858}

/* Button */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  /* .btn lands on <button> as well as <a>; without these the browser's own
     2px outset button border shows through. */
  border:0;
  appearance:none;
  -webkit-appearance:none;
  min-height:48px;               /* touch target */
  padding-inline:1.875rem;
  background:var(--accent);
  color:var(--accent-ink);
  font-family:var(--font-body);
  font-weight:700;
  font-size:.75rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  text-decoration:none;
  border-radius:var(--r-ctl);
  cursor:pointer;
  transition:background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:focus-visible,
.btn:hover{
  background:var(--ink);
  color:var(--ink-invert);
}
.btn:active{transform:translateY(1px)}

.btn--ghost{
  background:transparent;
  color:var(--ink);
  box-shadow:inset 0 0 0 1px var(--ink);
}
.btn--ghost:hover,
.btn--ghost:focus-visible{
  background:var(--ink);
  color:var(--ink-invert);
  box-shadow:inset 0 0 0 1px var(--ink);
}

/* ============================================================
   SECTION 01 — About
   ============================================================ */
.about{
  display:grid;
  grid-template-columns:minmax(0,5fr) minmax(0,6fr);
  gap:clamp(3rem, 7vw, 7.2rem);
  align-items:start;
}
.about__intro .display{margin-bottom:0}
/* The heading pins beside the copy only while the two sit in separate
   columns. Stacked (phones), a pinned heading just parks under the header
   while the paragraphs slide over it — the page looks frozen. */
@media (min-width:1025px){
  .about__intro{position:sticky;top:calc(var(--header-h) + 2rem)}
}
/* the facts column starts level with the heading, not with the eyebrow */
.about__facts{display:flex;flex-direction:column;padding-top:.5rem}
.about__facts > .prose{margin-bottom:2.5rem}

/* Key figures — a ruled strip, numerals in copper. No cards: the numbers
   are the graphic. */
.section--kpi{padding-block:0}
.section--kpi + .section{border-top:0}
.stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid var(--section-rule);
  border-bottom:1px solid var(--section-rule);
}
.stat{
  display:flex;
  flex-direction:column;
  gap:1.25rem;
  padding:clamp(2rem, 3.6vw, 3rem) clamp(1.5rem, 2.6vw, 2.5rem);
  transition:background-color .25s ease;
}
.stat + .stat{border-left:1px solid var(--section-rule)}
.stat:hover{background:var(--bg-b)}
.stat__num{
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(3.25rem, 6.4vw, 6rem);    /* 52 → 96px */
  line-height:.9;
  letter-spacing:-.02em;
  color:var(--accent);
  font-variant-numeric:tabular-nums;
}
.stat .dotted--short{display:none}
.stat__label{
  font-weight:600;
  font-size:.8125rem;
  letter-spacing:.12em;
  line-height:1.5;
  text-transform:uppercase;
  color:var(--ink-body);
}

/* the certification note: ruled off, copper index, then the action */
.about__cta{
  margin-top:0;
  padding-top:1.75rem;
  border-top:1px solid var(--section-rule);
}
.about__cta .dotted{display:none}
.about__cta .btn{margin-top:1.75rem}

/* ============================================================
   SECTION 02 — Work process
   ============================================================ */
.process__head{margin-bottom:clamp(2.5rem, 5vw, 3.75rem)}

/* One row per stage: index, copy, and the stage's own drawing on a copper
   plate. The plates stagger left and right down the column so the stack
   reads as sheets laid out on a bench, not a filmstrip. */
.process{display:block}

/* Steps */
/* Steps: ruled rows, the index in copper, the title in the display face */
.steps{display:flex;flex-direction:column;border-top:1px solid var(--section-rule)}
.step{
  display:grid;
  grid-template-columns:4rem minmax(0,1fr);
  column-gap:1.25rem;
  align-items:start;
  padding-block:1.75rem;
  border-bottom:1px solid var(--section-rule);
}
.step__num{
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.75rem;
  line-height:1;
  letter-spacing:-.01em;
  color:var(--accent);
  font-variant-numeric:tabular-nums;
}
.step__title{
  margin:0 0 .625rem;
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.375rem;
  letter-spacing:-.005em;
  text-transform:uppercase;
  line-height:1.15;
  color:var(--ink);
}
.step__body p{font-size:var(--fs-small);line-height:1.68}

/* Two cells: the text block (index + copy, top-aligned inside) and the
   plate. The block is centred against the plate, so a short stage does not
   leave a hole under its two lines; the plate itself is kept modest. */
.steps--illustrated .step{
  grid-template-columns:minmax(0,1fr) minmax(0,360px);
  column-gap:clamp(1.5rem, 4vw, 4rem);
  align-items:center;
  padding-block:clamp(1.75rem, 3vw, 2.5rem);
}
.step__text{
  display:grid;
  grid-template-columns:4rem minmax(0,1fr);
  column-gap:1.25rem;
  align-items:start;
}
.steps--illustrated .step__num{padding-top:.3rem}
.steps--illustrated .step__body{max-width:50ch}
.steps--illustrated .step__title{font-size:1.5rem;margin-bottom:.75rem}
.steps--illustrated .step__body p{font-size:var(--fs-body);line-height:1.7}

/* The copper plate: squared, framed by a hairline inset; the drawing sits on
   it like a sheet dropped on the bench — offset, hairline edge, paper shadow */
.step__figure{
  position:relative;
  width:84%;
  margin:0 0 7% 0;
  justify-self:end;
  aspect-ratio:408/330;
  background:var(--accent);
}
.step__figure::after{
  content:"";
  position:absolute;
  inset:1rem;
  border:1px solid rgba(10,10,11,.28);
  pointer-events:none;
}
.step__figure img{
  position:absolute;
  left:-12%;
  bottom:-8%;
  width:98%;
  height:auto;
  max-width:none;
  border:1px solid var(--ink);
  box-shadow:0 24px 40px -18px rgba(10,10,11,.35);
  transition:transform .5s var(--ease-out);
}
.step:hover .step__figure img{transform:translate(2px,-4px)}
/* even rows mirror: plate to the left, sheet overhanging to the right */
.steps--illustrated .step:nth-child(even) .step__figure{justify-self:start}
.steps--illustrated .step:nth-child(even) .step__figure img{left:auto;right:-12%}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal{
  opacity:0;
  transform:translateY(20px);
  transition:opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}
.reveal.is-in{opacity:1;transform:none}

/* Containers that stagger their children instead of moving themselves */
.display.reveal,
.stats.reveal{opacity:1;transform:none}

/* Scoped to .reveal: an unscoped rule hides the lines of any heading that is
   not animated, and nothing ever adds .is-in to bring them back. */
.display.reveal > span{
  opacity:0;
  transform:translateY(26px);
  transition:opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}
.display.is-in > span{opacity:1;transform:none}
.display.is-in > span:nth-child(2){transition-delay:.07s}
.display.is-in > span:nth-child(3){transition-delay:.14s}

.display--bar.reveal::before{transform:scaleY(0);transform-origin:top;transition:transform .6s var(--ease-out)}
.display--bar.is-in::before{transform:scaleY(1)}

.stats > .stat{
  opacity:0;
  transform:translateY(22px);
  transition:opacity var(--dur) ease, transform var(--dur) var(--ease-out),
             background-color .25s ease;
}
.stats.is-in > .stat{opacity:1;transform:none}
.stats.is-in > .stat:nth-child(2){transition-delay:.09s}
.stats.is-in > .stat:nth-child(3){transition-delay:.18s}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:1024px){
  .about{grid-template-columns:minmax(0,1fr);gap:clamp(2.75rem,6vw,3.5rem)}
  /* stacked: the sheet goes under its own text, full column width */
  .steps--illustrated .step{grid-template-columns:minmax(0,1fr)}
  .steps--illustrated .step__body{max-width:none}
  .step__figure,
  .steps--illustrated .step:nth-child(even) .step__figure{
    justify-self:start;
    width:calc(100% - 5.25rem);   /* lines up with the copy, past the index */
    max-width:520px;
    margin:1.5rem 0 8% 5.25rem;
  }
  .step__figure img,
  .steps--illustrated .step:nth-child(even) .step__figure img{left:0;right:auto;bottom:-8%;width:94%}
  .about__cta{margin-top:2.5rem}
}

@media (max-width:680px){
  :root{--fs-body:1.0625rem;--fs-small:1rem}

  .stats{grid-template-columns:minmax(0,1fr)}
  .stat{
    flex-direction:row;
    align-items:baseline;
    gap:1.25rem;
    padding:1.25rem 0;
  }
  .stat + .stat{border-left:0;border-top:1px solid var(--section-rule)}
  .stat__num{min-width:6.5rem;font-size:2.75rem}

  .step,
  .step__text{grid-template-columns:2.75rem minmax(0,1fr);column-gap:.875rem}
  .steps--illustrated .step{grid-template-columns:minmax(0,1fr)}
  .step__figure,
  .steps--illustrated .step:nth-child(even) .step__figure{width:100%;margin-left:0}
  .step__num{font-size:1.75rem}
  .steps{gap:2.25rem}

  .btn{width:100%}
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
  }
  .reveal,.display > span,.stats > .stat{opacity:1;transform:none}
  .display::before{transform:scaleY(1)}
}

/* ============================================================
   SECTION 03 — Product range carousel
   ============================================================ */

.range__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:2rem;
  margin-bottom:clamp(2.5rem, 5vw, 3.5rem);
}
.range__head .display{margin-bottom:0}

/* Prev / next */
.carousel-nav{display:flex;gap:.625rem;flex-shrink:0}
.carousel-btn{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  padding:0;
  border:1px solid var(--ink);
  border-radius:var(--r-ctl);
  background:transparent;
  color:var(--ink);
  cursor:pointer;
  transition:background-color .25s ease, color .25s ease,
             transform .25s var(--ease-out), opacity .25s ease;
}
.carousel-btn svg{width:17px;height:17px}
.carousel-btn:hover:not(:disabled){
  background:var(--ink);
  color:var(--ink-invert);
}
.carousel-btn:active:not(:disabled){transform:translateY(0)}
.carousel-btn:disabled{opacity:.34;cursor:default}

/* Scroll track — bleeds to the viewport edge, aligns to the container */
.range__viewport{
  --edge:max(var(--gutter), calc((100% - 1180px) / 2 + var(--gutter)));
  overflow-x:auto;
  overflow-y:hidden;
  padding-block:10px 34px;       /* room for the card lift and its shadow */
  scroll-snap-type:x proximity;
  scroll-padding-inline:var(--edge);
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.range__viewport::-webkit-scrollbar{display:none}

.range__track{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:clamp(280px, 27vw, 320px);
  gap:1rem;
  /* max-content makes the track size to its cards, so its own end padding is
     part of the scrollable width. A scroll container's end padding is left out
     of scrollWidth, which would park the last card flush against the screen. */
  width:max-content;
  padding-inline:var(--edge);
}

.btn--sm{padding-inline:1.375rem;font-size:.6875rem}

/* Reveal: the track stays put and staggers its cards */
.range__track.reveal{opacity:1;transform:none}
.range__track > .product{
  opacity:0;
  transform:translateY(22px);
  transition:opacity var(--dur) ease, transform var(--dur) var(--ease-out),
             background-color .25s ease, box-shadow .3s ease;
}
.range__track.is-in > .product{opacity:1;transform:none}
.range__track.is-in > .product:nth-child(2){transition-delay:.07s}
.range__track.is-in > .product:nth-child(3){transition-delay:.14s}
.range__track.is-in > .product:nth-child(4){transition-delay:.21s}
.range__track.is-in > .product:nth-child(5){transition-delay:.28s}

@media (max-width:680px){
  .range__head{
    flex-direction:column;
    align-items:flex-start;
    gap:1.75rem;
  }
  .range__track{grid-auto-columns:min(80vw, 300px)}
}

@media (prefers-reduced-motion:reduce){
  .range__track > .product{opacity:1;transform:none}
  .range__viewport{scroll-behavior:auto}
}

/* The reveal end-state (.is-in) outranks a plain :hover rule, which would
   otherwise cancel the card lift. Restate the hovers at matching specificity. */
.range__track.is-in > .product:hover{transform:translateY(-4px)}

/* ============================================================
   Site header
   ============================================================ */
.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
}
.skip-link:focus{
  position:fixed;
  left:1rem;
  top:1rem;
  z-index:200;
  padding:.75rem 1.25rem;
  background:var(--ink);
  color:#fff;
  font-family:var(--font-display);
  font-size:.75rem;
  letter-spacing:.09em;
  text-transform:uppercase;
  text-decoration:none;
  border-radius:2px;
}

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(1.2) blur(10px);
  -webkit-backdrop-filter:saturate(1.2) blur(10px);
  border-bottom:1px solid var(--section-rule);
}
/* Three equal-weight tracks so the link list sits on the true optical centre
   of the header regardless of how wide the brand or the actions get. */
.site-header__inner{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:1.5rem;
  min-height:var(--header-h);
}

/* Brand — the supplied logo; its wordmark is currentColor so one asset
   serves both the light header and the dark footer. */
/* NOT display:none — Chrome then refuses to resolve the url(#gradient) fills
   inside the symbol, and the emblem disappears while the flat-filled wordmark
   still paints. Clip it to zero instead. */
.sprite{
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
  pointer-events:none;
}
html[data-i18n-pending] body{visibility:hidden}

.brand{
  justify-self:start;
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  flex-shrink:0;
  color:var(--ink);
}
.brand__logo{
  display:block;
  height:38px;
  width:auto;
}
.brand--invert{color:#fff}

/* Nav */
/* display:contents lets the list and the actions become direct grid items of
   the header while staying inside one <nav> landmark for screen readers. */
.site-nav{display:contents}
.site-nav__list{
  grid-column:2;
  justify-self:center;
  display:flex;
  align-items:center;
  gap:1.75rem;
}
.site-nav__actions{
  grid-column:3;
  justify-self:end;
  display:flex;
  align-items:center;
  gap:1rem;
}

/* Language switch — a disclosure, not a row of three buttons: it keeps the
   right-hand track narrow so the link list lands on the true centre. */
.lang{position:relative}
.lang__toggle{
  display:inline-flex;
  align-items:center;
  gap:.375rem;
  padding:.4375rem .5rem .4375rem .625rem;
  border:1px solid var(--rule);
  border-radius:var(--r-ctl);
  background:transparent;
  font-family:var(--font-body);
  font-weight:700;
  font-size:.8125rem;
  letter-spacing:.06em;
  color:var(--ink);
  cursor:pointer;
  transition:background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.lang__toggle:hover{background:var(--accent-tint);border-color:var(--accent)}
.lang__caret{
  width:14px;
  height:14px;
  transition:transform .2s var(--ease-out);
}
.lang__toggle[aria-expanded="true"] .lang__caret{transform:rotate(180deg)}

.lang__menu{
  position:absolute;
  top:calc(100% + .5rem);
  right:0;
  z-index:10;
  min-width:11rem;
  padding:.3125rem;
  border:1px solid var(--section-rule);
  border-radius:4px;
  background:var(--bg-b);
  box-shadow:0 18px 34px rgba(10,10,11,.14);
}
.lang__opt{
  display:flex;
  align-items:baseline;
  gap:.625rem;
  width:100%;
  padding:.5rem .625rem;
  border:0;
  border-radius:3px;
  appearance:none;
  background:transparent;
  font-family:var(--font-body);
  font-size:.9375rem;
  color:var(--ink);
  text-align:left;
  cursor:pointer;
  transition:background .2s var(--ease-out);
}
.lang__opt:hover{background:var(--accent-tint)}
.lang__opt[aria-pressed="true"]{background:var(--accent);color:var(--ink)}
.lang__opt .lang__code{font-weight:700;font-size:.8125rem;letter-spacing:.06em;min-width:1.75rem}
.lang__name{font-weight:500}

.site-nav__list a{
  position:relative;
  display:inline-block;
  padding-block:.375rem;
  font-family:var(--font-body);
  font-weight:600;
  font-size:.8125rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--ink);
}
.site-nav__list a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background:var(--accent);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .25s var(--ease-out);
}
.site-nav__list a:hover::after{transform:scaleX(1)}

.nav-toggle{
  display:none;
  place-items:center;
  width:44px;
  height:44px;
  margin-right:-10px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--ink);
  cursor:pointer;
}
.nav-toggle__bars{display:grid;gap:5px;width:22px}
.nav-toggle__bars span{
  display:block;
  height:2px;
  background:currentColor;
  transition:transform .25s var(--ease-out), opacity .2s ease;
}
.nav-open .nav-toggle__bars span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-open .nav-toggle__bars span:nth-child(2){opacity:0}
.nav-open .nav-toggle__bars span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ============================================================
   Hero
   ============================================================ */
.hero{
  display:grid;
  grid-template-columns:minmax(0,560fr) minmax(0,420fr);
  gap:clamp(3rem, 6vw, 5.5rem);
  align-items:center;
}
/* The first slide carries the promo card, which the kit sizes at 480px —
   give its column exactly that instead of a share of the grid. */
@media (min-width:1025px){
  .hero--promo{grid-template-columns:minmax(0,1fr) 480px}
}
/* the promo banner can be switched off in the admin panel: the copy then
   takes the full width instead of leaving an empty second column */
.hero--promo:not(:has(.np-banner)){grid-template-columns:minmax(0,1fr)}
.hero__copy .display{margin-bottom:2rem}
.hero__copy .prose{font-size:1.125rem;line-height:1.6;max-width:44ch}
.hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:.875rem;
  margin-top:2.5rem;
}

/* accent block anchored right, product breaking past its left and bottom */
.hero__figure{
  position:relative;
  margin:0;
  padding-bottom:8%;
}
.hero__figure::before{
  content:"";
  display:block;
  width:80%;
  margin-left:auto;
  aspect-ratio:1;
  background:var(--accent);
}
.hero__figure img{
  position:absolute;
  top:5%;
  left:0;
  width:92%;
  max-width:none;
  filter:drop-shadow(0 26px 38px rgba(10,10,11,.26));
}

/* Spec strip */
.specs{
  position:relative;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin-top:clamp(3rem, 5vw, 4.5rem);
  border-top:1px solid var(--section-rule);
}
.spec{
  display:flex;
  flex-direction:column;
  gap:.5rem;
  padding:1.5rem 1.5rem 0 0;
}
.spec + .spec{padding-left:1.5rem;border-left:1px solid var(--section-rule)}
.spec__value{
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(1.375rem, 2vw, 1.75rem);
  line-height:1;
  letter-spacing:-.01em;
  color:var(--ink);
  font-variant-numeric:tabular-nums;
}
.spec__label{
  font-size:.6875rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-body);
}

/* ============================================================
   Site footer
   ============================================================ */
.site-footer{
  background:var(--surface-dark);
  color:var(--ink-invert-2);
  padding-block:clamp(3.5rem, 7vw, 5.5rem) 2rem;
  border-top:2px solid var(--accent);
}
.footer__top{
  display:grid;
  grid-template-columns:minmax(0,340fr) minmax(0,680fr);
  gap:clamp(2.5rem, 6vw, 5rem);
  margin-bottom:clamp(2.5rem, 5vw, 3.5rem);
}
.site-footer .brand__logo{height:46px}

.footer__pitch{
  margin-top:1.25rem;
  max-width:38ch;
  font-size:var(--fs-small);
  line-height:1.7;
}

.footer__nav{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:2rem;
}
.footer__heading{
  margin:0 0 1.125rem;
  font-family:var(--font-body);
  font-weight:700;
  font-size:.75rem;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:#fff;
}
.footer__col li + li{margin-top:.6875rem}
.footer__col a{
  font-size:var(--fs-small);
  text-decoration:none;
  color:var(--ink-invert-2);
  transition:color .2s ease;
}
.footer__col a:hover{color:var(--flame)}
.footer__contact li{font-size:var(--fs-small);line-height:1.6}

.footer__bottom{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:.75rem 2rem;
  margin-top:1.75rem;
  padding-top:1.5rem;
  border-top:1px solid var(--line-dark);
  font-size:.8125rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--ink-muted);
}
.footer__credit{color:var(--ink-invert);text-decoration:none;border-bottom:1px solid var(--accent);transition:color .2s ease}
.footer__credit:hover{color:var(--flame)}

/* ============================================================
   Responsive — header, hero, footer
   ============================================================ */
@media (max-width:1024px){
  .hero{grid-template-columns:minmax(0,1fr);gap:clamp(2.5rem,6vw,3.5rem)}
  .hero__figure{order:-1;max-width:420px}
  .specs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .spec:nth-child(3){padding-left:0;border-left:0}
  .spec:nth-child(n+3){border-top:1px solid var(--section-rule);padding-top:1.25rem;margin-top:1.25rem}
  .footer__top{grid-template-columns:minmax(0,1fr)}
}

/* 1000, not 900: six menu items (the Russian ones long) need the burger
   sooner than the rest of the layout does */
@media (max-width:1000px){
  :root{--header-h:64px}

  .brand__logo{height:32px}
  .nav-toggle{display:grid}
  .site-header__inner{display:flex;justify-content:space-between;position:relative}
  .site-nav{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:.25rem var(--gutter) 1.5rem;
    background:var(--bg-b);
    border-bottom:1px solid var(--section-rule);
    box-shadow:0 18px 30px rgba(10,10,11,.10);
  }
  .nav-open .site-nav{display:flex}
  .site-nav__list{grid-column:auto;justify-self:stretch;flex-direction:column;align-items:stretch;gap:0}
  .site-nav__actions{
    grid-column:auto;
    justify-self:stretch;
    flex-direction:column-reverse;
    align-items:stretch;
    gap:1.25rem;
    margin-top:1.25rem;
  }
  /* In the drawer there is room for all three at once, so the disclosure
     unfolds into a plain row and the toggle steps aside. */
  .lang{align-self:stretch}
  .lang__toggle{display:none}
  .lang__menu,
  .lang__menu[hidden]{
    display:flex;
    gap:.5rem;
    position:static;
    min-width:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  .lang__opt{
    justify-content:center;
    padding:.75rem 1rem;
    border:1px solid var(--section-rule);
  }
  .lang__opt .lang__code{min-width:0}
  .lang__name{display:none}
  .site-nav__list a{
    display:block;
    padding-block:.9375rem;
    border-bottom:1px solid var(--section-rule);
    font-size:.9375rem;
  }
  .site-nav__list a::after{display:none}
  .site-nav__cta{width:100%}
}

@media (max-width:680px){
  .hero__actions .btn{width:100%}
  .footer__nav{grid-template-columns:minmax(0,1fr);gap:2.25rem}
  .footer__bottom{flex-direction:column}
  .specs{grid-template-columns:minmax(0,1fr)}
  .spec{
    flex-direction:row;
    align-items:baseline;
    justify-content:space-between;
    gap:1rem;
    padding:1rem 0;
    border-bottom:1px solid var(--section-rule);
  }
  .spec + .spec{padding-left:0;border-left:0}
  /* undo the tablet two-column seams: one row, one line each */
  .spec:nth-child(n+3){margin-top:0;padding-top:1rem;border-top:0}
}

/* ============================================================
   Shared block header
   ============================================================ */
/* every section head opens on a hairline: the page reads like a numbered
   technical document */
.container > .display--4{padding-top:1.5rem;border-top:1px solid var(--section-rule)}
.block-head,
.process__head,
.range__head,
.kpi__head{
  padding-top:1.5rem;
  border-top:1px solid var(--section-rule);
}
.block-head{margin-bottom:clamp(2.5rem, 5vw, 3.5rem)}
.block-head .display{margin-bottom:1.5rem}
.block-head .prose--lede{margin-top:-.25rem}

/* ============================================================
   SECTION 04 — Advantages
   ============================================================ */
/* A hairline grid, not floating cards: the 1px gap shows the line colour
   through, so every cell shares its walls with its neighbours. */
.advantages{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1px;
  background:var(--section-rule);
  border:1px solid var(--section-rule);
  counter-reset:adv;
}
.advantage{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:264px;
  padding:1.75rem;
  background:var(--surface-dark);
  counter-increment:adv;
  transition:background-color .25s ease;
}
.advantage:hover{background:var(--surface-dark-h)}
/* five cells in a three-wide grid: the last one spans the gap, so no empty
   cell shows the line colour through */
.advantage:last-child:nth-child(3n+2){grid-column:span 2}
@media (max-width:1024px){
  .advantage:last-child:nth-child(3n+2){grid-column:auto}
  /* two-wide: an odd last cell spans the row instead */
  .advantage:last-child:nth-child(2n+1){grid-column:span 2}
}
@media (max-width:680px){
  .advantage:last-child:nth-child(2n+1){grid-column:auto}
}
/* cell index, top right, the way a spec sheet numbers its clauses */
.advantage::before{
  content:counter(adv, decimal-leading-zero);
  position:absolute;
  top:1.5rem;
  right:1.75rem;
  font-family:var(--font-display);
  font-weight:700;
  font-size:.8125rem;
  letter-spacing:.1em;
  color:var(--ink-muted);
  font-variant-numeric:tabular-nums;
}
.advantage__icon{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  margin-bottom:auto;           /* holds the text block to the card foot */
  border:1px solid var(--line-dark);
  color:var(--flame);
}
.advantage__icon svg{width:22px;height:22px}
.advantage__title{
  margin:2.5rem 0 .625rem;
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.375rem;
  line-height:1.15;
  letter-spacing:-.005em;
  text-transform:uppercase;
  color:var(--ink);
}
.advantage__text{
  font-size:var(--fs-small);
  line-height:1.6;
  color:var(--ink-body);
}

/* stagger the cards, leave the list itself in place */
.advantages.reveal{opacity:1;transform:none}
.advantages > .advantage{
  opacity:0;
  transform:translateY(20px);
  transition:opacity var(--dur) ease, transform var(--dur) var(--ease-out),
             border-color .25s ease, box-shadow .3s ease;
}
.advantages.is-in > .advantage{opacity:1;transform:none}
.advantages.is-in > .advantage:nth-child(2){transition-delay:.06s}
.advantages.is-in > .advantage:nth-child(3){transition-delay:.12s}
.advantages.is-in > .advantage:nth-child(4){transition-delay:.18s}
.advantages.is-in > .advantage:nth-child(5){transition-delay:.24s}
.advantages.is-in > .advantage:hover{transform:none}

/* ============================================================
   SECTION 05 — Contact
   ============================================================ */
.contact-card{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  background:var(--bg-b);
  border:1px solid var(--section-rule);
  border-top:2px solid var(--accent);
  overflow:hidden;
}
.contact-card__main{padding:clamp(2rem, 4vw, 3.25rem)}
.contact-card__side{
  padding:clamp(2rem, 4vw, 3.25rem);
  border-left:1px solid var(--section-rule);
}
.contact-card .display{margin-bottom:2.25rem}

.fields{margin:0}
.field + .field{margin-top:1.625rem}
.field__label{
  display:block;
  margin:0 0 .375rem;
  font-family:var(--font-body);
  font-weight:600;
  font-size:.75rem;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:var(--ink-body);
}
.field__value{
  margin:0;
  font-size:var(--fs-body);
  line-height:1.55;
  color:var(--ink);
}
/* text-decoration, not border-bottom: the underline has to stay glued to the
   text once the link gets vertical padding for a tap target. */
.field__value a{
  color:inherit;
  text-decoration:underline;
  text-decoration-color:rgba(10,10,11,.28);
  text-underline-offset:3px;
  transition:color .2s ease, text-decoration-color .2s ease;
}
.field__value a:hover{color:var(--accent-deep);text-decoration-color:var(--accent-deep)}

/* Phones and mailboxes stack four deep; a 20px text line is not tappable. */
.field__value a[href^="tel:"],
.field__value a[href^="mailto:"]{
  display:inline-block;
  padding-block:.1875rem;
}

.contact-card__side .field__label{margin-top:0}
.contact-card__side .field__label + .chip-row{margin-bottom:2rem}
.contact-card__side .field__value--plain{margin-bottom:2.25rem}
.chip-row{display:flex;flex-wrap:wrap;gap:.625rem}
.contact-card__cta{display:inline-flex}

/* ============================================================
   Responsive — advantages and contact
   ============================================================ */
@media (max-width:1024px){
  .advantages{grid-template-columns:repeat(2,minmax(0,1fr))}
  .contact-card{grid-template-columns:minmax(0,1fr)}
  .contact-card__side{
    border-left:0;
    border-top:1px solid var(--section-rule);
  }
}

@media (max-width:680px){
  .advantages{grid-template-columns:minmax(0,1fr)}
  .advantage{min-height:0}
  .advantage__title{margin-top:1.5rem}
  .chip-row .btn{flex:1 1 auto}
  .contact-card__cta{width:100%}
}

/* ============================================================
   SECTION 06 — Supply geography
   ============================================================ */
.geo__map{margin:0;position:relative}
.geo__map svg{display:block;width:100%;height:auto}
.geo__map path{transition:fill .15s ease}
/* an export country may carry its own colour in --map-* on the shape itself;
   without it the group's copper below applies */
.geo__map .c-export path{fill:var(--map-fill,#B0672F);stroke:var(--map-stroke,#96551F)}
.geo__map .c-other path:hover{fill:#C2BCB4}
.geo__map .c-export path:hover{fill:var(--map-hover,#96551F)}
.geo__map .c-home path:hover{fill:#57290E}

.map-tip{
  position:absolute;
  z-index:2;
  transform:translate(-50%, -150%);
  padding:.375rem .625rem;
  border-radius:var(--r-ctl);
  background:var(--surface-dark);
  color:#fff;
  font-size:.75rem;
  line-height:1;
  white-space:nowrap;
  pointer-events:none;
  box-shadow:0 6px 14px rgba(10,10,11,.22);
}
.map-tip[hidden]{display:none}

.geo__foot{
  margin-top:clamp(2rem, 4vw, 2.75rem);
  padding-top:clamp(1.5rem, 3vw, 2rem);
  border-top:1px solid var(--section-rule);
}

/* Export markets, listed instead of a colour legend */
.countries{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin:0 0 clamp(2rem, 4vw, 2.75rem);
}
.country-chip{
  display:inline-flex;
  align-items:center;
  gap:.625rem;
  padding:.6875rem 1rem;
  border:1px solid var(--ink);
  border-radius:var(--r-ctl);
  background:transparent;
  font-size:.8125rem;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  line-height:1;
  color:var(--ink);
}
.country-chip::before{
  content:"";
  width:6px;
  height:6px;
  background:var(--chip,var(--accent));   /* the country's own colour, else copper */
  flex-shrink:0;
}

.geo-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid var(--section-rule);
}
.geo-stat{display:flex;flex-direction:column;gap:.625rem;padding:1.5rem 1.5rem 0 0}
.geo-stat + .geo-stat{padding-left:1.5rem;border-left:1px solid var(--section-rule)}
.geo-stat__value{
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(2.5rem, 4.2vw, 3.75rem);
  line-height:.9;
  letter-spacing:-.02em;
  color:var(--accent);
  font-variant-numeric:tabular-nums;
}
.geo-stat__label{
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  line-height:1.5;
  color:var(--ink-body);
}

.geo-stats.reveal{opacity:1;transform:none}
.geo-stats > .geo-stat{
  opacity:0;
  transform:translateY(18px);
  transition:opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}
.geo-stats.is-in > .geo-stat{opacity:1;transform:none}
.geo-stats.is-in > .geo-stat:nth-child(2){transition-delay:.07s}
.geo-stats.is-in > .geo-stat:nth-child(3){transition-delay:.14s}
.geo-stats.is-in > .geo-stat:nth-child(4){transition-delay:.21s}

@media (max-width:680px){
  /* A world map below ~520px stops being readable, so the map gets its own
     scroll rather than shrinking into mush. */
  .geo__map{overflow-x:auto}
  .geo__map svg{min-width:520px}
  .geo-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .geo-stat:nth-child(3){padding-left:0;border-left:0}
  .geo-stat:nth-child(n+3){margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid var(--section-rule)}
}

/* ============================================================
   Contact card — a ruled sheet on white, copper only on the rule and the
   primary action
   ============================================================ */
.section--contact .contact-card__side{
  background:var(--bg-a);
  border-left-color:var(--section-rule);
}
.section--contact .contact-card .eyebrow::before{content:"";width:1.5rem;height:1px;background:var(--accent)}
.section--contact .btn--ghost{background:var(--bg-b)}
/* Без этой строки правило выше перебивало .btn--ghost:hover (одинаковая
   специфичность, но оно идёт ниже): фон оставался светлым, а текст на
   наведении становился почти белым и пропадал. */
.section--contact .btn--ghost:hover{background:var(--ink);color:var(--ink-invert)}
.section--contact .contact-card__cta{background:var(--accent);color:var(--accent-ink)}
.section--contact .contact-card__cta:hover{background:var(--ink);color:var(--ink-invert)}

@media (max-width:1024px){
  .section--contact .contact-card__side{border-top-color:var(--section-rule)}
}

/* ============================================================
   Utilities
   ============================================================ */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.btn--quiet{
  min-height:44px;
  padding-inline:.75rem;
  border:0;
  background:none;
  font-family:var(--font-body);
  font-weight:600;
  font-size:.75rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--ink-body);
  cursor:pointer;
  transition:color .2s ease;
}
.btn--quiet:hover{color:var(--ink)}

/* Form controls */
.field-input{
  width:100%;
  min-height:46px;
  padding:0 .875rem;
  border:1px solid var(--rule);
  border-radius:var(--r-ctl);
  background:var(--bg-b);
  font-family:var(--font-body);
  font-size:.9375rem;
  color:var(--ink);
  transition:border-color .2s ease;
}
.field-input::placeholder{color:#767069}
.field-input:focus{border-color:var(--accent-deep)}
/* One focus ring, not two: the page's dark outline on top of the copper border
   read as a heavy black frame around every field. The copper border is the
   focus mark for inputs — the outline stays off, here and everywhere. */
.field-input:focus,
.field-input:focus-visible{outline:none}
.field-input::-webkit-outer-spin-button,
.field-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.field-input[type=number]{-moz-appearance:textfield;appearance:textfield}

/* ============================================================
   Catalogue — page head + layout
   ============================================================ */
/* A title band needs its own compact rhythm. Inheriting --section-y on top
   with a zero bottom left the lede sitting on the divider line. */
.section--page-head{padding-block:clamp(2.75rem, 5.5vw, 4.5rem) clamp(2.25rem, 4.5vw, 3.5rem)}
.section--page-head .display{margin-bottom:1.5rem}
.section--page-head .container{
  padding-top:1.5rem;
  border-top:1px solid var(--section-rule);
}


/* ---- Filters ---- */



.check{
  display:flex;
  align-items:center;
  gap:.625rem;
  min-height:44px;
  font-size:.9375rem;
  color:var(--ink);
  cursor:pointer;
}
.check input{
  width:17px;height:17px;
  flex-shrink:0;
  accent-color:var(--accent-deep);
  cursor:pointer;
}


/* ---- Search ---- */


/* ---- Product card ---- */
.catalog-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
}

/* Stand-in for a photo: milled copper stock, in our palette.
   Shared by catalogue cards and the photo slots on the About page. */
.stock-fill{
  --angle:48deg;
  background:
    repeating-linear-gradient(var(--angle),
      rgba(0,0,0,0) 0 44px,
      rgba(224,160,107,.92) 44px 52px,
      rgba(0,0,0,0) 52px 60px,
      rgba(150,85,31,.75) 60px 66px,
      rgba(0,0,0,0) 66px 124px),
    linear-gradient(140deg, #241D18, #30251D 55%, #1A1512);
}



/* ============================================================
   Catalogue — responsive
   ============================================================ */
@media (max-width:1024px){
  .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:900px){
  .catalog{grid-template-columns:minmax(0,1fr)}
}

@media (max-width:680px){
  .catalog-grid{grid-template-columns:minmax(0,1fr)}
}

/* ============================================================
   Contacts page
   ============================================================ */
.contacts{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:clamp(2rem, 5vw, 4rem);
  align-items:start;
}
.contacts__sublabel{margin-top:1.625rem}
.chip-row + .contacts__sublabel{margin-top:1.75rem}
.contacts__rule{margin:2.25rem 0 1.75rem}

/* Sales team: one card per person, stacked. Two across would squeeze the
   column to ~250px, and the long mailboxes would break mid-word. */
.saleslist{
  display:flex;
  flex-direction:column;
  gap:.75rem;
  margin:0;
}
.salescard{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,auto);
  gap:.25rem 1.25rem;
  align-items:start;
  padding:1rem 1.125rem;
  border:1px solid var(--section-rule);
  border-radius:var(--r-card);
  background:var(--card-surface);
}
.salescard__name{
  grid-column:1;
  margin:0;
  font-family:var(--font-body);
  font-weight:700;
  font-size:1rem;
  line-height:1.3;
  color:var(--ink);
}
.salescard__role{
  grid-column:1;
  margin:0;
  font-size:.8125rem;
  line-height:1.4;
  color:var(--accent-deep);
}
.salescard__line{
  grid-column:2;
  margin:0;
  text-align:right;
  font-size:var(--fs-small);
  line-height:1.45;
  color:var(--ink);
}
.salescard__line:first-of-type{grid-row:1}
.salescard__line a{
  display:inline-block;
  padding-block:.125rem;
  color:inherit;
  text-decoration:underline;
  text-decoration-color:rgba(10,10,11,.28);
  text-underline-offset:3px;
  overflow-wrap:anywhere;
  transition:color .2s ease, text-decoration-color .2s ease;
}
.salescard__line a:hover{color:var(--accent-deep);text-decoration-color:var(--accent-deep)}

@media (max-width:760px){
  .salescard{grid-template-columns:minmax(0,1fr)}
  .salescard__line{grid-column:1;text-align:left}
  .salescard__line:first-of-type{grid-row:auto;margin-top:.5rem}
}

.link-chip{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding-inline:.875rem;
  border:1px solid var(--section-rule);
  border-radius:4px;
  background:var(--card-surface);
  font-size:.875rem;
  text-decoration:none;
  color:var(--ink);
  transition:border-color .2s ease, color .2s ease;
}
.link-chip:hover{border-color:var(--accent-deep);color:var(--accent-deep)}

.requisites{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1.25rem 2rem;
  margin:1rem 0 0;
}
.requisite dt{
  margin-bottom:.3125rem;
  font-size:.75rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--ink-body);
}
.requisite dd{
  margin:0;
  font-size:var(--fs-body);
  color:var(--ink);
}
.requisite__num{font-variant-numeric:tabular-nums;letter-spacing:.04em}

/* ---- Request form ---- */
.request-card{
  padding:clamp(1.5rem, 3vw, 2.5rem);
  border:1px solid var(--section-rule);
  border-top:2px solid var(--accent);
  border-radius:var(--r-card);
  background:var(--bg-b);
}
.request-card__title{
  margin:0 0 1.75rem;
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(1.375rem, 2.4vw, 1.75rem);
  line-height:1.2;
  color:var(--ink);
}

/* The bot trap: off-screen rather than display:none, which some bots skip. */
.form-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1.125rem 1rem;
}
.form-field--wide{grid-column:1 / -1}
.form-label{
  display:block;
  margin-bottom:.4375rem;
  font-size:.9375rem;
  color:var(--ink-body);
}
.req{color:var(--accent-deep)}

.field-textarea{
  min-height:120px;
  padding:.75rem .875rem;
  line-height:1.55;
  resize:vertical;
}

.select-wrap{position:relative}
.select-wrap select{
  appearance:none;
  -webkit-appearance:none;
  padding-right:2.5rem;
  cursor:pointer;
}
.select-wrap__chevron{
  position:absolute;
  right:16px;top:50%;
  width:8px;height:8px;
  border-right:2px solid var(--ink-body);
  border-bottom:2px solid var(--ink-body);
  transform:translateY(-70%) rotate(45deg);
  pointer-events:none;
}

.field-error{
  margin:.4375rem 0 0;
  font-size:.9375rem;
  color:#B3261E;
}
.field-error[hidden]{display:none}
.field-input[aria-invalid="true"]{border-color:#B3261E}

.form-consent{margin:1.5rem 0}
.form-consent .check{align-items:flex-start;min-height:0;font-size:.9375rem;line-height:1.5}
.form-consent .check input{margin-top:.125rem}

.form-status{
  margin:1rem 0 0;
  padding:.875rem 1rem;
  border-radius:4px;
  background:var(--bg-a);
  font-size:.875rem;
  line-height:1.5;
  color:var(--ink);
}
.form-status[hidden]{display:none}
.form-status[data-state="error"]{color:#B3261E}

/* ---- Map ---- */
.section--map{padding-top:0}
.section--map .eyebrow{margin-bottom:1rem}
.map-embed{
  position:relative;
  aspect-ratio:21/9;
  overflow:hidden;
  border:1px solid var(--section-rule);
  border-radius:var(--r-card);
  background:var(--card-surface);
}
.map-embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

@media (max-width:900px){
  .contacts{grid-template-columns:minmax(0,1fr)}
}

/* iOS Safari zooms the page whenever a focused field is under 16px.
   Applies to every control: catalogue filters and search included. */
@media (max-width:680px){
  .field-input,
}

@media (max-width:680px){
  .form-grid{grid-template-columns:minmax(0,1fr)}
  .requisites{grid-template-columns:minmax(0,1fr);gap:1.125rem}
  .chip-row .link-chip{flex:1 1 auto;justify-content:center}
  .request-form .btn{width:100%}
  .map-embed{aspect-ratio:4/3}
}

/* ============================================================
   About page
   ============================================================ */
/* Heading sits in the full-width .block-head above: at 60px the word
   "Технологический" alone measures 500px and a half-width column offers 501. */
.production{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:clamp(2rem, 5vw, 4rem);
  align-items:center;
  margin-bottom:clamp(3rem, 6vw, 4.5rem);
}

.metrics{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1.75rem 2rem;
}
/* half-width column: the figures step down a size so "0,25–2,5 мм" stays on
   one line */
.metrics .geo-stat{padding:0;border:0}
.metrics .geo-stat__value{font-size:clamp(1.75rem, 2.6vw, 2.5rem);white-space:nowrap}

/* ---- Photo / video slots ---- */
.media-slot{
  position:relative;
  margin:0;
  overflow:hidden;
  aspect-ratio:4/3;
  border-radius:var(--r-card);
}
.media-slot--video{aspect-ratio:16/9}
.media-slot__label{
  position:absolute;
  top:.75rem;
  left:.75rem;
  max-width:calc(100% - 1.5rem);
  padding:.375rem .625rem;
  border-radius:4px;
  background:rgba(20,16,13,.84);
  font-family:var(--font-body);
  font-weight:600;
  font-size:.6875rem;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--accent);
}
.media-slot__play{
  position:absolute;
  inset:0;
  margin:auto;
  display:grid;
  place-items:center;
  width:64px;
  height:64px;
  border:0;
  border-radius:4px;
  background:var(--accent);
  color:var(--ink);
  cursor:pointer;
  transition:background-color .25s ease, transform .25s var(--ease-out);
}
.media-slot__play[hidden]{display:none}
.media-slot__play:hover{background:var(--accent-hover);transform:scale(1.05)}
.media-slot__play svg{width:26px;height:26px}
.media-slot iframe,
.media-slot video{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}

/* ---- Process flow: serpentine line through the five stages ---- */
.flow{
  position:relative;
  margin-bottom:clamp(3rem, 6vw, 4.5rem);
}
.flow__line{
  position:absolute;
  inset:0;
  overflow:visible;
  pointer-events:none;
}
.flow__line path{
  fill:none;
  stroke:var(--accent-deep);
  stroke-width:1.5;
  stroke-linecap:round;
}

.flow__steps{
  display:grid;
  gap:2.25rem 0;
}
.flow__step{max-width:34ch}
.flow__num{
  display:block;
  margin-bottom:.75rem;
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(1.625rem, 2.6vw, 2.125rem);
  line-height:1;
  letter-spacing:.02em;
  color:var(--accent-deep);
  font-variant-numeric:tabular-nums;
}
.flow__dot{
  display:block;
  width:9px;
  height:9px;
  margin-bottom:1.5rem;
  background:var(--accent-deep);
  transform:rotate(45deg);
}
.flow__title{
  margin:0 0 .5rem;
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.125rem;
  line-height:1.25;
  color:var(--ink);
}
.flow__text{font-size:var(--fs-small);line-height:1.55;color:var(--ink-body)}

/* Serpentine placement: row 1 holds 01 alone, row 2 runs right-to-left,
   row 3 left-to-right — so one continuous line can thread all five. */
@media (min-width:901px){
  .flow__steps{
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:clamp(2rem, 4vw, 3.5rem);
    row-gap:clamp(3.5rem, 7vw, 6rem);
    padding-inline:clamp(2.5rem, 6vw, 5.5rem);
  }
  .flow__step:nth-child(1){grid-area:1 / 2}
  .flow__step:nth-child(2){grid-area:2 / 2}
  .flow__step:nth-child(3){grid-area:2 / 1}
  .flow__step:nth-child(4){grid-area:3 / 1}
  .flow__step:nth-child(5){grid-area:3 / 2}
}

/* Below the serpentine breakpoint the line has nowhere to turn, so the
   stages simply stack and the connector is dropped. */
@media (max-width:900px){
  .flow__line{display:none}
  .flow__dot{display:none}
  .flow__step{max-width:none}
}

/* reveal: cards stagger, the line draws itself */
.flow.reveal{opacity:1;transform:none}
.flow__steps > .flow__step{
  opacity:0;
  transform:translateY(18px);
  transition:opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}
.flow.is-in .flow__steps > .flow__step{opacity:1;transform:none}
.flow.is-in .flow__step:nth-child(2){transition-delay:.08s}
.flow.is-in .flow__step:nth-child(3){transition-delay:.16s}
.flow.is-in .flow__step:nth-child(4){transition-delay:.24s}
.flow.is-in .flow__step:nth-child(5){transition-delay:.32s}

.flow__line path{
  stroke-dasharray:var(--len, 0);
  stroke-dashoffset:var(--len, 0);
  transition:stroke-dashoffset 1.8s ease-out;
}
.flow.is-in .flow__line path{stroke-dashoffset:0}

@media (prefers-reduced-motion:reduce){
  .flow__steps > .flow__step{opacity:1;transform:none}
  .flow__line path{stroke-dasharray:none;stroke-dashoffset:0}
}

/* ---- Lab + shop floor gallery ---- */
.lab{max-width:64ch;margin-bottom:clamp(2rem, 4vw, 2.75rem)}
.lab__title{
  margin:0 0 1rem;
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(1.375rem, 2.4vw, 1.75rem);
  line-height:1.2;
  color:var(--ink);
}

/* Five frames in one row. The slots are landscape, like the photos
   themselves — they keep the 4:3 of .media-slot, no portrait override. */
.shots{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:.75rem;
}
.shots .media-slot img{display:block;width:100%;height:100%;object-fit:cover}
.shots li:nth-child(2) .media-slot{--angle:40deg}
.shots li:nth-child(3) .media-slot{--angle:56deg}
.shots li:nth-child(4) .media-slot{--angle:44deg}
.shots li:nth-child(5) .media-slot{--angle:52deg}

/* ---- Management ---- */
.team{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
}
.person{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:var(--card-surface);
  border:1px solid var(--section-rule);
  border-radius:var(--r-card);
  transition:border-color .25s ease, transform .3s var(--ease-out), box-shadow .3s ease;
}
.person:hover{
  border-color:var(--accent);
  transform:translateY(-4px);
  box-shadow:0 12px 24px rgba(10,10,11,.10);
}
.person__photo{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/5;
  object-fit:cover;
  background:var(--bg-a);
}
.person__body{padding:1.25rem}
.person__name{
  margin:0 0 .4375rem;
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.0625rem;
  line-height:1.25;
  color:var(--ink);
}
.person__role{font-size:.9375rem;line-height:1.5;color:var(--ink-body)}

/* ---- Markets ---- */
.markets{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
}
.market{
  padding:1.375rem 1.5rem;
  background:var(--card-surface);
  border:1px solid var(--section-rule);
  border-radius:var(--r-card);
  transition:border-color .25s ease;
}
.market:hover{border-color:var(--accent)}
.market__name{
  margin:0 0 .4375rem;
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.0625rem;
  color:var(--ink);
}
.market__name:only-child{margin-bottom:0}

/* ---- Partners ---- */
.partners{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
}
.partner{
  padding:clamp(1.5rem, 2.5vw, 2rem);
  background:var(--card-surface);
  border:1px solid var(--section-rule);
  border-radius:var(--r-card);
}
/* the drawing bleeds to the card edges and sits on its own hairline */
.partner__figure{
  margin:calc(clamp(1.5rem, 2.5vw, 2rem) * -1) calc(clamp(1.5rem, 2.5vw, 2rem) * -1) clamp(1.25rem, 2vw, 1.5rem);
  border-bottom:1px solid var(--section-rule);
  overflow:hidden;
}
.partner__figure img{
  width:100%;
  height:auto;
  display:block;
  transition:transform .5s var(--ease-out);
}
.partner:hover .partner__figure img{transform:scale(1.02)}
/* copper here, not grey: inside a card this reads as a category tag,
   not as a section eyebrow */
.partner .eyebrow{margin-bottom:.875rem;color:var(--accent-deep)}
.partner__name{
  margin:0 0 .625rem;
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.125rem;
  line-height:1.3;
  color:var(--ink);
}
.partner__note{font-size:var(--fs-small);line-height:1.6;color:var(--ink-body)}

/* ---- About page responsive ---- */
@media (max-width:1024px){
  .production{grid-template-columns:minmax(0,1fr)}
  .shots{grid-template-columns:repeat(3,minmax(0,1fr))}
  .team,
  .markets{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:900px){
  .partners{grid-template-columns:minmax(0,1fr)}
}

@media (max-width:680px){
  .metrics{gap:1.5rem}
  .shots{grid-template-columns:repeat(2,minmax(0,1fr))}
  .markets{grid-template-columns:minmax(0,1fr)}
}

/* Two columns leave ~160px per card — Russian names with patronymics break
   into four lines there. Below this width the card turns on its side. */
@media (max-width:600px){
  .team{grid-template-columns:minmax(0,1fr);gap:.75rem}
  .person{flex-direction:row}
  .person__photo{width:112px;flex-shrink:0}
  .person__body{
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:1rem 1.125rem;
  }
}

/* Touch: give every stacked contact link a full 44px target */
@media (max-width:600px){
  .field__value a[href^="tel:"],
  .field__value a[href^="mailto:"]{padding-block:.75rem}
}

/* ============================================================
   Request dialog
   ============================================================ */
.modal{
  width:min(660px, calc(100vw - 2rem));
  max-height:min(88vh, 940px);
  padding:0;
  border:1px solid var(--section-rule);
  border-top:2px solid var(--accent);
  border-radius:var(--r-card);
  background:var(--bg-b);
  color:var(--ink-body);
  font-family:var(--font-body);
  font-size:var(--fs-body);
  overflow:auto;
  overscroll-behavior:contain;
}
.modal::backdrop{background:rgba(26,21,18,.58)}
.modal__inner{
  position:relative;
  padding:clamp(1.5rem, 3.5vw, 2.5rem);
}
.modal__close{
  position:absolute;
  top:.625rem;
  right:.625rem;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:4px;
  background:none;
  color:var(--ink-body);
  cursor:pointer;
  transition:color .2s ease, background-color .2s ease;
}
.modal__close:hover{color:var(--ink);background:rgba(10,10,11,.06)}
.modal__close svg{width:20px;height:20px}
.modal .request-card__title{margin-bottom:1.5rem;padding-right:2.5rem}

/* the page must not scroll behind an open dialog */
body.has-modal{overflow:hidden}

@media (max-width:680px){
  .modal{
    width:100%;
    max-width:none;
    max-height:100dvh;
    height:100dvh;
    border:0;
    border-radius:0;
  }
}

/* ============================================================
   Hero slider
   The track is moved with a transform, not by scrolling. A scrolling
   viewport kept fighting scroll-snap here: the first frames of any
   programmatic move were pulled back to the current snap point.
   ============================================================ */
/* The plant's film runs under the whole hero, edge to edge. A dark veil
   over it keeps the copy readable, so the hero takes the dark-band tokens
   (see .section--invert) — with --ink-invert turned dark too, so a button
   that fills with --ink on hover keeps its label legible. Until
   hero-slider.js starts the video (and for good when motion is reduced or
   data is saved) the film's first frame stands in. */
.section.section--hero{
  position:relative;
  isolation:isolate;
  background:var(--surface-dark);
  color:var(--ink-body);
  --section-rule:rgba(255,255,255,.18);
  --ink:#F5F6F7;
  --ink-body:#C9CDD2;
  --ink-invert:#0A0A0B;
  --accent-deep:var(--flame);
  --accent-tint:rgba(240,168,104,.14);
}
.section--hero + .section{border-top-color:transparent}
.section--hero > .container{position:relative;z-index:1}
.hero-backdrop{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  background:#1B1A18 url("../assets/video/hero-poster.jpg") center / cover no-repeat;
}
.hero-backdrop__video{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
/* the veil: deepest behind the copy on the left and under the spec strip */
.hero-backdrop::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to top, rgba(10,10,11,.65) 0%, rgba(10,10,11,0) 38%),
    linear-gradient(to right, rgba(10,10,11,.8) 0%, rgba(10,10,11,.62) 42%, rgba(10,10,11,.32) 100%);
}
@media (max-width:1024px){
  /* the copy runs the full width once the columns stack */
  .hero-backdrop::after{background:rgba(10,10,11,.66)}
}

/* the promo card is as dark as the veil: a hairline keeps its edge */
.section--hero .np-banner{box-shadow:0 0 0 1px rgba(255,255,255,.12), 0 40px 70px -40px rgba(0,0,0,.7)}
/* the standards list opens on the dark ground too */
.section--hero .stdlist__menu{background:var(--surface-raised);border-color:var(--line-dark);box-shadow:0 18px 34px rgba(0,0,0,.45)}

/* Pause for the film (WCAG 2.2.2), in the top right corner of the hero */
.hero-backdrop__toggle{
  position:absolute;
  z-index:2;
  top:1.25rem;
  right:1.25rem;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  padding:0;
  border:1px solid rgba(255,255,255,.35);
  border-radius:50%;
  background:rgba(10,10,11,.45);
  color:#fff;
  cursor:pointer;
  transition:background-color .2s ease, border-color .2s ease;
}
.hero-backdrop__toggle[hidden]{display:none}
.hero-backdrop__toggle:hover{background:rgba(10,10,11,.7);border-color:rgba(255,255,255,.6)}
.hero-backdrop__toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.hero-backdrop__icon{width:14px;height:14px}
.hero-backdrop__toggle[aria-pressed="true"] .hero-backdrop__icon--pause,
.hero-backdrop__toggle:not([aria-pressed="true"]) .hero-backdrop__icon--play{display:none}

.hero-slider{position:relative;isolation:isolate}

.hero-slider__viewport{
  overflow:hidden;
  /* room for the figure's drop shadow, which the clip would cut off */
  padding-block:4px 12px;
}

.hero-slider__track{
  display:flex;
  width:100%;
  transform:translateX(calc(var(--i, 0) * -100%));
  transition:transform .45s cubic-bezier(.22,.61,.36,1);
}
.hero-slide{flex:0 0 100%;min-width:100%}

.hero-slider__controls{
  display:flex;
  align-items:center;
  gap:.625rem;
  margin-top:clamp(1.25rem, 2.5vw, 1.75rem);
}
.hero-slider__dots{
  display:flex;
  align-items:center;
  gap:.375rem;
  margin-inline:.25rem;
}
.hero-dot{
  display:block;
  width:44px;               /* tap target; the visible mark is the bar inside */
  height:44px;
  padding:0;
  border:0;
  background:none;
  cursor:pointer;
}
.hero-dot::before{
  content:"";
  display:block;
  width:100%;
  height:3px;
  background:var(--section-rule);
  transition:background-color .25s ease;
}
.hero-dot:hover::before{background:var(--accent)}
.hero-dot[aria-current="true"]::before{background:var(--accent)}

@media (max-width:680px){
  .hero-dot{width:34px}
}

@media (prefers-reduced-motion:reduce){
  .hero-slider__track{transition:none}
}

/* ============================================================
   New products page
   ============================================================ */
.newproduct{
  display:grid;
  /* both tracks in the same fr unit — 1fr next to 420fr is a 1:420 ratio
     and collapses the text column to a couple of pixels */
  grid-template-columns:minmax(0,620fr) minmax(0,420fr);
  gap:clamp(2rem, 5vw, 4rem);
  align-items:start;
}
/* second product mirrors the first so the page alternates */
.newproduct--mirror .newproduct{grid-template-columns:minmax(0,420fr) minmax(0,620fr)}
.newproduct--mirror .newproduct__body{order:2}
.newproduct--mirror .newproduct__block{order:1}

.newproduct__body .display{margin-bottom:1rem}
.newproduct__lead{
  max-width:46ch;
  margin-bottom:2rem;
  font-size:var(--fs-body);
  line-height:1.6;
  color:var(--ink-body);
}
.newproduct__claim{
  margin:0 0 .875rem;
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(1.25rem, 2.2vw, 1.5rem);
  line-height:1.25;
  color:var(--ink);
}
.newproduct__body .prose{max-width:58ch}
.newproduct__body .prose + .prose{margin-top:1rem}
.newproduct__sublabel{margin:1.875rem 0 .875rem}

.ticks{display:grid;gap:.5rem;max-width:56ch}
.ticks li{
  position:relative;
  padding-left:1.375rem;
  font-size:var(--fs-small);
  line-height:1.6;
  color:var(--ink-body);
}
.ticks li::before{
  content:"";
  position:absolute;
  left:0;
  top:.62em;
  width:10px;
  height:1.5px;
  background:var(--accent-deep);
}

.newproduct__facts{
  margin-top:1.875rem;
  padding-top:1.5rem;
  border-top:1px solid var(--section-rule);
  max-width:58ch;
}
.newproduct__cta{margin-top:1.875rem}

/* accent block, as everywhere else on the site — the product render that used
   to sit on it is gone, the colour block stays */
.newproduct__block{
  width:82%;
  margin-left:auto;
  aspect-ratio:4/3;
  background:var(--accent);
}
.newproduct--mirror .newproduct__block{margin:0 auto 0 0}

@media (max-width:1024px){
  .newproduct,
  .newproduct--mirror .newproduct{grid-template-columns:minmax(0,1fr)}
  .newproduct__block{order:-1;width:100%;max-width:460px}
  .newproduct--mirror .newproduct__body{order:0}
  .newproduct--mirror .newproduct__block{order:-1}
}

@media (max-width:680px){
  .newproduct__cta{width:100%}
}

/* ============================================================
   Certificates page
   ============================================================ */

/* The supplied icon relies on opaque shapes to mask the lines behind them;
   tying that fill to the card surface keeps it seamless on either ground. */
.cert-doc__paper{fill:var(--card-surface,#FEFCFB)}

.certs{
  display:grid;
  /* two wide: the cards are horizontal and their notes name the issuer and
     the validity date, so they need the measure */
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
}
.cert{display:flex}
.cert__link{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:clamp(1rem, 2vw, 1.5rem);
  width:100%;
  padding:clamp(1.25rem, 2.2vw, 1.75rem);
  border:1px solid var(--section-rule);
  border-radius:var(--r-card);
  background:var(--card-surface);
  text-decoration:none;
  color:inherit;
  transition:transform .3s var(--ease-out), box-shadow .3s var(--ease-out),
             border-color .3s var(--ease-out);
}
.cert__link:hover{
  transform:translateY(-4px);
  border-color:var(--accent);
  box-shadow:0 14px 28px rgba(10,10,11,.10);
}
.cert__icon{
  display:grid;
  place-items:center;
  width:84px;
  height:84px;
  border:1px solid var(--section-rule);
  border-radius:var(--r-card);
  background:var(--bg-a);
  color:var(--accent-deep);
}
.cert__icon svg{width:46px;height:auto;display:block}
.cert__body{display:flex;flex-direction:column;gap:.375rem;min-width:0}
.cert__name{
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.1875rem;
  line-height:1.15;
  letter-spacing:-.005em;
  color:var(--ink);
}
.cert__note{font-size:var(--fs-small);line-height:1.45;color:var(--ink-body)}
.cert__meta{
  margin-top:.25rem;
  font-size:.8125rem;
  font-weight:600;
  letter-spacing:.08em;
  color:var(--accent-deep);
}

/* Tile variant, used on the product pages: four across, and the icon becomes
   a full-width plate over the top half of the card instead of sitting beside
   the text. Same card, same link target — only the shape changes. */
.certs--tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
.certs--tiles .cert__link{
  grid-template-columns:minmax(0,1fr);
  align-content:start;
  align-items:start;
  gap:0;
  padding:0;
  overflow:hidden;
}
.certs--tiles .cert__icon{
  width:100%;
  height:auto;
  aspect-ratio:3/2;
  border:0;
  border-bottom:1px solid var(--section-rule);
  border-radius:0;
}
.certs--tiles .cert__icon svg{width:auto;height:60%}
.certs--tiles .cert__body{
  padding:clamp(1rem, 1.6vw, 1.25rem);
  gap:.3125rem;
}
.certs--tiles .cert__name{font-size:1rem}
.certs--tiles .cert__meta{margin-top:.375rem;font-size:.75rem}

@media (max-width:1024px){
  .certs--tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .certs--tiles{grid-template-columns:minmax(0,1fr)}
}

/* On a phone the standards of one product would take a whole screen each, so
   the documents turn into a swipeable row: no buttons, no dots — the cards
   themselves say there is more to the right. */
@media (max-width:768px){
  .section--docs .certs--tiles{
    display:flex;
    grid-template-columns:none;
    gap:.75rem;
    /* the row bleeds to the edges of the screen, the padding keeps the first
       and the last card off the very edge */
    margin-inline:calc(var(--gutter) * -1);
    padding-inline:var(--gutter);
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .section--docs .certs--tiles::-webkit-scrollbar{display:none}
  .section--docs .certs--tiles > .cert{
    flex:0 0 min(74%, 260px);
    scroll-snap-align:start;
  }
  .section--docs .certs--tiles .cert__icon{aspect-ratio:2/1}
}

/* Inspection stages — the same numbered rhythm as the process block, ruled
   off row by row because the copy here is short and reads as a checklist. */
.qc-list{display:flex;flex-direction:column}
.qc{
  display:grid;
  grid-template-columns:3rem minmax(0,1fr);
  column-gap:1rem;
  align-items:start;
  padding-block:1.375rem;
  border-top:1px solid var(--section-rule);
}
.qc-list > .qc:last-child{border-bottom:1px solid var(--section-rule)}
.qc__num{
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.125rem;
  line-height:1.4;
  color:var(--accent-deep);
  font-variant-numeric:tabular-nums;
}
.qc__title{
  margin:0 0 .375rem;
  font-family:var(--font-body);
  font-weight:700;
  font-size:1.0625rem;
  line-height:1.3;
  color:var(--ink);
}
.qc__body p{margin:0;font-size:var(--fs-small);line-height:1.6}

.docs{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
}
.doc{display:flex}
.doc__link{
  display:flex;
  flex-direction:column;
  gap:.625rem;
  width:100%;
  padding:clamp(1.25rem, 2.2vw, 1.75rem);
  border:1px solid var(--section-rule);
  border-radius:var(--r-card);
  background:var(--card-surface);
  text-decoration:none;
  color:inherit;
  transition:transform .3s var(--ease-out), box-shadow .3s var(--ease-out),
             border-color .3s var(--ease-out);
}
.doc__link:hover{
  transform:translateY(-4px);
  border-color:var(--accent);
  box-shadow:0 14px 28px rgba(10,10,11,.10);
}
.doc__text{display:flex;flex-direction:column;gap:.625rem;flex:1;min-width:0}
.doc__icon{
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  margin-bottom:.875rem;
  border-radius:var(--r-card);
  background:var(--accent-tint);
  color:var(--accent-deep);
}
.doc__icon svg{width:24px;height:24px}
.doc__name{
  font-family:var(--font-body);
  font-weight:700;
  font-size:1.0625rem;
  line-height:1.3;
  color:var(--ink);
}
.doc__note{font-size:var(--fs-small);line-height:1.5;color:var(--ink-body)}
.doc__meta{
  margin-top:auto;
  padding-top:1.125rem;
  font-size:.8125rem;
  font-weight:600;
  letter-spacing:.08em;
  color:var(--accent-deep);
}

@media (max-width:1024px){
  .docs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
  .certs{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:680px){
  .certs,.docs{grid-template-columns:minmax(0,1fr)}
  .cert__icon{width:68px;height:68px}
  .cert__icon svg{width:38px}
}

/* ============================================================
   Product page
   ============================================================ */


/* Size table */


@media (max-width:1024px){
  .prodhead{grid-template-columns:minmax(0,1fr);gap:2.25rem}
}
@media (max-width:480px){
}


/* ============================================================
   Product detail page
   ============================================================ */

.crumbs{margin-bottom:clamp(1.75rem, 3.5vw, 2.75rem)}
.crumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:.375rem .5rem}
.crumbs li{display:flex;align-items:center;gap:.5rem;font-size:.9375rem;color:var(--ink-body)}
.crumbs li + li::before{content:"/";color:var(--section-rule)}
.crumbs a{color:var(--ink-body);text-decoration:none}
.crumbs a:hover{color:var(--accent-deep);text-decoration:underline}
.crumbs [aria-current]{color:var(--ink);font-weight:600}

.section--pdp{padding-block:clamp(2rem, 4vw, 3.25rem) var(--section-y)}

.pdp{
  display:grid;
  grid-template-columns:minmax(0,500fr) minmax(0,580fr);
  gap:clamp(2rem, 5vw, 4.5rem);
  align-items:start;
}
.pdp__media{
  margin:0;
  border:1px solid var(--section-rule);
  border-radius:var(--r-card);
  background:var(--card-surface);
  overflow:hidden;
}
.pdp__media img{width:100%;height:auto;display:block}

.pdp__body .display{margin-bottom:1.25rem;text-transform:none}
.pdp__body .prose{margin-bottom:1.75rem}

/* Key figures — the six values a buyer checks before anything else */
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.tile{
  display:flex;
  flex-direction:column;
  gap:.5rem;
  padding:1rem 1.125rem;
  border:1px solid var(--section-rule);
  border-radius:var(--r-card);
  background:var(--bg-b);
}
.tile__label{
  font-size:.6875rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  line-height:1.3;
  color:var(--ink-body);
}
.tile__value{
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.375rem;
  line-height:1;
  color:var(--ink);
  font-variant-numeric:tabular-nums;
}

/* The product name runs at a fixed 32px on every product page — the page
   already carries the photo and the tiles, so the title does not need the
   full display scale. */
.pdp__body .display--3{font-size:2rem}

.pdp__cta{margin:1.75rem 0 0}

/* Catalogue downloads under the CTA: the same pill the client sketched, in
   the site's own palette — light card, copper-outlined icon tile. */
.doclinks{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  margin-top:1rem;
}
.doclink{
  display:inline-flex;
  align-items:center;
  gap:.875rem;
  padding:.625rem 1.25rem .625rem .625rem;
  border:1px solid var(--section-rule);
  border-radius:var(--r-card);
  background:var(--card-surface);
  text-decoration:none;
  color:inherit;
  transition:border-color .25s var(--ease-out), transform .25s var(--ease-out),
             box-shadow .3s var(--ease-out);
}
.doclink:hover{
  border-color:var(--accent);
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(10,10,11,.10);
}
.doclink:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.doclink__icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  flex-shrink:0;
  border:1px solid var(--accent);
  border-radius:var(--r-card);
  background:transparent;
  color:var(--accent-deep);
}
.doclink__icon svg{width:22px;height:22px;display:block}
.doclink__text{display:flex;flex-direction:column;gap:.125rem;min-width:0}
.doclink__name{
  font-family:var(--font-body);
  font-weight:700;
  font-size:1rem;
  line-height:1.25;
  color:var(--ink);
}
.doclink__meta{
  font-size:.8125rem;
  letter-spacing:.02em;
  color:var(--ink-body);
}

@media (max-width:560px){
  .doclinks{flex-direction:column}
  .doclink{width:100%}
}
@media (max-width:1024px){
  .pdp{grid-template-columns:minmax(0,1fr);gap:2.25rem}
}
@media (max-width:560px){
  .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pdp__cta .btn{width:100%}
}

/* ---- Size table ---------------------------------------------------------
   The plant's own sheet, as a picture: a note under the heading, then the
   picture — inline when it fits, in the compact box (further down) when it
   is big. */

.sizes__note{
  margin:0;
  max-width:70ch;
  font-size:var(--fs-small);
  line-height:1.5;
  color:var(--ink-body);
}

/* ---- Product listing ("Продукция") ------------------------------------- */

.plist{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1.25rem;
}

.plist__note{
  margin:clamp(1.75rem, 3vw, 2.5rem) 0 0;
  max-width:70ch;
  font-size:var(--fs-small);
  line-height:1.6;
  color:var(--ink-body);
}

/* a photo in a dark carousel card keeps its own frame so the studio ground
   does not read as a rendering glitch */

@media (max-width:760px){
  .plist{grid-template-columns:minmax(0,1fr)}
}

/* the long product story sits under the spec card, not beside it */
.pdp__story{margin-top:clamp(1.5rem, 3vw, 2.25rem);max-width:70ch}

/* ---- Product card ------------------------------------------------------
   One component for the home carousel and the products listing: a catalogue
   sheet — photo edge to edge, name in the display face, two figures from the
   product's own spec, a ruled action line. The whole card is the link. */
.prodcard{
  display:flex;
  flex-direction:column;
  height:100%;
  border:1px solid var(--section-rule);
  border-radius:var(--r-card);
  background:var(--bg-b);
  color:var(--ink);
  text-decoration:none;
  overflow:hidden;
  transition:border-color .25s var(--ease-out), box-shadow .3s var(--ease-out);
}
.prodcard:hover{border-color:var(--ink);box-shadow:0 18px 36px rgba(10,10,11,.10)}
.prodcard:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* tools/fit_photos.py brings every shot to this ratio, so the image fills the
   top of the sheet edge to edge on its own studio ground */
.prodcard__media{
  display:block;
  aspect-ratio:1200 / 936;
  overflow:hidden;
  border-bottom:1px solid var(--section-rule);
}
.prodcard__media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s var(--ease-out);
}
.prodcard:hover .prodcard__media img{transform:scale(1.035)}

.prodcard__title{
  margin:1.25rem 1.25rem .875rem;   /* an <h3>: reset the UA margin explicitly */
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.375rem;
  line-height:1.12;
  letter-spacing:-.005em;
  text-transform:uppercase;
  color:var(--ink);
}
/* two spec tiles borrowed from the product page, ruled as a small table.
   The top margin is auto: the free space of the card goes above the tiles, so
   they sit at the foot of every card whatever the length of its title. */
.prodcard__specs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin:auto 1.25rem 0;
  border-top:1px solid var(--section-rule);
}
.prodcard__specs .tile{
  gap:.25rem;
  padding:.75rem 0;
  border:0;
  border-radius:0;
  background:transparent;
}
.prodcard__specs .tile + .tile{padding-left:.875rem;border-left:1px solid var(--section-rule)}
.prodcard__specs .tile__label{font-size:.6875rem;letter-spacing:.1em;text-transform:uppercase}
.prodcard__specs .tile__value{font-size:1rem}
.prodcard__btn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  /* no auto margin here: flexbox would split the free space between this and
     the tiles above, and the tiles would stop lining up across the row */
  margin:0;
  padding:1rem 1.25rem;
  border-top:1px solid var(--section-rule);
  font-family:var(--font-body);
  font-weight:700;
  font-size:.75rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  line-height:1;
  color:var(--ink);
  transition:background .25s var(--ease-out), color .25s var(--ease-out);
}
.prodcard__btn::after{
  content:"\2192";
  font-size:1rem;
  transition:transform .25s var(--ease-out);
}
.prodcard:hover .prodcard__btn{background:var(--ink);color:var(--ink-invert)}
.prodcard:hover .prodcard__btn::after{transform:translateX(4px)}

.pitem{display:flex;flex-direction:column}
/* display on a class beats the UA [hidden] rule, so say it again here */
.pitem[hidden]{display:none}
/* the card fills the cell, the match count sits under it */
.pitem .prodcard{height:auto;flex:1 1 auto}
.plist{grid-template-columns:repeat(4,minmax(0,1fr))}

@media (max-width:1024px){
  .plist{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .plist{grid-template-columns:minmax(0,1fr)}
}

/* A small picture needs no full-bleed treatment — it fits the container. */
.sizes-inline{margin:clamp(1.25rem, 2.5vw, 1.75rem) 0 0}
.sizes-img{display:block;max-width:100%;height:auto;-webkit-user-drag:none;user-select:none;-webkit-user-select:none}

/* ---- Size finder: filter panel, search and result cards ---------------- */

.finder{margin-top:0}
.finder .display{margin-bottom:1rem}
.finder__grid{
  display:grid;
  grid-template-columns:minmax(0,270px) minmax(0,1fr);
  gap:clamp(1.5rem, 3vw, 2.5rem);
  align-items:start;
  margin-top:clamp(1.5rem, 3vw, 2.25rem);
}

.filters{
  padding:clamp(1.25rem, 2vw, 1.5rem);
  border:1px solid var(--section-rule);
  border-radius:var(--r-card);
  background:var(--card-surface);
}
.filters__head{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.filters__title{
  margin:0;
  font-family:var(--font-body);
  font-weight:700;
  font-size:.8125rem;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--ink);
}
.filters__toggle{
  display:none;
  padding:.5rem .75rem;
  border:1px solid var(--section-rule);
  border-radius:var(--r-ctl);
  background:transparent;
  font-family:var(--font-body);
  font-weight:700;
  font-size:.75rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--ink);
  cursor:pointer;
}
.filters__body{display:flex;flex-direction:column;gap:1.5rem;margin-top:1.25rem}

.filter{margin:0;padding:0;border:0}
.filter__legend{
  padding:0 0 .625rem;
  font-size:.8125rem;
  font-weight:600;
  color:var(--ink-body);
}
.filter__list{display:flex;flex-direction:column;gap:.125rem;max-height:220px;overflow-y:auto}
.filter__list .check b{font-weight:600;color:var(--ink-body)}

.range-row{display:flex;align-items:center;gap:.5rem}
.range-row .field-input{min-width:0;text-align:center}
.range-row__dash{color:var(--ink-body)}

.filters__actions{display:flex;flex-wrap:wrap;gap:.625rem}

.search{margin-bottom:1rem}
.search__input{width:100%}

.finder__count{margin:0 0 1rem;font-size:var(--fs-small);color:var(--ink-body)}
.finder__count b{color:var(--ink)}
.finder__empty{
  margin:0;
  padding:2rem 1.25rem;
  border:1px dashed var(--section-rule);
  border-radius:var(--r-card);
  text-align:center;
  font-size:var(--fs-small);
  color:var(--ink-body);
}
/* The filter narrows the product cards themselves, so the results column
   carries the same .plist grid — one column narrower than the full page. */
.finder__results .plist{grid-template-columns:repeat(3,minmax(0,1fr))}

@media (max-width:1100px){
  .finder__results .plist{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
  .finder__grid{grid-template-columns:minmax(0,1fr)}
  .filters__toggle{display:block}
  .filters__body{display:none}
  .filters.is-open .filters__body{display:flex}
  .filter__list{max-height:none}
}
@media (max-width:560px){
  .finder__results .plist{grid-template-columns:minmax(0,1fr)}
}

/* ---- News: cards, "all news" link, article ----------------------------- */

.newsall{margin:0}
.newsall__link{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding-bottom:.375rem;
  border-bottom:1px solid var(--section-rule);
  font-family:var(--font-body);
  font-weight:600;
  font-size:.9375rem;
  text-decoration:none;
  color:var(--accent-deep);
  transition:border-color .25s var(--ease-out);
}
.newsall__link:hover{border-bottom-color:var(--accent)}
.newsall__link span{transition:transform .25s var(--ease-out)}
.newsall__link:hover span{transform:translateX(4px)}

.ncards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.ncard{display:flex}
.ncard__link{
  display:flex;
  flex-direction:column;
  width:100%;
  border:1px solid var(--section-rule);
  border-radius:var(--r-card);
  background:var(--card-surface);
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  transition:transform .3s var(--ease-out), box-shadow .3s var(--ease-out),
             border-color .3s var(--ease-out);
}

/* The photo slot holds its space before a file exists, so adding one later
   does not reflow the card. */
.ncard__media{
  display:block;
  aspect-ratio:4 / 3;
  overflow:hidden;
  background:var(--bg-a);
}
.ncard__media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s var(--ease-out);
}
.ncard__link:hover .ncard__media img{transform:scale(1.04)}
.ncard__media--empty{border-bottom:1px solid var(--section-rule)}

.ncard__body{
  display:flex;
  flex-direction:column;
  gap:.625rem;
  flex:1;
  padding:clamp(1.25rem, 2.4vw, 1.75rem);
}
.ncard__link:hover{
  transform:translateY(-4px);
  border-color:var(--accent);
  box-shadow:0 14px 28px rgba(10,10,11,.10);
}
.ncard__date{
  font-size:.8125rem;
  font-weight:700;
  letter-spacing:.08em;
  color:var(--accent-deep);
  font-variant-numeric:tabular-nums;
}
.ncard__title{
  margin:0;                     /* an <h3>: reset the UA margin */
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(1.25rem, 1.9vw, 1.5rem);
  line-height:1.15;
  letter-spacing:-.005em;
  text-transform:uppercase;
  color:var(--ink);
}
.ncard__lead{font-size:var(--fs-small);line-height:1.55;color:var(--ink-body)}

/* the same slot on the article itself */
.newsfigure{margin:clamp(1.75rem, 3vw, 2.5rem) 0 0;max-width:820px}
.newsfigure__media{
  display:block;
  aspect-ratio:16 / 9;
  border:1px solid var(--section-rule);
  border-radius:var(--r-card);
  overflow:hidden;
  background:var(--accent-tint);
}
.newsfigure__media img{display:block;width:100%;height:100%;object-fit:cover}
.newsbody{margin-top:clamp(1.75rem, 3vw, 2.5rem)}

/* Article */
.newsbody{max-width:64ch}
.newsbody p + p{margin-top:1.375rem}
.newsback{margin:clamp(2rem, 4vw, 2.75rem) 0 0}

.newsnav{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
}
.newsnav__link{
  display:flex;
  flex-direction:column;
  gap:.375rem;
  padding:clamp(1.125rem, 2.2vw, 1.5rem);
  border:1px solid var(--section-rule);
  border-radius:var(--r-card);
  background:var(--card-surface);
  text-decoration:none;
  color:inherit;
  transition:border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.newsnav__link:hover{border-color:var(--accent);transform:translateY(-3px)}
.newsnav__link--next{text-align:right}
.newsnav__label{
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--accent-deep);
}
.newsnav__title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.0625rem;
  line-height:1.25;
  color:var(--ink);
}

@media (max-width:900px){
  .ncards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:620px){
  .ncards,.newsnav{grid-template-columns:minmax(0,1fr)}
  .newsnav__link--next{text-align:left}
}

/* Six menu items. Scoped to the desktop header: the burger drawer up to 1000px
   stacks the same list with gap 0 and must not inherit these. */
.site-nav__cta{white-space:nowrap}
@media (min-width:1001px){
  /* narrow enough for the Russian list to sit on the true centre of the 1fr tracks */
  .site-nav__list{gap:1.25rem}
}
/* Below the container width the true centre is out of reach: centre the list
   between the logo and the actions instead of letting it hug the button. */
@media (min-width:1001px) and (max-width:1180px){
  .site-header__inner{grid-template-columns:auto minmax(0,1fr) auto}
}
@media (min-width:1001px) and (max-width:1100px){
  .site-nav__list{gap:1rem}
  .site-nav__list a{letter-spacing:.08em}
  .site-nav__actions{gap:.75rem}
}


/* ============================================================
   Certificates strip (home) — the four documents as ruled cells
   ============================================================ */
.certstrip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  background:var(--section-rule);
  border:1px solid var(--section-rule);
}
.certstrip .cert{display:flex}
.certstrip .cert__link{
  grid-template-columns:auto minmax(0,1fr);
  align-items:start;
  gap:1rem;
  padding:1.5rem;
  border:0;
  border-radius:0;
  background:var(--bg-b);
}
.certstrip .cert__link:hover{
  transform:none;
  box-shadow:none;
  background:var(--bg-a);
}
.certstrip .cert__icon{
  width:52px;
  height:52px;
  border:1px solid var(--section-rule);
  background:transparent;
}
.certstrip .cert__icon svg{width:34px}
.certstrip .cert__name{font-size:1.0625rem}
.certstrip .cert__note{font-size:.875rem;line-height:1.45}
.certstrip .cert__meta{font-size:.6875rem;letter-spacing:.1em;text-transform:uppercase}
.certs__foot{margin-top:2rem}

@media (max-width:1024px){
  .certstrip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .certstrip{grid-template-columns:minmax(0,1fr)}
}


/* ============================================================
   Size table picture — compact on the page, full screen in a dialog
   ============================================================ */
/* Compact: the picture takes the container's measure and its height is
   capped; the full-size view is a click away. .sizes-box sits outside
   .container on purpose and lines up with it by its own margins. */
.sizes-box{
  /* hugs the picture on a wide screen, caps at the container on a narrow one;
     aligned to the container's left edge either way */
  --edge:max(var(--gutter), calc((100% - 1180px) / 2 + var(--gutter)));
  width:fit-content;
  max-width:calc(100% - 2 * var(--edge));
  margin:clamp(1.5rem, 3vw, 2.25rem) var(--edge) 0;
  border:1px solid var(--section-rule);
  background:var(--bg-b);
}
.sizes-view{
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}
.sizes-view:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}
.sizes-view--compact{
  max-height:min(60vh, 520px);
  cursor:zoom-in;
}

/* a sticky fade at the foot of the compact box hints that more rows follow;
   the script shows it only while there is something to scroll to, and it is
   dropped once the picture moves into the dialog */
.sizes-fade{
  position:sticky;
  bottom:0;
  display:none;
  height:56px;
  margin-top:-56px;
  background:linear-gradient(to bottom, rgba(255,255,255,0), var(--bg-b));
  pointer-events:none;
}
.sizes-box.is-cut .sizes-fade{display:block}
.sizes-dialog .sizes-fade{display:none}

.sizes-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.75rem 1rem;
  border-top:1px solid var(--section-rule);
}

/* Full-screen dialog: the viewport, edge to edge, the picture at its own size */
.sizes-dialog{
  width:100vw;
  height:100vh;
  height:100dvh;
  max-width:none;
  max-height:none;
  margin:0;
  padding:0;
  border:0;
  background:var(--bg-b);
  color:var(--ink);
  font-family:var(--font-body);
  display:none;
  flex-direction:column;
}
.sizes-dialog[open]{display:flex}
.sizes-dialog::backdrop{background:rgba(10,10,11,.7)}
.sizes-dialog__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.875rem var(--gutter);
  border-bottom:1px solid var(--section-rule);
  flex:none;
}
.sizes-dialog__title{
  margin:0;
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.25rem;
  letter-spacing:-.005em;
  text-transform:uppercase;
}
.sizes-dialog__close{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid var(--ink);
  border-radius:var(--r-ctl);
  background:transparent;
  color:var(--ink);
  cursor:pointer;
  transition:background-color .2s ease, color .2s ease;
}
.sizes-dialog__close:hover{background:var(--ink);color:var(--ink-invert)}
.sizes-dialog__close svg{width:20px;height:20px}
.sizes-dialog__body{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
}
/* the box grows to the picture's own width, so a wide table scrolls sideways
   with its padding kept; a narrow one is centred */
.sizes-dialog__body .sizes-view{
  overflow:visible;
  width:max-content;
  min-width:100%;
  padding:1rem var(--gutter) 2rem;
}
.sizes-dialog__body .sizes-img{max-width:none;margin-inline:auto}

@media (max-width:680px){
  .sizes-bar .btn{width:100%}
}

/* ============================================================
   Blog — a log of trips, not a card grid
   The listing is a ledger: one ruled row per post with its index, the
   cover on a copper plate, and the technical meta line. Articles carry a
   fact sheet beside the copy and a contact-sheet gallery.
   ============================================================ */
.posts{border-top:1px solid var(--section-rule)}
.post{
  position:relative;
  display:grid;
  grid-template-columns:4rem minmax(0,420px) minmax(0,1fr);
  column-gap:clamp(1.5rem, 4vw, 4rem);
  align-items:center;
  padding-block:clamp(2.5rem, 5vw, 4rem);
  border-bottom:1px solid var(--section-rule);
}
.post__index{
  align-self:start;
  padding-top:.25rem;
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.75rem;
  line-height:1;
  letter-spacing:-.01em;
  color:var(--accent);
  font-variant-numeric:tabular-nums;
}
/* the cover on its plate: the same plate as the process sheets, the photo
   dropped on it with an offset */
.post__media{
  position:relative;
  display:block;
  width:88%;
  margin:0 0 8% 0;
  aspect-ratio:4/3;
  background:var(--accent);
}
.post__media::after{
  content:"";
  position:absolute;
  inset:1rem;
  border:1px solid rgba(10,10,11,.28);
  pointer-events:none;
}
.post__media img{
  position:absolute;
  left:-10%;
  bottom:-8%;
  width:100%;
  height:100%;
  object-fit:cover;
  max-width:none;
  border:1px solid var(--ink);
  box-shadow:0 24px 40px -18px rgba(10,10,11,.35);
  transition:transform .5s var(--ease-out);
}
.post:hover .post__media img{transform:translate(2px,-4px)}
/* alternate: even rows put the plate on the right */
.post:nth-child(even){grid-template-columns:4rem minmax(0,1fr) minmax(0,420px)}
.post:nth-child(even) .post__media{grid-column:3;justify-self:end;margin:0 0 8% auto}
.post:nth-child(even) .post__media img{left:auto;right:-10%}
.post:nth-child(even) .post__body{grid-column:2;grid-row:1}

.post__meta{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem .75rem;
  margin:0 0 1rem;
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-body);
  font-variant-numeric:tabular-nums;
}
.post__sep{color:var(--accent)}
.post__title{
  margin:0 0 1rem;
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(1.75rem, 2.8vw, 2.5rem);
  line-height:1.06;
  letter-spacing:-.015em;
  text-transform:uppercase;
  color:var(--ink);
}
.post__title a{color:inherit;text-decoration:none}
.post__title a:hover{color:var(--accent-deep)}
.post__lead{max-width:56ch;font-size:var(--fs-body);line-height:1.65;color:var(--ink-body)}

/* three figures from the trip, ruled like the KPI strip */
.post__kpis{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  max-width:520px;
  margin:1.5rem 0 0;
  border-top:1px solid var(--section-rule);
}
.post__kpi{display:flex;flex-direction:column;gap:.25rem;padding:.875rem 1rem 0 0}
.post__kpi + .post__kpi{padding-left:1rem;border-left:1px solid var(--section-rule)}
.post__kpi b{
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.75rem;
  line-height:1;
  letter-spacing:-.01em;
  color:var(--accent);
  font-variant-numeric:tabular-nums;
}
.post__kpi span{
  font-size:.6875rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--ink-body);
}
.post__more{
  display:inline-block;
  margin-top:1.5rem;
  padding-bottom:.25rem;
  border-bottom:1px solid var(--accent);
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--ink);
  transition:color .2s ease;
}
.post__more:hover{color:var(--accent-deep)}
/* the whole row is clickable through the title; the cover is a second target */
.post__more::after{content:"";position:absolute;inset:0}
.post__title a{position:relative;z-index:1}
.post__media{z-index:1}

/* ---- article ---- */
.section--article{padding-bottom:var(--section-y)}
.article__cover{
  margin:clamp(2rem, 4vw, 3rem) 0 0;
}
.article__cover img{
  width:100%;
  height:auto;
  max-height:560px;
  object-fit:cover;
  border:1px solid var(--ink);
}
.article__cover figcaption{
  margin-top:.75rem;
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--ink-body);
  font-variant-numeric:tabular-nums;
}
.article{
  display:grid;
  grid-template-columns:minmax(0,300px) minmax(0,1fr);
  gap:clamp(2rem, 5vw, 5rem);
  align-items:start;
  margin-top:clamp(2.5rem, 5vw, 4rem);
}
.factsheet{
  position:sticky;
  top:calc(var(--header-h) + 1.5rem);
  padding:1.25rem 1.375rem 1.375rem;
  border:1px solid var(--section-rule);
  border-top:2px solid var(--accent);
  background:var(--bg-b);
}
.factsheet__title{
  margin:0 0 .875rem;
  font-family:var(--font-display);
  font-size:1.25rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--ink);
}
.factsheet__list{margin:0}
.factsheet__row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:1rem;
  padding:.75rem 0;
  border-top:1px solid var(--section-rule);
}
.factsheet__row dt{font-size:.8125rem;color:var(--ink-body)}
.factsheet__row dd{
  margin:0;
  text-align:right;
  font-family:var(--font-display);
  font-weight:800;
  font-size:1rem;
  color:var(--ink);
  font-variant-numeric:tabular-nums;
}
.article__body{max-width:62ch}
.article__body p + p{margin-top:1.25rem}
.article__h{
  margin:2.25rem 0 .875rem;
  padding-top:1rem;
  border-top:1px solid var(--section-rule);
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.375rem;
  line-height:1.15;
  letter-spacing:-.005em;
  text-transform:uppercase;
  color:var(--ink);
}
.article__h:first-child{margin-top:0;padding-top:0;border-top:0}
.article__list{display:grid;gap:.5rem;margin:1rem 0 0;padding:0}
.article__list li{
  position:relative;
  padding-left:1.375rem;
  font-size:var(--fs-body);
  line-height:1.6;
  color:var(--ink);
}
.article__list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.7em;
  width:10px;
  height:1.5px;
  background:var(--accent);
}

/* contact sheet: hairline grid, every frame the same height */
.gallery{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1px;
  margin-top:clamp(2.5rem, 5vw, 4rem);
  background:var(--section-rule);
  border:1px solid var(--section-rule);
}
.gallery li{background:var(--bg-b);overflow:hidden}
/* a fixed 3×2 sheet: frames without a photo keep their place as a blank
   plate with a hairline cross, so every post has the same grid */
.gallery li.gallery__empty{
  aspect-ratio:4/3;
  background:
    linear-gradient(to top right, transparent calc(50% - .5px), var(--section-rule) 50%, transparent calc(50% + .5px)),
    linear-gradient(to top left, transparent calc(50% - .5px), var(--section-rule) 50%, transparent calc(50% + .5px)),
    var(--bg-a);
}
.gallery img{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  transition:transform .5s var(--ease-out);
}
.gallery li:hover img{transform:scale(1.03)}

@media (max-width:1024px){
  .post,
  .post:nth-child(even){grid-template-columns:4rem minmax(0,1fr)}
  .post__media,
  .post:nth-child(even) .post__media{grid-column:2;justify-self:start;width:calc(100% - 1.5rem);max-width:520px;margin:0 0 10% 0}
  .post:nth-child(even) .post__media img{left:-6%;right:auto}
  .post__media img{left:-6%}
  .post__body,
  .post:nth-child(even) .post__body{grid-column:2;grid-row:auto;margin-top:1.5rem}
  .post__index{grid-row:1}
  .article{grid-template-columns:minmax(0,1fr)}
  .factsheet{position:static}
}
@media (max-width:680px){
  .post,
  .post:nth-child(even){grid-template-columns:minmax(0,1fr);row-gap:1rem}
  .post__index{grid-row:auto}
  .post__media,
  .post:nth-child(even) .post__media,
  .post__body,
  .post:nth-child(even) .post__body{grid-column:1}
  .post__media,
  .post:nth-child(even) .post__media{width:calc(100% - 1rem);margin:0 0 10% 0}
  .post__kpis{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none}
  .post__kpi b{font-size:1.375rem}
  .gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---- Standards in the spec strip: a quiet disclosure ------------------
   Looks like the other cells until opened; a small caret is the only hint. */
.spec--menu{position:relative}
.stdlist__toggle{
  display:flex;
  flex-direction:column;
  gap:.5rem;
  list-style:none;
  cursor:pointer;
}
.stdlist__toggle::-webkit-details-marker{display:none}
.stdlist__toggle .spec__value{display:inline-flex;align-items:center;gap:.375rem}
.stdlist__caret{width:16px;height:16px;color:var(--ink-body);transition:transform .2s var(--ease-out), color .2s ease}
.stdlist__toggle:hover .stdlist__caret{color:var(--accent)}
.stdlist[open] .stdlist__caret{transform:rotate(180deg);color:var(--accent)}
.stdlist__menu{
  position:absolute;
  z-index:20;
  top:calc(100% + .5rem);
  left:0;
  min-width:13rem;
  margin:0;
  padding:.375rem 0;
  border:1px solid var(--section-rule);
  border-top:2px solid var(--accent);
  background:var(--bg-b);
  box-shadow:0 18px 34px rgba(10,10,11,.12);
}
.spec + .spec .stdlist__menu{left:1.5rem}
.stdlist__menu li{
  padding:.5rem 1rem;
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.0625rem;
  line-height:1.2;
  color:var(--ink);
  font-variant-numeric:tabular-nums;
}
.stdlist__menu li + li{border-top:1px solid var(--section-rule)}
@media (max-width:680px){
  .spec--menu{display:block}
  .stdlist__toggle{flex-direction:row;align-items:baseline;justify-content:space-between;gap:1rem}
  .stdlist__menu{position:static;margin-top:.75rem;box-shadow:none;min-width:0}
  .spec + .spec .stdlist__menu{left:auto}
}

/* two documents only: two wide cards instead of half an empty row */
.docs--pair{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:680px){.docs--pair{grid-template-columns:minmax(0,1fr)}}

/* ============================================================
   404 — the missing length of tube
   ============================================================ */
.section--404{padding-block:clamp(3rem, 7vw, 6rem) var(--section-y)}
.e404{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,500px);
  gap:clamp(2rem, 5vw, 5rem);
  align-items:center;
}
.e404__code{
  margin:0 0 1.25rem;
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(7rem, 19vw, 14rem);
  line-height:.82;
  letter-spacing:-.04em;
  color:var(--ink);
  font-variant-numeric:tabular-nums;
}
/* outlined fours, a solid copper zero — only where the stroke is supported,
   otherwise the digits stay solid ink rather than vanishing */
@supports (-webkit-text-stroke:1px black){
  .e404__code{color:transparent;-webkit-text-stroke:2px var(--ink)}
}
.e404__code .e404__zero{color:var(--accent);-webkit-text-stroke:0}
.e404 .display{margin-bottom:1.5rem}

/* the drawing on its copper plate, like the production sheets */
.e404__figure{
  position:relative;
  width:84%;
  margin:0 0 7% auto;
  aspect-ratio:408/330;
  background:var(--accent);
}
.e404__figure::after{
  content:"";
  position:absolute;
  inset:1rem;
  border:1px solid rgba(10,10,11,.28);
  pointer-events:none;
}
.e404__figure img{
  position:absolute;
  left:-12%;
  bottom:-8%;
  width:98%;
  height:auto;
  max-width:none;
  border:1px solid var(--ink);
  box-shadow:0 24px 40px -18px rgba(10,10,11,.35);
}

.e404__links{
  margin-top:clamp(3.5rem, 7vw, 6rem);
  padding-top:1.5rem;
  border-top:1px solid var(--section-rule);
}
.e404__list{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  background:var(--section-rule);
  border:1px solid var(--section-rule);
}
.e404__list li{display:flex}
.e404__link{
  display:flex;
  flex-direction:column;
  width:100%;
  padding:1.5rem;
  background:var(--bg-b);
  text-decoration:none;
  color:inherit;
  transition:background-color .25s ease;
}
.e404__link:hover{background:var(--bg-a)}
.e404__num{
  font-family:var(--font-display);
  font-weight:800;
  font-size:1rem;
  color:var(--accent);
  font-variant-numeric:tabular-nums;
}
.e404__name{
  margin:1.5rem 0 .5rem;
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.375rem;
  line-height:1.15;
  text-transform:uppercase;
  color:var(--ink);
}
.e404__note{margin:0;font-size:.875rem;line-height:1.5;color:var(--ink-body)}
.e404__arrow{
  margin-top:auto;
  padding-top:1.25rem;
  font-size:1.25rem;
  color:var(--accent);
  transition:transform .25s var(--ease-out);
}
.e404__link:hover .e404__arrow{transform:translateX(4px)}

@media (max-width:1024px){
  .e404{grid-template-columns:minmax(0,1fr)}
  .e404__figure{width:calc(100% - 2rem);max-width:520px;margin:0 0 8% 2rem}
  .e404__list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .e404__list{grid-template-columns:minmax(0,1fr)}
  .e404__name{margin-top:.75rem}
}

/* ---- text from the admin panel's editor: news bodies and blog sections ---- */
.newsbody__text{margin-top:1.375rem}
.newsbody__text p + p,.newsbody__text ul + p,.newsbody__text ol + p,.newsbody__text p + ul,.newsbody__text p + ol{margin-top:1.375rem}
.newsbody__text h2,.newsbody__text h3{margin:2rem 0 .75rem;font-family:var(--font-display);font-weight:800;line-height:1.15;color:var(--ink)}
.newsbody__text h2{font-size:1.5rem;text-transform:uppercase;letter-spacing:.02em}
.newsbody__text h3,.article__h3{font-size:1.125rem}
.article__section p + p,.article__section ul + p,.article__section ol + p,.article__section p + ul,.article__section p + ol{margin-top:1.25rem}
.article__section .article__h3{margin:1.5rem 0 .5rem;font-family:var(--font-display);font-weight:800;line-height:1.2;color:var(--ink)}
.article__list--num{counter-reset:num}
.article__list--num li{counter-increment:num}
.article__list--num li::before{content:counter(num) "." !important;width:auto;height:auto;border:0;background:none;font-weight:700;color:var(--accent)}
.person__photo--empty{display:block;aspect-ratio:4/5;background:var(--bg-a);border:1px solid var(--section-rule)}

/* the language menu links to the same page in another language */
a.lang__opt{text-decoration:none;color:inherit}

/* ============================================================
   REVIEWS — оценка, карточки отзывов, форма
   ============================================================ */

/* ---- Звёзды ---- */
.stars{position:relative;display:inline-flex;vertical-align:middle;line-height:0}
.stars__row{display:flex;gap:.125rem}
.stars__row svg{width:1.125rem;height:1.125rem;flex:none;fill:var(--rule)}
.stars__row--on{position:absolute;inset:0;overflow:hidden;white-space:nowrap}
.stars__row--on svg{fill:var(--accent)}
.stars--sm .stars__row svg{width:1rem;height:1rem}
.stars--lg .stars__row svg{width:1.75rem;height:1.75rem}

/* ---- Сводка: средняя оценка и распределение ---- */
.section--rating{padding-top:0}
.rating{
  display:grid;
  grid-template-columns:minmax(0,auto) minmax(0,1fr);
  gap:clamp(1.5rem, 4vw, 3.5rem);
  align-items:center;
  padding:clamp(1.5rem, 3vw, 2.25rem);
  border:1px solid var(--section-rule);
  border-top:2px solid var(--accent);
  border-radius:var(--r-card);
  background:var(--bg-b);
}
.rating__score{text-align:center}
.rating__value{
  margin:0 0 .5rem;
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(2.75rem, 7vw, 4rem);
  line-height:1;
  font-variant-numeric:tabular-nums;
  color:var(--ink);
}
.rating__count{
  margin:.75rem 0 0;
  font-size:.8125rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ink-body);
}
.rating__bars{display:grid;gap:.375rem;margin:0;padding:0;list-style:none}
.rating__bar-link{
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr) 2.5rem;
  align-items:center;
  gap:.5rem;
  padding:.25rem .375rem;
  border-radius:var(--r-ctl);
  text-decoration:none;
  color:var(--ink-body);
  transition:background-color .2s ease;
}
.rating__bar-link:hover{background:var(--accent-tint)}
.rating__bar-link[aria-current="true"]{background:var(--accent-tint);color:var(--ink)}
.rating__bar-link[aria-disabled="true"]{pointer-events:none;opacity:.55}
.rating__bar-label{font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink)}
.rating__bar-star{width:.875rem;height:.875rem;fill:var(--accent)}
.rating__bar-track{height:8px;border-radius:2px;background:var(--bg-a);overflow:hidden}
.rating__bar-fill{display:block;height:100%;background:var(--accent);min-width:0}
.rating__bar-count{font-size:.875rem;text-align:right;font-variant-numeric:tabular-nums}

.chip-row--filter{margin-top:1.75rem}
.chip-row--filter .btn.is-on{background:var(--ink);color:var(--ink-invert)}

/* ---- Карточки отзывов ---- */
.reviews{display:grid;gap:1rem;margin:0;padding:0;list-style:none}
.review{
  padding:clamp(1.25rem, 2.5vw, 1.75rem);
  border:1px solid var(--section-rule);
  border-left:2px solid var(--accent);
  border-radius:var(--r-card);
  background:var(--bg-b);
}
.review__head{display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;justify-content:space-between;align-items:flex-start}
.review__author{margin:0;font-weight:700;font-size:1.0625rem;color:var(--ink)}
.review__place{margin:.125rem 0 0;font-size:.875rem;color:var(--ink-body)}
.review__marks{display:flex;flex-wrap:wrap;align-items:center;gap:.625rem}
.review__topic{
  padding:.1875rem .5rem;
  border:1px solid var(--section-rule);
  border-radius:var(--r-ctl);
  background:var(--bg-a);
  font-size:.75rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--ink-body);
}
.review__date{
  margin:.75rem 0 0;
  font-size:.75rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ink-body);
}
.review__body{margin-top:.875rem;color:var(--ink);line-height:1.6}
.review__photo{display:inline-block;margin-top:1rem;border:1px solid var(--section-rule);line-height:0}
.review__photo img{display:block;max-width:260px;height:auto}
.review__resolved{
  display:inline-flex;
  align-items:center;
  gap:.4375rem;
  margin:1rem 0 0;
  padding:.25rem .625rem;
  border:1px solid #2E7D4F;
  border-radius:var(--r-ctl);
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#2E7D4F;
}
.review__resolved::before{content:"✓"}
.review__reply{
  margin-top:1.25rem;
  padding:1rem 1.125rem;
  border-left:2px solid var(--rule);
  background:var(--bg-a);
}
.review__reply-head{
  margin:0 0 .5rem;
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--accent-deep);
}
.review__reply-body{color:var(--ink);line-height:1.6}

/* ---- Постраничный переход ---- */
.pager{display:flex;align-items:center;justify-content:center;gap:1.25rem;margin-top:2.5rem}
.pager__link{
  padding:.5rem .875rem;
  border:1px solid var(--ink);
  border-radius:var(--r-ctl);
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--ink);
}
.pager__link:hover{background:var(--ink);color:var(--ink-invert)}
.pager__link--off{opacity:.4;pointer-events:none}
.pager__count{font-size:.875rem;color:var(--ink-body)}

/* ---- Форма отзыва ---- */
.section--review-form .request-card{max-width:820px}
.rating-field{margin:0 0 1.5rem;padding:0;border:0}
.rating-input{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:.25rem}
.rating-input label{cursor:pointer;line-height:0;padding:.125rem}
.rating-input svg{width:2rem;height:2rem;fill:var(--rule);transition:fill .15s ease}
.rating-input label:hover svg,
.rating-input label:hover ~ label svg,
.rating-input input:checked ~ label svg{fill:var(--accent)}
.rating-input input:focus-visible + label svg{outline:2px solid var(--accent-deep);outline-offset:2px}

.field-note{margin:.4375rem 0 0;font-size:.8125rem;color:var(--ink-body)}
.filepick{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}
.filepick__name{font-size:.875rem;color:var(--ink-body);word-break:break-all}
.form-status--thanks{
  margin:0;
  padding:1.125rem 1.25rem;
  border-left:2px solid #2E7D4F;
  background:var(--bg-a);
  font-size:1rem;
  color:var(--ink);
}

@media (max-width:768px){
  .rating{grid-template-columns:minmax(0,1fr)}
  .rating__score{text-align:left}
  .review__head{flex-direction:column}
  .review__photo img{max-width:100%}
}

/* ============================================================
   Товарный калькулятор и таблица заказа
   ============================================================ */
/* Buttons and the table are inline-flex/table by nature, so hidden has to be
   spelled out for them here. */
.calc [hidden],
.calc-order [hidden]{display:none}

.calc__grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(208px,1fr));
  gap:1.25rem 1rem;
}
.calc__field{min-width:0}
.calc__field .form-label{margin-bottom:.4375rem}

/* A calculated field is not a control: copper tint and the display weight say
   the figure came from the formula, not from the visitor. */
.calc__value{
  display:block;
  min-height:46px;
  padding:.625rem .875rem;
  border:1px solid var(--section-rule);
  border-radius:var(--r-ctl);
  background:var(--accent-tint);
  font-family:var(--font-body);
  font-size:1.0625rem;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  line-height:1.4;
  color:var(--ink);
}

.calc__actions{margin-top:1.75rem}
.calc .form-status{max-width:46rem}

.calc-order{
  margin-top:clamp(2rem, 4vw, 3rem);
  padding-top:1.5rem;
  border-top:1px solid var(--section-rule);
}
.calc-order__title{
  margin:0 0 1.25rem;
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(1.25rem, 2vw, 1.5rem);
  line-height:1.2;
  color:var(--ink);
}
.calc-order__empty{margin:0;font-size:var(--fs-small);color:var(--ink-body)}

/* The wrapper takes the sideways scroll so the page itself never does. */
.calc-order__scroll{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
}
.calc-order__scroll:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.calc-table{
  --calc-line:rgba(10,10,11,.18);
  width:100%;
  min-width:560px;
  border-collapse:separate;
  border-spacing:0;
  font-variant-numeric:tabular-nums;
}
.calc-table th,
.calc-table td{
  padding:.5rem .875rem;
  border-right:1px solid var(--calc-line);
  border-bottom:1px solid var(--calc-line);
  text-align:left;
  vertical-align:middle;
  white-space:nowrap;
}
.calc-table tr > *:first-child{border-left:1px solid var(--calc-line)}
.calc-table thead tr:first-child > *{border-top:1px solid var(--calc-line)}
/* Black head, white body: the order list is the visitor's own sheet, so it
   stays out of the page's copper and reads like a printed table. */
.calc-table thead th{
  background:var(--ink);
  color:#fff;
  font-weight:700;
  font-size:.8125rem;
  line-height:1.2;
  white-space:normal;
}
.calc-table__unit{
  display:block;
  font-weight:500;
  font-size:.75rem;
  color:var(--ink-muted);
}
.calc-table tbody td{font-size:.9375rem;color:var(--ink);background:var(--bg-b)}
.calc-table tbody tr:nth-child(even) td{background:#FAFAFA}
.calc-table__num{width:3rem;text-align:center;font-weight:700}
/* the position number gets a copper wash — after the striping rules above, or
   the even rows would paint over it */
.calc-table tbody tr td.calc-table__num{background:var(--accent-tint)}
.calc-table__act{width:1%;text-align:right}
.calc-table__del{
  min-height:32px;
  padding:.3125rem .75rem;
  border:0;
  border-radius:var(--r-ctl);
  background:#C83232;
  font-family:var(--font-body);
  font-weight:600;
  font-size:.75rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#fff;
  cursor:pointer;
  transition:background-color .2s ease;
}
.calc-table__del:hover,
.calc-table__del:focus-visible{background:#9E2020;color:#fff}

/* The calculator sits on the sand ground: its two buttons keep a white sheet
   under the outline. The hover rules are repeated here on purpose — without
   them this later rule would win and the buttons would stop darkening. */
.section--calc .btn--ghost{background:var(--bg-b)}
.section--calc .btn--ghost:hover,
.section--calc .btn--ghost:focus-visible{background:var(--ink);color:var(--ink-invert)}

.calc-order__bar{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:1rem;
  margin-top:1.5rem;
}
/* the two labels are long sentences: they wrap rather than run off a phone */
.calc__actions .btn,
.calc-order__bar .btn{padding-block:.75rem;text-align:center}

@media (max-width:560px){
  .calc__grid{grid-template-columns:minmax(0,1fr)}
  .calc__actions .btn,
  .calc-order__bar .btn{width:100%}
  .calc-order__bar{align-items:stretch}
}

/* ---- Позиции из таблицы заказа в форме заявки ---- */
/* The block is shown and hidden through the hidden attribute, so it is never
   given a display of its own: an empty note would then sit in every form. */
.rq-positions[hidden]{display:none}
/* A note under the fields rather than a heading over them — the positions
   themselves travel in the hidden input, the visitor only needs the count. */
.rq-positions__note{
  margin:0;
  padding:.125rem 0 .125rem .75rem;
  border-left:2px solid var(--accent);
  font-size:.8125rem;
  line-height:1.5;
  color:var(--ink-body);
}

/* ============================================================
   Contact rail — WhatsApp, Telegram and e-mail fixed to the right edge of
   every page. A white panel with a hairline, like the header and its menus;
   a button fills with copper under the pointer or the keyboard, the way the
   site's main button does, and its name slides out to the left (the e-mail
   shows the address). It sits under the header (z 100), so the open mobile
   menu covers it; the request dialog lives in the top layer anyway.
   ============================================================ */
.contact-rail{
  position:fixed;
  top:50%;
  right:0;
  z-index:90;
  transform:translateY(-50%);
}
.contact-rail__list{
  display:flex;
  flex-direction:column;
  border:1px solid var(--section-rule);
  border-right:0;
  border-radius:4px 0 0 4px;
  background:var(--bg-b);
  box-shadow:0 12px 30px rgba(10,10,11,.12);
}
.contact-rail__list > li + li{border-top:1px solid var(--section-rule)}
.contact-rail__link{
  position:relative;
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  color:var(--ink);
  text-decoration:none;
  transition:background-color .2s ease, color .2s ease;
}
.contact-rail__list > li:first-child .contact-rail__link{border-top-left-radius:3px}
.contact-rail__list > li:last-child .contact-rail__link{border-bottom-left-radius:3px}
.contact-rail__icon{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.contact-rail__link:hover,
.contact-rail__link:focus-visible{background:var(--accent);color:var(--accent-ink)}
.contact-rail__label{
  position:absolute;
  top:50%;
  right:calc(100% + .625rem);
  padding:.375rem .625rem;
  border-radius:var(--r-ctl);
  background:var(--surface-dark);
  color:#fff;
  font-size:.75rem;
  line-height:1;
  white-space:nowrap;
  pointer-events:none;
  box-shadow:0 6px 14px rgba(10,10,11,.22);
  opacity:0;
  transform:translate(.375rem, -50%);
  transition:opacity .2s ease, transform .2s var(--ease-out);
}
.contact-rail__link:hover .contact-rail__label,
.contact-rail__link:focus-visible .contact-rail__label{opacity:1;transform:translate(0, -50%)}
/* on a touch screen a tap would leave the name hanging after the jump */
@media (hover:none){
  .contact-rail__label{display:none}
}
/* where the content runs to the gutter, a narrower rail covers less of it */
@media (max-width:1024px){
  .contact-rail__link{width:44px;height:44px}
  .contact-rail__icon{width:20px;height:20px}
}
@media (prefers-reduced-motion:reduce){
  .contact-rail__link,.contact-rail__label{transition:none}
}
@media print{
  .contact-rail{display:none}
}
