/* ============ Door Project Service — homepage prototype ============ */
/* Design language adapted from aircenter.space analysis (docs/02) */

:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --gray: #8d8d8d;
  --gray-light: #c9c9c9;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Onest', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--gray);
  font-size: 14px;
  letter-spacing: .06em;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--black); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
h1 { font-size: clamp(3rem, 9vw, 8.5rem); line-height: .95; }
h2 { font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.02; margin-bottom: 1.6rem; }
h3 { font-size: 1rem; letter-spacing: .12em; }

/* Cyrillic sets noticeably wider than Latin at the same size, and Russian
   construction terms are long compound words. Scale the display sizes down
   on the Russian site so masked headline lines are never clipped. */
html[lang="ru"] h1 { font-size: clamp(1.75rem, 5.6vw, 6rem); }
html[lang="ru"] h2 { font-size: clamp(1.6rem, 3.8vw, 3.4rem); }
html[lang="ru"] .cat-card h2 { font-size: clamp(1.1rem, 2vw, 1.6rem); }
html[lang="ru"] .stat .num { font-size: clamp(2.6rem, 6vw, 5rem); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1280px, 92vw); margin-inline: auto; }
.container.narrow { width: min(880px, 92vw); }

.kicker {
  font-size: .7rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.8rem;
}

.lead { text-transform: uppercase; font-size: .95rem; line-height: 2; max-width: 62ch; }
.lead + .lead { margin-top: 2.5rem; }
.lead.accent { color: var(--black); font-weight: 600; font-size: 1.15rem; }

/* ---------- light / dark section rhythm ---------- */
section { padding: clamp(5rem, 12vh, 9rem) 0; }
.ui-dark { background: var(--black); }
.ui-dark h1, .ui-dark h2, .ui-dark h3 { color: var(--white); }
.ui-dark .lead.accent { color: var(--white); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  mix-blend-mode: difference; /* stays legible over light & dark sections */
  color: #fff;
}
.logo { display: flex; align-items: center; gap: .85rem; font-weight: 700; font-size: .85rem; letter-spacing: .3em; line-height: 1.3; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-text { display: block; }
.logo-text > span { display: block; font-weight: 300; letter-spacing: .52em; font-size: .6rem; }
.header-nav { display: flex; gap: 2.2rem; font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; }
.header-nav a { opacity: .75; transition: opacity .3s; }
.header-nav a:hover { opacity: 1; }
.header-cta {
  border: 1px solid currentColor; border-radius: 999px;
  padding: .55em 1.4em; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  transition: background .3s, color .3s;
}
.header-cta:hover { background: #fff; color: #000; mix-blend-mode: normal; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden; padding: 0;
}
/* Specificity must beat `.ph` (declared later, also one class), which would otherwise
   apply position: relative and collapse this to content size inside the flex hero. */
.hero .hero-media { position: absolute; inset: 0; z-index: 0; border-radius: 0; }
.hero-content { position: relative; z-index: 1; padding: 6rem 1rem; }
.hero-sub { margin-top: 2.4rem; text-transform: uppercase; font-size: .82rem; line-height: 2.1; color: var(--gray-light); }
.scroll-hint { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); }
.scroll-hint span {
  display: block; width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, #fff);
  animation: hint 2.2s var(--ease) infinite;
}
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- placeholders (until photography arrives) ---------- */
.ph { border-radius: 14px; position: relative; overflow: hidden; background: #1a1a1a; }
.ph::after {
  content: var(--ph-label, "PHOTO"); position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 1rem;
  font-size: .6rem; letter-spacing: .4em; color: rgba(255,255,255,.35);
}
.ph-hero { border-radius: 0; background:
  radial-gradient(120% 90% at 50% 110%, #2e2a26 0%, #0a0a0a 60%);
}
.ph-hero::after { content: var(--ph-hero-label, "HERO PHOTO — SIGNATURE DOOR IN HOTEL INTERIOR"); }
.ph-1 { background: linear-gradient(160deg, #3a2f26, #171310); }
.ph-2 { background: linear-gradient(160deg, #26292e, #101214); }
.ph-3 { background: linear-gradient(160deg, #2c2c30, #131316); }
.ph-4 { background: linear-gradient(160deg, #232830, #0f1216); }
.ph-5 { background: linear-gradient(160deg, #2b2b28, #121210); }
.ph-6 { background: linear-gradient(160deg, #1f2a2e, #0e1416); }
.ph-7 { background: linear-gradient(160deg, #2e2622, #14100e); }
.ph-mat-1 { background: linear-gradient(140deg, #4a3b2c, #1c150e); }
.ph-mat-2 { background: linear-gradient(140deg, #3a3d42, #15171a); }
.ph-mat-3 { background: linear-gradient(140deg, #44403a, #181613); }
[class*="ph-case"] { background: linear-gradient(150deg, #2a2a2e, #101013); }

/* Real photography. The gradient stays as the loading backdrop so a slow image fades in
   from the right tone rather than from white, but the placeholder label goes. */
.ph--filled::after { content: none; }
.ph > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ---------- products ---------- */
.product-grid {
  margin-top: 3.5rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem;
}
.product-card { display: block; transition: transform .35s var(--ease); }
.product-card:hover { transform: translateY(-5px); }
.product-card .ph { aspect-ratio: 4 / 5; margin-bottom: 1.1rem; transition: filter .35s var(--ease); }
.product-card:hover .ph { filter: brightness(1.15); }
.product-card.wide { grid-column: span 3; }
.product-card.wide .ph { aspect-ratio: 21 / 7; }
.product-card p { margin-top: .5rem; font-size: .8rem; }

/* ---------- materials ---------- */
.materials-strip { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
.materials-strip .ph { aspect-ratio: 4 / 3; }

/* ---------- stats ---------- */
.stats .container:first-child {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center;
}
.stat .num { display: block; font-size: clamp(3rem, 7vw, 6rem); font-weight: 600; color: var(--black); line-height: 1; }
.stat .label { display: block; margin-top: .8rem; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; }
.stats-note { margin-top: 4rem; text-align: center; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; max-width: 70ch; }

/* ---------- portfolio ---------- */
.portfolio-scroller {
  margin-top: 3.5rem; display: flex; gap: 1.4rem;
  overflow-x: auto; padding: 0 4vw 1.5rem;
  scroll-snap-type: x mandatory;
}
/* Scrollbar hidden — the arrow buttons below the rail drive the scrolling,
   while touch, trackpad and keyboard scrolling all still work. */
.portfolio-scroller { scrollbar-width: none; -ms-overflow-style: none; }
.portfolio-scroller::-webkit-scrollbar { display: none; }
.case { flex: 0 0 min(420px, 78vw); scroll-snap-align: start; }
.case .ph { aspect-ratio: 4 / 3; margin-bottom: 1rem; }
.case p { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; margin-top: .3rem; }

/* ---------- project cards (2025 references + earlier landmarks) ---------- */
.portfolio .lead { margin-top: 1.8rem; }
.case h3 { text-transform: none; letter-spacing: .04em; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.case-meta { font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gray); margin-top: .5rem; }
.portfolio-foot {
  margin-top: 2.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.ref-note {
  max-width: 62ch;
  font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gray);
  border-left: 1px solid rgba(0,0,0,.2); padding-left: 1rem;
}
.scroller-nav { display: flex; gap: .6rem; flex: none; }
.scroller-nav button {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  font-family: inherit; font-size: 1rem; line-height: 1;
  background: transparent; border: 1px solid rgba(0,0,0,.3); color: var(--black);
  transition: all .28s var(--ease);
}
.scroller-nav button:hover:not(:disabled) { background: var(--black); color: var(--white); border-color: var(--black); }
.scroller-nav button:disabled { opacity: .25; cursor: default; }

/* Client logos: kept in the site's monochrome palette rather than their own
   brand colours. Only ever rendered when a logo file is supplied. */
.case-logo { max-width: 120px; max-height: 34px; object-fit: contain; object-position: left; margin-top: .8rem; }
.tinted { filter: grayscale(1) contrast(1.08) opacity(.75); transition: filter .35s var(--ease); }
.case:hover .tinted { filter: grayscale(1) contrast(1.08) opacity(1); }
.ui-dark .tinted { filter: grayscale(1) invert(1) contrast(1.05) opacity(.8); }

/* ---------- services ---------- */
.services-list { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 4rem; }
.service span { font-size: .7rem; letter-spacing: .3em; color: var(--gray); }
.service h3 { margin: .6rem 0 .5rem; }
.service p { font-size: .82rem; }
.ui-dark .service p { color: var(--gray); }

/* ---------- choose / cta ---------- */
.choose { text-align: center; }
.choose-actions { display: flex; gap: 1rem; justify-content: center; margin: 2.5rem 0 2rem; flex-wrap: wrap; }
.btn {
  display: inline-block; border-radius: 999px; padding: 1em 2.6em;
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
  transition: all .3s var(--ease); border: 1px solid var(--black);
}
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: transparent; color: var(--black); }
.btn-ghost { color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); }
.ui-dark .btn { border-color: var(--white); }
.ui-dark .btn-ghost { color: var(--white); }
.ui-dark .btn-ghost:hover { background: var(--white); color: var(--black); }
.btn.sm { padding: .7em 1.8em; font-size: .65rem; }
.choose-note { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; max-width: 52ch; margin-inline: auto; }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact-lines { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.2rem; align-items: center; }
.contact-lines > a { color: var(--white); font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 500; letter-spacing: .08em; transition: opacity .3s; }
.contact-lines > a:hover { opacity: .6; }
.messengers { display: flex; gap: 1rem; margin-top: 1rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--black); padding: 2.5rem 0 3rem; border-top: 1px solid rgba(255,255,255,.1); }
.site-footer .container { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer p { font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gray); }

/* ---------- reveal animation (fallback path, html.no-gsap) ---------- */
.no-gsap .reveal { opacity: 0; transform: translateY(46px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.no-gsap .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- GSAP path: masked headline lines ---------- */
.gsap h1 .line, .gsap h2 .line { display: block; overflow: hidden; }
/* max-width keeps a masked line inside its container: without it the
   inline-block simply overflows and the mask clips the text. Long Russian
   compound words then wrap instead of being cut off. */
.gsap h1 .line-in, .gsap h2 .line-in {
  display: inline-block; will-change: transform;
  max-width: 100%; overflow-wrap: break-word;
}
.gsap .hero .kicker, .gsap .hero-sub, .gsap .scroll-hint { will-change: transform, opacity; }
html.gsap { scroll-behavior: auto; } /* Lenis owns scrolling */

/* ============ DOOR FINDER (layout mirrors inspiration /offices) ============ */
.finder-page { background: var(--white); }
.finder-page .site-header { mix-blend-mode: normal; color: var(--black); background: rgba(255,255,255,.85); backdrop-filter: blur(12px); }
.finder-page .header-cta:hover { background: var(--black); color: var(--white); }

.finder-head { padding: 10rem 0 3rem; }
/* Category landing hero. 21:9 to match the -hero masters; these pages are the main SEO
   entry point per door type, so the image sits above the filter/results shell. */
.category-hero { padding: 0 0 3.5rem; }
.category-hero__img { aspect-ratio: 21 / 9; border-radius: 14px; }
.finder-head .found { margin-top: 1.6rem; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--black); }
.finder-head .found span { font-weight: 700; }

.finder-body { padding: 1rem 0 6rem; }
.finder-layout { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; }
/* Grid items default to min-width:auto and refuse to shrink below their
   content — long compound words (especially in Russian) push the results
   column past the viewport. */
.finder-layout > * { min-width: 0; }
/* `anywhere` (not `break-word`) also shrinks the intrinsic min-content size,
   so grid tracks stop being widened by a single long compound word. */
.door-card__meta, .door-card h3, .door-card__uses, .cat-section__head p,
.detail-p, .results-note, .cat-card p, .product-card p, .spec-chip { overflow-wrap: anywhere; }

/* filters — thin-bordered groups like the inspiration site */
.filters { position: sticky; top: 6.5rem; display: flex; flex-direction: column; gap: 1.2rem; }
.filter-group { border: 1px solid rgba(0,0,0,.15); border-radius: 10px; padding: 1.3rem 1.2rem 1.4rem; }
.filter-title { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gray); margin-bottom: 1rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-family: inherit; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .6em 1.1em; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid rgba(0,0,0,.3); color: var(--black);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--black); }
.chip.active { background: var(--black); color: var(--white); border-color: var(--black); }
.toggle { display: flex; align-items: center; gap: .7rem; padding: .45rem 0; cursor: pointer; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--black); }
.toggle input { appearance: none; width: 34px; height: 19px; border-radius: 999px; background: rgba(0,0,0,.15); position: relative; cursor: pointer; transition: background .25s; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.toggle input:checked { background: var(--black); }
.toggle input:checked::after { transform: translateX(15px); }
.clear-btn {
  font-family: inherit; font-size: .62rem; letter-spacing: .25em; text-transform: uppercase;
  background: transparent; border: 1px solid rgba(0,0,0,.3); border-radius: 8px;
  padding: .9em 0; cursor: pointer; color: var(--black); transition: all .25s;
}
.clear-btn:hover { background: var(--black); color: var(--white); }

/* results */
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.results-note { font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gray); }
.view-toggle { display: flex; border: 1px solid rgba(0,0,0,.25); border-radius: 999px; overflow: hidden; }
.view-toggle button {
  font-family: inherit; font-size: .6rem; letter-spacing: .22em; padding: .7em 1.5em;
  background: transparent; border: 0; cursor: pointer; color: var(--gray); transition: all .25s;
}
.view-toggle button.active { background: var(--black); color: var(--white); }

.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }

/* card — the soft-gray curved square from the inspiration selector */
.door-card {
  background: rgba(0,0,0,.05); border-radius: 14px; padding: 1.1rem;
  display: flex; flex-direction: column; gap: .9rem;
  transition: background .3s var(--ease);
}
.door-card:hover { background: rgba(0,0,0,.09); }
.door-card__img { aspect-ratio: 4 / 3; border-radius: 10px; }
.door-card__type { font-size: .55rem; letter-spacing: .3em; color: var(--gray); text-transform: uppercase; }
.door-card h3 { font-size: .92rem; margin-top: .25rem; }
.door-card__meta { font-size: .68rem; letter-spacing: .08em; margin-top: .35rem; }
.door-card__specs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.spec-chip {
  font-size: .55rem; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid rgba(0,0,0,.25); border-radius: 999px; padding: .35em .9em; color: var(--black);
}
.add-spec {
  font-family: inherit; font-size: .58rem; letter-spacing: .25em; text-transform: uppercase;
  border: 1px solid var(--black); border-radius: 999px; background: transparent; color: var(--black);
  padding: .85em 0; cursor: pointer; transition: all .25s var(--ease); margin-top: auto;
}
.add-spec:hover { background: var(--black); color: var(--white); }
.add-spec.added { background: var(--black); color: var(--white); }

/* list view — row cards like the inspiration list mode */
.results-grid.is-list { grid-template-columns: 1fr; }
.is-list .door-card { flex-direction: row; align-items: center; gap: 1.6rem; padding: .9rem 1.4rem .9rem .9rem; }
.is-list .door-card__img { flex: 0 0 130px; aspect-ratio: 4 / 3; }
.is-list .door-card__text { flex: 1; }
.is-list .add-spec { margin-top: 0; padding: .85em 2em; }

/* ---------- level 1: category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.cat-card {
  position: relative;
  background: rgba(0,0,0,.05); border-radius: 18px; padding: 1.3rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.cat-card:hover { background: rgba(0,0,0,.09); transform: translateY(-4px); }
.cat-card__img { aspect-ratio: 16 / 8; border-radius: 12px; }
.cat-card h2 { font-size: clamp(1.3rem, 2.4vw, 2rem); margin-bottom: .6rem; }
.cat-card p { font-size: .78rem; max-width: 46ch; }
.cat-card__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.cat-card__arrow {
  position: absolute; top: 1.6rem; right: 1.8rem;
  font-size: 1.3rem; color: var(--black);
  transition: transform .35s var(--ease);
}
.cat-card:hover .cat-card__arrow { transform: translateX(6px); }

.crumb { font-size: .62rem; letter-spacing: .3em; color: var(--gray); transition: color .3s; }
.crumb:hover { color: var(--black); }
#catDesc { color: var(--gray); font-weight: 400; }

/* ---------- pulsing header CTA ---------- */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  50%      { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
}
@keyframes cta-pulse-dark {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,.4); }
  50%      { box-shadow: 0 0 0 9px rgba(0,0,0,0); }
}
.header-cta.pulse { animation: cta-pulse 2.6s var(--ease) infinite; }
.finder-page .header-cta.pulse { animation-name: cta-pulse-dark; }
@media (prefers-reduced-motion: reduce) { .header-cta.pulse { animation: none; } }

/* spec bar */
.spec-bar {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 1.6rem;
  background: var(--black); color: var(--white); border-radius: 999px;
  padding: .8rem 1rem .8rem 1.8rem;
  font-size: .62rem; letter-spacing: .25em; text-transform: uppercase;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.btn-light { background: var(--white); color: var(--black); border: 1px solid var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }

/* ============ CATALOGUE: notices, sub-nav, sections ============ */
.notice {
  margin-top: 1.6rem; max-width: 68ch;
  font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gray);
  border-left: 1px solid rgba(0,0,0,.2); padding-left: 1rem;
}
.notice--strong { color: var(--black); border-left-color: var(--black); }
.cat-card__count { margin-top: 1rem; font-size: .55rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gray); }

.subnav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-block: 1px solid rgba(0,0,0,.1);
}
.subnav__inner { display: flex; gap: 2rem; overflow-x: auto; padding: 1rem 0; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a {
  white-space: nowrap; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gray); padding-bottom: .3rem; border-bottom: 1px solid transparent; transition: all .3s var(--ease);
}
.subnav a:hover { color: var(--black); }
.subnav a.active { color: var(--black); border-bottom-color: var(--black); }

.cat-section { padding-top: 3.5rem; scroll-margin-top: 7rem; }
.cat-section:first-of-type { padding-top: 1rem; }
.cat-section__head { position: relative; margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(0,0,0,.12); }
.cat-section__head h2 { font-size: clamp(1.1rem, 2vw, 1.6rem); margin-bottom: .5rem; }
.cat-section__head p { font-size: .75rem; max-width: 60ch; }
.cat-section__count { position: absolute; top: 0; right: 0; font-size: .55rem; letter-spacing: .25em; color: var(--gray); }
.cat-section.is-empty .results-grid { display: none; }
.empty-note { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gray); padding: 1.5rem 0; }
.door-card.is-filtered-out { display: none; }

/* card additions */
.door-card__uses { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gray); margin-top: .7rem; }
.status-tag { margin-left: .6rem; padding: .2em .7em; border: 1px solid rgba(0,0,0,.25); border-radius: 999px; font-size: .5rem; letter-spacing: .18em; }
.card-actions { margin-top: auto; display: flex; gap: .5rem; }
.card-actions > * { flex: 1; }
.btn-card {
  font-family: inherit; font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; text-align: center;
  border: 1px solid rgba(0,0,0,.3); border-radius: 999px; padding: .85em 0; color: var(--black);
  transition: all .25s var(--ease);
}
.btn-card:hover { border-color: var(--black); background: rgba(0,0,0,.06); }
.is-list .card-actions { flex: 0 0 auto; margin-top: 0; }
.is-list .card-actions > * { flex: 0 0 auto; padding-inline: 1.6em; }

/* ============ COLLECTIONS ============ */
.collections-strip { padding: 5rem 0 0; }
.collection-links { display: flex; flex-wrap: wrap; gap: .7rem; }
.collection-links a {
  display: inline-flex; align-items: center; gap: .8rem;
  border: 1px solid rgba(0,0,0,.2); border-radius: 999px; padding: .85em 1.6em;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--black);
  transition: all .28s var(--ease);
}
.collection-links a span { color: var(--gray); font-size: .58rem; }
.collection-links a:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.collection-links a:hover span { color: rgba(255,255,255,.6); }
.collection-intro { padding: 0 0 2rem; }
.collection-intro .lead { text-transform: none; font-size: 1rem; line-height: 1.9; color: var(--black); max-width: 66ch; }
.section-link { margin-top: 1.4rem; }
.section-link a {
  font-size: .58rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gray);
  border-bottom: 1px solid rgba(0,0,0,.2); padding-bottom: .2rem; transition: all .25s;
}
.section-link a:hover { color: var(--black); border-bottom-color: var(--black); }

/* ============ PRODUCT DETAIL PAGE ============ */
.detail-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.6rem; }
.detail-actions { display: flex; gap: .8rem; margin-top: 1.8rem; flex-wrap: wrap; }
.detail-actions .btn { font-family: inherit; cursor: pointer; }
.detail-body { padding-top: 2rem; }
/* 4:3 matches the product image masters, so the door is never cropped through the head
   or threshold. Was 21/9 when this slot showed a category photograph. */
.detail-hero { aspect-ratio: 4 / 3; border-radius: 14px; margin-bottom: 3.5rem; }
.detail-h2 { font-size: 1rem; letter-spacing: .12em; margin: 3rem 0 1.2rem; padding-bottom: .7rem; border-bottom: 1px solid rgba(0,0,0,.12); }
.detail-p { font-size: .85rem; max-width: 68ch; margin-bottom: 1rem; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.spec-table th, .spec-table td { text-align: left; padding: .85rem 0; border-bottom: 1px solid rgba(0,0,0,.08); vertical-align: top; }
.spec-table th { width: 42%; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; font-size: .62rem; color: var(--gray); }
.spec-table td { color: var(--black); }
.on-request { color: var(--gray); font-style: italic; }
.related-list { display: flex; flex-wrap: wrap; gap: .8rem; }
.related-item {
  border: 1px solid rgba(0,0,0,.2); border-radius: 10px; padding: .9rem 1.2rem;
  font-size: .75rem; color: var(--black); transition: all .25s var(--ease);
}
.related-item span { display: block; font-size: .55rem; letter-spacing: .25em; color: var(--gray); margin-bottom: .3rem; }
.related-item:hover { border-color: var(--black); background: rgba(0,0,0,.04); }
.conversion { margin-top: 4rem; background: rgba(0,0,0,.05); border-radius: 18px; padding: 2.6rem 2rem; text-align: center; }
.conversion h2 { font-size: clamp(1.2rem, 2.4vw, 1.8rem); margin-bottom: .8rem; }
.conversion p { font-size: .8rem; margin-bottom: 1.8rem; }
.conversion .choose-actions { margin: 0; }
.conversion .btn { font-family: inherit; cursor: pointer; }

/* ============ SPEC LIST PAGE ============ */
.spec-items { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 2.5rem; }
.spec-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: rgba(0,0,0,.05); border-radius: 12px; padding: 1.1rem 1.4rem;
}
.spec-item__id { font-size: .55rem; letter-spacing: .25em; color: var(--gray); }
.spec-item h3 { font-size: .9rem; margin: .35rem 0; }
.spec-item__sub { font-size: .7rem; }
.spec-item__remove {
  font-family: inherit; font-size: .55rem; letter-spacing: .22em; background: transparent;
  border: 1px solid rgba(0,0,0,.3); border-radius: 999px; padding: .7em 1.5em; cursor: pointer;
  color: var(--black); transition: all .25s; flex: none;
}
.spec-item__remove:hover { background: var(--black); color: var(--white); }
.spec-empty { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gray); }
.spec-empty a { color: var(--black); border-bottom: 1px solid var(--black); }
.spec-form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 640px; }
.spec-form label { display: flex; flex-direction: column; gap: .5rem; font-size: .58rem; letter-spacing: .25em; color: var(--gray); }
.spec-form input, .spec-form textarea {
  font-family: inherit; font-size: .85rem; color: var(--black);
  background: transparent; border: 1px solid rgba(0,0,0,.2); border-radius: 8px; padding: .9rem 1rem;
  transition: border-color .25s; resize: vertical;
}
.spec-form input:focus, .spec-form textarea:focus { outline: none; border-color: var(--black); }
.spec-form .btn { align-self: flex-start; font-family: inherit; cursor: pointer; margin-top: .5rem; }
.form-note { font-size: .55rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gray); }
.fallback { margin-top: 3rem; border-top: 1px solid rgba(0,0,0,.12); }
.fallback-text {
  width: 100%; font-family: inherit; font-size: .8rem; line-height: 1.7; color: var(--black);
  background: rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.15); border-radius: 10px;
  padding: 1.2rem; margin-bottom: 1.2rem; resize: vertical;
}
.fallback .btn { font-family: inherit; cursor: pointer; }
.mail-link { color: var(--black); border-bottom: 1px solid var(--black); }

/* ============ MAINTENANCE SECTION (/to/, Russian site) ============ */
.to-page .subnav { position: static; }
.to-lead { margin-top: 1.6rem; font-size: 1rem; line-height: 1.9; color: var(--black); max-width: 62ch; }
.to-block { padding: clamp(4rem, 9vh, 6.5rem) 0; border-top: 1px solid rgba(0,0,0,.08); }
.to-block:first-of-type { border-top: 0; }
.to-block .conversion { margin-top: 0; }
.to-points { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 3rem; margin-top: 1rem; }
.to-points li { display: flex; gap: 1.1rem; align-items: baseline; border-top: 1px solid rgba(0,0,0,.12); padding-top: 1rem; }
.to-points span { font-size: .65rem; letter-spacing: .3em; color: var(--gray); flex: none; }
.to-points p { font-size: .85rem; color: var(--black); }
.to-accent { margin-top: 3rem; text-transform: none; line-height: 1.7; }
.to-checks { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.to-checks li { position: relative; padding-left: 1.8rem; font-size: .85rem; color: var(--black); }
.to-checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .9rem; height: 1px; background: var(--black); }
.to-dashes { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.to-dashes li { border: 1px solid rgba(0,0,0,.2); border-radius: 999px; padding: .55em 1.2em; font-size: .75rem; color: var(--black); }
.to-services { margin-top: 1rem; }
.to-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.to-group .detail-h2 { margin-top: 2.4rem; }
.to-excluded { margin-top: 2rem; }
.to-theses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 1rem; }
.to-thesis { background: rgba(0,0,0,.05); border-radius: 14px; padding: 1.6rem 1.5rem; }
.to-thesis span { font-size: .65rem; letter-spacing: .3em; color: var(--gray); }
.to-thesis h3 { margin: .6rem 0 .5rem; }
.to-thesis p { font-size: .82rem; }
.to-thesis.is-strong { background: var(--black); }
.to-thesis.is-strong h3, .to-thesis.is-strong p { color: var(--white); }
.to-license { margin-top: 3.5rem; border: 1px solid var(--black); border-radius: 18px; padding: 2.2rem 2rem; }
.to-license h2 { font-size: clamp(1.1rem, 2.2vw, 1.6rem); margin-bottom: .8rem; }
.to-license p { font-size: .85rem; max-width: 66ch; }
.to-license__no { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: baseline; color: var(--black); }
.to-license__no span { font-size: .58rem; letter-spacing: .25em; color: var(--gray); }
.to-table-wrap { overflow-x: auto; }
.to-table { width: 100%; border-collapse: collapse; font-size: .8rem; min-width: 520px; }
.to-table th { text-align: left; font-weight: 400; font-size: .58rem; letter-spacing: .25em; color: var(--gray); padding: 0 1rem .8rem 0; border-bottom: 1px solid rgba(0,0,0,.2); }
.to-table td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid rgba(0,0,0,.08); color: var(--black); vertical-align: top; }
.to-table strong { font-weight: 600; }
.to-compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.to-compare__item { background: rgba(0,0,0,.05); border-radius: 14px; padding: 1.6rem 1.4rem; }
.to-compare__item:last-child { background: var(--black); }
.to-compare__item:last-child h3, .to-compare__item:last-child p { color: var(--white); }
.to-compare__num { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 600; color: var(--black); margin-bottom: .6rem; }
.to-compare__item h3 { margin-bottom: .6rem; }
.to-compare__item p { font-size: .8rem; }
.to-fieldset { border: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.to-fieldset legend { font-size: .58rem; letter-spacing: .25em; color: var(--gray); margin-bottom: .7rem; }
.spec-form .to-inline { flex-direction: row; align-items: center; gap: .6rem; font-size: .8rem; letter-spacing: .04em; color: var(--black); cursor: pointer; }
.spec-form .to-inline input { accent-color: var(--black); width: 1rem; height: 1rem; padding: 0; }
.to-pair { display: flex; flex-direction: column; gap: .6rem; }
.to-pair[hidden], .spec-form label[hidden] { display: none; }
.spec-form input:disabled { opacity: .35; }

/* ---------- responsive ---------- */
/* The Russian menu has six items (Обслуживание); tighten it before it meets the logo. */
@media (max-width: 1280px) {
  html[lang="ru"] .header-nav { gap: 1.3rem; letter-spacing: .18em; }
}
@media (max-width: 1080px) {
  html[lang="ru"] .header-nav { gap: .9rem; font-size: .62rem; letter-spacing: .12em; }
}
@media (max-width: 900px) {
  .to-points, .to-groups, .to-theses, .to-compare { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .finder-layout { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .is-list .door-card { flex-wrap: wrap; }
  .spec-table th { width: 50%; }
  .spec-item { flex-wrap: wrap; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card.wide { grid-column: span 2; }
  .materials-strip { grid-template-columns: 1fr; }
  .stats .container:first-child { grid-template-columns: repeat(2, 1fr); }
  .services-list { grid-template-columns: 1fr; }
  .portfolio-foot { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card.wide { grid-column: span 1; }
  .br-md { display: none; }
  .hero-content { padding: 6rem .5rem; }
  h1 { font-size: clamp(2.6rem, 12vw, 8.5rem); }
  .results-grid { grid-template-columns: 1fr; }
  .spec-bar { width: calc(100vw - 2rem); justify-content: space-between; }
  .card-actions { flex-direction: column; }
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: auto; }
  .spec-table th { border: 0; padding-bottom: .2rem; }
  .spec-table td { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span { animation: none; }
}

/* ============ Products → groups, Services → stages (restructure 2026-10) ============ */
/* Long Russian compound words ("ПРОТИВОПОЖАРНЫЕ") must not break mid-word in page titles. */
html[lang="ru"] .finder-head h1 { font-size: clamp(1.6rem, 4.2vw, 4.4rem); overflow-wrap: normal; word-break: normal; hyphens: manual; }
html[lang="ru"] .detail .finder-head h1 { font-size: clamp(1.5rem, 3.6vw, 3.6rem); }

.group-section { padding: 3.5rem 0 1rem; scroll-margin-top: 9rem; }
.group-section + .group-section { border-top: 1px solid rgba(0,0,0,.1); }
.group-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1.6rem; align-items: baseline; margin-bottom: 2rem; }
.group-num, .group-count { font-size: .7rem; letter-spacing: .3em; color: var(--gray); }
.group-head h2 { font-size: clamp(1.5rem, 3vw, 2.6rem); margin-bottom: .5rem; }
.group-head p { font-size: .82rem; max-width: 60ch; }

.services-list a.service { display: block; color: inherit; transition: opacity .2s; }
.services-list a.service:hover { opacity: .7; }
.section-link--light a { color: var(--white); }

.svc-list { display: flex; flex-direction: column; border-top: 1px solid rgba(0,0,0,.12); }
.svc-card { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1.4rem; align-items: center; padding: 1.8rem 0; border-bottom: 1px solid rgba(0,0,0,.12); transition: padding .25s; }
.svc-card:hover { padding-left: .6rem; }
.svc-card__num { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 300; color: var(--gray); }
.svc-card h2 { font-size: clamp(1.05rem, 2vw, 1.5rem); margin-bottom: .4rem; }
.svc-card p { font-size: .8rem; max-width: 60ch; }
.svc-card:hover .cat-card__arrow { transform: translateX(6px); }
.svc-result { font-size: .95rem; color: var(--black); }
.svc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 3.5rem; border-top: 1px solid rgba(0,0,0,.12); padding-top: 1.6rem; }
.svc-pager a { font-size: .85rem; color: var(--black); }
.svc-pager a span { display: block; font-size: .65rem; letter-spacing: .25em; color: var(--gray); margin-bottom: .4rem; }
.svc-pager a.next { text-align: right; }
.subnav__inner a.active { color: var(--black); font-weight: 600; }

@media (max-width: 900px) {
  .group-head { grid-template-columns: auto 1fr; }
  .group-count { grid-column: 2; }
  .svc-card { grid-template-columns: 3rem 1fr; }
  .svc-card .cat-card__arrow { display: none; }
  .svc-pager { grid-template-columns: 1fr; }
  .svc-pager a.next { text-align: left; }
}
/* The Russian h2 display size (html[lang="ru"] h2) outranks these class rules, so restate them for RU. */
html[lang="ru"] .detail-h2 { font-size: 1rem; }
html[lang="ru"] .group-head h2 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
html[lang="ru"] .svc-card h2 { font-size: clamp(1rem, 1.8vw, 1.35rem); }

/* ---------- contact: preparation block (reqs for NDA + project files) ---------- */
.prep { margin-top: clamp(4.5rem, 10vh, 7rem); padding-top: clamp(3.5rem, 8vh, 5rem); border-top: 1px solid rgba(255,255,255,.14); text-align: left; }
.prep-head { max-width: 760px; }
.prep-head h3 { font-size: clamp(1.05rem, 2vw, 1.5rem); line-height: 1.35; letter-spacing: .04em; }
.prep-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin: 3.2rem 0 3.5rem; }
.prep-step span { font-size: .7rem; letter-spacing: .3em; color: var(--gray); }
.prep-step h4 { color: var(--white); font-size: .85rem; font-weight: 600; letter-spacing: .14em; margin: .6rem 0 .6rem; }
.prep-step p { font-size: .82rem; line-height: 1.75; }
.prep-form { display: flex; flex-direction: column; gap: 1.3rem; max-width: 880px; }
.prep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.prep-form label { display: flex; flex-direction: column; gap: .5rem; font-size: .58rem; letter-spacing: .25em; color: var(--gray); }
.prep-form .full { grid-column: 1 / -1; }
.prep-form input:not([type=file]):not([type=checkbox]), .prep-form textarea {
  font-family: inherit; font-size: .9rem; color: var(--white); letter-spacing: .03em;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: .95rem 1rem;
  transition: border-color .25s; resize: vertical;
}
.prep-form input::placeholder, .prep-form textarea::placeholder { color: rgba(255,255,255,.3); }
.prep-form input:focus, .prep-form textarea:focus { outline: none; border-color: var(--white); }
.prep-form .is-invalid { border-color: #e0563b !important; }
.drop { position: relative; border: 1px dashed rgba(255,255,255,.3); border-radius: 12px; transition: border-color .25s, background .25s; }
.drop:hover, .drop.is-over { border-color: var(--white); background: rgba(255,255,255,.04); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop > label { padding: 1.6rem 1.4rem; gap: .45rem; pointer-events: none; }
.drop > label strong { color: var(--white); font-weight: 600; font-size: .72rem; letter-spacing: .22em; }
.drop > label strong::before { content: "+ "; color: var(--gray); }
.drop > label span { font-size: .6rem; letter-spacing: .18em; }
.drop-files { list-style: none; padding: 0 1.4rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.drop-files:empty { display: none; }
.drop-files li { color: var(--white); font-size: .78rem; letter-spacing: .04em; overflow-wrap: anywhere; }
.drop-files li small { color: var(--gray); margin-left: .6em; }
.prep-form .check { flex-direction: row; align-items: flex-start; gap: .9rem; cursor: pointer; line-height: 1.7; }
.prep-form .check input { margin-top: .25rem; width: 16px; height: 16px; accent-color: var(--white); flex: none; }
.prep-form.nda-first [data-drop="project"] { opacity: .35; pointer-events: none; }
.prep-form .btn { align-self: flex-start; font-family: inherit; cursor: pointer; margin-top: .4rem; }
.prep-form .form-note { max-width: 80ch; line-height: 1.8; }
.prep-done { max-width: 760px; padding: 2.5rem 0 0; }
.prep-done p { margin-top: 1rem; font-size: .9rem; line-height: 1.8; }
.prep-done a { color: var(--white); border-bottom: 1px solid var(--white); }
@media (max-width: 900px) {
  .prep-steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .prep-grid { grid-template-columns: 1fr; }
  .messengers { flex-wrap: wrap; justify-content: center; }
}

/* ---------- brand mark in footer ---------- */
.footer-brand { display: flex !important; align-items: center; justify-content: flex-start !important; gap: 1.1rem; color: var(--white); padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-mark { width: 54px; height: 54px; flex: none; }
.footer-brand span { font-size: 1.15rem; font-weight: 300; letter-spacing: .14em; }
.logo-text { white-space: nowrap; }
@media (max-width: 560px) { .logo-mark { width: 24px; height: 24px; } .logo { gap: .55rem; font-size: .72rem; letter-spacing: .2em; } .logo-text > span { letter-spacing: .4em; font-size: .52rem; } }

/* ============ DESCRIPTIVE CATEGORY PAGE (dveri/derevyannye-dveri) ============ */
.wp-lead { margin-top: 1.8rem; max-width: 70ch; font-size: 1.02rem; line-height: 1.85; color: var(--black); letter-spacing: .02em; }
.wp-block { padding: clamp(4rem, 10vh, 7rem) 0; }
.wp-block--tint { background: #f4f3f1; }
.wp-block h2 { margin-bottom: 2.4rem; }
.wp-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.wp-ph { aspect-ratio: 4 / 3; }
.wp-ph--tall { aspect-ratio: 4 / 5; position: sticky; top: 7rem; }
.wp-parts { display: flex; flex-direction: column; gap: 1.6rem; }
.wp-parts > div { border-top: 1px solid rgba(0,0,0,.12); padding-top: 1.2rem; display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; }
.wp-parts dt { color: var(--black); font-weight: 600; font-size: .68rem; letter-spacing: .22em; padding-top: .2rem; }
.wp-parts dd, .wp-list li, .wp-open p, .wp-finish p, .wp-spec p { font-size: .9rem; line-height: 1.75; color: #555; letter-spacing: .02em; }
.wp-open-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.wp-open { background: #fff; border-radius: 14px; padding: 1.6rem 1.5rem 1.7rem; --plan-bg: #fff; }
.wp-open .plan { width: 100%; max-width: 190px; height: auto; color: var(--black); display: block; margin-bottom: 1.2rem; }
.wp-open h3 { font-size: .8rem; letter-spacing: .18em; margin-bottom: .6rem; }
.wp-use { margin-top: .9rem; font-size: .6rem !important; letter-spacing: .2em !important; text-transform: uppercase; color: var(--gray) !important; line-height: 1.7 !important; }
.wp-note { margin-top: 1.8rem; font-size: .8rem; color: var(--gray); }
.wp-note a, .wp-list a { color: var(--black); border-bottom: 1px solid var(--black); }
.wp-finish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem 1.6rem; }
.wp-finish .ph { margin-bottom: 1.1rem; }
.wp-finish h3 { font-size: .85rem; margin-bottom: .45rem; }
.wp-list { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }
.wp-list li { border-top: 1px solid rgba(0,0,0,.12); padding-top: 1rem; }
.wp-list strong { color: var(--black); font-weight: 600; }
.wp-spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2rem; }
.wp-spec { border: 1px solid rgba(0,0,0,.12); border-radius: 14px; padding: 1.7rem 1.5rem; }
.wp-spec__val { display: block; color: var(--black); font-size: 1.35rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 1rem; }
.wp-spec h3 { font-size: .72rem; letter-spacing: .2em; margin-bottom: .55rem; }
.wp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(220px, 24vw, 340px); grid-auto-flow: dense; gap: 1rem; }
.wp-gallery .ph { aspect-ratio: auto; height: 100%; }
.wp-gallery .g-wide { grid-column: span 2; }
.wood-page .conversion { margin-top: 0; }
@media (max-width: 900px) {
  .wp-split { grid-template-columns: 1fr; }
  .wp-ph--tall { position: static; aspect-ratio: 4 / 3; }
  .wp-parts > div { grid-template-columns: 1fr; gap: .4rem; }
  .wp-finish-grid, .wp-spec-grid { grid-template-columns: 1fr 1fr; }
  .wp-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
}
@media (max-width: 560px) {
  .wp-finish-grid, .wp-spec-grid, .wp-gallery { grid-template-columns: 1fr; }
  .wp-gallery .g-wide { grid-column: auto; }
}
.wood-page .subnav { top: 67px; }

/* ---------- info pages: applications, documents, FAQ ---------- */
.wp-app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(0,0,0,.12); }
.wp-app { padding: 1.6rem 1.6rem 1.8rem 0; border-bottom: 1px solid rgba(0,0,0,.12); }
.wp-app h3 { font-size: .78rem; letter-spacing: .2em; margin-bottom: .55rem; }
.wp-app p { font-size: .88rem; line-height: 1.7; color: #555; letter-spacing: .02em; }
.wp-docs { background: var(--black); }
.wp-docs h2 { color: var(--white); }
.wp-docs-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.wp-docs h3 { color: var(--white); font-size: .72rem; letter-spacing: .25em; margin-bottom: 1.3rem; }
.wp-std, .wp-des { list-style: none; display: flex; flex-direction: column; }
.wp-std li { display: grid; grid-template-columns: 11rem 1fr; gap: 1.2rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; line-height: 1.65; color: #b4b4b4; letter-spacing: .02em; }
.wp-code { color: var(--white); font-weight: 600; font-size: .78rem; letter-spacing: .06em; }
.wp-des li { padding: .9rem 0 .9rem 1.6rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; line-height: 1.6; color: #b4b4b4; position: relative; letter-spacing: .02em; }
.wp-des li::before { content: "→"; position: absolute; left: 0; color: var(--white); }
.wp-des + .btn { margin-top: 1.8rem; }
.wp-small { margin-top: 1rem; font-size: .7rem; color: var(--gray); letter-spacing: .04em; }
.wp-faq-list { border-top: 1px solid rgba(0,0,0,.12); }
.wp-faq { border-bottom: 1px solid rgba(0,0,0,.12); }
.wp-faq summary { list-style: none; cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0; position: relative; color: var(--black); font-weight: 500; font-size: 1rem; line-height: 1.5; letter-spacing: .01em; }
.wp-faq summary::-webkit-details-marker { display: none; }
.wp-faq summary::after { content: "+"; position: absolute; right: .2rem; top: 1.25rem; font-size: 1.3rem; font-weight: 300; transition: transform .3s var(--ease); }
.wp-faq[open] summary::after { transform: rotate(45deg); }
.wp-faq p { padding: 0 2.5rem 1.6rem 0; font-size: .92rem; line-height: 1.8; color: #555; letter-spacing: .02em; }
.wp-open .plan { overflow: visible; }
@media (max-width: 900px) {
  .wp-app-grid { grid-template-columns: 1fr 1fr; }
  .wp-docs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wp-app-grid { grid-template-columns: 1fr; }
  .wp-std li { grid-template-columns: 1fr; gap: .3rem; }
}
.wp-parts dt { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.wp-parts > div { grid-template-columns: 10.5rem 1fr; }
@media (max-width: 900px) { .wp-parts > div { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .wp-open-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } .wp-open { min-width: 0; overflow-wrap: anywhere; } .wp-open { padding: 1.1rem 1rem 1.2rem; } .wp-open p { font-size: .8rem; } .wp-open h3 { font-size: .66rem; letter-spacing: .12em; hyphens: auto; } }

/* ============ PRODUCTS INDEX (/dveri/) — editorial list with image panel ============ */
.pi-head { padding: 10rem 0 3.5rem; }
.pi-head__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; }
.pi-head h1 { font-size: clamp(3rem, 9vw, 8rem) !important; line-height: .9; }
.pi-intro { font-size: 1.05rem; line-height: 1.8; color: var(--black); letter-spacing: .02em; max-width: 46ch; justify-self: end; }
.pi-index { padding: 0 0 clamp(4rem, 9vh, 6rem); }
.pi-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.pi-list { border-top: 1px solid var(--black); }
.pi-row {
  display: grid; grid-template-columns: 3.2rem 1fr auto 2rem; align-items: center; gap: 1.2rem;
  padding: 1.6rem 0; border-bottom: 1px solid rgba(0,0,0,.14); color: var(--black);
  transition: padding .45s var(--ease), color .3s;
}
.pi-thumb { display: none; }
.pi-num { font-size: .68rem; letter-spacing: .25em; color: var(--gray); transition: color .3s; }
.pi-body { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.pi-title { font-size: clamp(1.35rem, 2.6vw, 2.35rem); font-weight: 600; line-height: 1.08; letter-spacing: .005em; text-transform: uppercase; transition: transform .45s var(--ease); }
.pi-desc { font-size: .86rem; line-height: 1.6; color: var(--gray); letter-spacing: .02em; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .35s; }
.pi-tag { font-size: .58rem; letter-spacing: .3em; color: var(--gray); white-space: nowrap; }
.pi-arrow { font-size: 1.2rem; opacity: .25; transition: transform .35s var(--ease), opacity .3s; justify-self: end; }
.pi-row.is-active .pi-num, .pi-row:hover .pi-num { color: var(--black); }
.pi-row.is-active .pi-title { transform: translateX(.6rem); }
.pi-row.is-active .pi-desc { max-height: 4rem; opacity: 1; }
.pi-row.is-active .pi-arrow { opacity: 1; transform: translateX(4px); }
.pi-row:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }
.pi-panel { position: sticky; top: 6.5rem; }
.pi-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #1a1a1a; }
.pi-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.pi-img.is-on { opacity: 1; transform: scale(1); }
.pi-caption { margin-top: .9rem; font-size: .62rem; letter-spacing: .3em; color: var(--gray); text-align: right; }
.pi-strip { background: var(--black); padding: clamp(3rem, 7vh, 4.5rem) 0; }
.pi-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.pi-strip span { display: block; font-size: .62rem; letter-spacing: .3em; color: var(--gray); margin-bottom: .8rem; }
.pi-strip p { color: var(--white); font-size: .95rem; line-height: 1.7; letter-spacing: .02em; max-width: 34ch; }
.pi-page .wp-block { padding-top: clamp(4rem, 9vh, 6rem); }
@media (max-width: 900px) {
  .pi-head { padding: 8rem 0 2.5rem; }
  .pi-head__grid, .pi-grid { grid-template-columns: 1fr; }
  .pi-intro { justify-self: start; }
  .pi-panel { display: none; }
  .pi-row { grid-template-columns: 6rem 1fr 1.4rem; grid-template-areas: "thumb body arrow"; gap: 1rem; padding: 1.1rem 0; }
  .pi-num, .pi-tag { display: none; }
  .pi-thumb { display: block; grid-area: thumb; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #1a1a1a; }
  .pi-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .pi-body { grid-area: body; }
  .pi-arrow { grid-area: arrow; opacity: .5; }
  .pi-title { font-size: 1.05rem; }
  .pi-desc { max-height: none; opacity: 1; font-size: .78rem; }
  .pi-row.is-active .pi-title { transform: none; }
  .pi-strip__grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---------- Карьера ---------- */
.job-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.job-tags li { font-size: .55rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gray); border: 1px solid rgba(0,0,0,.15); border-radius: 999px; padding: .45em 1em; }
.finder-head .job-tags { margin: 1.4rem 0 0; }
.job-offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(0,0,0,.12); border: 1px solid rgba(0,0,0,.12); }
.job-offer { background: var(--white); padding: 1.4rem 1.3rem 1.5rem; }
.job-offer h3 { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .6rem; }
.job-offer p { font-size: .8rem; color: #444; }
.job-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.job-steps li { display: flex; flex-direction: column; gap: .7rem; border-top: 1px solid var(--black); padding-top: 1rem; }
.job-step__num { font-size: 1.8rem; font-weight: 300; color: var(--gray); line-height: 1; }
.job-steps h3 { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .4rem; }
.job-steps p { font-size: .78rem; color: #444; }
.job-path { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.job-path li { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--black); border-radius: 999px; padding: .6em 1.2em; }
.job-path li:first-child { background: var(--black); color: var(--white); }
.job-path li.job-path__arrow { border: 0; padding: 0; color: var(--gray); }
.job-about { font-size: 1rem; max-width: 62ch; margin-top: 2.5rem; color: var(--black); }
.job-apply { margin-top: 1rem; padding: 0; scroll-margin-top: 90px; }
#vakansii { scroll-margin-top: 90px; }
.job-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.spec-form select {
  font-family: inherit; font-size: .85rem; color: var(--black); background: transparent;
  border: 1px solid rgba(0,0,0,.2); border-radius: 8px; padding: .9rem 1rem; letter-spacing: 0;
}
.spec-form select:focus { outline: none; border-color: var(--black); }
.spec-form .job-consent { font-size: .72rem; letter-spacing: .02em; color: #444; align-items: flex-start; }
.footer-link { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.4); }
.footer-link:hover { border-bottom-color: var(--white); }
.header-nav a[aria-current="page"] { opacity: 1; }
@media (max-width: 900px) {
  .job-offers { grid-template-columns: 1fr 1fr; }
  .job-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .job-offers, .job-steps, .job-pair { grid-template-columns: 1fr; }
}

/* ---------- projects page (proekty/) ---------- */
.proj-filter { margin-top: 2.2rem; }
.proj-group { padding: 0; margin-top: 3.5rem; scroll-margin-top: 90px; }
.proj-group:first-child { margin-top: 1rem; }
.proj-group[hidden] { display: none; }
.proj-group__head { display: grid; grid-template-columns: 1fr minmax(0, 36ch); gap: 1rem 3rem; align-items: end; border-bottom: 1px solid rgba(0,0,0,.12); padding-bottom: .9rem; margin-bottom: 1.8rem; }
.proj-group__head .detail-h2 { margin: 0; padding: 0; border: 0; }
.proj-group__head .detail-h2 span { color: var(--gray); font-weight: 400; }
.proj-group__head p { font-size: .78rem; line-height: 1.7; }
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem 1.6rem; }
.proj-card__media { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #1a1a1a; margin-bottom: 1.1rem; }
.proj-card__media picture, .proj-card__media img { display: block; width: 100%; height: 100%; }
.proj-card__media img { object-fit: cover; transform: scale(1.001); transition: transform .9s var(--ease), filter .6s var(--ease); filter: contrast(1.02); }
.proj-card:hover .proj-card__media img { transform: scale(1.04); }
.proj-card__media .ph { width: 100%; height: 100%; border-radius: 0; }
.proj-card__cat { font-size: .56rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gray); margin-bottom: .45rem; }
.proj-card h3 { text-transform: none; letter-spacing: .03em; font-size: 1.02rem; line-height: 1.35; overflow-wrap: anywhere; }
.proj-card__full { font-size: .72rem; line-height: 1.6; margin-top: .45rem; color: #555; overflow-wrap: anywhere; }
.proj-card__addr { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--black); margin-top: .7rem; }
.proj-page .notice { margin-top: 4rem; }
.proj-credits { margin-top: 3rem; font-size: .6rem; line-height: 1.7; color: var(--gray); max-width: 90ch; }
@media (max-width: 1080px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .proj-group__head { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
/* Home portfolio cards with a real photo instead of the gradient placeholder */
.ph-case-img::after { content: none; }
.ph-case-img picture, .ph-case-img img { display: block; width: 100%; height: 100%; }
.ph-case-img img { object-fit: cover; }
/* Card slideshow */
.slides { position: relative; width: 100%; height: 100%; }
.slides { cursor: pointer; }
.slides .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .25s var(--ease); }
.slides .slide.is-active { opacity: 1; }
.slides__dots { position: absolute; left: 0; right: 0; bottom: .8rem; display: flex; justify-content: center; gap: .4rem; z-index: 2; }
.slides__dots button { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: background .3s, transform .3s; }
.slides__dots button[aria-current] { background: #fff; transform: scale(1.25); }
.slides__count { position: absolute; right: .8rem; bottom: .7rem; z-index: 2; padding: .2rem .55rem; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; pointer-events: none; }
.slides__dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .slides .slide { transition: none; } }
.slides:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

/* home portfolio: cards are links */
a.case { display: block; color: inherit; text-decoration: none; }
a.case:hover .ph img { filter: brightness(1.12); }

/* ---------- callback modal ---------- */
button.header-cta { background: transparent; color: inherit; font-family: inherit; cursor: pointer; }
.cb-lock, .cb-lock body { overflow: hidden; }
.cb-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.cb-modal[hidden] { display: none; }
.cb-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.62); backdrop-filter: blur(4px); }
.cb-dialog { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--white); color: var(--gray); border-radius: 18px; padding: 2.4rem 2rem 2rem; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: cbIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes cbIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.cb-dialog h3 { text-transform: none; font-size: 1.45rem; line-height: 1.25; margin-top: .6rem; }
.cb-sub { margin-top: .8rem; font-size: .9rem; line-height: 1.6; }
.cb-x { position: absolute; top: .8rem; right: 1rem; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--black); cursor: pointer; opacity: .6; }
.cb-x:hover { opacity: 1; }
.cb-form { margin-top: 1.6rem; display: grid; gap: 1rem; }
.cb-field { display: grid; gap: .4rem; }
.cb-field span { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.cb-field input { font: inherit; font-size: 1rem; color: var(--black); padding: .85rem 1rem; border: 1px solid #d6d6d6; border-radius: 12px; background: #fafafa; outline: none; transition: border-color .2s, background .2s; }
.cb-field input:focus { border-color: var(--black); background: #fff; }
.cb-field input.is-invalid { border-color: #c0392b; }
.cb-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .78rem; line-height: 1.5; cursor: pointer; }
.cb-check input { margin-top: .2rem; accent-color: var(--black); }
.cb-check.is-invalid { color: #c0392b; }
.cb-submit { justify-self: start; margin-top: .4rem; cursor: pointer; font-family: inherit; }
[data-cb-done] .btn { margin-top: 1.6rem; cursor: pointer; font-family: inherit; }

/* ---------- service page: spec drawing, why, steps ---------- */
.svc-figure { margin: 0 0 3.5rem; }
.svc-figure svg { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid #e3e3e0; }
.svc-figure figcaption { margin-top: 1rem; font-size: .82rem; line-height: 1.7; max-width: 70ch; }
.svc-why { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.4rem; margin: 1.6rem 0 3.5rem; }
.svc-why > div { padding-top: .2rem; }
.svc-why span { font-size: .62rem; letter-spacing: .25em; color: var(--gray); }
.svc-why h3 { text-transform: none; font-size: 1.02rem; line-height: 1.35; margin: .6rem 0 .6rem; letter-spacing: .01em; }
.svc-why p { font-size: .85rem; line-height: 1.65; }
.svc-steps { list-style: none; counter-reset: st; margin: 1.6rem 0 3.5rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.6rem 2.4rem; }
.svc-steps li { counter-increment: st; position: relative; padding-left: 3.2rem; }
.svc-steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: -.1rem; font-size: 1.5rem; font-weight: 600; color: var(--black); }
.svc-steps h3 { text-transform: none; font-size: 1rem; letter-spacing: .01em; }
.svc-steps p { font-size: .85rem; line-height: 1.65; margin-top: .35rem; }
@media (max-width: 760px) { .svc-why, .svc-steps { grid-template-columns: 1fr; } }

.svc-pack-lead { margin-top: 1.2rem; }
.svc-pack { list-style: none; counter-reset: pk; margin: 1.6rem 0 3.5rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.svc-pack li { counter-increment: pk; position: relative; background: #f4f4f2; border: 1px solid #e3e3e0; border-radius: 14px; padding: 1.3rem 1.3rem 1.3rem 4.2rem; }
.svc-pack li::before { content: counter(pk, decimal-leading-zero); position: absolute; left: 1.3rem; top: 1.15rem; font-size: 1.35rem; font-weight: 600; color: var(--black); }
.svc-pack h3 { text-transform: none; font-size: .98rem; letter-spacing: .01em; }
.svc-pack p { font-size: .84rem; line-height: 1.6; margin-top: .35rem; }
@media (max-width: 760px) { .svc-pack { grid-template-columns: 1fr; } }

.svc-two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.svc-two > div { background: #f4f4f2; border: 1px solid #e3e3e0; border-radius: 14px; padding: 1.4rem; }
.svc-two span { color: var(--black); font-weight: 600; }
.svc-norms { margin: 1.6rem 0 3.5rem; border-top: 1px solid #e3e3e0; }
.svc-norms > div { display: grid; grid-template-columns: 15rem minmax(0,1fr); gap: 1.2rem; padding: .9rem 0; border-bottom: 1px solid #e3e3e0; }
.svc-norms b { color: var(--black); font-weight: 600; font-size: .86rem; }
.svc-norms span { font-size: .86rem; line-height: 1.6; }
@media (max-width: 760px) { .svc-two { grid-template-columns: 1fr; } .svc-norms > div { grid-template-columns: 1fr; gap: .3rem; } }

.sk-gallery { margin: 0 0 3.5rem; }
.sk-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.sk-tabs button { font: inherit; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; padding: .7em 1.3em; border-radius: 999px; border: 1px solid #d6d6d6; background: transparent; color: var(--gray); cursor: pointer; transition: all .25s; }
.sk-tabs button[aria-selected="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.sk-pane { margin: 0; }
.sk-pane svg { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid #e3e3e0; }
.sk-pane figcaption { margin-top: 1rem; font-size: .82rem; line-height: 1.7; }

.node-fig { background: #f4f4f4; border: 1px solid #e3e3e0; border-radius: 18px; padding: 1.2rem 1.2rem 1.4rem; }
.node-fig img { display: block; width: 100%; height: auto; }
.node-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; font-size: .64rem; letter-spacing: .2em; color: var(--black); font-weight: 600; }
.node-head span:first-child { background: var(--black); color: var(--white); padding: .55em 1em; border-radius: 4px; }
.node-head span:last-child { border: 1px solid var(--black); padding: .55em 1em; border-radius: 4px; }
.node-legend { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem 1.6rem; }
.node-legend li { font-size: .82rem; line-height: 1.55; display: grid; grid-template-columns: 3.4rem minmax(0,1fr); gap: .6rem; }
.node-legend b { color: var(--black); font-weight: 600; }
.node-fig figcaption { margin-top: 1.2rem; }
@media (max-width: 760px) { .node-legend { grid-template-columns: 1fr; } }

.tol-table > div { grid-template-columns: 13rem minmax(0,1fr) minmax(0,1fr); }
.tol-head b, .tol-head span { font-size: .62rem !important; letter-spacing: .2em; text-transform: uppercase; color: var(--gray) !important; font-weight: 600; }
@media (max-width: 760px) { .tol-table > div { grid-template-columns: 1fr; } .tol-head { display: none !important; } }

.site-footer p.footer-legal { flex-basis: 100%; max-width: 120ch; margin-top: .2rem; font-size: .56rem; line-height: 1.6; letter-spacing: .02em; text-transform: none; color: #4a4a4a; }

.mat-item { margin: 0; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.mat-item .ph { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.mat-item .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mat-item figcaption { display: flex; flex-direction: column; gap: .35rem; }
.mat-item .mat-n { font-size: .62rem; letter-spacing: .25em; color: var(--gray); }
.mat-item strong { font-size: .78rem; letter-spacing: .18em; font-weight: 500; }
.mat-item figcaption span:last-child { font-size: .85rem; line-height: 1.55; color: var(--gray); }
.site-footer p.footer-legal sup { font-size: .6em; vertical-align: super; line-height: 0; }

/* Photo sliders inside info-page frames */
.wp-slides { overflow: hidden; }
.wp-slides .slides .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-slides .slides__dots button { background: rgba(10,10,10,.28); }
.wp-slides .slides__dots button[aria-current] { background: #0a0a0a; }

/* Rigging page */
.rig-cargo { background: #0a0a0a; color: #fff; border-radius: 18px; padding: clamp(1.6rem, 4vw, 2.6rem); margin: 0 0 3.5rem; }
.rig-cargo__k { font-size: .62rem; letter-spacing: .3em; color: #9a9a96; margin-bottom: .8rem; }
.rig-cargo h2 { color: #fff; text-transform: none; font-size: clamp(1.2rem, 2.4vw, 1.7rem); line-height: 1.25; letter-spacing: .005em; margin-bottom: 1rem; text-wrap: balance; }
.rig-cargo p { color: #cfcfcb; font-size: .92rem; line-height: 1.7; max-width: 68ch; }
.rig-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2rem 1.6rem; margin: 1.6rem 0 3.5rem; }
.rig-grid figure { margin: 0; min-width: 0; }
.rig-grid svg { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid #e3e3e0; }
.rig-grid h3 { text-transform: none; font-size: 1rem; letter-spacing: .01em; margin: 1rem 0 .4rem; }
.rig-grid p { font-size: .85rem; line-height: 1.65; }
.rig-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.6rem; align-items: center; margin-bottom: 3.5rem; }
.rig-split .svc-figure { margin: 0; }
.rig-signs { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: .8rem; margin: 1.6rem 0 1.4rem; }
.svc-two.svc-why { grid-template-columns: repeat(2, minmax(0,1fr)); }
.svc-two.svc-why h3 { margin-top: 0; }
.rig-signs figure { margin: 0; }
.rig-signs svg { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid #e3e3e0; }
@media (max-width: 900px) { .rig-signs { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 760px) { .rig-grid, .rig-split { grid-template-columns: 1fr; } }

.mont-tools { grid-template-columns: repeat(8, minmax(0,1fr)); }
@media (max-width: 900px) { .mont-tools { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* phone shown as plain text under the conversion buttons */
.conv-phone { margin-top: 1.4rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gray); text-align: center; }

/* ---------- mobile menu ---------- */
.m-burger { display: none; }
.m-nav { display: none; }
@media (max-width: 900px) {
  .m-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; margin-left: .4rem; padding: 0 10px;
    background: none; border: 0; color: inherit; cursor: pointer; position: relative; z-index: 2; flex: none;
  }
  .m-burger span { display: block; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
  .m-nav-open .m-burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .m-nav-open .m-burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .site-header { gap: .6rem; }
  .site-header .logo { margin-right: auto; min-width: 0; }
  .site-header .header-cta { flex: none; white-space: nowrap; }
  .m-nav-open .site-header { background: transparent !important; backdrop-filter: none !important; color: #fff !important; mix-blend-mode: normal !important; border-color: transparent !important; }
  .m-nav {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: 0; z-index: 45; background: #0b0b0b; color: #fff;
    padding: 6.5rem clamp(1.25rem, 6vw, 3rem) 2.5rem;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
    overflow-y: auto;
  }
  .m-nav-open .m-nav { opacity: 1; visibility: visible; }
  .m-nav-open, .m-nav-open body { overflow: hidden; }
  .m-nav__links { display: flex; flex-direction: column; }
  .m-nav__links a {
    font-size: clamp(1.35rem, 6vw, 2rem); letter-spacing: .14em; text-transform: uppercase;
    padding: 1.05rem 0; border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .m-nav__foot { display: flex; flex-direction: column; gap: .7rem; margin-top: 2.5rem; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); }
}
@media (max-width: 560px) {
  .site-header > .header-cta { display: none; }
  .site-header .logo-text { font-size: .62rem; }
  .header-cta { padding: .5em 1em; font-size: .58rem; letter-spacing: .14em; }
  .site-header { padding-left: 1rem; padding-right: .6rem; }
}
.m-nav__cta { display: none; }
@media (max-width: 900px) {
  .m-nav .m-nav__cta {
    display: inline-flex; align-self: flex-start; margin-top: 2rem;
    border: 1px solid rgba(255,255,255,.8); border-radius: 999px; color: #fff; background: none;
    padding: .9em 1.8em; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
  }
}
/* stats on phones: keep the 2x2 grid inside the screen while numbers count up */
.stat .num { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .stats .container:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 1rem; }
  .stat { min-width: 0; }
  html[lang="ru"] .stat .num, .stat .num { font-size: clamp(2.1rem, 10.5vw, 2.8rem); white-space: nowrap; }
  .stat .label { font-size: .58rem; letter-spacing: .14em; line-height: 1.7; overflow-wrap: anywhere; }
  .stats-note { font-size: .64rem; letter-spacing: .12em; line-height: 1.9; margin-top: 3rem; }
}
/* form sent */
.form-ok { padding: 2.4rem 0; }
.form-ok h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin: .6rem 0 1rem; }
.form-ok p:last-child { max-width: 60ch; line-height: 1.8; color: var(--gray, #555); }

.proj-card__media--soon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; color: rgba(255,255,255,.55); background: linear-gradient(160deg, #2a2a2a, #121212); }
.proj-card__media--soon span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
