/* easycut.ee site styles.
   Look: concept B2-S3L approved by Egor 2026-11-04 (dark industrial, blue-grey accent,
   rounded corners with soft shadows, light/dark switch with dark as the default).
   Fonts: Manrope (headings), Inter (text), JetBrains Mono (labels, specs), self-hosted in
   /fonts/ (@font-face below); all three cover Latin Extended (ET, LV, LT) and Cyrillic (RU).
   Sections: tokens, base, buttons, header, language dropdown + theme switch, home,
   cards, about, testimonials, offer + form, footer, page heroes, solution page,
   listing tabs, text pages, lightbox, responsive, light theme. */

/* Self-hosted fonts (OFL, licences in /fonts/). Variable woff2, one file per family and subset;
   unicode-range makes the browser fetch only the subsets a page uses. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/inter-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/jetbrains-mono-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(../fonts/manrope-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(../fonts/manrope-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(../fonts/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ------------------------------------------------------------ tokens */
:root {
  --bg: #0d1216;
  --bg-2: #121a20;
  --panel: #18222a;
  --panel-2: #1f2b34;
  --line: #2b3843;
  --text: #e9edf0;
  --muted: #9eabb6;
  --steel: #7fb0dc;        /* links */
  --navy: #193f66;         /* brand navy of the old site: offer band */
  --accent: #8eb8dc;       /* calls to action, markers */
  --accent-ink: #050b11;   /* text on accent fills */
  --accent-hover: #9fc3e1;
  --accent-soft: #aacae5;  /* accent text on the navy band */
  --accent-text: #8eb8dc;  /* small accent text on dark panels */
  --ok-box: rgba(46, 160, 90, .18); --ok-ink: #3fbf73;  /* benefit check: green on its box (>= 3:1) */
  --photo: #ffffff;        /* product photo backdrop */
  --focus: #e9edf0;        /* focus ring: the accent is too close to the button fill */
  --lede: #c8d1d8;
  --quote: #d3dae0;
  --wrap: 1240px;
  --gut: 20px;
  --r-lg: 12px;            /* big blocks */
  --r-md: 8px;             /* media, menus */
  --r-sm: 6px;             /* controls */
  --sh: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 28px -14px rgba(0, 0, 0, .75);
  --sh-hover: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 38px -16px rgba(0, 0, 0, .85);
  --sh-btn: 0 6px 16px -8px rgba(0, 0, 0, .55);
  --head: "Manrope", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16.5px/1.65 var(--sans); overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--steel); text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); }
.kicker { font: 500 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); flex: none; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; text-align: center;
  font: 700 16px/1.15 var(--head); letter-spacing: 0; text-decoration: none; border: 2px solid transparent; border-radius: var(--r-sm); cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--sh-btn); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6); }
.btn-primary:disabled { background: var(--panel-2); color: #c9d1d8; border-color: var(--accent); cursor: not-allowed; }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ------------------------------------------------------------ header */
.topbar { background: #080c0f; font-size: 13px; color: var(--muted); }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.contacts { display: flex; gap: 22px; list-style: none; font-family: var(--mono); font-size: 12.5px; }
.contacts a { color: var(--muted); text-decoration: none; }
.contacts a:hover { color: #fff; }
header.site { position: sticky; top: 0; z-index: 20; }
.mast { background: rgba(13, 18, 22, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.mast-in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.logo picture, .logo img { width: 156px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; }
.main-nav ul a { display: block; padding: 8px 12px; color: var(--text); text-decoration: none; font: 500 16px/1 var(--head); letter-spacing: 0; }
.main-nav ul a[aria-current], .main-nav ul a:hover { color: var(--accent-text); }
.menu-btn { display: none; }

/* language dropdown + light/dark switch */
.top-tools { display: flex; align-items: center; gap: 8px; }
.langdd { position: relative; }
.langdd summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-sm);
  padding: 5px 10px; border: 1px solid var(--line); font: 500 11.5px/1 var(--mono); letter-spacing: .08em; color: var(--text); }
.langdd summary::-webkit-details-marker { display: none; }
.langdd summary::after { content: ""; flex: none; width: 6px; height: 6px; margin-top: -3px; border: solid var(--accent); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); transition: transform .15s; }
.langdd[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.langdd summary:hover, .langdd[open] summary { border-color: var(--accent); }
.langdd-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; list-style: none; min-width: 168px; margin: 0; padding: 4px;
  background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--r-lg);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); }
.langdd-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--text); text-decoration: none; font: 500 14.5px/1.2 var(--sans); }
.langdd-list .code { font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.langdd-list a:hover, .langdd-list a:focus-visible { background: var(--panel-2); color: var(--accent-text); }
.langdd-list a[aria-current], .langdd-list a[aria-current] .code { color: var(--accent-text); }
.langdd-menu { display: none; }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 24px; padding: 0; border-radius: var(--r-sm);
  background: none; border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.theme-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.theme-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-moon { display: none; }

/* ------------------------------------------------------------ home */
.hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(13, 18, 22, .96) 0%, rgba(13, 18, 22, .78) 45%, rgba(13, 18, 22, .25) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(13, 18, 22, 0) 40%); }
.hero-in { width: 100%; position: relative; z-index: 1; padding-top: 120px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 74px); font-weight: 800; max-width: 15em; line-height: 1.04; }
.lede { font-size: 19px; color: var(--lede); max-width: 40em; }
.lede p:last-child { margin-bottom: 0; }
.intro { padding: 72px 0 24px; }
.intro h2 { font-size: clamp(30px, 3.6vw, 46px); }
.intro-text { max-width: 46em; color: var(--muted); font-size: 18px; }
.seg { display: inline-flex; flex-wrap: wrap; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.seg a { padding: 12px 20px; color: var(--text); text-decoration: none; font: 700 14px/1.2 var(--head); letter-spacing: 0; }
.seg a + a { border-left: 1px solid var(--line); }
.seg a:hover { background: var(--panel); color: var(--accent-text); }

/* ------------------------------------------------------------ cards */
.cards-sec { padding: 56px 0 40px; }
.sec-head { margin-bottom: 28px; }
.sec-head h2, .sec-head h3 { font-size: clamp(26px, 3vw, 38px); }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
/* card grids: the column count comes from the build (layout.grid_cls: cols-d<desktop> cols-t<tablet>), chosen
   so no card is alone on its last row; a short last row is centred */
.cards { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.cards > li { flex: 0 0 calc((100% - (var(--c, 3) - 1) * 18px) / var(--c, 3)); min-width: 0; }
.cols-d1 { --c: 1; } .cols-d2 { --c: 2; } .cols-d3 { --c: 3; } .cols-d4 { --c: 4; } .cols-d5 { --c: 5; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--sh-hover); }
/* product photo: one light studio panel for every card, the product fills ~84% */
.card-img { height: 240px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 75% 70% at 50% 42%, #ffffff 0%, #f1f3f5 55%, #dde2e6 100%); }
.card-img picture { position: absolute; inset: 0; }
.card-img.cut img, .card-img.trim img { position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; object-fit: contain; }
.card-img.trim img { mix-blend-mode: multiply; }
.card-img.scene img, .card-img.studio img { width: 100%; height: 100%; object-fit: cover; }
.card-img.studio img { object-position: 50% 52%; }
.card-img.fit img { position: absolute; left: 6%; top: 6%; width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.card-img.empty { height: 8px; background: var(--accent); }
.card-body { padding: 22px 24px 26px; border-top: 3px solid var(--accent); flex: 1; }
.card-h { font-size: 21px; font-weight: 700; margin: 0 0 12px; line-height: 1.15; }
.card-link .card-h { margin: 0; font-size: 19px; }
/* "All products" tab: the featured brand (Anmasi, a long link list) spans the whole row, photo on the left, links in
   3 columns; 2 on a tablet, 1 on a phone (photo on top). The other brands stay in the normal grid below.
   Sveta #72 (2026-11-16): the links flow DOWN each column first (CSS columns, not a row grid), as on the old site;
   an item never splits across columns and a word never breaks mid-word. */
.cards > .card-wide { flex-basis: 100%; flex-direction: row; }
.card-wide .card-img { flex: 0 0 34%; height: auto; min-height: 280px; }
.card-wide .card-body { border-top: 0; border-left: 3px solid var(--accent); }
.card-wide .sols { display: block; columns: 3; column-gap: 28px; }
.card-wide .sols > li { break-inside: avoid; page-break-inside: avoid; margin-bottom: 6px; overflow-wrap: normal; word-break: normal; hyphens: manual; }
@media (max-width: 1000px) { .card-wide .sols { columns: 2; } }
@media (max-width: 900px) {
  .cards > .card-wide { flex-direction: column; }  /* same specificity as the desktop row rule, or the phone kept the row */
  .card-wide .card-img { flex: none; height: 260px; min-height: 0; }
  .card-wide .card-body { border-left: 0; border-top: 3px solid var(--accent); }
}
@media (max-width: 600px) {
  .card-wide .card-img { height: 210px; }
  .card-wide .sols { columns: 1; }
}
.card-link .card-h a { color: var(--text); text-decoration: none; }
.card-link .card-h a::after { content: "\00a0\2192"; color: var(--accent-text); }  /* arrow never wraps alone */
.card-link .card-h a:hover { color: var(--accent-text); }
.card-link { position: relative; }
.card-link .card-h a::before { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.sols { list-style: none; display: grid; gap: 4px; }
.sols a { color: var(--steel); text-decoration: none; font-size: 15px; display: inline-flex; gap: 8px; }
.sols a::before { content: "\203A"; color: var(--accent-text); font-weight: 600; }
.sols a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------ about */
.about { padding: 96px 0 72px; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 56px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about h2 { font-size: clamp(30px, 3.6vw, 46px); }
.about-copy p { color: var(--muted); }
.about-fig { margin: 0; position: relative; }
.about-fig img { aspect-ratio: 5 / 4; object-fit: cover; width: 100%; filter: grayscale(.25) contrast(1.05); border-radius: var(--r-lg); }
.values { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-top: 64px; border-radius: var(--r-lg); box-shadow: var(--sh); overflow: hidden; }
.values li { background: var(--panel); padding: 30px 26px; }
.values h3 { font-size: 20px; margin: 0 0 8px; }
.values p { color: var(--muted); font-size: 15px; margin: 0; }
.about-page { margin-top: 0; border-top: 0; }
/* about page: the photo takes the height of the text beside it (cover), no empty column under it */
.about-page .about-grid { grid-template-columns: 5fr 7fr; gap: 56px; }
.about .about-grid { align-items: stretch; }
.about-page .about-grid.no-fig { grid-template-columns: 1fr; }
.about .about-fig { min-height: 380px; }
.about .about-fig picture { position: absolute; inset: 0; }
.about .about-fig img { width: 100%; height: 100%; aspect-ratio: auto; }
.about-page .about-copy > :last-child { margin-bottom: 0; }
.about-page .values { margin-top: 56px; }

/* ------------------------------------------------------------ testimonials */
.testimonials { padding: 96px 0; }
.rail-btns { display: flex; gap: 8px; }
.rail-btns[hidden] { display: none; }
.rail-btns button { width: 48px; height: 48px; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); font-size: 18px; cursor: pointer; }
.rail-btns button:hover { border-color: var(--accent); color: var(--accent-text); }
.rail { list-style: none; display: grid; grid-auto-flow: column; align-items: start; grid-auto-columns: calc((100% - 36px) / 3); gap: 18px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-color: var(--line) transparent; }
.quote { scroll-snap-align: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh);
  padding: 32px; display: flex; flex-direction: column; justify-content: space-between; margin: 0; }
.quote::before { content: "\201C"; font: 800 64px/0.6 var(--head); color: var(--accent-text); display: block; height: 30px; }
.quote blockquote { flex: 1; margin: 0 0 20px; color: var(--quote); font-size: 15.5px; }
.who { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; font-size: 14px; }
.who strong { font: 700 16px/1.3 var(--head); }
.who a, .who span { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }

/* ------------------------------------------------------------ offer band + form */
.offer-sec { background: var(--navy); padding: 96px 0; position: relative; }
.offer-sec::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(135deg, var(--accent) 0 14px, var(--bg) 14px 28px); }
.offer-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.offer-copy h2 { font-size: clamp(32px, 3.8vw, 50px); }
.offer-copy h3 { font-size: 22px; }
.offer-copy p { color: #c9d6e2; }
.offer-sec .kicker { color: var(--accent-soft); }
.offer-sec .kicker::before { background: var(--accent-soft); }
.checks, .dash { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.checks li { position: relative; padding-left: 32px; }
/* benefit lists: green check in a small rounded square */
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 5px; background: var(--ok-box); }
.checks li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 10px; height: 5px; border-left: 2px solid var(--ok-ink); border-bottom: 2px solid var(--ok-ink); transform: rotate(-45deg); }
.offer-copy .checks li { font-weight: 600; color: #fff; }
.dash li { position: relative; padding-left: 26px; color: var(--quote); }
.dash li::before { content: ""; position: absolute; left: 3px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.direct { display: grid; gap: 10px; }
.direct a { display: flex; flex-direction: column; padding: 14px 18px; background: rgba(0, 0, 0, .22); border-left: 3px solid var(--accent); border-radius: var(--r-sm);
  color: #fff; text-decoration: none; font: 700 22px/1.2 var(--head); }
.direct a span { font: 500 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #a9bccd; margin-bottom: 4px; }
.direct a:hover { background: rgba(0, 0, 0, .35); color: var(--accent-text); }
.offer-card { background: var(--bg); padding: 40px; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-lg); box-shadow: var(--sh); }
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field label span { color: var(--accent-text); }
.field input, .field textarea { font: 400 16px/1.4 var(--sans); color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 14px; width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.preview-note, .form-note { margin: 0; font: 500 12.5px/1.4 var(--mono); color: var(--accent-text); }
.form-note:empty { min-height: 0; } /* stays in the accessibility tree (live region), never display:none */
.form-note.is-err { color: #ff9b8f; }
:root[data-theme="light"] .form-note.is-err { color: #b42318; }
:root[data-theme="light"] .offer-sec .form-note.is-err { color: #ff9b8f; }
/* honeypot: off screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.offer { position: relative; }
.cf-turnstile { min-height: 65px; }

/* ------------------------------------------------------------ footer */
footer.site { background: #080c0f; color: var(--muted); padding: 72px 0 0; font-size: 15px; border-top: 1px solid var(--line); }
footer.site h2 { font: 700 15px/1.3 var(--head); letter-spacing: 0; color: #fff; margin-bottom: 14px; }
footer.site a { color: var(--text); }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.1fr; gap: 40px; }
.foot-brand picture, .foot-brand img { width: 150px; margin-bottom: 14px; }
.tag { font: 700 15px/1.3 var(--head); color: var(--text); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 56px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); font: 400 12.5px/1.4 var(--mono); }
.foot-base p { margin: 0; }

/* ------------------------------------------------------------ page heroes */
.p-hero { padding: 28px 0 80px; background: radial-gradient(ellipse at 75% 40%, #1d2a35 0%, var(--bg) 60%); border-bottom: 1px solid var(--line); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font: 400 12.5px/1.4 var(--mono); color: var(--muted); margin-bottom: 40px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); }
.p-hero h1 { font-size: clamp(38px, 5.6vw, 76px); font-weight: 800; line-height: 1.04; }
.p-hero h1.fit-l { font-size: clamp(32px, 4.7vw, 64px); }
.hero h1.fit-l { font-size: clamp(30px, 4.6vw, 62px); }  /* home: a long Russian word at 390 px */
.hero h1.fit-xl { font-size: clamp(27px, 4vw, 54px); }
@media (max-width: 1060px) { .cards .card-h { font-size: 17px; } }  /* a long compound word (Estonian) must fit the column */
.p-hero h1.fit-xl { font-size: clamp(28px, 4vw, 54px); }
.page-hero { padding-bottom: 64px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 62px); max-width: 18em; }

/* ------------------------------------------------------------ solution page */
/* hero: copy (7) + photo (5). The photo frame stretches to the row; the "see also" box sits under the photo or,
   when the copy is short, under the buttons (layout.hero_box), so both columns end on the same line */
.p-hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: stretch; }
.p-hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 36px; min-width: 0; }
.p-hero-copy .p-hero-box { max-width: 560px; }
/* a wide product: the frame follows the product's shape (--fa = its aspect / 1.15, so it fills ~73% of the
   height), box under it, the two columns centred on each other */
.p-hero-grid.wide-prod { align-items: center; }
/* short copy beside a wide picture: the see-also links run as one row under both columns */
.p-hero-box.below { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; }
.p-hero-box.below h2 { margin: 0; }
.p-hero-box.below ul { display: flex; flex-wrap: wrap; gap: 0 28px; }
.p-hero-box.below li + li { border-top: 0; }
.p-hero-box.below a::after { margin-left: 8px; }
.wide-prod .p-hero-fig { flex: none; min-height: 0; }
.wide-prod .p-hero-fig .card-img { flex: none; min-height: 0; height: auto; aspect-ratio: var(--fa); }
.p-hero-grid.no-fig { grid-template-columns: 1fr; }
.p-hero-fig { margin: 0; position: relative; flex: 1 1 auto; display: flex; flex-direction: column; min-height: 400px; }
/* "see also" box under the hero photo (same list as the strip at the bottom) */
.p-hero-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.no-fig .p-hero-box { max-width: 440px; }
.p-hero-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 18px 22px 20px; }
.p-hero-box h2 { font: 500 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.p-hero-box h2::before { content: ""; width: 22px; height: 2px; background: var(--accent); flex: none; }
.p-hero-box ul { list-style: none; margin: 0; padding: 0; }
.p-hero-box li + li { border-top: 1px solid var(--line); }
.p-hero-box a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font: 600 15px/1.3 var(--head); color: var(--text); text-decoration: none; }
.p-hero-box a::after { content: "\2192"; color: var(--accent-text); flex: none; }
.p-hero-box a:hover { color: var(--accent-text); }
.p-hero-fig .card-img { flex: 1 1 auto; height: auto; min-height: 400px; border-radius: var(--r-lg); box-shadow: var(--sh); }
.p-split { padding: 88px 0 0; }
.p-split + .p-split { padding-top: 18px; }
/* rows of panels (layout.py): a 12-column row per pair / trio / media row; spans come from the build */
.rows { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; }
.s8 { grid-column: span 8; } .s12 { grid-column: 1 / -1; }
.mrow.flip > .media { order: -1; }
/* the media column takes the row's height: photos fill it (cover, or whole on the studio panel), a video keeps
   at least 16:9 and grows with a taller text */
.media { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.split-photo { margin: 0; position: relative; flex: 1 1 0; min-height: 240px; border-radius: var(--r-lg); box-shadow: var(--sh); overflow: hidden; }
.split-photo .card-img { position: absolute; inset: 0; height: auto; }
.media .video { flex: 1 0 auto; height: auto; }
.panel.vcenter { display: flex; flex-direction: column; justify-content: center; }
.panel.vcenter > * { width: 100%; }
/* one panel across the grid: two text columns when long, a readable measure when short */
.panel.cols-2 { column-count: 2; column-gap: 56px; }
.panel.cols-2 > h2, .panel.cols-2 > .panel-fig { column-span: all; }
.panel.cols-2 :is(.dash, .checks), .spec-prose.cols-2 :is(.dash, .checks) { display: block; }
.panel.cols-2 li, .spec-prose li, .panel.cols-2 li > * { break-inside: avoid; }
.panel.cols-2 :is(.dash, .checks) li, .spec-prose.cols-2 :is(.dash, .checks) li { margin: 0 0 12px; }
.keep { break-inside: avoid; }
.keep > :last-child { margin-bottom: 1em; }
.panel.cols-2 h3 { break-after: avoid; }
.panel.cols-2 > :first-child:not(h2), .panel.cols-2 > h2 + * { margin-top: 0; }
/* one short / calm text across the grid: the BOX takes the readable measure (8 of 12 columns, centred), so
   it is not a half-empty full-width card */
/* single panels span the full content width like every other block (Egor: blocks aligned on both sides) */
.row > .panel.s12.cols-1 { grid-column: 1 / -1; }
.panel.cols-2 h3, .panel.cols-2 h4, .spec-prose.cols-2 h3 { margin-top: 0; break-after: avoid; }
.panel.cols-2 h3, .spec-prose.cols-2 h3 { padding-top: .2em; }
/* short lists (a few words per item) flow into as many columns as fit */
.prose ul.short-list { display: block; columns: 240px; column-gap: 32px; }
.prose ul.short-list li { break-inside: avoid; margin: 0 0 10px; overflow-wrap: normal; word-break: normal; hyphens: manual; }  /* long Estonian compounds never split mid-word */
.s4 > h2, .s5 > h2, .catalog .card-h, .panel:is(.s5, .s6) h2 { font-size: clamp(20px, 1.8vw, 24px); }
.panel.s4 h2, .panel.s4 > h2 { font-size: clamp(17px, 1.65vw, 22px); }  /* a long Estonian compound fits a 4-column panel */
.panel.cont { border-top: 0; }
.panel-logo { display: inline-block; margin: 0 0 22px; padding: 10px 16px; background: #fff; border-radius: var(--r-sm); column-span: all; }
.panel-logo img { height: 40px; width: auto; max-width: none; }
/* specs: segments (prose, list panel, table, photo rows) keep one rhythm */
.specs-body > * + * { margin-top: 28px; }
.specs-body > .prose > :last-child, .specs-body .table-scroll { margin-bottom: 0; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.panels > :only-child, .panels > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.panels > .panel.wide { grid-column: 1 / -1; } /* two unbalanced panels merged into one (build.py merge_unbalanced) */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 36px; min-width: 0; }
.panel h2 { font-size: clamp(24px, 2.4vw, 30px); }
.panel .checks, .panel .dash { margin: 0 0 1em; }
.panel > :last-child { margin-bottom: 0; }
/* a process diagram inside a panel (content image role "diagram"): full panel width, white drawing sheet, opens large */
.panel-fig { margin: 24px 0 0; }
.panel-fig a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; cursor: zoom-in; }
.panel-fig img { display: block; width: 100%; height: auto; }
/* product range: short text + one photo per item -> cards (photo on top) */
.catalog .card-img { height: 250px; }
.catalog .card-body { border-top-width: 3px; }
.catalog .card-h { font-size: 20px; margin: 0 0 10px; }
.catalog .card-body p, .catalog .card-body li { font-size: 15px; color: var(--muted); }
.card-static:hover { transform: none; border-color: var(--line); box-shadow: var(--sh); }
.photo-row { margin-top: 24px; }
.photo-row .card-img { height: 320px; }
/* specs: short lists side by side in one panel (modules / options), long prose in two columns */
.spec-lists { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 24px 56px; margin: 0 0 28px; }
.spec-lists h2 { font-size: clamp(22px, 2vw, 26px); }
.spec-lists .dash { margin: 0; }
.spec-lists .sub2 .dash { display: block; column-count: 2; column-gap: 40px; }
.spec-lists .sub2 .dash li { break-inside: avoid; margin: 0 0 10px; }
.spec-prose.cols-2 { column-count: 2; column-gap: 56px; }
.spec-prose.cols-1 > * { max-width: 74ch; }
.specs-body > .rows { margin: 8px 0 0; }
.video-text > * { max-width: 74ch; }
.video-fig { margin: 0; }
.video-fig figcaption h2 { font-size: clamp(20px, 1.9vw, 24px); margin: 16px 0 0; }
.gallery .g-fit img { object-fit: contain; background: #fff; }
.p-gallery, .p-specs, .p-video { padding: 88px 0 0; }
.gallery { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gallery > li { flex: 0 0 calc((100% - (var(--c, 3) - 1) * 6px) / var(--c, 3)); min-width: 0; }
.gallery a { display: block; position: relative; overflow: hidden; border-radius: var(--r-md); }
.gallery a::after { content: "+"; position: absolute; right: 0; bottom: 0; width: 40px; height: 40px; background: var(--accent); color: var(--accent-ink);
  font: 700 24px/40px var(--head); text-align: center; opacity: 0; transition: opacity .2s; border-radius: var(--r-md) 0 0 0; }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-lg); box-shadow: var(--sh); margin: 0 0 1em; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
/* only wide model tables (4+ columns) keep a minimum width and scroll sideways; 2-3 column spec tables wrap on phones */
.table-scroll table:has(tr > :nth-child(4)) { min-width: 560px; }
.table-scroll th, .table-scroll td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll thead th { font: 700 16px/1.2 var(--head); color: var(--accent-ink); background: var(--accent); }
.table-scroll tbody td { font-family: var(--mono); font-size: 13.5px; color: var(--text); }
.table-scroll tbody td:first-child { font-family: var(--sans); font-size: 14.5px; color: var(--muted); position: sticky; left: 0; background: var(--panel-2); min-width: 170px; }
.table-scroll tbody tr:hover td { background: #22303a; }
.specs-body { max-width: none; }
.videos { display: grid; gap: 18px; }
.videos-2 { grid-template-columns: 1fr 1fr; }
.video, iframe.video { position: relative; display: block; aspect-ratio: 16 / 9; width: 100%; background: #000; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh); overflow: hidden; }
.video picture, .video img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: filter .2s; }
.video:hover img { filter: brightness(1.06); }
.video .play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--accent); border-radius: var(--r-md); }
.video .play::after { content: ""; position: absolute; left: 35px; top: 28px; border-left: 24px solid var(--accent-ink); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.video-plain { background: radial-gradient(ellipse at 50% 50%, #22303a 0%, #0b1014 70%); }
.video-src { position: absolute; left: 16px; bottom: 12px; font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.related-cards { padding-top: 88px; }
.family + .family { padding-top: 40px; }
/* same-brand "see also" list: the concept's compact link strip */
.p-related { border-top: 1px solid var(--line); padding: 36px 0; background: var(--bg-2); margin-top: 88px; }
.p-hero + .p-related { margin-top: 0; }  /* a page with no blocks under the hero (Eritellimusel) */
.related-in { display: flex; gap: 24px; align-items: baseline; flex-wrap: wrap; }
.related-in h2 { font: 500 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin: 0; }
.related-in ul { list-style: none; display: flex; gap: 12px 24px; flex-wrap: wrap; }
.related-in a { font: 700 20px/1.2 var(--head); color: var(--text); text-decoration: none; }
.related-in a::after { content: "\00a0\2192"; color: var(--accent-text); }
.related-in a:hover { color: var(--accent-text); }
.related-cards .card-img:not(.empty) { height: 200px; }
.tpl-solution main > section:last-child:not(.offer-sec):not(.p-related) { padding-bottom: 88px; }

/* content text from the old site (headings, lists, tables inside panels and pages) */
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 1.2em; }
.prose h3 { font-size: 21px; margin-top: 1.2em; }
.prose h4 { font-size: 18px; margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose ul:not(.checks):not(.dash), .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--accent-text); }

/* ------------------------------------------------------------ listing tabs */
.listing { padding: 64px 0 24px; }
.listing-h { font-size: clamp(28px, 3.2vw, 42px); }
.tabs .tablist { margin: 8px 0 36px; }
.tabpanel { padding-top: 8px; }
.tabpanel + .tabpanel { margin-top: 56px; }
.tabpanel-h { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 24px; }
.tabs-on .tabpanel + .tabpanel { margin-top: 0; }
.tabs-on .tabpanel-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabs-on .tablist a[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.tabpanel[hidden] { display: none; }

/* ------------------------------------------------------------ text pages, contact, testimonial */
.text-body { padding: 64px 0 88px; }
.prose-long { max-width: 720px; }
.prose-long h2 { margin-top: 1.6em; }
.contact-sec { margin-top: 0; }
.contact-sec .direct { margin-top: 24px; }
.map-sec { padding: 0; background: var(--bg-2); }
.map { padding: 56px 0; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; border-radius: var(--r-lg); box-shadow: var(--sh); filter: grayscale(.2); }
.testimonial-one { padding: 72px 0 96px; }
.quote-big { max-width: 860px; padding: 44px; }
.quote-big blockquote { font-size: 20px; line-height: 1.6; }
.quote-big .who strong { font-size: 18px; }

/* ------------------------------------------------------------ lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(5, 8, 10, .95); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; border-radius: var(--r-md); }
.lightbox button { position: absolute; background: var(--accent); border: 0; border-radius: var(--r-sm); color: var(--accent-ink); font: 700 14px/1 var(--head); padding: 12px 16px; cursor: pointer; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; }
.lb-next { right: 12px; top: 50%; }
body.lb-open { overflow: hidden; }

/* ------------------------------------------------------------ tablet */
@media (max-width: 1060px) {
  .main-nav { gap: 16px; }
  .main-nav ul a { padding: 8px 7px; font-size: 14px; }
  .cols-t1 { --c: 1; } .cols-t2 { --c: 2; } .cols-t3 { --c: 3; } .cols-t4 { --c: 4; }
  .rail { grid-auto-columns: calc((100% - 18px) / 2); }
  .values { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .p-hero-fig, .p-hero-fig .card-img { min-height: 340px; }
  .panel.cols-2 { column-gap: 40px; }
}
/* narrow tablet: the desktop nav no longer fits, use the menu button */
@media (max-width: 900px) {
  .cols-t4 { --c: 3; }
  .mast-in { min-height: 64px; flex-wrap: wrap; }
  .logo picture, .logo img { width: 124px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; background: none; border: 1px solid var(--line); border-radius: var(--r-sm);
    color: var(--text); font: 700 14px/1 var(--head); cursor: pointer; }
  .bars, .bars::before, .bars::after { display: block; width: 16px; height: 2px; background: var(--accent); position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -5px; }
  .bars::after { top: 5px; }
  .main-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 14px; padding: 0 0 18px; max-height: calc(100vh - 110px); overflow-y: auto; }
  /* hidden only once site.js has wired the menu button (html.menu-ready); if the
     script fails to load the menu simply stays open */
  .menu-ready .main-nav { display: none; }
  .menu-ready .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .langdd-menu { display: block; border-top: 1px solid var(--line); padding-top: 4px; }
  .langdd-menu summary { width: 100%; justify-content: space-between; border: 0; padding: 12px 0; font-size: 13px; }
  .langdd-menu summary::before { content: attr(data-label); font-family: var(--sans); letter-spacing: 0; color: var(--muted); margin-right: auto; }
  .langdd-menu .langdd-cur { margin-right: 8px; }
  .langdd-menu .langdd-list { position: static; min-width: 0; box-shadow: none; }
  /* the menu's own ".main-nav ul a" rules must not leak into the language list */
  .main-nav ul.langdd-list a { display: flex; justify-content: space-between; padding: 11px 12px; border-bottom: 0; font: 500 15px/1.2 var(--sans); color: var(--text); }
  .main-nav ul.langdd-list a[aria-current] { color: var(--accent-text); }
}
/* ------------------------------------------------------------ mobile */
@media (max-width: 760px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 110px; }
  .contacts li + li { display: none; }
  .hero { min-height: 0; }
  .hero::after { background: linear-gradient(0deg, rgba(13, 18, 22, 1) 10%, rgba(13, 18, 22, .78) 60%, rgba(13, 18, 22, .55) 100%); }
  .hero-in { padding-top: 64px; padding-bottom: 48px; }
  .lede { font-size: 17px; }
  .actions .btn { flex: 1 1 auto; }
  .intro { padding: 48px 0 8px; }
  .seg { display: flex; flex-direction: column; }
  .seg a + a { border-left: 0; border-top: 1px solid var(--line); }
  .cards-sec { padding: 40px 0 24px; }
  .cards, .cards[class] { --c: 1; gap: 12px; }
  .card-img { height: 210px; }
  .card-body { padding: 16px 18px 20px; }
  .card-h { font-size: 18px; }
  .about { padding: 64px 0 48px; margin-top: 32px; }
  .about-page { margin-top: 0; }
  .about .about-fig { min-height: 0; aspect-ratio: 5 / 4; }
  .about-page .about-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .about-grid, .offer-grid, .p-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .values { grid-template-columns: 1fr; margin-top: 40px; }
  .testimonials, .offer-sec { padding: 64px 0; }
  .sec-head.row { flex-direction: column; align-items: flex-start; }
  .rail { grid-auto-columns: 86%; gap: 12px; }
  .quote { padding: 26px; }
  .quote-big { padding: 28px; }
  .quote-big blockquote { font-size: 17.5px; }
  .offer-card { padding: 22px; margin: 0 calc(var(--gut) * -1); border-radius: 0; }
  .offer { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .direct a { font-size: 19px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .crumbs ol { margin-bottom: 24px; }
  .p-hero { padding-bottom: 56px; }
  .p-hero-side { display: contents; }
  .p-hero-fig { order: -1; }
  .p-hero-box { order: 1; max-width: none; }
  .p-hero-fig { min-height: 0; flex: none; }
  .p-hero-fig .card-img { flex: none; height: 280px; min-height: 0; }
  .wide-prod .p-hero-fig .card-img { height: auto; }
  .p-hero-copy { gap: 28px; }
  .p-split { padding-top: 56px; }
  .panels, .videos-2 { grid-template-columns: 1fr; gap: 12px; }
  .rows, .row { gap: 12px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row > * { grid-column: 1 / -1; }
  .mrow.flip > .media { order: 0; }
  .media { gap: 12px; }
  .split-photo { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .panel.cols-2, .spec-prose.cols-2 { column-count: 1; }
  .spec-lists[style] { grid-template-columns: minmax(0, 1fr) !important; }
  .spec-lists .sub2 .dash { column-count: 1; }
  .catalog .card-img, .photo-row .card-img { height: 240px; }
  .panel { padding: 24px; }
  .gallery, .gallery[class] { --c: 2; gap: 4px; }
  .gallery > li { flex-basis: calc((100% - 4px) / 2); }
  .gallery > li:last-child:nth-child(odd) { flex-basis: 100%; }
  .p-gallery, .p-specs, .p-video, .related-cards { padding-top: 56px; }
  .p-related { margin-top: 56px; }
  .related-in a { font-size: 18px; }
  
  .tpl-solution main > section:last-child:not(.offer-sec):not(.p-related) { padding-bottom: 56px; }
  .table-scroll tbody td:first-child { min-width: 140px; }
  
  .listing { padding-top: 40px; }
  .text-body { padding: 40px 0 56px; }
  .map { padding: 32px 0; }
  .map iframe { height: 320px; }
}

/* ------------------------------------------------------------ light theme
   Dark stays the default. In light mode the top bar, the navy offer band, the footer
   and the lightbox stay dark ("dark islands"): they re-declare the dark tokens.
   Light accent #356a97: white ink on it 5.7:1, as text on the light page 5.3:1 (AA). */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f8; --bg-2: #eaeff3; --panel: #ffffff; --panel-2: #e6edf3; --line: #d2dbe3;
  --text: #0f1a22; --muted: #55636f; --steel: #2f6390;
  --accent: #356a97; --accent-ink: #ffffff; --accent-hover: #2f6390; --accent-text: #356a97;
  --focus: #0f1a22; --lede: #2c3a45; --quote: #2c3a45;
  --ok-box: rgba(35, 133, 79, .14); --ok-ink: #1f7a48;
  --sh: 0 1px 2px rgba(15, 26, 34, .05), 0 10px 26px -14px rgba(15, 26, 34, .22);
  --sh-hover: 0 2px 4px rgba(15, 26, 34, .06), 0 18px 36px -16px rgba(15, 26, 34, .3);
  --sh-btn: 0 6px 14px -8px rgba(31, 70, 105, .55);
}
:root[data-theme="light"] :is(.topbar, .offer-sec, footer.site, .lightbox) {
  --bg: #0d1216; --bg-2: #121a20; --panel: #18222a; --panel-2: #1f2b34; --line: #2b3843;
  --text: #e9edf0; --muted: #9eabb6; --steel: #7fb0dc;
  --accent: #8eb8dc; --accent-ink: #050b11; --accent-hover: #9fc3e1; --accent-text: #8eb8dc;
  --focus: #e9edf0; --lede: #c8d1d8; --quote: #d3dae0;
  --ok-box: rgba(46, 160, 90, .18); --ok-ink: #3fbf73;
  --sh: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 28px -14px rgba(0, 0, 0, .75);
  color: var(--text);
}
:root[data-theme="light"] .theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-moon { display: block; }
:root[data-theme="light"] .mast { background: rgba(244, 246, 248, .94); }
:root[data-theme="light"] .hero::after { background:
  linear-gradient(90deg, rgba(244, 246, 248, .97) 0%, rgba(244, 246, 248, .84) 45%, rgba(244, 246, 248, .2) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(244, 246, 248, 0) 40%); }
:root[data-theme="light"] .btn-ghost { border-color: rgba(15, 26, 34, .45); color: var(--text); }
:root[data-theme="light"] .btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
:root[data-theme="light"] .p-hero { background: radial-gradient(ellipse at 75% 40%, #dde7f0 0%, var(--bg) 60%); }
:root[data-theme="light"] .sols a:hover { color: var(--accent-text); }
/* FIX-30: hovered spec-table row in light mode: light row fill, dark ink (the sticky first column too) */
:root[data-theme="light"] .table-scroll tbody tr:hover td { background: #d5e1ec; color: var(--text); }
:root[data-theme="light"] .table-scroll tbody tr:hover td:first-child { background: #c9d8e6; color: var(--text); }
:root[data-theme="light"] .btn-primary:disabled { color: #55636f; }
:root[data-theme="light"] .offer-sec .btn-primary:disabled { color: #c9d1d8; }
:root[data-theme="light"] .langdd-list { box-shadow: 0 18px 40px -18px rgba(15, 26, 34, .35); }
:root[data-theme="light"] .video-plain { background: radial-gradient(ellipse at 50% 50%, #2b3843 0%, #121a20 70%); }
@media (max-width: 760px) {
  :root[data-theme="light"] .hero::after { background: linear-gradient(0deg, rgba(244, 246, 248, 1) 10%, rgba(244, 246, 248, .84) 60%, rgba(244, 246, 248, .6) 100%); }
}

/* ------------------------------------------------------------ site search (FIX-26) */
.site-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.site-search:focus-within { border-color: var(--accent); }
.site-search input { min-width: 0; border: 0; background: none; color: var(--text); font: 400 14px/1.2 var(--sans); padding: 4px 8px; }
.site-search input:focus { outline: none; }
.site-search input::placeholder { color: var(--muted); }
.site-search button { display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--text); cursor: pointer; padding: 0 8px; align-self: stretch; }
.site-search button:hover { color: var(--accent-text); }
.site-search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.site-search-top input { width: 190px; height: 24px; font-size: 12.5px; }
.site-search-menu { display: none; }
.site-search-page { max-width: 640px; margin-top: 24px; padding: 4px; }
.site-search-page input { flex: 1; font-size: 17px; padding: 10px 12px; }
.site-search-page .btn { padding: 12px 22px; }
.search-body { padding: 48px 0 88px; }
.search-status { color: var(--muted); }
.search-all { margin: 8px 0 0; }
.search-results { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; max-width: 860px; }
.search-results li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 22px; }
.search-results a { font: 700 19px/1.3 var(--head); color: var(--text); text-decoration: none; }
.search-results a:hover, .search-results a:focus-visible { color: var(--accent-text); text-decoration: underline; }
.search-results a::after { content: " \2197"; color: var(--accent-text); font-weight: 400; }
/* result thumbnail on the right: same light studio panel as .card-img */
.search-results li.has-thumb { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 18px; align-items: center; }
.sr-text { min-width: 0; }
.sr-thumb { position: relative; display: block; width: 112px; height: 112px; overflow: hidden; border-radius: var(--r-sm); background: radial-gradient(ellipse 75% 70% at 50% 42%, #ffffff 0%, #f1f3f5 55%, #dde2e6 100%); }
.sr-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-thumb.cut img, .sr-thumb.trim img { inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.sr-thumb.trim img { mix-blend-mode: multiply; }
@media (max-width: 640px) {
  .search-results li.has-thumb { grid-template-columns: minmax(0, 1fr) 72px; gap: 12px; padding: 14px 16px; }
  .sr-thumb { width: 72px; height: 72px; }
}
.search-results p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.search-results mark { background: none; color: var(--text); font-weight: 600; }
@media (max-width: 900px) {
  .site-search-top { display: none; }
  .site-search-menu { display: flex; margin-top: 4px; }
  .site-search-menu input { flex: 1; font-size: 16px; padding: 10px 12px; }
  .site-search-menu button { padding: 0 14px; }
}
.site-search .btn-primary { background: var(--accent); color: var(--accent-ink); border-radius: var(--r-sm); }
.site-search .btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }

/* Vertex video poster: the burned-in caption sits on the left, keep it in the cover crop */
.video img[src*="yt-E_QYQEl7vWo"] { object-position: 0% 50%; }

/* hero with the see-also box under the copy (box-left): the photo column always runs as tall as the copy column
   (Egor: either bump see-also up or make the image taller) */
.p-hero-grid.box-left { align-items: stretch; }
.p-hero-grid.box-left .p-hero-fig { flex: 1 1 auto; }
.p-hero-grid.box-left .p-hero-fig .card-img { flex: 1 1 auto; aspect-ratio: auto; height: auto; min-height: 400px; }
@media (max-width: 760px) {
  .p-hero-grid.box-left .p-hero-fig .card-img { flex: none; height: 280px; min-height: 0; }
}

/* every hero: the photo column runs exactly as tall as the copy column (no column ending early);
   product cutouts stay contained inside the stretched studio frame */
.p-hero-grid, .p-hero-grid.wide-prod { align-items: stretch; }
.p-hero-grid .p-hero-fig, .wide-prod .p-hero-fig { flex: 1 1 auto; min-height: 0; }
.p-hero-grid .p-hero-fig .card-img, .wide-prod .p-hero-fig .card-img { flex: 1 1 auto; aspect-ratio: auto; height: auto; min-height: 340px; }
.table-scroll { width: 100%; }
@media (max-width: 760px) {
  .p-hero-grid .p-hero-fig .card-img, .wide-prod .p-hero-fig .card-img { flex: none; height: 280px; min-height: 0; }
}

/* several text+media rows stacked in one section: same split and same side in every row, so text and
   photos line up as columns down the page (Egor: Hydroblend rows were zigzag with different widths) */
.rows:has(> .mrow + .mrow) > .mrow > .panel { grid-column: span 6; }
.rows:has(> .mrow + .mrow) > .mrow > .media { grid-column: span 6; }
.rows:has(> .mrow + .mrow) > .mrow.flip > .media { order: 0; }

/* emphasis exception (Egor 2026-11-05): a single benefits panel (green-check list) may sit as a centred,
   narrower block; every other single panel stays full width */
.row > .panel.s12.cols-1:has(ul.checks) { grid-column: 3 / span 8; }
@media (max-width: 1024px) { .row > .panel.s12.cols-1:has(ul.checks) { grid-column: 1 / -1; } }

/* centred benefits block gets extra air above and below: set apart by position AND spacing (Egor 2026-11-06) */
.row:has(> .panel.s12.cols-1 ul.checks) { margin-block: 40px; }
@media (max-width: 1024px) { .row:has(> .panel.s12.cols-1 ul.checks) { margin-block: 20px; } }
