/* Site stylesheet.
   Every token here is stated at /design/, which reads them out of this file
   as it serves. Change a value and the design page says something different.
   This file is the design source of truth: change it here, and nowhere else. */

/* ── tokens ─────────────────────────────────────────────────────────── */
:root {
  --blue: #0057B8;
  --blue-hover: #004492;
  --yel-hover: #E0AB00;
  --yel: #FFC300;      /* fill and accent only — never small text on light */
  --ink: #14171A;
  --ink2: #69727D;     /* every piece of supporting text on a light ground */
  --ink3: #868E97;     /* marks only, never words — see the design page */
  --line: #E3E7EA;
  --surf: #F4F7FA;
  --green: #0B7A3B;    /* confirmed: in stock, in the cart, or sent */
  --alert: #B3261E;    /* something is wrong, or is about to be removed */
  --line-on-tint: #D7DDE2;  /* a field's edge where --line would vanish */
  --tel-rule: rgba(20,23,26,.25);   /* the line under a telephone number */
  --backdrop: rgba(20,23,26,.55);   /* the page, behind a modal */
  --bg: #fff;
  --fs: "IBM Plex Sans", system-ui, sans-serif;
  --fd: "IBM Plex Mono", monospace;
  /* Corners. A card, a chip and a control take the small one; a panel that
     holds a whole section takes the larger; a count is a pill. */
  --r-box: 3px;
  --r-panel: 6px;
  --r-pill: 9px;

  /* A photograph in a row keeps one shape and changes only its height: a
     row is a wide thing, and a square set against a long line of text reads
     as a tile stuck to the side of it rather than as the subject. The height
     is what has to hold its own against the row. */
  --fig-shape: 4 / 3;   /* a photograph of a thing */
  --fig-band: 16 / 7;   /* a band above a label */
  --fig-row: 96px;     /* a product in a listing */
  --fig-hub: 64px;     /* a section on the catalogue hub, whose row runs
                          the full width of the page and so changes below */
  --fig-line: 64px;    /* a line in the cart */

  /* Edges. Width and style travel together and mean something; the colour is
     said separately, because the same edge is drawn on light and on dark. */
  --edge: 1px solid;         /* an edge, or a divider between two things */
  --edge-row: 1px dotted;    /* a row inside a list */
  --edge-more: 1px dashed;   /* there is more here than is shown */
  --edge-focus: 2px solid;   /* where the keyboard is */
  --edge-mark: 3px solid;    /* a marker: which one is current */
  --edge-close: 4px solid;   /* the rule that closes a band */
  /* The focus ring is drawn inside the box, by exactly its own width, so a
     field at the edge of a panel cannot have it clipped. */
  --focus-inset: -2px;
  --focus-ring: var(--blue);

  /* The height of a control, one value for every control. It clears
     the 24px the guidelines ask for. */
  --ctl: 34px;
  --ctl-row: 56px;   /* a whole row that is itself pressable */

  /* What a thumb needs, which is more than a control shows. Reached by
     widening the area that answers a press, never by growing the control. */
  --tap: 44px;

  /* How wide a card is before a grid will fit another beside it. Four
     floors, because a card holding a list of links needs room a card
     holding a label does not. */
  --card-small: 192px;   /* mostly a label */
  --card: 224px;         /* a photograph and a line or two */
  --card-shown: 280px;   /* a photograph with a name under it */
  --card-list: 320px;    /* holds a list of links */

  /* A column of a fixed width, one per job. */
  --col-filters: 224px;  /* the filter rail on a category */
  --col-rail: 300px;     /* the sections rail in the mega-menu */
  --col-term: 224px;     /* the term in a definition list */

  /* Two columns, the left a little wider. */
  --split: 1.05fr .95fr;
  /* The product page: the photograph, and the wider column it is decided in. */
  --split-product: minmax(0, 5fr) minmax(0, 7fr);

  /* Icons, by what the icon does. */
  --ico-mark: 9px;     /* a disclosure marker: this opens */
  --ico: 16px;         /* an icon inside a control */
  --ico-lead: 21px;    /* an icon that leads a card */

  /* The mark in a figure with no photograph, against the height of whatever
     holds it, so it is the same size in a tall card and a shallow band. */
  --fig-mark: 40%;

  /* The page's own column. */
  --page: 1240px;

  /* Body copy runs the full width of the element above it: this site has no
     reading measure. Two things are not body copy and say so. The display
     measure is wide enough for the Russian hero's first line, «Металлопрокат
     и стройматериалы», at 27.4ch, with room for a font that draws wider. */
  --measure-display: 29ch;   /* a display heading, so its last line is not one word */
  --measure-beside: 38ch;    /* a column of text standing beside a drawing */

  /* The yellow rule. Two, by what it opens. */
  --rule-section: 44px;   /* under a section's heading */
  --rule-line: 26px;      /* before a line: an eyebrow, a «Коротко» title */
  --rule-section-h: 4px;
  --rule-line-h: 3px;

  /* How tall the bar is, one row of it. */
  --bar: 56px;

  /* The mark, which is smaller in the bar than it is in the footer. */
  --mark: 46px;
  --mark-bar: 32px;

  /* Type. Nine steps, named for the rank each carries rather than for its
     number, and no half pixels. A size belongs to the thing it sets rather
     than to the card it sits in, so a product name is one size wherever it
     is shown. */
  --t-note: 11px;      /* a unit, a count, an eyebrow — the smallest thing */
  --t-meta: 12px;      /* a caption, a chip, a legal line */
  --t-label: 13px;     /* a control's label, a dense cell */
  --t-body: 14px;      /* the base */
  --t-prose: 15px;     /* read at length, and the name of a thing */
  --t-lead: 17px;      /* what leads a card or a stop */
  --t-section: 20px;   /* a section's heading */
  --t-page: 26px;      /* the page's own title */
  --t-display: 31px;   /* a figure meant to be seen first */
  /* the two that scale with the window instead of stepping */
  --t-hero: clamp(30px, 3.6vw, 44px);
  --t-contact: clamp(27px, 3.4vw, 36px);

  /* Two line heights. `line-height: 1` is not a third: it is a single line
     centred in a box of a fixed height, which is mechanics rather than a
     typographic rank. body's 1.5 is the base everything inherits before any
     rank applies. */
  --lh-prose: 1.65;    /* read at length */
  --lh-tight: 1.2;     /* a heading, a card's title, a figure */
  --lh-base: 1.5;      /* what everything inherits before a rank applies */
  --lh-box: 1;         /* a single line centred in a box of a fixed height */

  /* Three trackings. `letter-spacing: 0` on the per-metre price is a reset of
     the amount's --track-head, not a fourth value. */
  --track-caps: .14em;   /* anything set in capitals */
  --track-head: -.02em;  /* a heading, drawn tighter than it is set */
  --track-mono: .01em;   /* the data face, which sets wide */
  --track-hero: .22em;   /* the hero's eyebrow, which is display tracking */

  /* Two weights a visitor can name, and a reset. 400 is not a third rank: the
     four rules that set it are undoing a bold inherited from a parent. */
  --w-medium: 600;     /* anything emphasised */
  --w-bold: 700;       /* a heading */
  --w-reset: 400;      /* undo an inherited bold */

  /* Capitals mark a word that names a section rather than reads as one. They
     always arrive with --track-caps. */
  --caps: uppercase;

  /* Figures that line up under one another, so a column of prices can be
     compared down the page rather than read one at a time. */
  --figures: tabular-nums;

  /* Space. Ten steps on a four-pixel grid, named for the job each does. */
  --s-hair: 2px;       /* inside a badge, between a label and its value */
  --s-tight: 4px;      /* the smallest gap between two related things */
  --s-close: 8px;      /* an icon and its label, a chip's own padding */
  --s-inner: 12px;     /* a small card's interior, vertically */
  --s-card: 16px;      /* a card's interior, and the gap between cards */
  --s-block: 24px;     /* between blocks inside a section */
  --s-section: 32px;   /* between sections, and a band's own padding */
  --s-band: 48px;      /* between one band and the next */
  --s-deep: 64px;      /* the widest gap the page uses */
  --s-open: 96px;      /* where the page opens */

  /* Not a distance: it means the honeypot is not on the screen at all. */
  --offscreen: -9999px;
}

/* The hub's row runs the whole width of the page, so its photograph is the one
   that has to change with it: at 325px a wide photograph leaves the chips
   beside it ninety pixels to wrap into, and at 1190px a small one reads as a
   tile stuck to the side. */
@media (min-width: 900px) { :root { --fig-hub: 128px; } }

/* ── ink on a dark band ───────────────────────────────────────────────
   The bar, the footer and the hero are three different grounds, and one
   opacity cannot carry the same rank on all three: 78% white reads 4.8:1 on
   the blue bar and 11.2:1 on the footer. So each rank is named once here and
   every band that needs different numbers restates them, rather than each
   rule inventing its own.

   The footer restates all three because it is far darker than the bar. The
   hero is a photograph under a gradient, so nothing on it can be measured
   from this file: it keeps values of its own. */
:root {
  --on-dark: #fff;                          /* the primary rank */
  --on-dark-quiet: rgba(255,255,255,.78);   /* supporting text */
  --on-dark-faint: rgba(255,255,255,.55);   /* marks, never words */
  --on-dark-line: rgba(255,255,255,.16);    /* a hairline across a band */
  --on-dark-edge: rgba(255,255,255,.55);    /* the outline of a control */
}
.foot {
  --on-dark-quiet: rgba(255,255,255,.62);
  --on-dark-faint: rgba(255,255,255,.46);
  --on-dark-line: rgba(255,255,255,.12);
}
.hero { --on-dark-quiet: rgba(255,255,255,.82); }

/* The focus ring is blue, because that is the colour this site uses to say
   «this one». Three bands are drawn on something dark and take the light ring
   instead.

   A band is not uniformly dark, though: the bar hangs the mega-menu and the
   «Клієнтам» dropdown off itself and both are white, and the search box and
   the yellow catalogue button sit on it carrying their own ground. Each of
   those takes the blue ring back, and a control whose own ground is blue or
   ink does the same in reverse. Scoped to the band alone, the ring would be
   white on a white panel. */
.bar, .foot, .hero { --focus-ring: var(--on-dark); }
.bar .mega, .bar .dd, .hero .cta, .hero .ctao { --focus-ring: var(--blue); }
/* The two controls that sit on the bar carrying their own ground take the ink
   ring, not the blue one. The ring is drawn inside the control, so it lands
   exactly where the control meets the bar, and blue there reads as the bar
   showing through rather than as «this one». */
.bar .search, .bar .catbtn { --focus-ring: var(--ink); }
.pager a.on, .fopts a.on,
.viewtog button[aria-pressed="true"] { --focus-ring: var(--on-dark); }

/* ── where the keyboard is ────────────────────────────────────────────
   Every control says it, in one rule, by tag rather than by class: a class
   list can be added to and this cannot fall behind one. The ring is drawn
   inside the box by its own width, so a control at the edge of a panel
   cannot have it clipped. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: var(--edge-focus) var(--focus-ring);
  outline-offset: var(--focus-inset);
}

/* ── the road's own geometry ──────────────────────────────────────────
   Six measurements that only work together: the lorry runs down the line,
   the dots sit on it, and the text clears all three. Move one and the lorry
   drives off the road, so they are scoped to the road and the spacing scale
   never touches them. Both sets are here rather than in the media query, so
   the whole drawing can be read in one place. */
.roadband {
  --road-inset: 76px;
  --road-line: 24px;
  --road-truck: 17px;
  --road-dot: -52px;
  --road-dot-top: 32px;
  --road-dash: -1px;
  --road-shadow: 0 2px 2px rgba(10,20,40,.18);
  --road-line-r: 7px;
  --road-width: 14px;      /* how wide the road is drawn */
  --road-dash-w: 2px;      /* the dashes down its middle */
  --road-truck-w: 28px;    /* the lorry */
  --road-dot-size: 16px;   /* a stop */
}
@media (max-width: 639.98px) {
  .roadband { --road-inset: 58px; --road-line: 14px; --road-truck: 8px; --road-dot: -44px;
              --road-width: 12px; --road-truck-w: 24px; }
}

/* ── what a thing standing above the page casts ───────────────────────
   One hue for every shadow on the site, at three strengths: how far above
   the page a thing stands is the only difference between them.

   These are colours. How far a shadow is thrown and how soft it is belongs
   to element 04, where the two panels differ. */
:root {
  --shadow-card: 0 3px 12px rgba(10,20,40,.09);     /* a card under the cursor */
  --shadow-panel: 0 16px 34px rgba(10,20,40,.18);   /* a panel hanging from the bar */
  --shadow-modal: 0 20px 60px rgba(10,20,40,.26);   /* a modal above the page */
}

/* ── the drawings ─────────────────────────────────────────────────────
   Three pictures here have colours of their own: the delivery map, the road
   on Доставка, and the wash over the hero's photograph. They answer to what
   they depict rather than to the interface, so they are not palette colours
   and are scoped to the picture that uses them. A rule outside the drawing
   cannot read them at all, which puts the limit in the stylesheet rather
   than in a sentence somebody has to remember.

   The city labels on the map are the exception, and deliberately: their halo
   is --surf, because it has to be the band's own colour to hide the coastline
   and the passing lorries behind the words. */
.delband {
  --map-land: #DFE7F0;
  --map-coast: rgba(0,87,184,.3);
  --map-mark: #003872;
  /* The text column and the map beside it. The map is drawn from a viewBox,
     so its labels shrink with the column: between 901 and 1228 the split
     changes rather than letting the drawing fall below what it can carry. */
  --map-split: minmax(260px, .9fr) minmax(0, 1.3fr);
  --map-width: 660px;   /* what the drawing needs to carry its labels */
  /* The card of runs, as shares of the drawing it stands on, so it keeps its
     berth as the map resizes.

     The three gaps are equal and each is measured against the coast the card
     actually faces, not against one line drawn across the whole box. Above
     the card the shore comes down to y=368; to its right it comes in to
     x=340; the left is the edge of the drawing. Twelve units from each, which
     is nine pixels at the widest and seven at the narrowest. */
  --card-w: 31.2%;    /* 274 of 877 units */
  --card-x: 1.37%;    /* 12 units in from the left edge */
  --card-top: 60.1%;  /* 12 units below the shore above it */
}
@media (min-width: 900px) and (max-width: 1228px) {
  .delband { --map-split: minmax(220px, .7fr) minmax(0, 1.5fr); }
}
.roadband { --road-surface: #2E3338; }
.hero {
  --hero-wash-near: rgba(10,16,26,.96);
  --hero-wash-mid: rgba(0,46,96,.88);
  --hero-wash-far: rgba(0,66,146,.55);
}

/* ── base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--fs); font-size: var(--t-body); line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  /* full-bleed bands use margin calc(50% - 50vw); 50vw includes the
     scrollbar, so clip the stray pixels instead of growing a scrollbar */
  overflow-x: clip;
  /* sticky footer: short pages (empty cart, no results) must not leave a
     white gap below the footer */
  display: flex; flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
/* width:100% is required — .w has auto side margins, and auto cross-axis
   margins cancel the flex container's default `stretch`, which would leave
   the content shrink-to-fit and centred */
/* <main> holds everything between the bar and the footer, and lays its
   children out exactly as the body would: a column, so `.page` still grows to
   push the footer down and a full-bleed band still spans the window. */
.sitemain { flex: 1 0 auto; display: flex; flex-direction: column; }
.page { flex: 1 0 auto; width: 100%; }
.foot { flex: none; }
h1, h2, h3, h4 { margin: 0; line-height: var(--lh-tight); letter-spacing: var(--track-head); }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.w { max-width: var(--page); margin: 0 auto; padding: 0 var(--s-block); }
.num { font-family: var(--fd); font-variant-numeric: var(--figures); }

/* ── the bar ────────────────────────────────────────────────────────── */
/* One sticky bar, 56px, so a phone keeps most of its screen for the page
   and room at the bottom for a call widget (calls are Binotel's).

   Roomy on purpose: the gap is 22px, not the 14px the elements would tolerate.
   The search has width to spare (the placeholder needs ~220px of ~400px), and
   phone and cart sitting shoulder to shoulder read as clutter rather than as
   two separate actions. */
.bar { background: var(--blue); position: sticky; top: 0; z-index: 60; }
.bar .w { position: relative; display: flex; align-items: center; gap: var(--s-block); height: var(--bar); }

/* .logo is shared with the footer — only the sizes are per-place */
.logo { display: flex; align-items: center; gap: var(--s-close); text-decoration: none; flex: none; color: var(--on-dark); }
.logo img { width: var(--mark); height: var(--mark); display: block; flex: none; }
.logo .wm { font-weight: var(--w-bold); font-size: var(--t-section); color: var(--on-dark); letter-spacing: var(--track-head); line-height: var(--lh-box); white-space: nowrap; }
.logo .wm i { font-style: normal; color: var(--yel); }
.logo .sub { display: block; font-family: var(--fd); font-size: var(--t-note); letter-spacing: var(--track-caps); text-transform: var(--caps); color: var(--on-dark-quiet); margin-top: var(--s-tight); white-space: nowrap; }
/* the bar's copy is smaller: the full mark does not fit in the bar */
.bar .logo img { width: var(--mark-bar); height: var(--mark-bar); }
.bar .logo .wm { font-size: var(--t-lead); }

.search { flex: 1 1 260px; display: flex; min-width: 0; height: var(--ctl); background: var(--bg); border-radius: var(--r-box); overflow: hidden; }
.search input { flex: 1; border: 0; padding: 0 var(--s-inner); font: inherit; font-size: var(--t-label); min-width: 0; color: var(--ink); }
.search button { border: 0; background: var(--yel); color: var(--ink); padding: 0 var(--s-card); font-weight: var(--w-medium); font-size: var(--t-label); font-family: inherit; }

/* scoped: .tel is also the footer, the delivery band, the buybox and the
   closing CTA band — an unscoped rule here would turn the footer phone into
   a 40px box on phones */
.bar .tel { color: var(--on-dark); font-family: var(--fd); font-weight: var(--w-medium); font-size: var(--t-prose); text-decoration: none; letter-spacing: var(--track-mono); white-space: nowrap; flex: none; }
.cartbtn { display: inline-flex; align-items: center; gap: var(--s-close); height: var(--ctl); padding: 0 var(--s-inner); border: var(--edge) var(--on-dark-edge); color: var(--on-dark); border-radius: var(--r-box); text-decoration: none; flex: none; }
.cartbtn:hover { border-color: var(--on-dark); }
.cartbtn svg { width: var(--ico); height: var(--ico); }
.cartbtn .cnt { background: var(--yel); color: var(--ink); font-family: var(--fd); font-size: var(--t-note); font-weight: var(--w-medium); line-height: var(--lh-box); border-radius: var(--r-pill); padding: var(--s-hair) var(--s-tight); }
.lang { display: flex; align-items: center; gap: var(--s-tight); color: var(--on-dark-faint); font-size: var(--t-meta); flex: none; }
.lang a { color: var(--on-dark-quiet); text-decoration: none; }
.lang a.on { color: var(--on-dark); font-weight: var(--w-medium); }

/* «Клієнтам» — a disclosure button, not a link: the pages under it share no
   category, so the label names the reader rather than the contents */
/* Both hold a panel that opens from the bar. Only one of them is the panel's
   containing block, so only one is positioned. */
.ddwrap, .megawrap { flex: none; align-self: stretch; display: flex; align-items: center; }
.ddwrap { position: relative; }
.ddbtn { display: flex; align-items: center; gap: var(--s-tight); background: none; border: 0; padding: 0; color: var(--on-dark-quiet); font-family: inherit; font-size: var(--t-label); font-weight: var(--w-medium); white-space: nowrap; }
.ddbtn:hover, .ddwrap:hover .ddbtn, .ddbtn[aria-expanded="true"] { color: var(--on-dark); }
.ddbtn .chev { width: var(--ico-mark); height: var(--ico-mark); opacity: .7; }
.ddico { display: none; width: var(--ico); height: var(--ico); }
.ddlang { display: none; }
.dd[hidden] { display: none; }
.dd { position: absolute; top: 100%; left: calc(var(--s-inner) * -1); min-width: 232px; background: var(--bg); border: var(--edge) var(--line); border-top: 0; border-radius: 0 0 var(--r-panel) var(--r-panel); box-shadow: var(--shadow-panel); padding: var(--s-tight) 0; z-index: 61; }
.dd a { display: block; padding: var(--s-close) var(--s-card); color: var(--ink); text-decoration: none; font-size: var(--t-label); white-space: nowrap; }
.dd a:hover { background: var(--surf); color: var(--blue); }

/* «Клієнтам» and the language toggle stay in the bar at every width, outside
   the Каталог panel: pressing «Каталог» shows the catalogue and nothing else.

   What gives instead is the search, which takes its own row from the site's
   third width down. Everything else in the bar is a fixed size and reads at
   any width; the search is the only thing that gets narrower as the row fills,
   and it is the one that stops working when it does. */
@media (max-width: 1099.98px) {
  .bar .w { height: auto; flex-wrap: wrap; gap: var(--s-close) var(--s-inner);
            padding-top: var(--s-close); padding-bottom: var(--s-close); }
  .search { order: 10; flex: 1 0 100%; }
  /* With the search gone from the row, the phone, the cart and the language
     sit at its right end. */
  .bar .tel { margin-left: auto; }
}

/* A phone has room for the two actions and one more thing, so «Клієнтам»
   becomes the site's own menu button and takes the language with it. The word
   and the toggle come back at the site's first width, where the row can
   carry them. */
@media (max-width: 639.98px) {
  .ddico { display: block; }
  .ddword, .ddbtn .chev, .bar .lang { display: none; }
  .ddbtn { border: var(--edge) var(--on-dark-edge); border-radius: var(--r-box);
           height: var(--ctl); width: 40px; justify-content: center; }
  .ddlang { display: flex; gap: var(--s-inner); padding: var(--s-close) var(--s-card);
            border-top: var(--edge-row) var(--line); margin-top: var(--s-tight); }
  .ddlang a { font-size: var(--t-label); font-weight: var(--w-medium); color: var(--ink2); text-decoration: none; }
  .ddlang a.on { color: var(--ink); font-weight: var(--w-bold); }
  /* The panel hangs from the bar rather than from a 40px button, which would
     put most of it off the left edge of the screen. .ddwrap stops being the
     containing block so .bar .w becomes it. */
  .ddwrap { position: static; }
  .dd { left: 0; right: 0; min-width: 0; }
}

/* Phones. Measured at 375: logo + Каталог + the full number + cart + language
   needs 409px of the 327px available, so one row cannot hold all five with a
   usable search. Two things give — the wordmark and the phone's digits — and
   the search drops to its own row rather than being squeezed to nothing. */
.bar .telicon { display: none; width: var(--ico); height: var(--ico); }
/* NB: these selectors are deliberately more specific than the .catbtn / .lang
   rules further down the file — a plain `.catbtn` here would lose to the one
   in the mega-menu section regardless of the media query. */
/* 975px, not 700: below ~974 the one-row layout squeezes the search past
   usefulness (58px at 800), so the compact treatment has to start there. */
@media (max-width: 975px) {
  .bar .logo .wm { display: none; }
  .bar .catbtn { padding: 0 var(--s-inner); }
  /* A thumb needs more room than these marks take up. The area that answers
     a press is widened past the control; nothing on screen moves. Each has at
     least 8px clear beside it and 8px below, so the extra area falls on the
     bar rather than on a neighbour. mclose is positioned already and must not
     be made relative. */
  .ddbtn, .bar .tel, .cartbtn { position: relative; }
  .ddbtn::after, .bar .tel::after, .cartbtn::after, .reqmodal .mclose::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; min-width: var(--tap); height: var(--tap);
  }

  .bar .telicon { display: block; }
  .bar .telnum { display: none; }
  .bar .tel { display: inline-flex; align-items: center; justify-content: center; height: var(--ctl); width: 40px; border: var(--edge) var(--on-dark-edge); border-radius: var(--r-box); }
}

/* ── between pages ──────────────────────────────────────────────────── */
/* Moving from one page of the site to another crossfades the page under a
   bar that stays put. Short and eased out, so the new page reads at once.
   Both pages have to carry this rule, so the Wagtail admin, which does not
   load this file, keeps its plain navigation. A browser without view
   transitions, and anyone who asks for less motion, gets none. The footer
   carries no name: it sits at a different height on every page and would
   slide. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .bar { view-transition-name: bar; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation-duration: .18s; animation-timing-function: ease-out; }
}

/* ── breadcrumbs ────────────────────────────────────────────────────── */
.crumbs { font-size: var(--t-meta); color: var(--ink2); padding: var(--s-card) 0 var(--s-block); }
.crumbs a { text-decoration: none; color: var(--ink2); }
.crumbs a:hover { color: var(--blue); }
.crumbs span { color: var(--ink); }

/* ── interim content styles (until each page gets its real template) ── */
.page { padding-top: var(--s-tight); padding-bottom: var(--s-section); }
/* The gap under a page title belongs to the title, and to nothing else.
   Margins collapse, so a second rule setting it would silently lose to the
   larger one. */
.page h1 { font-size: var(--t-page); font-weight: var(--w-bold); margin: 0 0 var(--s-card); }
.page table { border-collapse: collapse; font-size: var(--t-label); }
.page th, .page td { border: var(--edge) var(--line); padding: var(--s-close) var(--s-inner); text-align: left; }
.page thead th { background: var(--surf); font-size: var(--t-note); letter-spacing: var(--track-caps); text-transform: var(--caps); color: var(--ink2); }
/* .cta and .ctao share one explicit box model — fixed height, flex centring,
   appearance reset — so <a> and <button> render identically in every browser
   and at fractional zoom levels */
.cta, .ctao { display: inline-flex; align-items: center; justify-content: center; appearance: none; -webkit-appearance: none; margin: 0; text-decoration: none; height: var(--ctl); padding: 0 var(--s-inner); border-radius: var(--r-box); font-family: inherit; font-size: var(--t-meta); font-weight: var(--w-medium); line-height: var(--lh-box); white-space: nowrap; cursor: pointer; }
.cta { background: var(--yel); color: var(--ink); border: var(--edge) transparent; }
/* secondary action beside the yellow one: outline, blue */
.ctao { background: var(--bg); border: var(--edge) var(--blue); color: var(--blue); }
.ctao:hover { background: var(--surf); }
.ctao.incart { border-color: var(--green); color: var(--green); }

/* ── home shelf: «Ви переглядали» / «Популярні позиції» ───────────────
   the light-grey step in the home rhythm: white → surf → dark map → white */
.shelfband { background: var(--surf); border-top: var(--edge) var(--line); border-bottom: var(--edge) var(--line); margin: var(--s-band) calc(50% - 50vw) 0; padding: var(--s-section) 0; }
.shelfhead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-card); margin-bottom: var(--s-card); }
.shelfnav { display: flex; gap: var(--s-close); }
.snav { width: var(--ctl); height: var(--ctl); display: inline-flex; align-items: center; justify-content: center; border: var(--edge) var(--line); border-radius: var(--r-box); background: var(--bg); color: var(--ink); font-size: var(--t-prose); cursor: pointer; }
.snav:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.snav:disabled { opacity: .35; cursor: default; }
.shelfband .eyebrow { font-family: var(--fd); font-size: var(--t-note); letter-spacing: var(--track-caps); text-transform: var(--caps); color: var(--blue); margin-bottom: var(--s-close); }
.shelfband .bandhead { margin: 0; }
/* one row, always: a button carousel — overflow scrolls, scrollbar hidden */
/* A card that lifts needs room to lift into. `overflow-x: auto` makes a
   scroller of this row, and CSS forces the other axis to auto with it, so the
   row clips vertically as well — and it is exactly as tall as its cards.
   Without room, the lift on hover would push the card's top edge outside and
   clip a side of its outline. The padding is that room, and the negative
   margin gives it back so the band's rhythm is unchanged. */
.shelfrow { display: flex; gap: var(--s-inner); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
            padding: var(--s-tight) 0 var(--s-block); margin: calc(var(--s-tight) * -1) 0 calc(var(--s-block) * -1); }
.shelfrow::-webkit-scrollbar { display: none; }
.shelfcard { flex: 0 0 198px; scroll-snap-align: start; }
.shelfcard { display: flex; flex-direction: column; gap: var(--s-close); border: var(--edge) var(--line); border-radius: var(--r-box); background: var(--bg); padding: var(--s-inner) var(--s-card); text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.shelfcard:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.shelfcard .fig { aspect-ratio: var(--fig-shape); background: var(--surf); border-radius: var(--r-box); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ink3); }
.shelfcard .fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.shelfcard:hover .fig img { transform: scale(1.05); }
.shelfcard .fig svg { width: auto; height: var(--fig-mark); }
/* The floor is exactly the two lines the clamp allows. Stated as the line
   height rather than as a number, so it follows the line height: a box
   taller than its two lines shows the top of a third. */
.shelfcard b { font-size: var(--t-prose); font-weight: var(--w-medium); line-height: var(--lh-tight); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(var(--lh-tight) * 2em); }
.shelfcard:hover b { color: var(--blue); }
.shelfcard .ft { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s-close); }
.shelfcard .money .amt { font-size: var(--t-lead); }
.shelfcard .go { color: var(--ink3); font-size: var(--t-prose); transition: transform .18s ease, color .18s ease; }
.shelfcard:hover .go { color: var(--blue); transform: translateX(3px); }

/* ── delivery map (home) ─────────────────────────────────────────────
   A LIGHT-background graphic: contrast is mass and weight, not glow. The
   landmass is quiet flat fill, the lorries are the loudest element. Same
   surf tint as the shelf so it reads as its own block.

   Nothing radiates from Kyiv, which is an ordinary city here — the reason is
   in brand/gen_delivery_map.py, which draws the map. */
.delband { background: var(--surf); border-top: var(--edge) var(--line); border-bottom: var(--edge) var(--line); margin: var(--s-band) calc(50% - 50vw) var(--s-close); padding: var(--s-band) 0; }
.delband .w { display: grid; grid-template-columns: var(--map-split); gap: var(--s-deep); align-items: center; }
@media (max-width: 899.98px) { .delband .w { grid-template-columns: 1fr; gap: var(--s-block); } }
/* Between the stack and the full-width column the map is at its smallest
   just past the switch to two columns. The city labels are SVG text scaled
   by the viewBox, so a narrow map sets them small. A narrow gutter and most
   of the row for the map keep that dip shallow, and it grows from there.
   The step down where one column becomes two cannot be removed: two
   columns there cannot give the map its full size and leave the text a
   column worth reading. */
@media (min-width: 900px) and (max-width: 1228px) {
  .delband .w { gap: var(--s-section); }
}
.deltext .eyebrow { font-family: var(--fd); font-size: var(--t-note); letter-spacing: var(--track-caps); text-transform: var(--caps); color: var(--blue); margin-bottom: var(--s-inner); }
.deltext h2 { font-size: var(--t-section); letter-spacing: var(--track-head); margin-bottom: var(--s-inner); }
/* the one measure on the site, and it is the column's rather than the copy's:
   the map beside it is 660px wide and the text has to hold its own column */
.deltext p { color: var(--ink2); font-size: var(--t-prose); line-height: var(--lh-prose); max-width: var(--measure-beside); }
.deltext .tel { display: inline-block; margin-top: var(--s-card); font-family: var(--fd); font-size: var(--t-lead); font-weight: var(--w-medium); color: var(--ink); text-decoration: none; border-bottom: var(--edge) var(--tel-rule); padding-bottom: var(--s-hair); }
.deltext .tel:hover { border-color: var(--blue); }
/* the card stands on the drawing, so the drawing is what it is measured from */
.delmap { position: relative; justify-self: end; width: 100%; max-width: var(--map-width); }
.delmap svg { display: block; width: 100%; height: auto; }
/* the mass: soft flat fill, hairline edge — the shape needs no loud border */
.ualand { fill: var(--map-land); stroke: var(--map-coast); stroke-width: 1; stroke-linejoin: round; }
/* Every city is drawn the same and stays that way: one dot, one label to its
   right, and nothing about either changes when a lorry arrives. */
.city circle { fill: var(--ink); opacity: .65; }
/* labels sit above the lorries, so they carry a halo in the band colour */
.city text { font-family: var(--fd); font-size: var(--t-label); letter-spacing: var(--track-mono); fill: var(--ink2); paint-order: stroke fill; stroke: var(--surf); stroke-width: 3; stroke-linejoin: round; }
/* svg text scales with the viewBox — compensate on small screens, and the
   dots with it, or they thin to a pixel and a half beside a 20px name */
@media (max-width: 639.98px) { .city text { font-size: var(--t-section); } .city circle { r: 3.8; } }
/* where the goods come from: quiet, unlabelled, never the subject, and all
   six the same whether or not one is dispatching */
.ind { color: var(--map-mark); }
.ind svg { opacity: .55; }
/* The lorry, seen from the side. A plan view of one is a single block at this
   size and reads as an insect; the side silhouette is what a road sign uses.
   It is built by home.js, which is why its colours are here and its shape is
   there: the paint is the design's, the geometry is the drawing's. */
.dlorry .body { fill: var(--blue); }
.dlorry .cab { fill: var(--yel); }
.dlorry .wheel { fill: var(--ink); }
.dlorry .sill { fill: var(--ink); opacity: .45; }
/* the line a lorry is driven along, and never painted */
.lane { fill: none; stroke: none; }

/* The card of runs, in the sea south-west of the country: the one part of the
   box that is empty, the right covering Crimea and the top right covering
   Sumy. Its three measurements are tokens at the top of this file, and the
   reason they are shares rather than pixels is there too. Below 900 the band
   stacks and the card comes off the map. */
.delcard { position: absolute; left: var(--card-x); top: var(--card-top); width: var(--card-w); background: var(--bg); border: var(--edge) var(--line); border-radius: var(--r-panel); padding: var(--s-tight) var(--s-inner); box-shadow: var(--shadow-card); }
.delcard ul { list-style: none; margin: 0; padding: 0; }
/* a row grows in and the one it displaces collapses out; adding and removing
   outright made the card blink, because it changes about once a second */
/* The city and the state share the first line; the load has the second to
   itself, because measured against what the state leaves over it could not
   hold «профнастил · 12 т». The vertical padding is on the cells rather than
   on the row: a padded row cannot collapse to nothing, and collapsing is how
   a row leaves. */
.delcard li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-close); line-height: var(--lh-tight); overflow: hidden; border-bottom: var(--edge) var(--line); transition: height .5s cubic-bezier(.4,0,.2,1), opacity .5s ease; }
.delcard li:last-child { border-bottom: 0; }
.delcard b, .delcard em, .delcard .st { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delcard b { grid-area: 1 / 1; padding-top: var(--s-tight); font-size: var(--t-label); font-weight: var(--w-medium); }
.delcard .st { grid-area: 1 / 2; padding-top: var(--s-tight); font-family: var(--fd); font-size: var(--t-note); letter-spacing: var(--track-caps); text-transform: var(--caps); transition: color .7s ease; }
.delcard em { grid-area: 2 / 1 / 3 / 3; padding-bottom: var(--s-tight); font-style: normal; font-family: var(--fd); font-size: var(--t-meta); letter-spacing: var(--track-mono); color: var(--ink3); }
/* Not `.go` and `.ok`. There is an unscoped `.ok` further down this file —
   a form's success line — which carries a font size, a line height and a top
   margin, and would reach these two words. */
.delcard .st.rolling { color: var(--blue); }
.delcard .st.arrived { color: var(--green); }
@media (max-width: 899.98px) { .delcard { position: static; width: 100%; max-width: var(--map-width); margin-top: var(--s-card); } }

/* choreography — armed by home.js (.anim), played on scroll into view (.in):
   the coast draws itself, the land fills in, then the cities and the works.
   home.js starts the lorries from the same moment. */
.delband.anim .ualand { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
.delband.anim .city, .delband.anim .ind { opacity: 0; }
.delband.anim.in .ualand { animation: landdraw 1.1s ease-in-out forwards, landfill .8s ease .45s forwards; }
.delband.anim.in .city { animation: cityin .5s ease 1.2s forwards; }
.delband.anim.in .ind { animation: cityin .5s ease 1.35s forwards; }
@keyframes landdraw { to { stroke-dashoffset: 0; } }
@keyframes landfill { to { fill-opacity: 1; } }
@keyframes cityin { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .delband.anim .ualand { animation: none !important; stroke-dasharray: none !important; stroke-dashoffset: 0 !important; fill-opacity: 1 !important; }
  .delband.anim .city, .delband.anim .ind { animation: none !important; opacity: 1 !important; }
  /* home.js fills the card once and sends no lorries, so the rows arrive
     already in place and have nothing to transition from */
  .delcard li { transition: none; }
}

/* ── footer ─────────────────────────────────────────────────────────── */
.foot { background: var(--ink); color: var(--on-dark-quiet); font-size: var(--t-label); padding: var(--s-section) 0; margin-top: var(--s-band); }
.foot .cols { display: grid; gap: var(--s-block); grid-template-columns: repeat(auto-fit, minmax(min(var(--card-small), 100%), 1fr)); padding-bottom: var(--s-block); border-bottom: var(--edge) var(--on-dark-line); }
.foot h5 { color: var(--on-dark); font-size: var(--t-note); letter-spacing: var(--track-caps); text-transform: var(--caps); margin: 0 0 var(--s-inner); font-weight: var(--w-medium); }
.foot a { display: block; text-decoration: none; margin-bottom: var(--s-close); color: var(--on-dark-quiet); }
.foot a:hover { color: var(--on-dark); }
.foot a.logo { display: flex; margin-bottom: var(--s-card); }
.foot .bottom { padding-top: var(--s-card); display: flex; justify-content: space-between; gap: var(--s-card); flex-wrap: wrap; font-size: var(--t-meta); color: var(--on-dark-faint); }
/* The legal pages sit beside the copyright line as a row of small links. */
.foot .legal { display: flex; flex-wrap: wrap; column-gap: var(--s-card); row-gap: var(--s-close); }
.foot .legal a { display: inline; margin-bottom: 0; color: var(--on-dark-faint); }
.foot .legal a:hover { color: var(--on-dark); }
/* On a phone the two link columns sit side by side; the brand block and the
   contacts keep the full width. */
@media (max-width: 639.98px) {
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .cols > :first-child, .foot .cols > :last-child { grid-column: 1 / -1; }
}
.foot .tel { color: var(--on-dark); font-family: var(--fd); font-weight: var(--w-medium); font-size: var(--t-lead); display: block; margin-bottom: var(--s-close); text-decoration: none; }

/* ── category page ──────────────────────────────────────────────────── */
.layout { display: grid; grid-template-columns: 1fr; gap: var(--s-block); }
@media (min-width: 900px) { .layout:not(.nofilters) { grid-template-columns: var(--col-filters) minmax(0, 1fr); } }
aside h4 { font-size: var(--t-note); letter-spacing: var(--track-caps); text-transform: var(--caps); color: var(--ink2); margin: 0 0 var(--s-inner); font-weight: var(--w-medium); }
.fgroup { border-top: var(--edge) var(--line); padding: var(--s-inner) 0; }
.fgroup:first-of-type { border-top: 0; padding-top: 0; }
.fgroup b { font-size: var(--t-label); display: block; margin-bottom: var(--s-close); }
.fopts { display: flex; flex-wrap: wrap; gap: var(--s-tight); }
.fopts a { font-family: var(--fd); font-size: var(--t-note); padding: var(--s-tight) var(--s-close); border: var(--edge) var(--line); border-radius: var(--r-box); color: var(--ink2); background: var(--bg); text-decoration: none; }
.fopts a:hover { border-color: var(--blue); color: var(--blue); }
.fopts a.on { background: var(--blue); border-color: var(--blue); color: var(--on-dark); }
/* collapsed group: first 12 values only — a selected chip stays visible
   wherever it sits, so an active filter can never hide itself */
.fgroup.clps .fopts a:nth-child(n+13):not(.on) { display: none; }
.fmore { background: none; border: 0; padding: var(--s-close) 0 0; font-family: inherit; font-size: var(--t-meta); font-weight: var(--w-medium); color: var(--blue); cursor: pointer; }
.fmore:hover { text-decoration: underline; }
.reset { display: inline-block; margin-top: var(--s-card); font-size: var(--t-meta); color: var(--blue); text-decoration: none; }

.cmeta { font-size: var(--t-label); color: var(--ink2); margin-bottom: var(--s-card); }
.cmeta b { color: var(--ink); font-family: var(--fd); font-variant-numeric: var(--figures); }
.toolbar { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-inner); flex-wrap: wrap; padding-bottom: var(--s-inner); border-bottom: var(--edge) var(--line); margin-bottom: var(--s-card); }
.viewtog { display: flex; border: var(--edge) var(--line); border-radius: var(--r-box); overflow: hidden; }
.viewtog button { background: var(--bg); border: 0; padding: var(--s-close) var(--s-inner); font-size: var(--t-meta); font-weight: var(--w-medium); color: var(--ink2); display: flex; align-items: center; gap: var(--s-close); }
.viewtog button + button { border-left: var(--edge) var(--line); }
.viewtog button[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
.viewtog svg { width: var(--ico); height: var(--ico); }

.results[data-view="cards"] .r-list, .results[data-view="cards"] .hub-list { display: none; }
.results[data-view="list"] .r-cards, .results[data-view="list"] .hub-cards { display: none; }
.r-list { border: var(--edge) var(--line); border-radius: var(--r-box); overflow: hidden; }
.row { display: flex; align-items: center; gap: var(--s-card); padding: var(--s-card) var(--s-block); border-bottom: var(--edge) var(--line); }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--surf); }
.row .fig { height: var(--fig-row); aspect-ratio: var(--fig-shape); flex: none; background: var(--surf); border: var(--edge) var(--line); border-radius: var(--r-box); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ink3); }
.row .fig img { width: 100%; height: 100%; object-fit: cover; }
.row .fig svg { width: auto; height: var(--fig-mark); }
.row .mid { flex: 1; min-width: 0; }
.row .nm { font-size: var(--t-prose); font-weight: var(--w-medium); margin-bottom: var(--s-close); }
.row .nm a { text-decoration: none; }
.row .nm a:hover { color: var(--blue); }
/* search results: the category the product lives in */
.row .ctg { font-size: var(--t-meta); margin: calc(var(--s-hair) * -1) 0 var(--s-close); }
.row .ctg a { color: var(--ink2); text-decoration: none; }
.row .ctg a:hover { color: var(--blue); }
.row .sp { display: flex; flex-wrap: wrap; gap: var(--s-tight); }
.row .sp span { font-family: var(--fd); font-size: var(--t-note); background: var(--surf); border: var(--edge) var(--line); padding: var(--s-hair) var(--s-close); border-radius: var(--r-box); color: var(--ink); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sp span i { font-style: normal; font-family: var(--fs); font-size: var(--t-note); color: var(--ink2); margin-right: var(--s-hair); }
/* «+N» — the signal that the listing shows only part of the specs */
.morechip { font-family: var(--fd); font-size: var(--t-note); padding: var(--s-hair) var(--s-close); border: var(--edge-more) var(--ink3); border-radius: var(--r-box); color: var(--ink2); text-decoration: none; }
.morechip:hover { border-color: var(--blue); color: var(--blue); }
/* the actions column has a FIXED width: flexbox is never allowed to decide
   how wide these buttons are, so rows look identical at every viewport */
.row .rt { text-align: right; display: flex; flex-direction: column; align-items: stretch; gap: var(--s-close); width: 172px; flex: none; }
.row .rt .money { text-align: right; white-space: nowrap; }
.row .rt form { display: contents; }
@media (max-width: 639.98px) {
  /* narrow screens: info on top, then one row of price + compact buttons;
     wrap keeps a long price and the buttons from colliding */
  .row { flex-wrap: wrap; }
  .row .rt { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
  .row .rt .money { margin-right: auto; }
  /* A measure is never cut short where there is no cursor to read its title
     with: a chip wider than the row wraps inside itself, label and value
     both in view. */
  .row .nm { overflow-wrap: break-word; }
  .row .sp span { max-width: 100%; overflow: visible; white-space: normal; overflow-wrap: anywhere; }
}
/* uniform price rendering — one shape everywhere (docs/purchasing-experience.md):
   full-size digits are hryvnias, the small pair after the comma is kopiykas */
.money { white-space: nowrap; }
.money .amt { font-family: var(--fd); font-weight: var(--w-medium); font-size: var(--t-prose); font-variant-numeric: var(--figures); letter-spacing: var(--track-head); }
.money .kop { font-size: .62em; }
.money .cur { font-size: var(--t-meta); color: var(--ink2); margin-left: var(--s-tight); }
.money.ask { font-size: var(--t-meta); color: var(--ink2); }
.row .money .amt { font-size: var(--t-section); }
.pcard .money .amt { font-size: var(--t-lead); }
.pcard .money .cur { margin-left: var(--s-tight); }

.r-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--card-small), 100%), 1fr)); gap: var(--s-card); }
/* One shell, three things: a section on the catalogue's front, a типорозмір
   in a listing, and a subcategory. Each keeps its own name because each
   carries its own rules underneath, and one name would let every one of them
   reach the other two. What they share is the box, and the box is written
   once. */
.catsec, .pcard, .subcat { border: var(--edge) var(--line); border-radius: var(--r-box); overflow: hidden; display: flex; flex-direction: column; background: var(--bg); }
.pcard:hover { border-color: var(--blue); box-shadow: var(--shadow-card); }
.pcard .fig { background: var(--surf); aspect-ratio: var(--fig-shape); display: flex; align-items: center; justify-content: center; border-bottom: var(--edge) var(--line); color: var(--ink3); overflow: hidden; }
.pcard .fig img { width: 100%; height: 100%; object-fit: cover; }
.pcard .fig svg { width: auto; height: var(--fig-mark); }
.pcard .bd { padding: var(--s-inner) var(--s-card); display: flex; flex-direction: column; flex: 1; }
.pcard .nm { font-size: var(--t-prose); font-weight: var(--w-medium); line-height: var(--lh-tight); margin-bottom: var(--s-close); }
.pcard .nm a { text-decoration: none; }
.pcard .nm a:hover { color: var(--blue); }
.pcard .spl { margin-bottom: var(--s-inner); }
.pcard .spl div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-close); padding: var(--s-hair) 0; border-bottom: var(--edge-row) var(--line); }
.pcard .spl div:last-child { border-bottom: 0; }
.pcard .spl i { font-style: normal; font-size: var(--t-note); color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .spl b { font-family: var(--fd); font-weight: var(--w-medium); font-size: var(--t-note); color: var(--ink); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.pcard .morespecs { display: inline-block; margin-top: var(--s-tight); font-family: var(--fd); font-size: var(--t-note); padding: var(--s-hair) var(--s-close); border: var(--edge-more) var(--ink3); border-radius: var(--r-box); color: var(--ink2); text-decoration: none; }
.pcard .morespecs:hover { border-color: var(--blue); color: var(--blue); }
.pcard .ft { margin-top: auto; padding-top: var(--s-inner); border-top: var(--edge) var(--line); }
/* flex-basis auto + wrap: when the card is too narrow for both buttons side
   by side, the second drops to its own full-width row instead of spilling
   into the neighbouring card */
.pcard .btns { display: flex; flex-wrap: wrap; gap: var(--s-close); margin-top: var(--s-close); }
.pcard .btns form { display: contents; }
.pcard .btns .cta, .pcard .btns .ctao { flex: 1 1 auto; }

.subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--card), 100%), 1fr)); gap: var(--s-card); margin: 0 0 var(--s-block); }
.subcat { text-decoration: none; }   /* the only one of the three that is a link */
.subcat .fig { background: var(--surf); aspect-ratio: var(--fig-band); display: flex; align-items: center; justify-content: center; border-bottom: var(--edge) var(--line); color: var(--ink3); overflow: hidden; }
.subcat .fig img { width: 100%; height: 100%; object-fit: cover; }
.subcat .fig svg { width: auto; height: var(--fig-mark); }
.subcat .bd { padding: var(--s-inner) var(--s-card); }
.subcat:hover { border-color: var(--blue); box-shadow: var(--shadow-card); }
.subcat b { display: block; font-size: var(--t-prose); margin-bottom: var(--s-tight); }
.subcat span { font-size: var(--t-meta); color: var(--ink2); font-family: var(--fd); }

.pager { display: flex; align-items: center; gap: var(--s-tight); margin-top: var(--s-block); flex-wrap: wrap; }
.pager a { font-family: var(--fd); font-size: var(--t-label); min-width: var(--ctl); height: var(--ctl); display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--s-tight); border: var(--edge) var(--line); border-radius: var(--r-box); color: var(--ink); text-decoration: none; }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager a.on { background: var(--blue); border-color: var(--blue); color: var(--on-dark); }
.pager .pel { color: var(--ink3); padding: 0 var(--s-tight); }

.helpbar { margin-top: var(--s-block); background: var(--surf); border: var(--edge) var(--line); border-radius: var(--r-box); padding: var(--s-card) var(--s-block); display: flex; gap: var(--s-card); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.helpbar p { font-size: var(--t-label); color: var(--ink2); }
/* The question is a rank of its own, so it takes a line of its own: sharing
   one with the answer would break it mid-sentence and run the two
   together. */
.helpbar b { display: block; color: var(--ink); margin-bottom: var(--s-tight); }

/* no reading measure: the description runs the width of what it sits in —
   its column on a product page, the results grid on a category page.
   A deliberate trade of typographic comfort for a clean right edge. */
.catdesc { margin-top: var(--s-section); border-top: var(--edge) var(--line); padding-top: var(--s-block); color: var(--ink2); font-size: var(--t-prose); line-height: var(--lh-prose); }
.catdesc h2, .catdesc h3 { color: var(--ink); font-size: var(--t-prose); margin: var(--s-card) 0 var(--s-close); }
/* the reset zeroes p, so every multi-paragraph category text ran together as
   one block — the paragraph break is the only structure this copy has */
.catdesc p + p { margin-top: var(--s-inner); }

/* ── product page ───────────────────────────────────────────────────── */
/* One grid. A phone reads the areas top to bottom. From the site's first width
   there are two columns: the photograph spans the title, the line under it and
   the buybox, and the row below starts «Про товар» and «Характеристики» on one
   line. The buybox's row is the flexible one, so a photograph taller than the
   column beside it opens no gap between the title and the buybox. */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-card);
       grid-template-areas: "title" "fig" "meta" "buy" "specs" "about"; }
.pdp h1 { grid-area: title; font-size: var(--t-page); font-weight: var(--w-bold); margin: 0; }
.pfig { grid-area: fig; }
.pdpmeta { grid-area: meta; }
.buybox { grid-area: buy; align-self: start; }
.pdpspecs { grid-area: specs; min-width: 0; margin-top: var(--s-card); }
.pdpabout { grid-area: about; min-width: 0; margin-top: var(--s-card); }
@media (min-width: 640px) {
  .pdp { grid-template-columns: var(--split-product);
         grid-template-rows: auto auto 1fr auto; column-gap: var(--s-section);
         grid-template-areas: "fig title" "fig meta" "fig buy" "about specs"; }
  .pdpmeta { margin-top: calc(var(--s-close) * -1); }
}
/* A photograph fills its frame, as it does on a catalogue card, so a square one
   loses its top and bottom. align-self keeps the grid from stretching the frame
   out of its own shape. */
.pfig { align-self: start; aspect-ratio: var(--fig-shape); display: flex; align-items: center; justify-content: center; min-width: 0; background: var(--bg); border: var(--edge) var(--line); border-radius: var(--r-box); overflow: hidden; color: var(--ink3); }
.pfig.none { background: var(--surf); }
.pfig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pfig svg { width: auto; height: var(--fig-mark); }
.pdpmeta { display: flex; flex-wrap: wrap; gap: var(--s-tight) var(--s-card); font-size: var(--t-label); color: var(--ink2); }
.instock { display: inline-flex; align-items: center; gap: var(--s-close); color: var(--green); }
.instock::before { content: ""; width: var(--s-close); height: var(--s-close); border-radius: var(--r-pill); background: currentColor; }
.sechead { font-size: var(--t-note); letter-spacing: var(--track-caps); text-transform: var(--caps); color: var(--ink2); margin: 0 0 var(--s-inner); font-weight: var(--w-medium); }
.pdpabout .catdesc { margin: 0; border: 0; padding: 0; }
/* The leader is the row's own pseudo-element, ordered between the two cells so
   the markup stays a plain term and definition. A long pair wraps inside its
   cells and the leader keeps a stub, so no row loses it. The value gives way
   first, because a label broken mid-phrase is the harder one to read. */
.speclist { margin: 0; font-size: var(--t-body); }
.speclist > div { display: flex; align-items: baseline; gap: var(--s-close); padding: var(--s-tight) 0; }
.speclist > div::before { content: ""; order: 1; flex: 1 0 var(--s-card); border-bottom: var(--edge-row) var(--ink3); }
.speclist dt { flex: none; max-width: 60%; color: var(--ink2); }
.speclist dd { order: 2; margin: 0; min-width: 0; text-align: right; overflow-wrap: anywhere; font-family: var(--fd); font-weight: var(--w-medium); }
/* The box measures itself, because it is a column on a tablet and the whole
   page on a phone and what fits depends on the box, not on the window. Below
   the first width the stepper takes a row of its own under the price, with its
   label, so a total that grows can never push it out of the row. */
.buybox { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-card); border: var(--edge) var(--line); border-radius: var(--r-box); padding: var(--s-card); background: var(--bg); }
@media (min-width: 900px) { .buybox { padding: var(--s-block); } }
.buyhead { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-close); }
.buybox .money { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s-close); white-space: normal; overflow-wrap: anywhere; }
.buybox .money .amt { font-size: var(--t-display); letter-spacing: var(--track-head); line-height: var(--lh-box); }
.buybox .money .cur { font-size: var(--t-label); margin: 0; }
.buybox .money.ask { display: block; font-size: var(--t-section); font-weight: var(--w-medium); color: var(--ink); }
/* Hidden keeps its height: the row is there at quantity 1 as the space under
   the price, so the line can arrive without moving anything. */
.perline[hidden] { display: block; visibility: hidden; }
.buybox .perline .money .amt { font-size: var(--t-label); letter-spacing: 0; line-height: var(--lh-tight); }
.buybox .perline .money .cur { line-height: var(--lh-tight); }
.qtyrow { display: flex; align-items: center; justify-content: space-between; gap: var(--s-close); }
.qtyrow .qlbl { font-size: var(--t-meta); color: var(--ink2); min-width: 0; overflow-wrap: anywhere; }
.qtyrow .step { flex: none; }
.buyqty { font-size: var(--t-label); color: var(--ink2); }
.step { display: inline-flex; border: var(--edge) var(--line); border-radius: var(--r-box); overflow: hidden; }
.step button { width: var(--ctl); height: var(--ctl); background: var(--surf); border: 0; font-size: var(--t-lead); line-height: var(--lh-box); color: var(--ink); cursor: pointer; }
.step button:hover { background: var(--line); }
.step input { width: 64px; border: 0; border-left: var(--edge) var(--line); border-right: var(--edge) var(--line); text-align: center; font-family: var(--fd); font-size: var(--t-body); padding: 0; }
.buybox .ok { margin: 0; }
.buyacts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-close); }
.buyacts .bigbtn, .buyacts .ctao { display: flex; align-items: center; justify-content: center; height: auto; padding: var(--s-inner) var(--s-close); border: var(--edge) transparent; font-size: var(--t-prose); line-height: var(--lh-tight); }
.buyacts .ctao { border-color: var(--blue); }
.buyacts .ctao.incart { border-color: var(--green); }
/* 360: two buttons, 176px each, hold the longest label, «В корзине, перейти ✓»,
   which measures 159px. */
@container (min-width: 360px) {
  .buyacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buyacts > :only-child { grid-column: 1 / -1; }
}
/* 420: beside the stepper and its gap, 158px, a 100-tonne order at 169 000 грн/т
   measures 223px of the 262px left. */
@container (min-width: 420px) {
  .buyhead { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-block); align-items: start; }
  .buybox .money { min-height: var(--ctl); align-content: center; }
  .buybox .perline { margin-top: var(--s-tight); }
  .buybox .perline .money { min-height: 0; }
  .qtyrow .qlbl { display: none; }
  .buyqty { line-height: var(--ctl); }
}
/* A plain contact line, not a third action: the number is large and nothing
   else about it asks to be pressed. */
.buytel { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-tight) var(--s-inner); padding-top: var(--s-card); border-top: var(--edge) var(--line); font-size: var(--t-label); color: var(--ink2); }
.buytel .tel { padding: var(--s-close) 0; margin: calc(var(--s-close) * -1) 0; font-family: var(--fd); font-size: var(--t-section); font-weight: var(--w-medium); letter-spacing: var(--track-mono); color: var(--ink); text-decoration: none; white-space: nowrap; }
.buytel .tel:hover { color: var(--blue); }
.bigbtn { display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer; background: var(--yel); color: var(--ink); border: 0; padding: var(--s-inner); border-radius: var(--r-box); font-size: var(--t-prose); font-weight: var(--w-medium); }
.fin { display: block; width: 100%; border: var(--edge) var(--line); border-radius: var(--r-box); padding: var(--s-close) var(--s-inner); font: inherit; margin-bottom: var(--s-close); }
.hp { position: absolute; left: var(--offscreen); }
.ok { font-size: var(--t-label); color: var(--green); margin: var(--s-inner) 0 0; line-height: var(--lh-prose); }
/* A filled button darkens under the cursor, by the step its own colour
   takes: --blue-hover and --yel-hover are one move down from --blue and
   --yel. An outlined button fills instead (.ctao), and a button on a dark
   band brightens its edge (.cartbtn) — three kinds of button, three
   answers, and no button without one. */
.cta:hover, .bigbtn:hover, .catbtn:hover,
.search button:hover { background: var(--yel-hover); }
/* A chip that is on and a page number that is current are filled too, so they
   darken like anything else filled. Their unselected rule reaches for the blue
   the fill already is, so they need a hover of their own. */
.fopts a.on:hover, .pager a.on:hover { background: var(--blue-hover); border-color: var(--blue-hover); }

/* ── cart page ──────────────────────────────────────────────────────── */
.cartlist { border: var(--edge) var(--line); border-radius: var(--r-box); overflow: hidden; }
.cline { display: flex; align-items: center; gap: var(--s-card); padding: var(--s-inner) var(--s-card); border-bottom: var(--edge) var(--line); }
.cline:last-child { border-bottom: 0; }
.cline .fig { height: var(--fig-line); aspect-ratio: var(--fig-shape); flex: none; background: var(--surf); border: var(--edge) var(--line); border-radius: var(--r-box); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ink3); }
.cline .fig img { width: 100%; height: 100%; object-fit: cover; }
.cline .fig svg { width: auto; height: var(--fig-mark); }
.cline .mid { flex: 1; min-width: 0; }
.cline .nm { font-size: var(--t-prose); font-weight: var(--w-medium); }
.cline .nm a { text-decoration: none; }
.cline .nm a:hover { color: var(--blue); }
.cline .pu { margin-top: var(--s-hair); }
.cline .pu .amt { font-size: var(--t-label); }
.cline .q { display: flex; flex-direction: column; gap: var(--s-hair); }
.cline .q label { font-size: var(--t-note); color: var(--ink2); }
.cline .q input { width: 96px; font-family: var(--fd); font-size: var(--t-label); padding: var(--s-close) var(--s-close); border: var(--edge) var(--line); border-radius: var(--r-box); }
.cline .lt { min-width: 130px; text-align: right; }
.cline .rm { background: none; border: 0; color: var(--ink3); font-size: var(--t-section); line-height: var(--lh-box); padding: var(--s-tight) var(--s-tight); cursor: pointer; }
.cline .rm:hover { color: var(--alert); }
@media (max-width: 639.98px) {
  /* narrow screens: product info on top, then quantity + line total below;
     the remove × pins to the corner */
  .cline { flex-wrap: wrap; position: relative; padding-right: var(--s-band); }
  .cline .rm { position: absolute; top: var(--s-close); right: var(--s-close); }
  .cline .mid { flex: 1 1 auto; }
  .cline .lt { flex: 1 1 auto; min-width: 0; }
}
.cartbar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-card); flex-wrap: wrap; margin: var(--s-inner) 0 var(--s-block); }
.cartbar .sum { display: flex; align-items: baseline; gap: var(--s-close); }
.cartbar .sum .note { font-size: var(--t-meta); color: var(--ink2); }
.cartbar .sum .money .amt { font-size: var(--t-section); }
.cartbar .bigbtn { width: auto; padding: var(--s-inner) var(--s-block); }

/* ── request modal ──────────────────────────────────────────────────── */
.reqmodal { border: 0; border-radius: var(--r-panel); padding: var(--s-block) var(--s-section); width: min(420px, calc(100vw - 32px)); box-shadow: var(--shadow-modal); }
/* Shown without JavaScript too: as the page's target (#reqmodal), or open
   after a failed submit. Once modal.js runs (html.modal-js) the target no
   longer shows it: a browser may keep the dialog as the target after the
   script drops the fragment, and a closed dialog would stay on screen. Fixed in the middle of the screen, as the modal is.
   The close button's tap area reaches past the edge, where a tap closes the
   dialog anyway; clipped, it adds no sideways scroll. */
html:not(.modal-js) .reqmodal:target, .reqmodal[open] { display: block; position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100vh - 32px); overflow-x: hidden; overflow-y: auto; z-index: 70; }
.reqmodal::backdrop { background: var(--backdrop); }
.reqmodal h4 { font-size: var(--t-lead); margin: 0 0 var(--s-tight); }
.reqmodal .hint { font-size: var(--t-label); color: var(--ink2); margin: 0 0 var(--s-inner); line-height: var(--lh-prose); }
.reqmodal .mclose { text-decoration: none; position: absolute; top: var(--s-close); right: var(--s-close); background: none; border: 0; font-size: var(--t-section); color: var(--ink3); cursor: pointer; line-height: var(--lh-box); padding: var(--s-tight); }
.reqmodal .mclose:hover { color: var(--ink); }
/* ── order page ─────────────────────────────────────────────────────────
   cart/checkout.html, the order page and its confirmation. The buyer's part
   on the left; «Ваше замовлення» on the right, one tinted panel that the
   button closes. On a phone the panel's lines come first and its button
   last, after the contacts the buyer fills before pressing it. */
.steps { padding: var(--s-card) 0 var(--s-block); }
.steps ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-close) var(--s-inner); margin: 0; padding: 0; list-style: none; font-size: var(--t-label); color: var(--ink2); }
.steps li { position: relative; display: flex; align-items: center; gap: var(--s-close); }
.steps li + li::before { content: "→" / ""; color: var(--ink3); }
.steps a { display: flex; align-items: center; gap: var(--s-close); color: inherit; text-decoration: none; }
.steps a:hover { color: var(--blue); }
.steps .stn { display: inline-flex; align-items: center; justify-content: center; width: var(--ico-lead); height: var(--ico-lead); border: var(--edge) var(--line-on-tint); border-radius: var(--r-pill); font-family: var(--fd); font-size: var(--t-meta); line-height: var(--lh-box); }
.steps .done .stn { border-color: var(--green); color: var(--green); }
.steps .on { color: var(--ink); font-weight: var(--w-medium); }
.steps .on .stn { background: var(--blue); border-color: var(--blue); color: var(--on-dark); }
/* A phone has room for one step's name: the current one. The others keep
   their numbers on screen and their names for a screen reader. */
@media (max-width: 639.98px) {
  .steps li:not(.on) .stl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .steps a { justify-content: center; min-height: var(--tap); min-width: var(--tap); }
}

.cotitle { font-size: var(--t-page); margin: 0 0 var(--s-block); }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "sum" "main" "act"; gap: var(--s-block); margin: 0 0 var(--s-band); }
.comain { grid-area: main; display: grid; gap: var(--s-section); align-content: start; }
.cosum { grid-area: sum; }
.coact { grid-area: act; }
.cosum, .coact { background: var(--surf); border: var(--edge) var(--line); border-radius: var(--r-panel); padding: var(--s-card); }
@media (min-width: 900px) {
  /* the panel is one thing across two grid cells: no gap between them, and
     the seam carries no edge */
  .checkout { grid-template-columns: var(--split); grid-template-areas: "main sum" "main act"; grid-template-rows: auto 1fr; gap: 0 var(--s-band); }
  .cosum, .coact { padding: var(--s-block); }
  .cosum { border-bottom: 0; border-radius: var(--r-panel) var(--r-panel) 0 0; }
  .coact { align-self: start; border-top: 0; border-radius: 0 0 var(--r-panel) var(--r-panel); padding-top: 0; }
  .checkout > .cosum:last-child { border-bottom: var(--edge) var(--line); border-radius: var(--r-panel); align-self: start; }
}

.cohead { display: flex; align-items: center; gap: var(--s-close); font-size: var(--t-lead); margin: 0 0 var(--s-card); }
.cohead .conum { display: inline-flex; align-items: center; justify-content: center; width: var(--ico-lead); height: var(--ico-lead); border-radius: var(--r-pill); background: var(--ink); color: var(--on-dark); font-family: var(--fd); font-size: var(--t-meta); line-height: var(--lh-box); }
.cofields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s-card); }
@media (min-width: 640px) { .cofields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cofield.cowide { grid-column: 1 / -1; } }
.cofield label { display: block; font-size: var(--t-label); color: var(--ink2); margin: 0 0 var(--s-tight); }
.cofield .fin { margin-bottom: var(--s-card); }
.cofield textarea.fin { resize: vertical; }
.cofield .fin[aria-invalid="true"] { border-color: var(--alert); }

/* An option the buyer does not choose between, shown chosen: the one way
   this site is paid and the one way it delivers. */
.coopt { display: flex; align-items: flex-start; gap: var(--s-inner); padding: var(--s-card); border: var(--edge) var(--blue); border-radius: var(--r-box); background: var(--bg); }
.coopt input { flex: none; margin: var(--s-hair) 0 0; accent-color: var(--blue); }
.coopt .ico { flex: none; width: var(--ico-lead); height: var(--ico-lead); color: var(--blue); }
.coopt .cotxt { display: grid; gap: var(--s-hair); min-width: 0; }
.coopt .cotxt b { font-size: var(--t-prose); font-weight: var(--w-medium); }
.coopt .cotxt span { font-size: var(--t-label); line-height: var(--lh-prose); color: var(--ink2); }

.colines { list-style: none; margin: 0; padding: 0; }
.colines li { display: grid; grid-template-columns: calc(var(--fig-line) * var(--fig-shape)) minmax(0, 1fr) auto; grid-template-areas: "fig nm nm" "fig oq ot"; gap: var(--s-tight) var(--s-inner); align-items: center; padding: var(--s-inner) 0; border-bottom: var(--edge) var(--line-on-tint); }
.colines li:first-child { padding-top: 0; }
.colines .fig { grid-area: fig; width: 100%; height: var(--fig-line); background: var(--bg); border: var(--edge) var(--line); border-radius: var(--r-box); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ink3); }
.colines .fig img { width: 100%; height: 100%; object-fit: cover; }
.colines .fig svg { width: auto; height: var(--fig-mark); }
.colines .nm { grid-area: nm; align-self: end; font-size: var(--t-body); font-weight: var(--w-medium); line-height: var(--lh-tight); overflow-wrap: anywhere; }
.colines .nm a { text-decoration: none; }
.colines .nm a:hover { color: var(--blue); }
.colines .oq { grid-area: oq; align-self: start; font-size: var(--t-meta); color: var(--ink2); }
.colines .oq .money .amt { font-size: var(--t-meta); letter-spacing: 0; }
.colines .oq .money .cur { margin-left: var(--s-hair); }
.colines .ot { grid-area: ot; align-self: start; text-align: right; }
.cototals { margin: var(--s-inner) 0 0; }
.cototals > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-inner); padding: var(--s-tight) 0; font-size: var(--t-body); }
.cototals dt { color: var(--ink2); }
.cototals dd { margin: 0; text-align: right; }
.cototals .cosumrow { margin-top: var(--s-close); padding-top: var(--s-inner); border-top: var(--edge) var(--line-on-tint); flex-wrap: wrap; }
.cototals .cosumrow dt { color: var(--ink); font-size: var(--t-lead); font-weight: var(--w-bold); }
.cototals .cosumrow .money { white-space: normal; overflow-wrap: anywhere; }
.cototals .cosumrow .money .amt { font-size: var(--t-display); line-height: var(--lh-tight); }

.coact .bigbtn { font-size: var(--t-lead); padding: var(--s-card) var(--s-inner); }
.coafter { display: flex; align-items: center; justify-content: center; gap: var(--s-close); margin: var(--s-inner) 0 0; font-size: var(--t-label); color: var(--ink2); }
.coafter .ico { flex: none; width: var(--ico); height: var(--ico); color: var(--green); }
.conote { margin: var(--s-inner) 0 0; font-size: var(--t-meta); line-height: var(--lh-prose); color: var(--ink2); }
.coact .formnote { margin-top: var(--s-inner); }
.coact .formnote a:hover { color: var(--blue); }

/* The tick is one line of the title tall and stands at its top, so it sits
   on the first line however the title wraps. */
.codone { display: flex; align-items: flex-start; gap: var(--s-inner); margin: 0 0 var(--s-block); }
.codone svg { flex: none; width: calc(var(--t-page) * var(--lh-tight)); height: calc(var(--t-page) * var(--lh-tight)); color: var(--green); }
.codone h1 { margin: 0; font-size: var(--t-page); line-height: var(--lh-tight); }
.cocopy { margin: 0; font-size: var(--t-prose); line-height: var(--lh-prose); color: var(--ink2); }
.conext { list-style: none; counter-reset: next; margin: 0; padding: 0; display: grid; gap: var(--s-card); }
.conext li { counter-increment: next; display: flex; align-items: baseline; gap: var(--s-inner); font-size: var(--t-prose); line-height: var(--lh-prose); }
.conext li::before { content: counter(next); flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--ico-lead); height: var(--ico-lead); border-radius: var(--r-pill); background: var(--surf); border: var(--edge) var(--line); font-family: var(--fd); font-size: var(--t-meta); line-height: var(--lh-box); }
.coback { width: auto; justify-self: start; padding: var(--s-inner) var(--s-section); }
.cartnote { font-size: var(--t-meta); color: var(--ink2); margin: 0 0 var(--s-block); }

.cartok p, .cartempty p { margin: 0 0 var(--s-inner); color: var(--ink2); }
.cartok b { color: var(--green); }
.err { font-size: var(--t-meta); color: var(--alert); margin-bottom: var(--s-close); }

/* ── home page ──────────────────────────────────────────────────────── */
.hero { background:
    linear-gradient(100deg, var(--hero-wash-near) 0%, var(--hero-wash-mid) 48%, var(--hero-wash-far) 100%),
    url("../img/hero-steel-coils.547c0a23587c.jpg") center 42% / cover no-repeat var(--ink);
  color: var(--on-dark); padding: var(--s-open) 0; border-bottom: var(--edge-close) var(--yel); }
.hero .eyebrow { font-family: var(--fd); font-size: var(--t-note); letter-spacing: var(--track-hero); text-transform: var(--caps); color: var(--on-dark-faint); margin-bottom: var(--s-card); }
.hero .eyebrow::before { content: ""; display: inline-block; width: var(--rule-line); height: var(--rule-line-h); background: var(--yel); vertical-align: middle; margin-right: var(--s-inner); }
/* The heading is a sentence, not three words, so it is set smaller and
   allowed to run to 29 characters a line. `text-wrap: balance` stops the last
   line arriving with one word on it. */
.hero h1 { font-size: var(--t-hero); font-weight: var(--w-bold); letter-spacing: var(--track-head); line-height: var(--lh-tight); max-width: var(--measure-display); text-wrap: balance; }
.hero .sub { margin: var(--s-card) 0 var(--s-section); font-size: var(--t-lead); color: var(--on-dark-quiet); line-height: var(--lh-prose); }
/* The break the editor typed is kept at every width. Hiding it on a phone
   would be wrong: `linebreaksbr` emits a bare `<br>` with no space around
   it, so `display: none` would run the two sentences together. The break
   falls between two whole sentences, so on a narrow screen it costs one
   line and reads correctly. */
.hero .actions { display: flex; align-items: center; gap: var(--s-block); flex-wrap: wrap; }
.cta.big { height: auto; font-size: var(--t-prose); padding: var(--s-card) var(--s-block); }
.herotel { font-family: var(--fd); font-size: var(--t-section); font-weight: var(--w-medium); color: var(--on-dark); text-decoration: none; letter-spacing: var(--track-mono); }
.bandhead { font-size: var(--t-section); font-weight: var(--w-bold); letter-spacing: var(--track-head); margin: var(--s-band) 0 0; }
/* The yellow rule, in one place. It marks a section a visitor is meant to
   stop at: the services band, every information-page section, and the reach
   column on Контакти. The bands that lead with a mono eyebrow instead — the
   shelf, the map, «Клієнтам», the road — do not take it. */
.svcband .bandhead::after,
.infosec > h2::after,
.reach h2::after { content: ""; display: block; width: var(--rule-section); height: var(--rule-section-h); background: var(--yel); margin-top: var(--s-inner); }

.homecats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--card-shown), 100%), 1fr)); gap: var(--s-block); margin: var(--s-card) 0 var(--s-deep); }

.allcat .fig { color: var(--blue); }
.allcat .fig svg { width: auto; height: var(--fig-mark); }
.allcat .bd b { color: var(--blue); }

/* ── home band: «Послуги» ─────────────────────────────────────────────
   Sits between two --surf bands (the shelf above, the delivery map below), so
   it stays white: the page alternates rather than running three tinted bands
   together.

   Card titles are sans, not mono. Mono on this site means a number or a code;
   a service is a name, and «Порізка в розмір» set in the data face reads as
   a part number. */
.svcband { margin: var(--s-band) 0 0; }
.svcband .eyebrow { font-family: var(--fd); font-size: var(--t-note); letter-spacing: var(--track-caps); text-transform: var(--caps); color: var(--blue); margin-bottom: var(--s-close); }
.svcband .bandhead { margin: 0; }
/* Stacked, then three across, with nothing in between, on purpose.
   `repeat(auto-fit, minmax(260px, 1fr))` would give two columns between
   roughly 588px and 868px and leave the third card alone on a half-width row.
   Three short cards stacked cost about 330px of height on a tablet, which is
   the cheaper trade.
   The `minmax` floor is 185px so that four cards, the most the field
   accepts, fit across at the moment the media query opens. */
/* One, then two, then as many as fit — the same shape the «Коротко» strip
   takes. A full-width card below the site's second width would make its
   photograph the largest thing on the page; these are stock photographs of a
   service rather than of a product, and they are not what the card is for. */
.svcgrid { display: grid; grid-template-columns: 1fr; gap: var(--s-card); margin-top: var(--s-block); }
@media (min-width: 640px) { .svcgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .svcgrid { grid-template-columns: repeat(auto-fit, minmax(min(var(--card-small), 100%), 1fr)); } }
.svc { border: var(--edge) var(--line); border-radius: var(--r-box); background: var(--bg); overflow: hidden; }
/* The band shape, not a fixed height. These cards are stacked below the
   site's second width and side by side above it, so a fixed strip becomes a
   letterbox six times wider than it is tall on a phone and a proper
   photograph on a desktop. The shape holds at both.

   height:auto is load-bearing, as it is on the product photograph: the image
   tag prints width and height attributes, the browser treats them as a
   presentational hint, and without this the attribute wins and the ratio is
   ignored. */
.svc .ph { display: block; width: 100%; height: auto; aspect-ratio: var(--fig-band); object-fit: cover; border-bottom: var(--edge) var(--line); }
.svc .bd { padding: var(--s-card) var(--s-block); }
.svc b { display: block; font-size: var(--t-prose); font-weight: var(--w-medium); letter-spacing: var(--track-head); margin-bottom: var(--s-tight); }
.svc p { font-size: var(--t-label); color: var(--ink2); line-height: var(--lh-prose); }

/* ── home band: «Клієнтам» ────────────────────────────────────────────
   The last thing before the footer: the questions somebody asks themselves
   before dialling, and the way through to the pages that answer them.

   Native <details>, so it opens with no JavaScript and a crawler still reads
   every answer inside a closed one. */
/* **White, not --surf.** It follows the delivery map, which is a tinted
   full-bleed band — two tinted bands touching read as one long grey area with
   a hairline through it, and the page loses the alternation that gives it a
   rhythm. White here also means the band needs no full-bleed and therefore no
   inner `.w`: it sits in the page's own column like the services band above
   it. The map's existing bottom border is what separates the two. */
/* Bottom margin is small on purpose: `.page` already contributes its own
   padding above the footer, and 72px here stacked with it into 160px of blank
   white — enough that the band read as floating rather than as the page's
   last section. */
.cliband { margin: var(--s-band) 0 var(--s-close); }
.cliband .eyebrow { font-family: var(--fd); font-size: var(--t-note); letter-spacing: var(--track-caps); text-transform: var(--caps); color: var(--blue); margin-bottom: var(--s-close); }
.cliband .bandhead { margin: 0 0 var(--s-block); }
/* The same two columns, in the clients band and in a contact block. */
.cliduo, .split { display: grid; grid-template-columns: 1fr; gap: var(--s-section); align-items: start; }
@media (min-width: 900px) { .cliduo { grid-template-columns: var(--split); gap: var(--s-band); } }

.clifaq details { border-bottom: var(--edge) var(--line); background: var(--bg); }
.clifaq details:first-child { border-top: var(--edge) var(--line); }
/* the whole bar is the target: 56px, past the 44px the usual guidance asks
   for — this audience is often on a phone on a site */
.clifaq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-card); min-height: var(--ctl-row); padding: var(--s-inner) var(--s-card); font-size: var(--t-prose); font-weight: var(--w-medium); line-height: var(--lh-tight); cursor: pointer; list-style: none; }
.clifaq summary::-webkit-details-marker { display: none; }
.clifaq summary::after { content: "+"; font-family: var(--fd); font-size: var(--t-lead); font-weight: var(--w-reset); color: var(--blue); flex: none; }
.clifaq details[open] summary::after { content: "−"; }
.clifaq summary:hover { color: var(--blue); }
.clifaq .ans { padding: 0 var(--s-card) var(--s-card); font-size: var(--t-body); color: var(--ink2); line-height: var(--lh-prose); }
.clifaq .ans p { margin: 0 0 var(--s-close); }
.clifaq .ans p:last-child { margin-bottom: 0; }
.clifaq .ans a { color: var(--blue); }
/* «уточнюється» is a state, not an answer — say so quietly rather than dressing
   it up as one */
.clifaq .tbd { color: var(--ink2); font-style: italic; }

/* The cards keep their own height and sit at the top, so the rail is shorter
   than the FAQ beside it. Stretched to the FAQ's height, the entries would
   inflate to however many questions someone typed. Three links are three
   links. */
.clirail { display: grid; gap: var(--s-close); }
.lc { display: flex; align-items: center; gap: var(--s-inner); min-height: var(--ctl-row); padding: var(--s-inner) var(--s-card); border: var(--edge) var(--line); border-radius: var(--r-box); background: var(--bg); text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.lc:hover { border-color: var(--blue); transform: translateY(-1px); }
.lcico { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--blue); flex: none; }
.lcico .ico { width: var(--ico-lead); height: var(--ico-lead); }
.lctx { min-width: 0; }
.lctx b { display: block; font-size: var(--t-body); font-weight: var(--w-medium); line-height: var(--lh-tight); }
.lctx span { display: block; font-size: var(--t-meta); color: var(--ink2); line-height: var(--lh-tight); margin-top: var(--s-hair); }
.lcarr { margin-left: auto; color: var(--ink3); font-size: var(--t-prose); flex: none; transition: transform .15s ease, color .15s ease; }
.lc:hover .lcarr { color: var(--blue); transform: translateX(3px); }


/* ── mega menu ──────────────────────────────────────────────────────── */
/* padding bridges the gap down to the panel so the cursor never leaves the
   hover zone while crossing it */
.catbtn { display: flex; align-items: center; gap: var(--s-close); background: var(--yel); color: var(--ink); border: 0; border-radius: var(--r-box); height: var(--ctl); padding: 0 var(--s-card); font-size: var(--t-label); font-weight: var(--w-bold); text-decoration: none; white-space: nowrap; }
.catbtn svg { width: var(--ico); height: var(--ico); flex: none; }

.mega[hidden] { display: none; }  /* author display:grid would defeat the hidden attribute */
/* flush with the bar, not floated below it, so there is no dead strip
   between the bar and the panel for the cursor to cross */
.mega { position: absolute; top: 100%; left: var(--s-block); right: var(--s-block); z-index: 60; background: var(--bg); color: var(--ink); border: var(--edge) var(--line); border-top: 0; border-radius: 0 0 var(--r-panel) var(--r-panel); box-shadow: var(--shadow-panel); display: grid; grid-template-columns: var(--col-rail) minmax(0, 1fr); overflow: hidden; }
.megarail { list-style: none; margin: 0; padding: var(--s-close) 0; background: var(--surf); max-height: 68vh; overflow-y: auto; }
.megarail a { display: block; padding: var(--s-close) var(--s-card); text-decoration: none; font-size: var(--t-label); font-weight: var(--w-medium); color: var(--ink); border-left: var(--edge-mark) transparent; }
.megarail li.on a { background: var(--bg); border-left-color: var(--yel); color: var(--blue); }
.megapanes { padding: var(--s-block) var(--s-section); max-height: 68vh; overflow-y: auto; }
.megahead { display: inline-block; font-size: var(--t-prose); font-weight: var(--w-bold); color: var(--ink); text-decoration: none; margin-bottom: var(--s-inner); }
.megahead:hover { color: var(--blue); }
.megacols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--card), 100%), 1fr)); gap: var(--s-hair) var(--s-block); }
.megacols a { display: flex; justify-content: space-between; gap: var(--s-close); align-items: baseline; padding: var(--s-close) 0; text-decoration: none; font-size: var(--t-label); color: var(--ink2); border-bottom: var(--edge-row) var(--line); }
.megacols a:hover { color: var(--blue); }
.megacols i { font-style: normal; font-family: var(--fd); font-size: var(--t-note); color: var(--ink2); }
@media (max-width: 899.98px) {
  .mega { grid-template-columns: 1fr; }
  .megapanes { display: none; }
}

/* ── catalogue hub ──────────────────────────────────────────────────── */
/* hub list view: the full index — one row per section, thumbnail + bold name,
   every category as a chip (same visual language as the filter chips) */
.hub-list { border: var(--edge) var(--line); border-radius: var(--r-box); overflow: hidden; margin-top: var(--s-card); }
.hubrow { display: flex; gap: var(--s-card); align-items: flex-start; padding: var(--s-card) var(--s-block); border-bottom: var(--edge) var(--line); }
.hubrow:last-child { border-bottom: 0; }
.hubrow .fig { height: var(--fig-hub); aspect-ratio: var(--fig-shape); flex: none; background: var(--surf); border: var(--edge) var(--line); border-radius: var(--r-box); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ink3); }
.hubrow .fig img { width: 100%; height: 100%; object-fit: cover; }
.hubrow .fig svg { width: auto; height: var(--fig-mark); }
.hubrow .bd { flex: 1; min-width: 0; }
.hubrow .hn { display: inline-block; font-size: var(--t-prose); font-weight: var(--w-bold); color: var(--ink); text-decoration: none; margin: var(--s-hair) 0 var(--s-close); }
.hubrow .hn:hover { color: var(--blue); }
.hubrow .hsub { display: flex; flex-wrap: wrap; gap: var(--s-tight); }
.hubrow .hsub a { font-family: var(--fd); font-size: var(--t-note); padding: var(--s-tight) var(--s-close); border: var(--edge) var(--line); border-radius: var(--r-box); color: var(--ink2); background: var(--bg); text-decoration: none; }
.hubrow .hsub a:hover { border-color: var(--blue); color: var(--blue); }
.hubrow i { font-style: normal; font-family: var(--fd); font-weight: var(--w-reset); font-size: var(--t-note); color: var(--ink2); margin-left: var(--s-hair); }

/* A card's floor is its width when there is room for it, and the container's
   when there is not, so a card on a narrow phone never pushes the page
   sideways. Every card grid takes the same min(). */
.cathub { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--card-list), 100%), 1fr)); gap: var(--s-block); margin-top: var(--s-card); }
.catsec:hover { border-color: var(--blue); box-shadow: var(--shadow-card); }
.catsec .fig { display: flex; align-items: center; justify-content: center; background: var(--surf); aspect-ratio: var(--fig-band); border-bottom: var(--edge) var(--line); color: var(--ink3); overflow: hidden; }
.catsec .fig img { width: 100%; height: 100%; object-fit: cover; }
.catsec .fig svg { width: auto; height: var(--fig-mark); }
.catsec .bd { padding: var(--s-card) var(--s-block); display: flex; flex-direction: column; flex: 1; }
.secname { font-size: var(--t-prose); font-weight: var(--w-bold); color: var(--ink); text-decoration: none; margin-bottom: var(--s-close); }
.secname:hover { color: var(--blue); }
.secname i, .seclinks i { font-style: normal; font-family: var(--fd); font-weight: var(--w-reset); font-size: var(--t-note); color: var(--ink2); }
.seclinks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-hair) var(--s-card); }
.seclinks a { display: flex; justify-content: space-between; gap: var(--s-close); align-items: baseline; padding: var(--s-tight) 0; font-size: var(--t-label); color: var(--ink2); text-decoration: none; border-bottom: var(--edge-row) var(--line); }
.seclinks a:hover { color: var(--blue); }
.secall { margin-top: auto; padding-top: var(--s-inner); font-size: var(--t-meta); color: var(--blue); text-decoration: none; }
@media (max-width: 639.98px) { .seclinks { grid-template-columns: 1fr; } }

/* ── information pages ───────────────────────────────────────────────
   Each page has its own character. What is shared here is the rhythm — a
   section, a heading with a yellow rule under it, prose at one size — and
   then a shape per page: the «Коротко» strip and the road on Доставка, the
   dotted list on Про компанію, the split screen on Контакти. */
/* no reading measure anywhere on these pages: body copy runs the full width
   of the element it sits above or below, the same rule the category and
   product descriptions follow */
.lede, .infosec > .note { font-size: var(--t-prose); line-height: var(--lh-prose); color: var(--ink2); }
.lede { margin: var(--s-inner) 0 var(--s-section); }

/* every block on an information page: same rhythm, same yellow rule */
.infosec { margin-top: var(--s-band); }
.infosec > h2 { font-size: var(--t-section); font-weight: var(--w-bold); letter-spacing: var(--track-head); }
.infosec > h2 + * { margin-top: var(--s-block); }
.infosec > .note { margin-top: var(--s-card); }
/* stacked paragraphs — the privacy policy is mostly prose */
.infosec > .note + .note { margin-top: var(--s-inner); }

/* ── «Коротко» ────────────────────────────────────────────────────────
   The four questions answered before the page starts explaining. It belongs
   to the lede above it rather than being a section of its own, so it carries
   rules instead of a heading.

   The column count comes from the item count, which the block template writes
   on as a class. A fixed `repeat(4, 1fr)` would leave a bare stretch when
   there are three, and a wrapping flex row would lay a fourth out alone on a
   full-width row at some widths. Stating the count is exact: four go 2+2 and
   then 4, three go straight from 1 to 3, and no arrangement strands one. */
.kq { display: grid; grid-template-columns: 1fr; gap: var(--s-block) var(--s-section);
      margin: var(--s-section) 0 var(--s-close); padding: var(--s-block) 0; border-top: var(--edge) var(--line); border-bottom: var(--edge) var(--line); }
@media (min-width: 640px) {
  .kq-2, .kq-4 { grid-template-columns: repeat(2, 1fr); }
  .kq-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) { .kq-4 { grid-template-columns: repeat(4, 1fr); } }
.kq b { display: block; font-size: var(--t-lead); font-weight: var(--w-bold); letter-spacing: var(--track-head); margin-bottom: var(--s-close); }
.kq b::before { content: ""; display: block; width: var(--rule-line); height: var(--rule-line-h); background: var(--yel); margin-bottom: var(--s-inner); }
.kq p { font-size: var(--t-body); line-height: var(--lh-prose); color: var(--ink2); }

/* ── «Перелік» — a name and what it means (pages/blocks.py) ───────────── */
.deflist { margin-top: var(--s-block); }
.deflist > div { display: grid; grid-template-columns: 1fr; gap: var(--s-tight); padding: var(--s-card) 0; border-top: var(--edge-row) var(--line); }
.deflist > div:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 640px) { .deflist > div { grid-template-columns: var(--col-term) minmax(0, 1fr); gap: var(--s-block); align-items: baseline; } }
.deflist dt { font-size: var(--t-prose); font-weight: var(--w-bold); letter-spacing: var(--track-head); }
.deflist dd { margin: 0; font-size: var(--t-prose); line-height: var(--lh-prose); color: var(--ink2); }

/* ── «Дорога» — the order's journey ───────────────────────────────────
   A literal road with a dashed centre line, and a lorry that follows the
   scroll. Each stop lights as the cab reaches it (static/js/road.js). */
.roadband { margin-top: var(--s-band); }
.roadband > .eyebrow { font-family: var(--fd); font-size: var(--t-note); letter-spacing: var(--track-caps); text-transform: var(--caps); color: var(--blue); margin-bottom: var(--s-close); }
.roadband > h2 { font-size: var(--t-section); font-weight: var(--w-bold); letter-spacing: var(--track-head); margin-bottom: var(--s-section); }
.road { position: relative; padding-left: var(--road-inset); }
.roadline { position: absolute; left: var(--road-line); top: var(--s-close); bottom: var(--s-close); width: var(--road-width); background: var(--road-surface); border-radius: var(--road-line-r); }
.roadline::after { content: ""; position: absolute; left: 50%; top: var(--s-close); bottom: var(--s-close); width: var(--road-dash-w); margin-left: var(--road-dash);
                   background: repeating-linear-gradient(180deg, var(--on-dark) 0 12px, transparent 12px 26px); opacity: .85; }
.truck { position: absolute; left: var(--road-truck); top: 0; width: var(--road-truck-w); will-change: transform; z-index: 2; display: none;
         filter: drop-shadow(var(--road-shadow)); }
.stop { position: relative; padding: var(--s-block) 0 var(--s-section); }
.stop + .stop { border-top: var(--edge-row) var(--line); }
/* Lit by default; road.js adds `driven` and turns them off so the lorry can
   turn them back on. See static/js/road.js. */
.stop .dot { position: absolute; left: var(--road-dot); top: var(--road-dot-top); width: var(--road-dot-size); height: var(--road-dot-size); border-radius: 50%;
             background: var(--yel); border: var(--edge-mark) var(--ink); transition: background .3s ease, border-color .3s ease; }
.road.driven .stop .dot { background: var(--bg); border-color: var(--ink3); }
.road.driven .stop.lit .dot { background: var(--yel); border-color: var(--ink); }
.stop i.idx { font-style: normal; font-family: var(--fd); font-size: var(--t-meta); font-weight: var(--w-medium); color: var(--blue); letter-spacing: var(--track-caps); }
.stop h3 { font-size: var(--t-lead); font-weight: var(--w-bold); letter-spacing: var(--track-head); margin: var(--s-tight) 0 var(--s-close); }
.stop .stoptx p { font-size: var(--t-prose); line-height: var(--lh-prose); color: var(--ink2); }
.stop .stoptx p + p { margin-top: var(--s-close); }
.stop .stoptx a { color: var(--blue); text-decoration: none; }
/* the phone inside a stop is the site's telephone treatment, not a blue link */
.stop .stoptx a[href^="tel:"] { font-family: var(--fd); font-weight: var(--w-medium); color: var(--ink); border-bottom: var(--edge) var(--tel-rule); }
.stop .stoptx a[href^="tel:"]:hover { border-color: var(--blue); }
/* No media query down here. The narrow drawing arrives through the --road-*
   overrides on .roadband, which every rule above already reads. */
.road.driven .truck { display: block; }

/* ── «Зв’язок» — the contacts screen ──────────────────────────────────
   Two columns above 900px and stacked below it, phone first either way. */
.split { margin-top: var(--s-section); }   /* a block, so it clears what is above it */
@media (min-width: 900px) { .split { grid-template-columns: var(--split); gap: var(--s-deep); } }
.reach h2 { font-size: var(--t-section); font-weight: var(--w-bold); letter-spacing: var(--track-head); }
/* the number is the page. Display size, and the one thing a visitor meets
   before anything else on it */
.bigtel { display: inline-block; margin-top: var(--s-block); font-family: var(--fd); font-size: var(--t-contact); font-weight: var(--w-medium);
          letter-spacing: var(--track-head); color: var(--ink); text-decoration: none; line-height: var(--lh-tight); }
.bigtel:hover { color: var(--blue); }
.telnote { margin-top: var(--s-close); font-size: var(--t-label); color: var(--ink2); }
.citem { margin-top: var(--s-card); padding-top: var(--s-card); border-top: var(--edge-row) var(--line); }
/* h3, not h4: the block's own heading is the h2 above it, and skipping a level
   is a hole in the outline a screen reader reads out */
.citem h3 { font-size: var(--t-note); letter-spacing: var(--track-caps); text-transform: var(--caps); color: var(--ink2); font-weight: var(--w-medium); margin-bottom: var(--s-tight); }
.citem .val { font-family: var(--fd); font-size: var(--t-prose); font-weight: var(--w-medium); color: var(--ink); text-decoration: none; }
.citem a.val:hover { color: var(--blue); }
/* an address is prose, not data — the mono face is for numbers */
.citem .val.addr { font-family: var(--fs); font-size: var(--t-prose); }
.citem p { margin-top: var(--s-tight); font-size: var(--t-label); line-height: var(--lh-prose); color: var(--ink2); }
/* the form on the same surf panel the CTA band uses */
.write { background: var(--surf); border: var(--edge) var(--line); border-radius: var(--r-panel); padding: var(--s-block) var(--s-section); }
.write h2 { font-size: var(--t-section); font-weight: var(--w-bold); letter-spacing: var(--track-head); margin-bottom: var(--s-close); }
.write .note { font-size: var(--t-body); line-height: var(--lh-prose); color: var(--ink2); margin-bottom: var(--s-card); }
.write .fin { border-color: var(--line-on-tint); }
.write textarea.fin { resize: vertical; min-height: 104px; }
/* the three short fields sit three across on a page-width form and stacked in
   this panel, which is barely wider than one of them */
.write .askfields { grid-template-columns: 1fr; }
.write .askform .bigbtn { width: 100%; padding: var(--s-inner); margin-top: var(--s-tight); }
/* bulleted prose. Full width like everything else; the indent is the marker's,
   not a reading measure. */

/* Prose typed into a Текст block. An editor writing in a rich-text box
   cannot put a class on anything, so the wrapper carries what `.note` and
   `.infolist` carry: same sizes, same colours. */
.rtx > p { font-size: var(--t-prose); line-height: var(--lh-prose); color: var(--ink2); margin-top: var(--s-card); }
.rtx > p + p { margin-top: var(--s-inner); }
.rtx > ul, .rtx > ol { margin: var(--s-card) 0 0; padding-left: var(--s-card); }
.rtx li { font-size: var(--t-prose); line-height: var(--lh-prose); color: var(--ink2); margin-bottom: var(--s-close); }
.rtx li:last-child { margin-bottom: 0; }
.rtx li::marker { color: var(--ink3); }
.rtx b, .rtx strong { color: var(--ink); font-weight: var(--w-medium); }
.rtx a { color: var(--blue); }

/* label/value pairs — реквізити, payment terms. Full width, like the cards
   above them: the dotted rows read as one table */
.factlist { margin: var(--s-block) 0 0; }
/* label and value on one row from 560px up, stacked below — an address must
   never be squeezed into a half-width column on a phone */
.factlist > div { display: grid; grid-template-columns: 1fr; gap: var(--s-hair); padding: var(--s-inner) 0; border-top: var(--edge-row) var(--line); }
/* The first row has no rule above it, so it needs no space above it either:
   the list then starts as far below its heading as a text section does. */
.factlist > div:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 640px) { .factlist > div { grid-template-columns: var(--col-term) minmax(0, 1fr); gap: var(--s-card); align-items: baseline; } }
.factlist dt { font-size: var(--t-label); color: var(--ink2); }
.factlist dd { margin: 0; font-size: var(--t-body); font-weight: var(--w-medium); }
.factlist dd a { color: var(--blue); text-decoration: none; }
/* a value the client still has to supply — muted, so it reads as a gap */
.factlist dd.tbd { color: var(--ink2); font-weight: var(--w-reset); font-style: italic; }

/* questions and answers — deliberately NOT .factlist. A question is not a
   label: it does not fit a 220px column, and .factlist's bold `dd` would set
   the answer as a value, so a sentence of prose would look like a
   measurement. Same dotted rhythm, different shape. */
.faqlist { margin: var(--s-block) 0 0; }
.faqlist > div { padding: var(--s-inner) 0; border-top: var(--edge-row) var(--line); }
.faqlist > div:first-child { border-top: 0; }
.faqlist dt { font-size: var(--t-prose); font-weight: var(--w-medium); color: var(--ink); }
.faqlist dd { margin: var(--s-tight) 0 0; font-size: var(--t-prose); line-height: var(--lh-prose); color: var(--ink2); }
.faqlist dd p { margin: 0 0 var(--s-close); }
.faqlist dd p:last-child { margin-bottom: 0; }
.faqlist dd a { color: var(--blue); }
/* an answer waiting on the client meeting — the FAQ is written questions-first
   on purpose, so a blank answer is the normal state for a while */
.faqlist dd.tbd { color: var(--ink2); font-style: italic; }

/* a photograph inside a content page. max-width is not decoration: the
   rendition is up to 1200px wide and the column is narrower than that, so
   without it a large upload pushes the page sideways. */
.infofig { margin: var(--s-block) 0 0; }
.infofig img { display: block; max-width: 100%; height: auto; border-radius: var(--r-box); }
.infofig figcaption { margin-top: var(--s-close); font-size: var(--t-meta); color: var(--ink2); }

/* enquiry form — the page's own lead channel, no product attached */
.askband .note { margin: var(--s-card) 0 var(--s-card); }
/* NB: not «.row» — that is the catalogue listing row (padding, border and a
   hover tint), and reusing the name here would inset the fields by 18px a
   side. Explicit tracks rather than auto-fit; .fin's own margin is the
   vertical gap. */
.askfields { display: grid; grid-template-columns: 1fr; gap: 0 var(--s-close); }
@media (min-width: 640px) { .askfields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.askform textarea.fin { resize: vertical; }
.askform .bigbtn { width: auto; padding: var(--s-inner) var(--s-section); }
/* the line under every lead form's button: the policy, at the moment of
   collection (templates/_privacy_note.html) */
.formnote { margin: var(--s-close) 0 0; font-size: var(--t-meta); line-height: var(--lh-prose); color: var(--ink2); }
.formnote a { color: inherit; text-decoration: underline; }
.okmsg { margin-top: var(--s-card); font-size: var(--t-prose); line-height: var(--lh-prose); color: var(--ink2); }
.okmsg b { color: var(--green); }

/* closing call to action — light. The footer is the only black band on this
   site. */
.ctaband { background: var(--surf); border: var(--edge) var(--line); border-radius: var(--r-panel); margin-top: var(--s-band); padding: var(--s-block) var(--s-section); display: flex; align-items: center; justify-content: space-between; gap: var(--s-block); flex-wrap: wrap; }
.ctaband h2 { font-size: var(--t-section); font-weight: var(--w-bold); letter-spacing: var(--track-head); }
.ctaband p { margin-top: var(--s-close); font-size: var(--t-prose); line-height: var(--lh-prose); color: var(--ink2); }
.ctaband .acts { display: flex; align-items: center; gap: var(--s-block); flex-wrap: wrap; }
.ctaband .tel { font-family: var(--fd); font-size: var(--t-lead); font-weight: var(--w-medium); color: var(--ink); text-decoration: none; border-bottom: var(--edge) var(--tel-rule); padding-bottom: var(--s-hair); }
.ctaband .tel:hover { border-color: var(--blue); }

/* The 404 and 500 pages (config/errors.py). One message, the search, and the
   two ways onward: the catalogue and the phone. */
.errpage { padding: var(--s-section) 0; }
.errpage p { font-size: var(--t-prose); line-height: var(--lh-prose); color: var(--ink2); margin: 0 0 var(--s-block); }
.errpage .search { height: var(--ctl); border: var(--edge) var(--line); margin-bottom: var(--s-block); }
.erracts { display: flex; align-items: center; gap: var(--s-card) var(--s-block); flex-wrap: wrap; font-size: var(--t-prose); }
.erracts .tel { font-family: var(--fd); font-weight: var(--w-medium); color: var(--ink); white-space: nowrap; text-decoration: none; border-bottom: var(--edge) var(--tel-rule); padding-bottom: var(--s-hair); }
.erracts .tel:hover { border-color: var(--blue); }

/* The staff page (config/team.py). Its state is a box of its own: yellow
   while the browser is still counted and something is left to do, green once
   it is not. The words say the same thing the colour does. */
.teampage .teamstate { display: flex; flex-direction: column; gap: var(--s-tight); padding: var(--s-card); margin: 0 0 var(--s-block); background: var(--surf); border-left: var(--edge-close) var(--yel); border-radius: var(--r-box); }
.teampage .teamstate strong { font-size: var(--t-lead); line-height: var(--lh-tight); color: var(--ink); }
.teampage .teamstate span { font-size: var(--t-prose); line-height: var(--lh-prose); color: var(--ink2); }
.teampage .teamstate.is-off { border-left-color: var(--green); }
.teampage .teamstate.is-off strong { color: var(--green); }
.teampage .erracts { margin-bottom: var(--s-block); }
.teampage .teamnote { font-size: var(--t-body); }
.teampage .teamundo button { appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 0; font: inherit; font-size: var(--t-body); color: var(--ink2); text-decoration: underline; cursor: pointer; }
.teampage .teamundo button:hover { color: var(--blue); }
@media (max-width: 639.98px) { .bar .lang.errlang { display: flex; } }

/* The count on the cart. Inside the button it widens the bar's row by 22px
   for one digit and 29px for two, and the row has 11px to spare at 360 and
   26px at 375. Below 390 the count sits on the button's corner and takes no
   room in the row. */
@media (max-width: 389.98px) {
  .cartbtn .cnt { position: absolute; top: calc(var(--s-tight) * -1); right: calc(var(--s-tight) * -1); }
}

/* A product row. Beside its 128px photograph the name and the measures have
   118px at 360 and 133px at 375, and a measure that wraps instead of being
   cut needs more than the first. Below 375 the photograph steps down and
   keeps only the name beside it; the measures and the actions each take the
   row's full width. The second row takes whatever height the photograph has
   to spare, so a short name keeps its category line directly under it.

   The photograph's column is a stated width, the photograph's own. Left to
   `auto`, Safari widens it to fit the measures and the actions, which span
   both columns, and the name is left a column one letter wide. */
@media (max-width: 374.98px) {
  .row { --fig-row: 72px; display: grid; grid-template-columns: calc(var(--fig-row) * var(--fig-shape)) minmax(0, 1fr);
         grid-template-areas: "fig nm" "fig ctg" "sp sp" "rt rt";
         grid-template-rows: auto 1fr;
         align-items: start; gap: 0 var(--s-inner); padding: var(--s-card); }
  .row .fig { grid-area: fig; }
  .row .mid { display: contents; }
  .row .nm { grid-area: nm; margin: 0; }
  .row .ctg { grid-area: ctg; margin: var(--s-tight) 0 0; }
  /* The space above each is its own, not the grid's: a category listing has
     no .ctg and a product may have no measures, and a gap would still be
     drawn around the empty track. */
  .row .sp { grid-area: sp; margin-top: var(--s-inner); }
  .row .sp:not(:has(*)) { display: none; }
  .row .rt { grid-area: rt; margin-top: var(--s-inner); }
}

/* ── the narrowest phone ──────────────────────────────────────────────
   320px is the narrowest screen the site is laid out for, and the layout
   every wider phone gets is measured at 375. Below 360 two things give.

   The gutter. 24px a side leaves 272px of a 320px screen, and the bar's five
   controls need 301px on one row. At 16px a side and 8px between them, with
   «Каталог» padded to match, they need 277px of 288px.

   A panel's own padding, which is a gutter inside a gutter. */
@media (max-width: 359.98px) {
  /* the sides only: the page's own column is a .w too, and keeps the top
     and bottom it sets for itself */
  .w { padding-left: var(--s-card); padding-right: var(--s-card); }
  .mega { left: var(--s-card); right: var(--s-card); }
  .bar .w { gap: var(--s-close); }
  .bar .catbtn { padding: 0 var(--s-close); }

  .hubrow { gap: var(--s-inner); padding: var(--s-card); }

  .helpbar { padding: var(--s-card); }
  .write, .ctaband { padding: var(--s-card); }
  .reqmodal { padding: var(--s-block) var(--s-card); }
  /* the number stays one line, so it is sized from the window */
  .bigtel { font-size: 7.5vw; white-space: nowrap; }
}
