/* EstimaKM — one motif: the chamfered plate of the EstimaKM seal. */
@font-face { font-family: "Golos Text"; src: url(fonts/golos-cyr.woff2) format("woff2"); font-weight: 400 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; src: url(fonts/golos-lat.woff2) format("woff2"); font-weight: 400 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  /* palette H (Petar 2026-11-23): warm cream paper, navy fields, one blue accent; each licence domain still owns a colour */
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: #ece6db;
  --surface-2: #ddd5c6;
  --ink: #0d1b2e;
  --soft: #4c5566;
  --blue: #0d2a4f;
  --blue-hi: #163a68;
  --yellow: #1a63c4;
  --yellow-hi: #1f6fd6;
  --teal: #1d6f8a;
  --field: #0d2a4f;
  --field-hi: #163a68;
  --field-deep: #081b34;
  --field-ink: #f7f4ee;
  --field-soft: #cfd3d8;
  --accent: #1a63c4;
  --on-accent: #ffffff;
  --accent-light: #8bbcf7;
  --accent-text: #1a5aae;
  --sheen: rgba(255,255,255,.28);
  --photo: none;  /* the photos carry their own colour since 2026-11-03 */

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.875rem);
  --step-head: clamp(2rem, 1.2rem + 3.2vw, 4.25rem);
  --step-display: clamp(2.6rem, 1rem + 4.6vw, 5.75rem);

  --m: clamp(16px, 2.4vw, 36px);      /* the one pair of outer margins */
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(96px, 12vw, 200px);
  --hd: 84px;                          /* sticky header height: anchors land below it */
  --c: 14px;                           /* chamfer for small things */

  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms; --t-hover: 200ms; --t-ui: 260ms; --t-reveal: 700ms; --t-open: 1300ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  -webkit-tap-highlight-color: transparent;
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.55 "Golos Text", system-ui, sans-serif;
  font-feature-settings: "locl" 1; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--field); color: var(--field-ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.field :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .svc-top :focus-visible, .pg-top :focus-visible { outline-color: var(--accent-light); }
[data-dom="ps"] :focus-visible { outline-color: var(--field); }
.btn:focus-visible, .oct:focus-visible, .lang:focus-visible, .menu-btn:focus-visible, .art-row:focus-visible, .hd-tel:focus-visible, .qa summary:focus-visible { outline: 3px solid currentColor; outline-offset: -7px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -100px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip:focus { top: 10px; }

.wrap { padding-inline: var(--m); max-width: 1680px; margin-inline: auto; }

/* ── the motif ─────────────────────────────────────────────── */
.oct {
  --k: var(--c);
  clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)),
    calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k));
}
.dot { /* the plate at text size: bullets, markers */
  display: inline-block; width: 0.62em; height: 0.62em; flex: none; background: var(--blue);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

/* ── buttons: one shape, the plate ─────────────────────────── */
.btn {
  --k: 12px;
  display: inline-flex; align-items: center; gap: 0.7em; min-height: 56px; padding: 0 30px;
  border: 0; background: var(--field); color: var(--field-ink); text-decoration: none;
  font-weight: 600; font-size: var(--step-body); letter-spacing: -0.01em;
  clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)),
    calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k));
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after { /* one slow sheen, primary only */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sheen);
  transform: translateX(-130%) skewX(-18deg); transition: transform 600ms var(--ease-out);
}
.btn:hover { background: var(--field-hi); }
.btn:hover::after { transform: translateX(130%) skewX(-18deg); }
.btn:active { transform: scale(0.97); }
.btn .arrow { transition: transform var(--t-ui) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.hero .btn:not(.quiet), .field .btn:not(.quiet), .svc-top .btn:not(.quiet) { background: var(--yellow); color: var(--on-accent); }
.hero .btn:not(.quiet):hover, .field .btn:not(.quiet):hover, .svc-top .btn:not(.quiet):hover { background: var(--yellow-hi); }
[data-dom="ps"] .btn:not(.quiet) { background: var(--field) !important; color: #fff !important; }
.hero .btn.quiet, .svc-top .btn.quiet { background: rgba(7,26,51,.3); color: inherit; }
.hero .btn.quiet:hover, .svc-top .btn.quiet:hover { background: rgba(7,26,51,.46); }
[data-dom="ps"] .btn.quiet { background: rgba(7,26,51,.28) !important; color: #fff !important; }
[data-dom="ps"] .btn.quiet:hover { background: rgba(7,26,51,.4) !important; }
.btn.quiet { background: var(--surface); color: var(--ink); }
.btn.quiet:hover { background: var(--surface-2); }
.field .btn.quiet { background: rgba(7,26,51,.3); color: var(--field-ink); }
.field .btn.quiet:hover { background: rgba(7,26,51,.46); }
[data-dom="nb"] .btn.quiet { background: rgba(255,255,255,.14); }
[data-dom="nb"] .btn.quiet:hover { background: rgba(255,255,255,.24); }


/* ── header ────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); transition: background-color var(--t-ui) ease; }
.site-header.scrolled { background: var(--surface); box-shadow: 0 1px 0 rgb(11 26 43 / .10), 0 10px 24px -14px rgb(11 26 43 / .22); }
.bar { display: flex; align-items: center; gap: 32px; height: 84px; }
.brand { display: block; width: 148px; flex: none; padding-block: 6px; transition: transform var(--t-ui) var(--ease-out); }
.brand:hover { transform: scale(1.03); }
.brand img { width: 100%; height: auto; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 14px; text-decoration: none; font-weight: 500; font-size: var(--step-body);
  transition: color var(--t-hover) ease;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current]::after { background: var(--blue); }
.nav a[aria-current]:hover::after { background: var(--accent); }
.lang {
  --k: 8px; text-decoration: none; border: 0; background: var(--surface); padding: 10px 16px; font-weight: 600; font-size: var(--step-small);
  white-space: nowrap; flex: none; display: inline-flex; align-items: center; min-height: 44px;
  clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)),
    calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k));
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.site-header.scrolled .lang { background: var(--surface-2); }
.lang:hover { background: var(--surface-2); }
.lang:active { transform: scale(0.95); }
.lang b { color: var(--accent-text); }
.hd-tel { --k: 8px; display: inline-flex; align-items: center; gap: 8px; flex: none; font-weight: 600; font-size: var(--step-small); text-decoration: none; white-space: nowrap; color: var(--blue-hi); transition: color var(--t-hover) ease; }
.hd-tel:hover { color: var(--ink); }
.hd-tel svg { flex: none; }
.nav + .hd-tel { margin-left: -8px; }
@media (max-width: 999px) { .hd-tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (min-width: 761px) and (max-width: 999px) {
  .hd-tel { width: 44px; height: 44px; justify-content: center; background: var(--surface);
    clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }
  .site-header.scrolled .hd-tel { background: var(--surface-2); }
}
@media (min-width: 761px) and (max-width: 999px) { .bar { gap: 16px; } .nav { gap: 0; } .nav a { padding-inline: 9px; } .nav a::after { left: 9px; right: 9px; } }
@media (min-width: 1000px) { .hd-tel { padding-block: 10px; min-height: 44px; } }
.menu-btn { display: none; }

/* ── type helpers ──────────────────────────────────────────── */
.display { font-size: var(--step-display); letter-spacing: -0.045em; line-height: 0.92; }
.head { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; }
.small { font-size: var(--step-small); }
.soft { color: var(--soft); }
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.title-row .aside { font-size: var(--step-body); color: var(--soft); display: inline-flex; align-items: center; gap: 0.6em; }

/* ── hero (home) ───────────────────────────────────────────── */
.hero { position: relative; overflow: clip; background: var(--blue); color: #fff; padding-top: clamp(28px, 3.4vw, 56px); }
/* The motto is a logo lockup: one font size, one width at every screen. --fs fits line 2 to the width; flex spreads the rest. */
.lockup { --fs: .0562; container-type: inline-size; font-weight: 700; letter-spacing: 0; line-height: 1.04; text-wrap: nowrap; }
.lockup:lang(en) { --fs: .0635; }
.lockup .l1, .lockup .l2 { display: flex; justify-content: space-between; font-size: calc(100cqw * var(--fs)); }
.lockup .l1 { color: var(--accent-light); }
.lockup .w { display: inline-flex; }
.lockup .c { display: inline-block; white-space: pre; }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); min-height: clamp(420px, 56svh, 640px); margin-top: clamp(20px, 2.4vw, 40px); }
.hero-copy { grid-column: 1 / span 6; align-self: center; padding-block: 16px 56px; position: relative; z-index: 2; }
.motto { margin-top: 18px; display: inline-flex; align-items: center; gap: 0.6em; color: #fff; font-size: var(--step-small); }
.motto-top { display: flex; margin: 0 0 10px; color: #fff; }
.hero-plain { font-size: var(--step-lead); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; max-width: 30ch; text-wrap: pretty; }
.hero-text { margin-top: 18px; max-width: 58ch; }
.hero-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { grid-column: 7 / span 6; position: relative; margin-right: calc(-1 * var(--m) - 9vw); }
.plate {
  --k: clamp(48px, 7vw, 120px);
  position: absolute; inset: 0; background: var(--field);
}
.plate .frame { position: absolute; inset: 0; }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--photo, grayscale(.4)); }
.xfade img { opacity: 0; transition: opacity 1600ms ease, transform 7s linear; transform: scale(1.06); }
.xfade img.on { opacity: 1; transform: scale(1); z-index: 2; }
@media (min-width: 1081px) { .xfade img:nth-child(1) { object-position: 50% 16%; } .conf-pic { margin-left: calc(-1 * var(--m) - 2vw); } .conf-pic img { object-position: 0 50%; } }
.xfade img.was { opacity: 1; z-index: 1; transition: transform 7s linear; }
.no-js .xfade img:first-child { opacity: 1; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 8px; margin-top: -36px; padding-bottom: clamp(28px, 3vw, 48px); position: relative; z-index: 3; color: var(--ink); }
.tile { --k: 18px; background: #fffdf9; transition: transform var(--t-ui) var(--ease-out); padding: 28px 28px 26px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.tile.y { background: var(--yellow); color: var(--on-accent); }
.tile.red { background: var(--field); color: var(--field-ink); }
.tile.red p { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; max-width: 30ch; }
.tile .num { display: block; width: auto; height: auto; background: none; color: inherit; white-space: nowrap; font-size: var(--step-head); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile p { margin-top: 10px; }
.tile { position: relative; }
.tile-link { display: flex; flex-direction: column; justify-content: space-between; flex: 1; color: inherit; text-decoration: none; }
.tile-link::after { content: ""; position: absolute; inset: 0; } /* the whole plate is the target */
.tile:has(.tile-link):hover { transform: translateY(-3px); }
.tile .tile-link:focus-visible { outline-offset: -6px; }

/* ── services (home) ───────────────────────────────────────── */
.section { padding-top: var(--section); }
.svc-head { margin-bottom: clamp(48px, 6vw, 96px); }
.conf { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; }
.conf-pic { grid-column: 1 / span 5; margin-left: calc(-1 * var(--m) - 4vw); height: min(78svh, 760px); position: relative; }
.conf-pic .oct { --k: clamp(40px, 5vw, 90px); position: absolute; inset: 0; overflow: hidden; }
.conf-pic img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo, grayscale(.4)); transform: scale(var(--s, 1.08)); transition: transform 120ms linear; }
.conf-body { grid-column: 7 / span 6; }
.conf-body h3 { font-size: var(--step-head); }
.conf-body .reg { margin-top: 28px; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; letter-spacing: -0.015em; }
.conf-body .reg a { text-decoration-thickness: 2px; text-underline-offset: 0.18em; transition: color var(--t-hover) ease; }
.conf-body .reg a:hover { color: var(--field); }
.nb-row { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nb-row > div { display: flex; }
.nb-row .doc-btn { height: 100%; }
.nb {
  --k: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 26px 28px;
  background: var(--yellow); color: var(--on-accent); text-decoration: none; min-height: 190px;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.nb strong { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.nb span { display: inline-flex; align-items: center; gap: 0.5em; font-size: var(--step-small); opacity: .85; }
.nb:hover { background: var(--yellow-hi); }
.nb:active { transform: scale(0.98); }

.doc-btn { /* "Лицензия EstimaKM / Прегледай документа" */
  --k: 22px; display: flex; align-items: center; gap: 18px; padding: 22px 24px; border: 0; text-align: left;
  background: var(--surface); width: 100%; min-height: 120px;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.doc-btn:hover { background: var(--surface-2); }
.doc-btn:active { transform: scale(0.98); }
.doc-btn .pdf {
  --k: 9px; flex: none; display: grid; place-items: center; width: 58px; height: 70px; background: var(--ink); color: var(--bg);
  font-size: var(--step-small); font-weight: 700; letter-spacing: 0.02em; transition: transform var(--t-ui) var(--ease-out);
}
.doc-btn:hover .pdf { transform: translateY(-3px) rotate(-3deg); }
.nw { white-space: nowrap; }
.doc-btn strong { display: block; font-size: var(--step-body); font-weight: 600; }
.doc-btn small { display: block; margin-top: 2px; font-size: var(--step-small); color: var(--soft); }
.field .doc-btn { background: rgba(7,26,51,.3); color: var(--field-ink); }
.field .doc-btn:hover { background: rgba(7,26,51,.46); }
[data-dom="nb"] .doc-btn, .panel .doc-btn { background: rgba(255,255,255,.09) !important; }
[data-dom="nb"] .doc-btn:hover, .panel .doc-btn:hover { background: rgba(255,255,255,.16) !important; }
[data-dom="ps"]:not(:has(.panel)) .doc-btn { background: rgba(7,26,51,.28); }
[data-dom="ps"]:not(:has(.panel)) .doc-btn:hover { background: rgba(7,26,51,.4); }
.field .doc-btn small { color: var(--field-soft); }
.field .doc-btn .pdf { background: var(--field-ink); color: var(--field); }

/* the red field: technical supervision № 736 — the live switcher */
[data-dom="as"] { --dom: var(--blue); --field-ink: #fff; --field-soft: #f6fafe; }
[data-dom="ps"] { --dom: var(--yellow); --field-ink: #fff; --field-soft: #eef5fc; }
[data-dom="sn"] { --dom: var(--teal); --field-ink: #fff; --field-soft: #eaf7f8; }
[data-dom="nb"] { --dom: var(--field); --field-ink: #f7f4ee; --field-soft: #cfd3d8; }
.field { background: var(--dom, var(--field)); color: var(--field-ink); transition: background-color 600ms var(--ease-out), color 400ms ease; margin-top: var(--section); padding-block: clamp(80px, 9vw, 150px); }
.field h3.head { color: var(--field-ink); max-width: 18ch; }
.sup { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.sup-left { grid-column: 1 / span 6; }
.tabs { display: flex; flex-direction: column; gap: 4px; }
.tab {
  --k: 16px; display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; border: 0;
  padding: 18px 22px; background: transparent; color: var(--field-ink);
  font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease, padding var(--t-ui) var(--ease-out);
}
.tab .dot { background: currentColor; transition: transform var(--t-ui) var(--ease-out), background-color var(--t-ui) ease; }
.tab:hover { background: rgba(127,127,127,.16); }
.tab[aria-selected="true"] { background: var(--field-deep); color: #fff; }
.tab[aria-selected="true"] .dot { background: var(--yellow); transform: scale(1.25) rotate(45deg); }
.panels { margin-top: 8px; position: relative; }
.panel { --field-ink: #f2f6fb; --field-soft: #bccbdd; color: var(--field-ink); --k: 22px; background: var(--field-deep); padding: clamp(24px, 2.6vw, 40px); }
.panel ul { display: grid; gap: 14px; }
.panel li { display: flex; align-items: center; gap: 14px; font-size: var(--step-body); font-weight: 500; line-height: 1.35; }
.panel li .dot { background: var(--accent); font-size: 0.8em; }
.panel .reg { margin-top: 28px; color: var(--field-soft); }
.panel .reg a { color: var(--field-ink); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.panel .doc-btn { margin-top: 28px; max-width: 460px; }
.panel .reg { font-size: var(--step-body); }
.js .panel[hidden] { display: none; }
.js .panel.enter > * { animation: rise 600ms var(--ease-out) both; }
.js .panel.enter > *:nth-child(2) { animation-delay: 70ms; }
.js .panel.enter > *:nth-child(3) { animation-delay: 140ms; }
.js .panel.enter li { animation: rise 520ms var(--ease-out) both; }
.js .panel.enter li:nth-child(2) { animation-delay: 60ms; }
.js .panel.enter li:nth-child(3) { animation-delay: 120ms; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.sup-pic { grid-column: 8 / span 5; margin-right: calc(-1 * var(--m) - 5vw); position: sticky; top: 108px; aspect-ratio: 4 / 5; }
.sup-pic .oct { --k: clamp(40px, 5vw, 90px); position: absolute; inset: 0; background: var(--field-deep); }
.sup-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--photo, grayscale(.4)); }
.sup-pic img { opacity: 0; transform: scale(1.08); transition: opacity 900ms ease, transform 1400ms var(--ease-out); }
.sup-pic img.on { opacity: 1; transform: scale(1); }
.no-js .sup-pic img:first-child { opacity: 1; }
.no-js .panel + .panel { margin-top: 56px; }

/* escalators note + moving picture */
.wide { margin-top: var(--section); }
.wide-pic { height: clamp(320px, 78svh, 820px); overflow: hidden; position: relative; margin-inline: calc(-1 * var(--m)); clip-path: inset(calc(var(--o, 0) * 9%) calc(var(--o, 0) * 14%)); }
.wide-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--photo); transform: scale(calc(1 + var(--o, 0) * .14)); }
.note-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: 40px; align-items: baseline; }
.note-row .statement { grid-column: 1 / span 7; font-size: var(--step-lead); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; max-width: 30ch; }
.note-row .note { grid-column: 9 / span 4; display: flex; gap: 12px; align-items: baseline; color: var(--soft); }
.note-row .note .dot { position: relative; top: 0.05em; }

/* ── footer: the plate, built large ────────────────────────── */
.site-footer { background: var(--field); color: var(--field-ink); margin-top: var(--section); padding-block: clamp(64px, 7vw, 110px) 28px; overflow: clip; }
.foot-logo { --k: 12px; display: block; width: 148px; background: var(--bg); padding: 10px 14px; margin-bottom: 24px; transition: transform var(--t-ui) var(--ease-out); }
.foot-logo:hover { transform: scale(1.03); }
.foot-logo img { width: 100%; height: auto; }
.foot-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 40px; }
.foot-about { grid-column: 1 / span 4; }
.foot-about p { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; max-width: 28ch; }
.foot-about .nb-mini {
  --k: 10px; display: inline-flex; margin-top: 24px; padding: 10px 18px; background: var(--field-ink); color: var(--field);
  font-weight: 700; text-decoration: none; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.foot-about .nb-mini:hover { background: var(--accent); color: var(--on-accent); }
.foot-about .nb-mini:active { transform: scale(0.96); }
.foot-col { grid-column: span 2; }
.foot-col:nth-of-type(2) { grid-column: 5 / span 3; }
.foot-col:nth-of-type(3) { grid-column: span 3; }
.foot-col:nth-of-type(4) { grid-column: span 2; }
.foot-col h2 { font-size: var(--step-body); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; color: var(--field-soft); }
.foot-col a { display: block; width: fit-content; padding: 4px 0; text-decoration: none; font-size: var(--step-body); transition: transform var(--t-ui) var(--ease-out); }
.foot-col a:hover { transform: translateX(6px); }
@media (max-width: 1100px) { /* about block becomes one row; the three link columns share the rest */
  .foot-about { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
  .foot-about .foot-logo { margin: 0; }
  .foot-about p { flex: 1 1 28ch; max-width: 46ch; }
  .foot-about .nb-mini { margin-top: 0; }
  .foot-col:nth-of-type(n) { grid-column: span 4; }
}
.foot-meta { display: flex; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; margin-top: 56px; color: var(--field-soft); font-size: var(--step-small); }
.foot-meta p { margin: 0; }
.foot-meta .fm-r { text-align: right; }
.foot-meta a, .foot-meta .linkish { color: inherit; text-decoration: underline 2px; text-decoration-color: var(--accent); text-underline-offset: .2em; }
.foot-meta a:hover, .foot-meta .linkish:hover { color: var(--field-ink); }
.linkish { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* ── PDF dialog ────────────────────────────────────────────── */
dialog.viewer {
  --k: 24px; width: min(1100px, calc(100vw - 2 * var(--m))); height: min(88svh, 1000px); max-width: none; max-height: none;
  padding: 0; border: 0; background: var(--bg); color: var(--ink);
  box-shadow: 0 30px 80px rgba(23,19,20,.35); /* taste-skill-ignore: dialog floats */
}
dialog.viewer[open] { display: flex; flex-direction: column; animation: dlg-in 380ms var(--ease-out); }
dialog.viewer.closing { animation: dlg-out 180ms cubic-bezier(0.4, 0, 1, 1) forwards; }
dialog.viewer::backdrop { background: rgba(23,19,20,.62); animation: fade 300ms ease; }
dialog.viewer.closing::backdrop { animation: fade 180ms ease reverse forwards; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes fade { from { opacity: 0; } }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 16px 28px; background: var(--surface); }
.viewer-title { margin: 0; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
html:has(dialog.viewer[open]) { overflow: hidden; }
dialog.viewer { overscroll-behavior: contain; }
.viewer-close { --k: 10px; width: 48px; height: 48px; border: 0; background: var(--ink); color: var(--bg); font-size: 26px; line-height: 1; flex: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.viewer-close:hover { background: var(--field); }
.viewer-close:active { transform: scale(0.92); }
.viewer iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* ── licenses page ─────────────────────────────────────────── */
.page-head { padding-top: clamp(48px, 7vw, 120px); }
.page-head h1 { font-size: var(--step-display); letter-spacing: -0.045em; line-height: 0.92; }
.page-head .intro { margin-top: 32px; max-width: 52ch; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; }
.reader { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: clamp(56px, 7vw, 110px); }
.doc-list { grid-column: 1 / span 6; display: grid; gap: 8px; align-content: start; }
.doc {
  --k: 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 22px; row-gap: 18px; padding: 30px 30px 28px;
  background: var(--surface); transition: background-color var(--t-ui) ease, color var(--t-ui) ease;
}
.doc .dot { margin-top: 0.42em; font-size: var(--step-lead); transition: transform var(--t-ui) var(--ease-out), background-color var(--t-ui) ease; }
.doc h2 { font-size: var(--step-lead); letter-spacing: -0.025em; line-height: 1.15; }
.doc .lbl { margin-top: 8px; color: var(--soft); transition: color var(--t-ui) ease; }
.doc .lbl strong { display: block; color: var(--ink); font-weight: 600; }
.doc.active .lbl strong { color: var(--field-ink, #fff); }
.doc .acts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; }
.doc .thumb { display: none; }
.no-js .doc .btn.quiet { display: none; }
.doc .more-row { grid-column: 2; margin: 0; }
.doc.active { background: var(--dom, var(--blue)); color: var(--field-ink, #fff); }
.doc.active .lbl { color: var(--field-soft, #eef5fc); }
.doc.active .dot { background: var(--yellow); transform: rotate(45deg) scale(1.15); }
.doc.active .btn { background: var(--yellow); color: var(--on-accent); }
.doc.active .btn.quiet { color: var(--field-ink, #fff); }
.doc.active .more-link { color: inherit; text-decoration-color: currentColor; }
.doc[data-dom="ps"].active .dot { background: var(--field); }
.doc[data-dom="ps"].active .lbl strong { color: var(--field-ink); }
.stage { grid-column: 8 / span 5; position: sticky; top: 108px; align-self: start; }
.stage-plate { --k: clamp(36px, 4vw, 70px); aspect-ratio: 4 / 5; position: relative; overflow: hidden; display: block; background: var(--dom, var(--yellow)); transition: background-color 500ms ease; }
.stage-plate img {
  position: absolute; left: 50%; top: 50%; width: 72%; height: auto; outline: 10px solid var(--field-deep);
  opacity: 0; transform: translate(-50%, -46%) rotate(-2deg) scale(.96);
  transition: opacity 500ms ease, transform 900ms var(--ease-out);
}
.stage-plate img.on { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }
.no-js .stage-plate img:first-child { opacity: 1; transform: translate(-50%, -50%); }
.stage-plate:hover img.on { transform: translate(-50%, -51.5%) rotate(-1deg) scale(1.02); }
.stage-cap { margin-top: 16px; color: var(--soft); display: flex; gap: 10px; align-items: center; }

/* ── contact page ──────────────────────────────────────────── */
.contact-top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; }
.contact-top .page-head { grid-column: 1 / span 7; padding-bottom: 24px; }
.cities { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 6px; }
.city {
  --k: 12px; border: 0; background: var(--surface); padding: 14px 16px; font-weight: 600; font-size: var(--step-body);
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.city:hover, .city.hot { background: var(--blue); color: #fff; }
.city:hover .dot, .city.hot .dot { background: var(--field-ink); }
.city:active { transform: scale(0.96); }
.bgmap { grid-column: 8 / span 5; padding-top: clamp(32px, 5vw, 90px); }
.bgmap svg { width: 100%; height: auto; overflow: visible; }
.bgmap .land { fill: #bcd3ea; transition: fill var(--t-ui) ease; }
.bgmap .pin { cursor: pointer; }
.bgmap .pin path { fill: var(--blue); transform-box: fill-box; transform-origin: center; transition: transform var(--t-ui) var(--ease-out); }
.bgmap .pin .ring { fill: var(--blue); opacity: .18; transform-box: fill-box; transform-origin: center; animation: ping 2.6s var(--ease-out) infinite; }
.bgmap .pin text { font: 600 34px "Golos Text", sans-serif; fill: var(--ink); letter-spacing: -0.02em; }
.bgmap .pin:hover path, .bgmap .pin.hot path { transform: scale(1.35) rotate(45deg); }
.bgmap .pin.main path, .bgmap .pin.main .ring { fill: var(--yellow); }
@keyframes ping { from { transform: scale(.6); opacity: .35; } to { transform: scale(2.2); opacity: 0; } }

.office-main { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: clamp(72px, 9vw, 150px); align-items: stretch; }
.office-main .info { grid-column: 1 / span 5; background: var(--field); color: var(--field-ink); --k: 26px; padding: clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; }
.office-main .info .label { color: var(--field-soft); }
.office-main .info h2 { font-size: var(--step-display); margin-top: 10px; }
.office-main .info .lines { margin-top: auto; padding-top: 48px; }
.office-main .map { grid-column: 6 / span 7; min-height: 520px; }
.lines p { padding-block: 6px; }
.lines strong { font-weight: 600; }
.lines a { font-weight: 600; text-decoration: underline 2px transparent; text-underline-offset: 0.22em; transition: text-decoration-color var(--t-hover) ease; }
.lines a:hover { text-decoration-color: currentColor; }
.map { --k: 26px; background: var(--surface); position: relative; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(1.05); transition: filter 500ms ease; }
.map:hover iframe { filter: none; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(56px, 6vw, 96px) var(--gap); margin-top: clamp(72px, 9vw, 150px); }
.office { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: stretch; }
.office .label { color: var(--soft); }
.office h2 { font-size: var(--step-head); margin-top: 6px; }
.office .lines { margin-top: 28px; }
.office .map { min-height: 300px; }
.office.hot h2 { color: var(--accent-text); }
.office-main.hot .info { background: var(--field-hi); }

/* ── reveals (only when JS runs; content is visible without it) ─ */
.js [data-r] { opacity: 0; transform: translateY(26px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-r].in { opacity: 1; transform: none; }
.js [data-r="mask"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path var(--t-open) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-r="mask"].in { clip-path: inset(0 0 0 0); }
.js .oct[data-r="mask"] { clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% 0, 100% 0, calc(100% - var(--k)) 0, var(--k) 0, 0 0, 0 0); }
.js .oct[data-r="mask"].in { clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)),
    calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }
.js .lockup .c { animation: word-in 700ms var(--ease-out) both; animation-delay: calc(var(--i) * 16ms + 80ms); }
@keyframes word-in { from { opacity: 0; transform: translateY(0.5em); } 60% { opacity: 1; } }
.js .plate[data-open] { clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%); transition: clip-path 1400ms var(--ease-out) 200ms; }
.js .plate[data-open].in { clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)),
    calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }

/* ── tablet ────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-visual { margin-right: calc(-1 * var(--m)); }
  .plate img { object-position: 35% 50%; }
  .hero-copy { grid-column: 1 / span 8; }
  .hero-visual { grid-column: 9 / span 4; }
  .tiles { grid-template-columns: 1fr 1fr 1fr; }
  .tile.red { grid-column: 1 / -1; }
  .conf-pic { grid-column: 1 / span 5; }
  .conf-body { grid-column: 6 / span 7; }
  .nb-row { grid-template-columns: 1fr; }
  .reader { display: block; }
  .stage { display: none; }
  .doc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc .thumb { display: block; grid-column: 1 / -1; background: var(--field); --k: 22px; padding: 20px 20px 0; aspect-ratio: 16 / 10; overflow: hidden; }
  .doc .thumb img { width: 100%; height: auto; outline: 0; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .doc.active .thumb { background: rgba(0,0,0,.18); }
  .doc .acts { grid-column: 1 / -1; }
  .doc .acts .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
  .doc .more-row { grid-column: 1 / -1; }
}

/* ── phone: its own composition ────────────────────────────── */
@media (max-width: 760px) {
  :root { --c: 10px; }
  .bar { height: 68px; gap: 12px; }
  .brand { width: clamp(88px, 28vw, 112px); }
  .lang { padding-inline: 10px; }
  .menu-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; background: var(--ink); color: var(--bg);
    --k: 9px; clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }
  .menu-btn span { display: block; width: 20px; height: 2px; background: currentColor; box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor; transition: transform var(--t-ui) var(--ease-out); } /* taste-skill-ignore: hamburger bars */
  .menu-btn[aria-expanded="true"] span { box-shadow: none; transform: rotate(45deg); } /* taste-skill-ignore */
  .menu-btn[aria-expanded="true"] span::after { content: ""; display: block; width: 20px; height: 2px; background: currentColor; transform: rotate(-90deg); }
  .hd-tel { margin-left: auto !important; width: 48px; height: 48px; justify-content: center; background: var(--surface); clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }
  .site-header.scrolled .hd-tel { background: var(--surface-2); }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: 12px var(--m) 28px; background: var(--surface);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--t-ui) ease, transform var(--t-ui) var(--ease-out), visibility 0s linear var(--t-ui); }
  .nav.open { box-shadow: 0 24px 40px rgba(13,21,32,.25); /* taste-skill-ignore: menu floats */ opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav a { font-size: var(--step-lead); padding: 14px 0; font-weight: 600; }
  .nav a::after { left: 0; right: auto; width: 40px; bottom: 8px; }

  :root { --section: 72px; }
  .hero-grid { display: flex; flex-direction: column; min-height: 0; margin-top: 0; }
  .hero-copy { display: contents; }
  .hero-plain { order: 2; margin-top: 20px; max-width: none; }
  .hero-cta { order: 3; margin: 24px 0 0; }
  .hero-visual { order: 4; height: 36svh; margin: 28px calc(-1 * var(--m)) 0 14vw; }
  .hero-text { order: 5; margin-top: 28px; margin-bottom: 40px; }
  .plate { --k: 44px; }
  .tiles { margin-top: 12px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tile { min-height: 120px; padding: 20px; }
  .tile:last-child { grid-column: 1 / -1; }

  .conf { display: block; }
  .conf-pic { height: 60svh; width: 82vw; margin-left: calc(-1 * var(--m)); }
  .conf-pic .oct { --k: 40px; }
  .conf-body { margin-top: 40px; }
  .nb { min-height: 150px; }

  .sup { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 40px; }
  .sup-pic { position: relative; top: 0; width: auto; margin: 0 calc(-1 * var(--m)) 0 14vw; aspect-ratio: 4 / 4.2; }
  .tab { padding: 16px 16px; gap: 14px; }
  .note-row { display: block; }
  .note-row .note { margin-top: 20px; }
  .wide-pic { height: 44svh; margin-inline: calc(-1 * var(--m) / 2); }

  .foot-about, .foot-col, .foot-col:first-of-type { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-col { grid-column: span 1 !important; }
  .foot-meta .fm-r { text-align: left; }

  .doc-list { grid-template-columns: minmax(0, 1fr); }
  .doc { padding: 24px 22px; column-gap: 16px; }
  .doc .btn.quiet { display: none; }

  .contact-top { display: block; }
  .bgmap { padding-top: 32px; margin-inline: 4px; }
    .office-main { display: flex; flex-direction: column; gap: 8px; }
  .office-main .map { min-height: 340px; }
  .office { grid-template-columns: 1fr; }
  .office .map { min-height: 260px; }
}

/* ── shared bits for the content pages ─────────────────────── */
.more { margin-top: 24px; }
.more-link { font-weight: 600; text-decoration: underline 2px; text-decoration-color: var(--accent); text-underline-offset: 0.25em; transition: text-decoration-color var(--t-hover) ease; }
.more-link:hover { text-decoration-color: currentColor; }
.more-link span { display: inline-block; transition: transform var(--t-ui) var(--ease-out); }
.more-link:hover span { transform: translateX(4px); }
.field .more-link { color: var(--field-ink); }
.crumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--soft); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--surface-2); }
.crumbs a { text-decoration: none; transition: color var(--t-hover) ease; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head .intro, .home-blog .intro { margin-top: 24px; max-width: 58ch; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; }

/* article rows: a small cut-out photo where a bullet would be */
.art-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.art-row { --k: 16px; display: grid; grid-template-columns: 76px 1fr auto; gap: 20px; align-items: center; padding: 18px 22px 18px 18px; background: var(--surface); text-decoration: none; height: 100%;
  clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k));
  transition: background-color var(--t-ui) ease, transform var(--t-press) var(--ease-out); }
.art-row:hover { background: var(--dom, var(--blue)); color: var(--field-ink, #fff); }
.art-row:hover .art-cat, .art-row:hover .art-desc, .art-row:hover .art-go { color: var(--field-soft, #fff); }
.art-row:active { transform: scale(0.985); }
.art-pic { --k: 14px; width: 76px; height: 76px; overflow: hidden; display: block; }
.art-pic img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo); transition: transform 600ms var(--ease-out); }
.art-row:hover .art-pic img { transform: scale(1.08); }
.art-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.art-cat { color: var(--accent-text); font-weight: 600; }
.art-txt strong { font-size: var(--step-body); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.art-desc { color: var(--soft); font-size: var(--step-small); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-go { font-size: 22px; color: var(--accent-text); transition: transform var(--t-ui) var(--ease-out); }
.art-row:hover .art-go { transform: translateX(5px); }

/* FAQ */
.faq .qas { margin-top: 40px; display: grid; gap: 8px; max-width: 1100px; }
.qa { --k: 16px; background: var(--surface); clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); transition: background-color var(--t-ui) ease; }
.qa[open] { background: var(--surface-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.qa-mark { position: relative; flex: none; width: 22px; height: 22px; }
.qa-mark::before, .qa-mark::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--accent-text); transition: transform var(--t-ui) var(--ease-out); }
.qa-mark::after { transform: rotate(90deg); }
.qa[open] .qa-mark::after { transform: rotate(0); }
.qa:hover .qa-mark::before { transform: scaleX(1.15); }
.qa-a { padding: 0 26px 24px; max-width: 75ch; }

/* service pages */
.svc-top { background: var(--dom); color: var(--field-ink); padding-bottom: clamp(40px, 5vw, 80px); overflow-x: hidden; overflow-x: clip; }
.svc-top .crumbs ol { color: var(--field-soft); }
.svc-top .crumbs li + li::before { color: var(--field-soft); }
.svc-top .crumbs a:hover { color: var(--field-ink); }
.svc-hero { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; padding-top: clamp(32px, 4vw, 64px); }
.svc-hero-copy { grid-column: 1 / span 7; }
.svc-h1 { font-size: clamp(2.2rem, 1.2rem + 3vw, 4rem); letter-spacing: -0.045em; line-height: 0.95; }
.svc-hero .lead { margin-top: 28px; max-width: 46ch; }
.svc-hero .hero-cta { margin-top: 36px; }
.svc-hero-pic { grid-column: 8 / span 5; margin-right: calc(-1 * (var(--m) + 6vw + max(0px, (100vw - 1680px) / 2))); height: min(72svh, 700px); position: relative; }
.svc-hero-pic .oct { --k: clamp(40px, 5vw, 90px); position: absolute; inset: 0; overflow: hidden; }
.svc-hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); filter: var(--photo); }
.svc-items { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc-card { --k: 18px; display: flex; gap: 20px; align-items: flex-start; padding: 28px; background: var(--surface);
  clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }
.num { --k: 10px; flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: var(--dom, var(--blue)); color: var(--field-ink); font-weight: 600; font-size: var(--step-small); letter-spacing: 0; }
[data-dom="ps"] .num, .svc-band[data-dom="ps"] .num { color: var(--field); }
.svc-items h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; }
.svc-items p { margin-top: 10px; max-width: 46ch; }
.svc-card .num { margin-top: 2px; }
.note-line { margin-top: 56px; display: flex; gap: 12px; align-items: baseline; color: var(--soft); max-width: 70ch; }
.svc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap) clamp(32px, 5vw, 96px); }
.svc-p { margin-top: 24px; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 14px; align-items: baseline; }
.table-wrap { overflow-x: auto; margin-top: 28px; }
table.mods, .prose table { width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.mods th, .mods td, .prose th, .prose td { text-align: left; padding: 12px 16px; vertical-align: top; }
.mods thead th, .prose thead th { background: var(--blue); color: #fff; font-weight: 600; }
.mods tbody tr:nth-child(odd), .prose tbody tr:nth-child(odd) { background: var(--surface); }
.mods td:first-child { font-weight: 600; }
.mods td:nth-child(2), .mods td:nth-child(3) { white-space: nowrap; font-weight: 600; }
.ax { display: none; }
.mods-note { margin-top: 16px; max-width: 60ch; }
.doc-meta { margin-top: 12px; color: var(--field-soft); }
.table-wrap:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.svc-split .head { font-size: clamp(1.75rem, 1rem + 2.4vw, 3rem); }
@media (max-width: 1100px) {
  .svc-split { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
}
.svc-band { margin-top: var(--section); }
.svc { --section: clamp(72px, 8vw, 128px); }
.svc .head { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.875rem); }
.svc .svc-h1 { font-size: clamp(2.2rem, 1.2rem + 3vw, 4rem); }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap) clamp(32px, 4vw, 64px); align-items: start; }
.band-item h2, .band-h { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 18px; }
.band-more { margin-top: 18px; }
.band-scope { margin-top: 14px; font-size: var(--step-small); max-width: 38ch; }
.lic-chip { --k: 10px; display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; padding: 10px 20px; background: var(--field-ink); color: #fff; font-weight: 700; text-decoration: none; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.lic-chip:hover { background: rgba(7,26,51,.82); }
.lic-chip:active { transform: scale(0.96); }
.band-more a { color: var(--field-ink); font-weight: 600; text-underline-offset: 0.2em; }
.band-item p:not(.band-h):not(.band-more) { color: var(--field-soft); }
.band-item .reg a { color: var(--field-ink); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.band-item .btn { margin-top: 20px; }

/* blog index */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.chip { --k: 10px; border: 0; background: var(--surface); padding: 12px 18px; font-weight: 600; font-size: var(--step-small);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chip:hover { background: var(--surface-2); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--dom, var(--blue)); color: var(--field-ink, #fff); }
a.chip { display: inline-block; text-decoration: none; color: inherit; }
.chip:focus-visible { outline: 3px solid currentColor; outline-offset: -7px; }
.cat-group { margin-top: clamp(56px, 6vw, 96px); }
.cat-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.cat-h { font-size: clamp(1.75rem, 1.1rem + 1.8vw, 2.75rem); display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: .25em .5em; }
.cat-h .dot { width: 12px; height: 12px; flex: none; background: var(--dom, var(--blue)); }
.cat-h .count { white-space: nowrap; font-size: var(--step-small); background: var(--surface); color: var(--soft); padding: .15em .7em; border-radius: 99px; font-weight: 500; letter-spacing: 0; line-height: 1.4; }
.cat-group .art-list { margin-top: 28px; }
.cat-group .art-cat, .one-cat .art-cat { display: none; }

/* article */
.post { padding-top: clamp(32px, 4vw, 64px); }
.post-head { max-width: 980px; }
.post-h1 { font-size: clamp(2rem, 1.1rem + 2.8vw, 3.75rem); letter-spacing: -0.04em; line-height: 1.02; }
.post-lede { margin-top: 28px; font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.5rem); line-height: 1.45; letter-spacing: -0.01em; max-width: 68ch; }
.post-meta { margin-top: 22px; display: flex; gap: 10px; align-items: center; color: var(--soft); }
.post-pic { --k: clamp(30px, 4vw, 70px); margin-top: clamp(36px, 4vw, 56px); aspect-ratio: 3 / 1; overflow: hidden; position: relative; }
.post-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: var(--photo); }
.post-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.post-body { grid-column: 1 / span 8; }
.post-aside { grid-column: 10 / span 3; position: sticky; top: 108px; display: grid; gap: 24px; }
.prose { max-width: 70ch; }
.prose section + section { margin-top: 56px; }
.prose h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px; scroll-margin-top: calc(var(--hd) + 16px); }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p, .prose p + table, .prose table + p { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 8px; margin: 1em 0; }
.prose ul { list-style: disc; }
.prose li::marker { color: var(--accent-text); font-weight: 700; }
.prose table { display: block; overflow-x: auto; margin: 1.4em 0; }
.prose a { text-decoration: underline 2px; text-decoration-color: var(--accent); text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease; }
.prose a:hover { text-decoration-color: currentColor; }
.post-sources { margin-top: 64px; padding-top: 32px; }
.post-sources h2 { font-size: var(--step-lead); }
.post-sources ul { font-size: var(--step-small); color: var(--soft); }
.toc h2, .aside-cta .aside-h { font-size: var(--step-body); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: none; }
.toc a { display: block; padding: 6px 0 6px 14px; text-decoration: none; color: var(--soft); font-size: var(--step-small); line-height: 1.4; position: relative; transition: color var(--t-hover) ease; }
.toc a::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 6px; height: 6px; background: var(--surface-2); transition: background-color var(--t-hover) ease, transform var(--t-ui) var(--ease-out); }
.toc a:hover, .toc a.on { color: var(--ink); }
.toc a.on::before { background: var(--accent); transform: rotate(45deg) scale(1.3); }
.aside-cta { --k: 18px; background: var(--dom, var(--blue)); color: var(--field-ink, #fff); padding: 24px; display: grid; gap: 14px; justify-items: start; }
.aside-cta p { color: var(--field-soft, #eef5fc); font-size: var(--step-small); }
.aside-cta .aside-h { color: var(--field-ink, #fff); line-height: 1.25; }
.aside-cta .btn.quiet { background: rgba(7,26,51,.3); color: inherit; }
.aside-cta .btn.quiet:hover { background: rgba(7,26,51,.46); }
.aside-cta a:not(.btn) { text-decoration: underline; text-underline-offset: .2em; }
.aside-cta .btn { background: var(--yellow); color: var(--on-accent); min-height: 48px; padding: 0 20px; font-size: var(--step-small); }
.aside-cta .more-link { color: var(--field-ink); font-size: var(--step-small); }

/* calculator */
.calc { display: grid; grid-template-columns: 5fr 7fr; gap: 8px; margin-top: clamp(24px, 3vw, 40px); }
.calc-form { --k: 22px; background: var(--surface); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; align-content: start; }
.calc-form label { display: grid; gap: 8px; font-weight: 600; font-size: var(--step-small); }
.calc-form label[hidden] { display: none; }
.calc-form select, .calc-form input { font: inherit; font-size: var(--step-body); font-weight: 500; color: var(--ink); background: var(--bg); border: 0; min-height: 54px; padding: 0 16px; width: 100%; border-radius: 0; }
.calc-form :is(select, input):focus-visible { outline: 3px solid var(--field); outline-offset: 2px; }
.calc-out :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.calc-form input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.calc-form input::-webkit-inner-spin-button, .calc-form input::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
.calc-form select { -webkit-appearance: none; appearance: none; padding-right: 44px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230b2545' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; }
.calc-help { font-weight: 400; line-height: 1.4; }
.calc-help[hidden] { display: none; }
.calc-out { --k: 22px; background: var(--blue); color: var(--field-ink); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; align-content: start; min-height: 320px; }
.calc-out { --field-soft: #eef5fc; --field-ink: #fff; }
.calc-out .calc-empty { color: var(--field-soft); font-size: var(--step-lead); max-width: 30ch; }
.result { display: grid; gap: 4px; justify-items: start; }
.result + .result { border-top: 1px solid rgba(255,255,255,.28); padding-top: 18px; }
.result .lead-line { font-size: var(--step-lead); font-weight: 600; color: #fff; line-height: 1.25; letter-spacing: -0.01em; }
.result .chip { background: var(--yellow); color: var(--on-accent); padding: 4px 12px; font-weight: 700; font-size: .875rem; line-height: 1.3; }
.calc-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.calc-out .btn.quiet { background: rgba(7,26,51,.3); color: var(--field-ink); }
.calc-out .btn.quiet:hover { background: rgba(7,26,51,.46); }
.calc-cta { margin-top: 20px; }
.calc-tbl { margin-top: clamp(40px, 5vw, 72px); }
table.ivs { width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.ivs th, .ivs td { text-align: left; padding: 12px 16px; vertical-align: top; }
.ivs thead th { background: var(--blue); color: #fff; font-weight: 600; }
.ivs tbody tr:nth-child(odd) { background: var(--surface); }
.ivs tbody th { font-weight: 600; }
@media (max-width: 760px) {
  table.ivs, .ivs thead, .ivs tbody, .ivs tr { display: block; }
  .ivs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ivs tbody tr { padding: 14px 16px; display: grid; gap: 6px; }
  .ivs th, .ivs td { padding: 0; }
  .ivs td::before { content: attr(data-l) ": "; color: var(--soft); }
}
.no-js .calc, .no-js .calc-cta { display: none; }
.calc-page .pg-top { padding-block: clamp(28px, 3.2vw, 56px) clamp(28px, 3.2vw, 48px); }
@media (min-width: 600px) and (max-width: 899px) { .calc-form { grid-template-columns: 1fr 1fr; } .calc-form label:first-child { grid-column: 1 / -1; } }
.result strong { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.result .small { color: var(--field-soft); }
.result.late strong { color: var(--accent-light); }
.calc-out .more-link { color: var(--field-ink); font-size: var(--step-small); justify-self: start; }
.calc-out .btn { justify-self: start; background: var(--yellow); color: var(--on-accent); }
.calc-out .soft { color: var(--field-soft); }
.calc-note { margin-top: 20px; max-width: 90ch; }
.nf { min-height: 50svh; }
.nf .hero-cta { margin-top: 32px; }
.nf-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 48px; max-width: 960px; }
.nf-links .btn { justify-content: flex-start; align-self: stretch; height: auto; }

@media (max-width: 1080px) {
  .art-list { grid-template-columns: 1fr; }
  .post-body { grid-column: 1 / -1; }
  .post-aside { position: static; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .band-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  .calc { grid-template-columns: 1fr; }
  .calc-out { min-height: 0; }
}
@media (max-width: 760px) {
  .svc-hero { display: flex; flex-direction: column; align-items: stretch; }
  .svc-hero-pic { order: 2; height: 46svh; margin: 32px calc(-1 * var(--m)) 0 14vw; }
  .svc-items, .svc-split, .band-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-split { row-gap: 56px; }
  table.mods, .mods thead, .mods tbody { display: block; }
  .mods tr { display: grid; grid-template-columns: 9.5em 1fr; padding: 12px 16px; column-gap: 12px; }
  .mods th, .mods td { padding: 0; }
  .mods thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mods tbody tr { grid-template-columns: 1fr 1fr; row-gap: 6px; padding: 14px 16px; }
  .mods td:first-child, .mods td:nth-child(4) { grid-column: 1 / -1; }
  .mods td:nth-child(4) { font-weight: 400; }
  .ax { display: inline; font-weight: 400; color: var(--soft); }
  .ticks { grid-template-columns: minmax(0, 1fr); }
  .crumbs li[aria-current] { display: none; }
  .svc-items { gap: 32px; }
  .art-row { grid-template-columns: 60px 1fr; padding: 14px 16px 14px 14px; gap: 14px; }
  .art-pic { width: 60px; height: 60px; }
  .art-go { display: none; }
  .post-pic { aspect-ratio: 16 / 9; margin-inline: calc(-1 * var(--m) / 2); }
  .post-aside { grid-template-columns: 1fr; }
  .qa summary { padding: 18px 18px; }
  .qa-a { padding: 0 18px 20px; }
  .cat-group { margin-top: 40px; }
}

.hero .dot, .field .dot, .svc-top .dot, .pg-top .dot, .panel .dot { background: var(--yellow); }
[data-dom="ps"] .pg-top .dot, .pg-top[data-dom="ps"] .dot, .svc-top[data-dom="ps"] .dot { background: var(--field); }
.tab .dot { background: currentColor; }
.tab[aria-selected="true"] .dot { background: var(--yellow); }

/* inner pages open on a full-width field in their domain's colour */
.page-head:has(> .pg-top), .post:has(> .pg-top), section:has(> .pg-top) { padding-top: 0; }
.pg-top { background: var(--dom); color: var(--field-ink); margin-inline: 0; padding: clamp(40px, 5vw, 88px) 0 clamp(44px, 5vw, 84px); max-width: none; box-shadow: 0 0 0 100vmax var(--dom); clip-path: inset(0 -100vmax); }
.pg-top .crumbs ol, .pg-top .crumbs li + li::before, .pg-top .post-meta, .pg-top .aside { color: var(--field-soft); }
.pg-top .crumbs a:hover { color: var(--field-ink); }
.pg-top .intro, .pg-top .post-lede { color: var(--field-ink); }
.pg-top .motto { color: var(--field-soft); }
.pg-top + .reader, .pg-top ~ .chips { margin-top: clamp(40px, 5vw, 80px); }
.pg-top .city { background: rgba(7,26,51,.3); color: inherit; }
.pg-top .city:hover, .pg-top .city.hot { background: var(--yellow); color: var(--on-accent); }
.pg-top .city .dot { background: var(--yellow); }
.pg-top .city:hover .dot, .pg-top .city.hot .dot { background: var(--field); }
.pg-top .bgmap .land { fill: rgba(255,255,255,.22); }
.pg-top .bgmap .pin text { fill: #fff; }
.pg-top .bgmap .pin path, .pg-top .bgmap .pin .ring { fill: var(--yellow); }
.pg-top .bgmap .pin.main path, .pg-top .bgmap .pin.main .ring { fill: #fff; }
.post-head.pg-top { box-sizing: border-box; }
.post-pic { margin-top: 0; }
.post-head + .post-pic { margin-top: clamp(-40px, -2.4vw, -16px); position: relative; }
.map iframe { filter: none; }

/* anchors land below the sticky header */
[id] { scroll-margin-top: calc(var(--hd) + 24px); }
.hero { scroll-margin-top: 84px; }
.doc .btn.quiet { background: var(--surface-2); }
.doc.active .btn.quiet { background: rgba(7,26,51,.3); }
[data-dom="ps"] .doc-btn .pdf { color: #fff; }
.panel .doc-btn .pdf { color: var(--field) !important; }

/* the page as a lift: floor buttons light up as you ride the sections */
.floors { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 30; display: none; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; } /* only the round buttons take clicks: the hidden tooltips must not cover the page */
.fl-btn { pointer-events: auto; }
@media (min-width: 1200px) { .floors { display: flex; } :root { --m: 66px; } }
.fl-lcd { width: 44px; height: 44px; background: var(--field-deep); color: var(--accent-light); display: flex; align-items: center; justify-content: center; gap: 3px; font-weight: 700; font-size: 16px; margin-bottom: 4px;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
.fl-lcd i { font-style: normal; font-size: 9px; transition: transform var(--t-ui) var(--ease-out); }
.fl-lcd.down i { transform: rotate(180deg); }
.fl-lcd b { display: inline-block; font-variant-numeric: tabular-nums; }
.floor { display: flex; align-items: center; flex-direction: row-reverse; gap: 8px; text-decoration: none; }
.fl-btn { width: 36px; height: 36px; margin-right: 4px; flex: none; border-radius: 50%; background: var(--field); color: #dfe8f2; display: grid; place-items: center; font-size: 14px; font-weight: 600; outline: 2px solid rgba(255,255,255,.55); outline-offset: -2px;
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease, transform var(--t-press) var(--ease-out), outline-color var(--t-ui) ease; }
.floor:hover .fl-btn { transform: scale(1.08); }
.floor:active .fl-btn { transform: scale(0.92); }
.floor.on .fl-btn { background: var(--yellow); color: var(--on-accent); outline-color: var(--on-accent); }
.fl-tip { background: var(--field-deep); color: #fff; padding: 5px 12px; font-size: var(--step-small); white-space: nowrap; opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity 180ms ease, transform var(--t-ui) var(--ease-out); }
.floor:hover .fl-tip, .floor:focus-visible .fl-tip { opacity: 1; transform: none; }

/* page changes crossfade, the header stays put */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: 160ms cubic-bezier(0.4, 0, 1, 1) both vt-out; }
::view-transition-new(root) { animation: 320ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (hover: none) {
  .map iframe { filter: none; }
  .btn:hover::after { transform: translateX(-130%) skewX(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wide-pic { clip-path: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  .js [data-r], .js .lockup .c { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .plate[data-open] { clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }
  .bgmap .pin .ring { display: none; }
  .js .oct[data-r] { clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)) !important; }
}


/* ═══ Batch 1: foundation (2026-11-23) ═══════════════════════════ */

/* header: narrow phones, landscape phones, no JS */
@media (max-width: 359px) {
  .bar { gap: 8px; }
  .brand { width: 88px; }
  .hd-tel, .menu-btn { width: 44px; height: 44px; }
  .lang { padding-inline: 8px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  :root { --hd: 0px; }
  .bar { height: 56px; }
  .brand { width: 104px; }
  .site-header { position: static; }
  .nav { inset-block-start: 56px; }
}
@media (max-width: 760px) {
  .no-js .menu-btn { display: none; }
  .no-js .nav { position: static; flex-wrap: wrap; flex-direction: row; gap: 0 18px; opacity: 1; visibility: visible; transform: none; background: none; padding: 0; width: 100%; order: 9; }
  .no-js .nav a { font-size: var(--step-body); padding: 10px 0; }
  .no-js .bar { flex-wrap: wrap; height: auto; padding-bottom: 6px; }
}
@media (max-width: 380px) { .lockup .l1 { color: var(--accent-light); } }

/* tap targets (WCAG 2.5.8: 24 minimum, 44 comfortable) */
@media (max-width: 760px), (pointer: coarse) {
  .crumbs a { display: inline-block; padding-block: 11px; margin-block: -11px; }
  .band-item .reg a { display: inline-block; padding-block: 12px; }
  .more-link, .post-sources a, .calc-out .more-link { display: inline-flex; align-items: center; min-height: 44px; }
  .toc a { padding: 12px 0 12px 14px; }
  .toc a::before { top: 1.4em; }
  .lines a { display: inline-block; padding-block: 10px; }
  .foot-col a { padding-block: 11px; }
  .foot-meta a, .foot-meta .linkish { display: inline-block; padding-block: 11px; }
}

/* breadcrumbs: one line, the last crumb gives way */
.crumbs ol { flex-wrap: nowrap; min-width: 0; }
.crumbs li { flex: none; }
.crumbs li:last-child { flex: 0 1 auto; min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 940px) { .svc-top .crumbs li[aria-current] { display: none; } }

/* type */
.aside-cta .aside-h, .toc h2, .band-item h2, .foot-col h2, .post-sources h2 { line-height: 1.2; }
.cat-h, .office h2 { line-height: 1.05; }
.lead, .post-lede, .intro { text-wrap: pretty; }
.prose { max-width: 62ch; }
.post-lede { max-width: 58ch; }

/* article rows (art_list): the whole description shows; description sits under the title, or in its own row on phones */
.art-row { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "pic txt go" "pic dsc go"; column-gap: 20px; row-gap: 6px; align-items: start; }
.art-row .art-pic { grid-area: pic; }
.art-row .art-txt { grid-area: txt; }
.art-row .art-desc { grid-area: dsc; display: block; -webkit-line-clamp: unset; overflow: visible; }
.art-row .art-go { grid-area: go; align-self: center; }
.art-list.no-thumbs .art-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "txt go" "dsc go"; }
.art-list > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .art-row, .art-list.no-thumbs .art-row { grid-template-columns: 60px minmax(0, 1fr); grid-template-areas: "pic txt" "dsc dsc"; column-gap: 14px; row-gap: 10px; }
  .art-list.no-thumbs .art-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "txt" "dsc"; }
  .art-row .art-desc { display: -webkit-box; -webkit-line-clamp: 3; overflow: hidden; }
}

/* cta_band: the next step at the end of a page */
.cta-band .head { max-width: 20ch; }
.cta-actions { margin-top: clamp(28px, 3vw, 44px); display: flex; flex-wrap: wrap; gap: 12px; }
.cta-mail { margin-top: 24px; font-size: var(--step-body); }
.cta-mail a { display: inline-block; padding-block: 8px; font-weight: 600; text-decoration: underline 2px; text-decoration-color: var(--accent); text-underline-offset: .22em; }
.cta-cities { margin-top: clamp(28px, 3vw, 44px); display: flex; flex-wrap: wrap; gap: 8px; }
.cta-cities .city { min-height: 48px; background: rgba(7,26,51,.3); color: inherit; }
.cta-cities .city:hover { background: var(--yellow); color: var(--on-accent); }
.cta-cities .city:hover .dot { background: var(--field); }
.cta-cities .city .dot { background: var(--yellow); }
.cta-cities .city small { font-weight: 500; font-size: var(--step-small); opacity: .85; }
@media (max-width: 760px) { .cta-actions .btn { flex: 1 1 100%; justify-content: center; } .cta-cities .city { flex: 1 1 100%; } }

/* inquiry form = the calculator plate + a few extras */
.inq { padding-top: clamp(56px, 7vw, 112px); }
.inq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap) clamp(32px, 5vw, 96px); align-items: start; }
.inq .lead { margin-top: 24px; max-width: 34ch; }
.q-direct { margin-top: 32px; font-size: var(--step-lead); line-height: 1.5; letter-spacing: -0.015em; }
.q-direct > span { display: block; font-size: var(--step-small); color: var(--soft); letter-spacing: 0; }
.q-direct a { display: inline-block; padding-block: 6px; font-weight: 600; text-decoration: underline 2px; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
.q-direct a:hover { text-decoration-color: currentColor; }
.q-form { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.q-form .q-wide, .q-form .q-status { grid-column: 1 / -1; }
.q-f { display: grid; gap: 8px; font-weight: 600; font-size: var(--step-small); align-content: start; }
.q-f textarea, .calc-form textarea { font: inherit; font-size: var(--step-body); font-weight: 500; color: var(--ink); background: var(--bg); border: 0; padding: 14px 16px; width: 100%; min-height: 120px; border-radius: 0; resize: vertical; }
/* control boundary: #f5f7fa on #e7edf4 is 1.1:1 (WCAG 1.4.11 wants 3:1) */
.q-form input:not([type=hidden]), .q-form select, .q-form textarea, .calc-form select, .calc-form input { border-bottom: 2px solid var(--soft); }
.q-form input:focus-visible, .q-form select:focus-visible, .q-form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.q-form [aria-invalid="true"] { border-bottom-color: #b3261e; background: #fff; }
.q-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.q-status { padding: 14px 16px; background: var(--bg); border-left: 4px solid var(--blue); font-weight: 600; }
.q-status--bad { border-left-color: #b3261e; }
.q-status[hidden] { display: none; }
.q-status:target { display: block; }
.q-foot { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.q-foot .btn { background: var(--yellow); color: var(--on-accent); }
.q-foot .btn[disabled] { opacity: .6; cursor: progress; }
.q-foot small { flex: 1 1 18ch; color: var(--soft); font-size: var(--step-small); }
.q-foot small a { display: inline-block; padding-block: 6px; text-decoration: underline 2px; text-decoration-color: var(--accent); text-underline-offset: .2em; }
.q-form.is-sent > :not(.q-status) { display: none; }
.q-form.is-sent .q-status { font-size: var(--step-lead); line-height: 1.3; padding: 28px; }
.inq.compact .inq-grid { grid-template-columns: 1fr; }
@media (max-width: 1080px) { .inq-grid { grid-template-columns: 1fr; } .inq .lead { max-width: 46ch; } }
@media (max-width: 760px) { .q-form { grid-template-columns: 1fr; } .q-foot .btn { width: 100%; justify-content: center; } }

/* Google Maps behind consent */
.map-ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: clamp(20px, 3vw, 44px); background: var(--surface); }
.map-ph .map-addr { font-size: var(--step-lead); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; max-width: 24ch; }
.map-ph .map-open { display: inline-block; padding-block: 8px; font-weight: 600; text-decoration: underline 2px; text-decoration-color: var(--accent); text-underline-offset: .22em; }
.map-ph .map-note { color: var(--soft); font-size: var(--step-small); max-width: 44ch; }
.map-ph .map-note a { display: inline-block; padding-block: 6px; text-decoration: underline; }
.consent { position: fixed; inset: auto 0 0 0; z-index: 60; padding: 16px var(--m) calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--field); color: var(--field-ink);
  box-shadow: 0 -12px 30px -14px rgb(11 26 43 / .35); }
.consent[hidden] { display: none; }
body { padding-bottom: var(--consent-h, 0px); }
.consent-in { max-width: 1680px; margin-inline: auto; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.consent p { max-width: 74ch; font-size: var(--step-small); }
.consent p a { display: inline-block; padding-block: 6px; color: inherit; text-decoration: underline 2px; text-decoration-color: var(--accent); text-underline-offset: .2em; }
.consent-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.consent .btn { min-height: 48px; padding: 0 24px; background: var(--yellow); color: var(--on-accent); }
.consent .btn.quiet { background: rgba(255,255,255,.14); color: var(--field-ink); }
.consent .btn.quiet:hover { background: rgba(255,255,255,.24); }
.consent :focus-visible { outline-color: var(--accent-light); }
@media (max-width: 760px) { .consent .btn { flex: 1 1 40%; justify-content: center; } }

/* legal page */
.legal-nav { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.legal-body { padding-top: clamp(40px, 5vw, 80px); display: grid; gap: clamp(48px, 5vw, 80px); }
.legal-body section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px clamp(24px, 4vw, 72px); align-items: start; }
.legal-body h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.1; }
.legal-body .prose { max-width: 66ch; }
.legal-body .prose > * + * { margin-top: 1em; }
.legal-body .prose ul { padding-left: 1.3em; display: grid; gap: 8px; list-style: disc; }
.legal-body .prose a { text-decoration: underline 2px; text-decoration-color: var(--accent); text-underline-offset: .2em; }
.facts { margin: 0; display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 10px 24px; }
.facts dt { color: var(--soft); font-size: var(--step-small); padding-top: .2em; }
.facts dd { margin: 0; }
.legal-upd { color: var(--soft); }
@media (max-width: 760px) { .legal-body section { grid-template-columns: minmax(0, 1fr); } .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; } .facts dd { margin-bottom: 12px; } }

/* footer: one column on phones, contact first */
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-col:nth-of-type(4) { order: -1; }
}

.map-ph[hidden] { display: none; }
.map-ph { overflow: auto; gap: 10px; }
.map-ph .map-addr { font-size: var(--step-body); }
.office .map { min-height: 400px; }
.map-ph .map-open { padding-block: 6px; }
.no-js .map-ph [data-map-load] { display: none; }
@media (max-width: 760px) { .office .map { min-height: 340px; } .office-main .map { min-height: 380px; } }
.foot-meta .fm-l { flex: 1 1 44ch; max-width: 80ch; }
.foot-meta .fm-r { flex: 0 1 auto; margin-left: auto; }
@media (max-width: 760px) { .foot-meta .fm-r { margin-left: 0; } }

/* ── home: service chooser, DAMTN note ──────────────────────── */
.svc-pick { list-style: none; margin: 0 0 clamp(56px, 6vw, 96px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.svc-plate { --k: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 190px; height: 100%; padding: 24px 24px 22px; background: var(--dom); color: var(--field-ink); text-decoration: none;
  transition: transform var(--t-ui) var(--ease-out), background-color var(--t-hover) ease; }
.svc-plate strong { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.svc-plate span { font-size: var(--step-small); color: var(--field-soft); line-height: 1.4; max-width: 30ch; }
.svc-plate i { margin-top: auto; font-style: normal; font-size: var(--step-lead); transition: transform var(--t-ui) var(--ease-out); }
.svc-plate:hover { transform: translateY(-3px); }
.svc-plate:hover i { transform: translateX(4px); }
.svc-plate:active { transform: scale(0.98); }
.svc-plate:focus-visible { outline-offset: -6px; outline-color: currentColor; }
@media (max-width: 1080px) { .svc-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-pick { grid-template-columns: minmax(0, 1fr); } .svc-plate { min-height: 0; } }
.damtn-full { margin-top: 16px; color: var(--field-soft); font-size: var(--step-small); max-width: 52ch; }

/* batch 3: service-page template */
.svc-glance { margin-top: clamp(32px, 4vw, 56px); }
.svc-glance ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.svc-glance li { --k: 16px; padding: 24px 24px 22px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.svc-glance .st-l { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--step-small); letter-spacing: -0.005em; }
.svc-glance .dot { background: var(--yellow); box-shadow: 0 0 0 1px var(--field); }
.svc-glance p { font-size: var(--step-small); line-height: 1.5; }
.svc-glance .more-link { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: var(--step-small); }
.more-link { color: var(--blue-hi); text-underline-offset: 0.2em; }
.svc-how { margin-top: var(--section); }
.svc-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.svc-steps li { display: flex; gap: 18px; align-items: flex-start; }
.svc-steps h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; }
.svc-steps p { margin-top: 8px; max-width: 40ch; }
.svc-all { margin-top: 28px; }
.svc-others .svc-pick.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 32px 0 0; }
.svc-cross { margin-top: 28px; }
.svc-cross a { color: var(--blue); font-weight: 600; text-underline-offset: 0.2em; }
.svc-body .note-line a { color: var(--blue); text-underline-offset: 0.2em; }
@media (max-width: 1179px) { .svc-glance ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 761px) and (max-width: 1080px) { .band-grid > .band-item:last-child:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 1080px) { .svc-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; } .svc-others .svc-pick.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .svc-hero { display: flex; flex-direction: column; align-items: stretch; }
  .svc-hero-pic { order: 2; height: min(46svh, 520px); margin: 32px calc(-1 * var(--m)) 0 12vw; }
}
@media (max-width: 760px) {
  .svc-items { grid-template-columns: minmax(0, 1fr); }
  .svc-card { padding: 22px; gap: 16px; }
  .band-grid { row-gap: 40px; }
  .band-item + .band-item { border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; }
  .svc-glance ul { grid-template-columns: minmax(0, 1fr); }
}
main.svc ~ .site-footer { margin-top: 0; }

/* pressure page: body accents teal, not blue (P06) */
[data-dom="sn"] .svc-body .dot { background: var(--dom); }
[data-dom="sn"] .lic-chip, [data-dom="ps"] .lic-chip { background: #0b2545; color: #fff; }
[data-dom="sn"] .lic-chip:hover, [data-dom="ps"] .lic-chip:hover { background: #12355f; }

/* ── batch 8: contact ─────────────────────────────────────────── */
.lines a[href^="tel"] { white-space: nowrap; }
.contact-top .page-head .hero-cta { margin-top: 28px; }
.pg-top .crumbs { color: var(--field-soft); }
.pg-top .crumbs a:hover { color: var(--field-ink); }
.pg-top .crumbs li + li::before { color: var(--field-soft); }
.intro, .page-head h1 { text-wrap: balance; }
.bgmap .pin { outline: none; }
.bgmap .pin:focus-visible path:not(.ring) { stroke: #fff; stroke-width: 7px; paint-order: stroke; }
.pg-top .bgmap .pin text { paint-order: stroke; stroke: #06454d; stroke-width: 6px; stroke-linejoin: round; }
.pg-top .bgmap .pin path:not(.ring) { stroke: #06454d; stroke-width: 3px; paint-order: stroke; }
.pg-top .bgmap .pin:focus-visible path:not(.ring) { stroke: #fff; stroke-width: 7px; }
@media (max-width: 1080px) { .bgmap .pin text { font-size: 44px; } .cities .city { flex: 1 1 28%; justify-content: center; } }
@media (max-width: 760px) {
  .cities { display: grid; grid-template-columns: 1fr 1fr; }
  .cities .city:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1281px) {
  .offices { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1280px) {
  .offices { grid-template-columns: 1fr; }
  .office { grid-template-columns: 5fr 7fr; }
}
@media (max-width: 760px) { .office { grid-template-columns: 1fr; } }

/* blog filter: one scrolling row below 1280px */
@media (max-width: 1280px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--m)); padding-inline: var(--m); scroll-padding-inline: var(--m); scroll-snap-type: x proximity; scrollbar-width: none; margin-top: 24px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; scroll-snap-align: start; }
}


/* BATCH 11 - article template */
.cta-inline, .toc-m { display: none; }
.post-aside { max-height: calc(100svh - 124px); overflow: auto; scrollbar-width: thin; }
.post-body[data-dom] .prose thead th, .prose thead th { background: var(--dom, var(--blue)); color: var(--field-ink, #fff); white-space: nowrap; }
.prose td[data-label="Източник"], .prose td[data-label="Source"] { white-space: nowrap; }
.src-note { margin-top: 16px; max-width: 60ch; }
.post-pic { aspect-ratio: 5 / 2; }
.post-pic img[src*="svc-lift"] { object-position: 50% 22%; }
.post-pic img[src*="svc-nb"] { object-position: 55% 62%; }
.post-pic img[src*="svc-pressure"] { object-position: 50% 27%; }
.post-pic img[src*="svc-crane"] { object-position: 50% 14%; }
.toc-m summary { cursor: pointer; font-weight: 600; min-height: 48px; display: flex; align-items: center; padding: 0 16px; background: var(--surface); }
.toc-m ol { list-style: none; padding: 8px 16px 12px; margin: 0; display: grid; gap: 2px; background: var(--surface); }
.toc-m a { display: block; padding: 10px 0; font-size: var(--step-small); text-decoration: none; }
.toc-m { margin-bottom: 40px; }
@media (max-width: 1080px) {
  .toc, .post-aside { display: none; }
  .toc-m { display: block; }
  .cta-inline { display: grid; --k: 18px; background: var(--dom, var(--blue)); color: var(--field-ink, #fff); padding: 24px; gap: 14px; justify-items: start; margin-top: 56px; max-width: 34rem; }
  .cta-inline p { color: var(--field-soft, #eef5fc); font-size: var(--step-small); }
  .cta-inline .aside-h { font-size: var(--step-body); font-weight: 600; color: var(--field-ink, #fff); line-height: 1.25; }
  .cta-inline .btn { background: var(--yellow); color: var(--on-accent); min-height: 48px; padding: 0 20px; font-size: var(--step-small); }
  .cta-inline .btn.quiet { background: rgba(7,26,51,.3); color: inherit; }
  .cta-inline .more-link { color: var(--field-ink, #fff); font-size: var(--step-small); }
  .cta-inline a:not(.btn) { text-decoration: underline; text-underline-offset: .2em; }
  .post-pic { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .post-lede { font-size: 1.0625rem; line-height: 1.5; margin-top: 18px; }
  .post-h1 { font-size: clamp(1.75rem, 7.4vw, 2rem); }
  .prose table, .prose tbody { display: block; overflow: visible; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr { display: grid; gap: 6px; padding: 14px 16px; }
  .prose tbody tr:nth-child(odd) { background: var(--surface); }
  .prose td { padding: 0; display: grid; grid-template-columns: minmax(6.5em, 36%) 1fr; gap: 12px; }
  .prose td::before { content: attr(data-label); font-weight: 600; color: var(--soft); font-size: var(--step-small); }
  .prose td[data-label=""] { display: block; font-weight: 600; }
  .prose td[data-label=""]::before { display: none; }
  .prose th[scope="row"] { display: block; padding: 0; }
}
.prose .cta-inline .btn, .prose .cta-inline .more-link { text-decoration: none; }
.prose .cta-inline .more-link { text-decoration: underline; text-decoration-color: currentColor; }
.prose .cta-inline .btn { color: var(--on-accent); } .prose .cta-inline .btn.quiet { color: inherit; }

/* palette A (2026-11-23): the ps domain fill equals the accent, so accent-filled controls on it switch to navy */
.doc[data-dom="ps"].active .btn:not(.quiet), [data-dom="ps"] .aside-cta .btn:not(.quiet), .aside-cta[data-dom="ps"] .btn:not(.quiet) { background: var(--field); color: #fff; }
.svc-band[data-dom="ps"] .doc-btn .pdf { background: var(--field); }
.doc.active .btn.quiet { background: rgba(255,255,255,.14); }
.doc.active .btn.quiet:hover { background: rgba(255,255,255,.24); }
.aside-cta .btn:not(.quiet) { background: #fff; color: var(--field); }
.doc .acts .btn { transition: transform var(--t-press) var(--ease-out); } /* no colour fade when JS activates a card at load */
.doc[data-dom="ps"]:not(.active) .btn.quiet { background: var(--surface-2) !important; color: var(--ink) !important; }
