
/* Hallmark · v2.0.0 · built: the project · redesign: polish · theme: brand (Геострой: Графит #000, Жемчуг #E6E6E6, оранжевый знака #F57336; Rubik + Golos Text) · genre: editorial · surface: absolute · copy: verbatim */
/* Hallmark · critique: расположение и тексты утверждённого прототипа сохранены; правка только того, на что указали гейты: подписи без разрядки капителью, разделители-волоски вместо точек, анимации только transform/opacity/clip-path, без пружинного «отскока», видимость без скриптов, токены цвета */
/* Hallmark · waive 7b · брендбук Геострой: Графит #000000, белый лист #FFFFFF · geostroy brandbook names pure black and white as brand colours */
/* Hallmark · answered 67 (.drop): заглавные только в аббревиатурах форматов файлов PDF, DWG, ZIP */
.proto-bar, .wf-note, .wf-tag { display: none !important; }
body { margin: 0; }
img { max-width: 100%; }
/* Layout: single-column landing, full-bleed bands, 1200px rail; service cells right under the hero; wireframe greys with blue redline annotations */
:root {
  --bg: #f3f4f5;
  --surface: #ffffff;
  --fill: #e2e5e8;
  --fill-2: #cfd4d9;
  --line: #b9c0c7;
  --ink: #1d2226;
  --ink-2: #5a6570;
  --note: #1f5fd1;
  --note-bg: #e6eefc;
  --ok: #1d7a4a;
  --err: #b3261e;
  --font-body: "Golos Text", Arial, sans-serif;
  --font-mono: "Golos Text", Arial, sans-serif;
  --paper: #FFFFFF;
  --on-o: #000000;
  --o-ring: rgba(245, 115, 54, .22);
  --rail: 1200px;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15181b; --surface: #1d2125; --fill: #2a2f34; --fill-2: #363c42; --line: #4a525a;
    --ink: #e7eaed; --ink-2: #a3adb6; --note: #7fa8ff; --note-bg: #1b2740; --ok: #5cc98d; --err: #ff8a80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15181b; --surface: #1d2125; --fill: #2a2f34; --fill-2: #363c42; --line: #4a525a;
  --ink: #e7eaed; --ink-2: #a3adb6; --note: #7fa8ff; --note-bg: #1b2740; --ok: #5cc98d; --err: #ff8a80;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; line-height: 1.2; margin: 0; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--note); outline-offset: 2px; }

.wrap { max-width: var(--rail); margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.band { padding-block: 64px; }
.band + .band { border-top: 1px dashed var(--line); }
.band.alt { background: var(--surface); }
.section-head { display: grid; gap: 8px; margin-bottom: 32px; max-width: 760px; }
.section-head p { color: var(--ink-2); }

.wf-note {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.4; color: var(--note);
  background: var(--note-bg); border: 1px dashed var(--note); border-radius: 3px;
  padding: 6px 10px; display: inline-block; max-width: 100%;
}
.wf-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--note); }
body.hide-notes .wf-note, body.hide-notes .wf-tag { display: none !important; }

.ph {
  position: relative; background: var(--fill); border: 1px solid var(--line); color: var(--ink-2);
  display: grid; place-items: center; text-align: center; font-family: var(--font-mono); font-size: 12px; padding: 12px;
  background-image: linear-gradient(to top right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)),
                    linear-gradient(to bottom right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px));
}
.ph span { background: var(--fill); padding: 2px 6px; }
.ph:has(img) { padding: 0; background-image: none; }
.ph img { width: 100%; height: 100%; object-fit: cover; }

.btn {
  font: 600 15px/1 var(--font-body); padding: 14px 20px; border-radius: 4px; cursor: pointer;
  border: 2px solid var(--ink); background: var(--ink); color: var(--bg); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn.ghost { background: transparent; color: var(--ink); }
.btn:hover { opacity: .88; }

.proto-bar { background: var(--note-bg); border-bottom: 1px solid var(--note); color: var(--note); font: 12px/1.4 var(--font-mono); }
.proto-bar .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding-block: 8px; }
.proto-bar label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo-mark { width: 136px; height: auto; flex: none; }
.hdr { height: 96px; padding-block: 0 !important; }
.site-header .brand { align-self: center; gap: 16px; }
.site-header .brand-name { font-size: 30px; letter-spacing: .03em; }
.site-header .brand-slogan { font-size: 14px; letter-spacing: .05em; }
.site-header.compact .hdr { height: 60px; }
.site-header.compact .logo-mark { width: 76px; }
.site-header.compact .brand-name { font-size: 18px; }
.site-header.compact .brand-slogan { font-size: 11px; }
@media (max-width: 900px) {
  .hdr { height: 64px; }
  .logo-mark, .site-header.compact .logo-mark { width: 84px; }
  .site-header .brand-name { font-size: 19px; }
  .site-header .brand-slogan { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .logo-mark, .hdr, .site-header .brand-name, .site-header .brand-slogan { transition: none; } }
:root[data-theme="dark"] .logo-mark { filter: invert(1) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-mark { filter: invert(1) hue-rotate(180deg); } }
.brand-text { display: grid; min-width: 0; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.brand-slogan { font-size: 12px; color: var(--ink-2); }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { text-decoration: underline; }
.hdr-contacts { display: grid; text-align: right; font-size: 13px; line-height: 1.35; }
.hdr-contacts b { font-size: 15px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 4px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); font-size: 20px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); }
.mobile-nav nav { display: grid; padding-block: 8px 16px; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--fill); text-decoration: none; font-weight: 500; }
.mobile-nav .btn { margin-top: 12px; }
.mobile-nav.open { display: block; }
@media (max-width: 1080px) { .hdr-contacts { display: none; } }
@media (max-width: 900px) {
  .nav, .hdr .btn { display: none; }
  .burger { display: inline-grid; place-items: center; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--fill-2); display: grid; align-items: center; min-height: calc(100svh - 96px); }
.hero-video { position: absolute; inset: 0; border: 0; }
.hero-video span { background: var(--fill-2); }
.hero .wrap { position: relative; width: 100%; padding-block: clamp(20px, 4vh, 48px) clamp(24px, 5vh, 56px); }
.hero-copy { display: grid; gap: clamp(12px, 2vh, 18px); max-width: 880px; background: color-mix(in srgb, var(--bg) 85%, transparent); padding: clamp(20px, 3vh, 32px); border-radius: 4px; }
.hero h1 { font-size: clamp(22px, min(3.2vw, 4.4vh), 40px); font-weight: 700; }
.hero-lead { font-size: clamp(14px, 1.9vh, 16px); color: var(--ink-2); max-width: 76ch; }
.lead-toggle { display: none; justify-self: start; background: none; border: 0; padding: 0; font: 600 14px var(--font-body); color: var(--ink); text-decoration: underline; cursor: pointer; }
.hero-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); background: var(--surface); }
.hero-facts li { padding: 12px 14px; border-right: 1px solid var(--line); display: grid; gap: 2px; font-size: 13px; color: var(--ink-2); }
.hero-facts li:last-child { border-right: 0; }
.hero-facts b { color: var(--ink); font-size: 20px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .hero { min-height: calc(100svh - 96px); }
  .hero .wrap { padding-block: 16px 24px; }
  .hero-copy { padding: 18px; }
  .hero h1, .hero.v-e .hero-copy h1 { font-size: clamp(19px, 5.3vw, 26px); }
  .hero-actions .btn { padding: 12px 16px; }
  .hero-copy .hero-lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .hero-copy.lead-open .hero-lead { -webkit-line-clamp: unset; display: block; }
  .lead-toggle { display: inline; }
  .hero-facts li { padding: 8px 10px; }
  .hero-facts b { font-size: 17px; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-facts li { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-facts li { border-right: 1px solid var(--line) !important; }
  .hero-facts li:nth-child(3n) { border-right: 0 !important; }
  .hero-facts li:nth-child(n+4) { border-bottom: 0; }
}

/* Hero variants (prototype switcher) */
.hero-switch { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hero-switch button { font: 500 12px/1 var(--font-mono); border: 1px solid var(--note); background: transparent; color: var(--note); border-radius: 3px; padding: 6px 9px; cursor: pointer; }
.hero-switch button[aria-pressed="true"] { background: var(--note); color: var(--surface); }
.hero-variant-note { display: block; margin-top: 4px; }

/* B: no plate, centred text on darkened video, facts as a strip along the bottom */
.hero.v-b::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 10%, transparent), color-mix(in srgb, var(--ink) 35%, transparent)); pointer-events: none; }
.hero.v-b .wrap { z-index: 1; }
.hero.v-a .hero-copy { max-width: 1120px; }
.hero.v-a .hero-lead { max-width: 96ch; }
.hero.v-b .hero-video span { visibility: hidden; }
.hero.v-b .wrap { max-width: 1440px; }
.hero.v-b .hero-copy { background: none; max-width: 1340px; margin: 0 auto; text-align: center; justify-items: center; padding: 0; }
.hero.v-b .hero-lead { color: var(--ink); max-width: 110ch; }
.hero.v-b .hero-facts { width: 100%; max-width: 1168px; text-align: left; }
/* E: split screen, text on solid ground left, video right */
.hero.v-e { background: var(--surface); }
.hero.v-e .hero-video { left: 50%; }
.hero.v-e .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.hero.v-e .hero-lead { font-size: clamp(13px, 1.7vh, 15px); }
.hero.v-e .hero-facts li { padding: 8px 10px; }
.hero.v-e .hero-facts b { font-size: 17px; }
.hero.v-e .hero-copy { background: none; padding: 0 40px 0 0; }
.hero.v-e .hero-copy h1 { font-size: clamp(20px, min(2.2vw, 3.6vh), 32px); }
.hero.v-e .hero-video { left: 53.5%; }
.hero.v-e .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero.v-e .hero-facts li:nth-child(3) { border-right: 0; }
.hero.v-e .hero-facts li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.hero.v-e .hero-facts li:nth-child(n+4) { grid-column: span 1; }
@media (max-width: 900px) {
  .hero.v-e .hero-video { left: 0; right: 0; bottom: auto; }
  .hero.v-e { align-items: end; }
  .hero.v-e .hero-video { height: 112px; }
  .hero.v-e .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 124px 20px; }
  .hero.v-e .hero-copy { padding: 0; }
  .hero.v-e .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 120; max-width: calc(100% - 32px); background: var(--ink); color: var(--bg); font: 13px/1.4 var(--font-mono); padding: 10px 14px; border-radius: 4px; }

/* Services as grouped text chips */
.svc-groups { display: grid; gap: 36px; }
.svc-group { display: grid; gap: 14px; min-width: 0; }
.svc-group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.svc-group-head h3 { font-size: 20px; min-width: 0; }
.svc-group-head a { font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; color: var(--ink-2); }
.svc-group-head a:hover { color: var(--ink); text-decoration: underline; }
.sub-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 76px; gap: 10px; list-style: none; margin: 0; padding: 0; }
.sub-chips li { display: flex; min-width: 0; }
.sub-chip {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font: 500 14px/1.3 var(--font-body); color: var(--ink); text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 10px 14px; cursor: pointer;
}
.sub-chip span { overflow-wrap: anywhere; hyphens: auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-width: 0; }
.sub-chip::after { content: "→"; color: var(--ink-2); flex: none; }
.sub-chip:hover { border-color: var(--ink); background: var(--surface); }
.sub-info { display: grid; gap: 16px; }
.sub-info .crumb { font-size: 13px; color: var(--ink-2); }
.sub-info .crumb button { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.sub-info p.desc { font-size: 16px; max-width: 64ch; }
@media (max-width: 1000px) { .sub-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sub-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 84px; } .sub-chip { font-size: 13px; padding: 8px 10px; } }


/* Variant: preview image above tile text, no gap */
.sub-chips { grid-auto-rows: 280px; }
.sub-chip { display: grid; grid-template-rows: 200px minmax(0, 1fr); grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 0; overflow: hidden; }
.sub-img { grid-column: 1 / -1; align-self: stretch; position: relative; border-bottom: 1px solid var(--line); background-color: var(--fill); background-image: linear-gradient(to top right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)), linear-gradient(to bottom right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)); }
.sub-img::before { content: "ФОТО"; position: absolute; top: 8px; left: 10px; font: 11px var(--font-mono); color: var(--ink-2); }
.sub-chip span { padding: 8px 6px 8px 12px; }
.sub-chip::after { padding-right: 12px; }
@media (max-width: 760px) { .sub-chips { grid-auto-rows: 230px; } .sub-chip { grid-template-rows: 150px minmax(0, 1fr); } .sub-chip span { padding: 6px 4px 6px 10px; } .sub-chip::after { padding-right: 8px; } }
/* Service cells */
.cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; list-style: none; margin: 0; padding: 0; }
.cells li { display: flex; }
.cell {
  width: 100%; height: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0;
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
}
.cell:hover { border-color: var(--ink); }
.cell:hover .cell-more { text-decoration: underline; }
.cell .ph { aspect-ratio: 16 / 9; border: 0; border-bottom: 1px solid var(--line); max-width: 100%; }
.cell-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.cell-body h3 { font-size: 17px; }
.cell-body p { font-size: 14px; color: var(--ink-2); }
.cell-more { font-size: 13px; font-weight: 600; margin-top: auto; padding-top: 8px; }
@media (max-width: 1000px) { .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cells { grid-template-columns: minmax(0, 1fr); } .cell { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: none; } .cell .ph { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); font-size: 9px; padding: 4px; } }

/* Service detail (modal content) */
.svc-detail { display: grid; gap: 18px; }
.svc-detail .lead { color: var(--ink-2); max-width: 68ch; }
.modal-section-title { margin: 0 0 12px; font-size: 18px !important; line-height: 1.25; }
.sub-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sub-list a {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; height: 100%;
  border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px; text-decoration: none; font-size: 14px; background: var(--bg);
}
.sub-list a::after { content: "→"; color: var(--ink-2); flex: none; }
.mini-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.mini-proj { border: 1px solid var(--line); background: var(--bg); display: grid; grid-template-rows: auto 1fr; min-width: 0; color: inherit; text-decoration: none; }
.mini-proj .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 0; border-bottom: 1px solid var(--line); font-size: 10px; max-width: 100%; }
.mini-proj .ph img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mini-proj:hover .ph img { transform: scale(1.03); }
.mini-proj:hover b, .mini-proj:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }
.mini-proj div:last-child { min-width: 0; padding: 10px; font-size: 13px; display: grid; gap: 4px; }
.mini-proj small { color: var(--ink-2); }
.empty-note { font-size: 14px; color: var(--ink-2); border: 1px dashed var(--line); padding: 12px; border-radius: 3px; }
@media (max-width: 640px) { .sub-list, .mini-projects { grid-template-columns: minmax(0, 1fr); } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
.prose { display: grid; gap: 14px; max-width: 70ch; }
.dirs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: d; }
.dirs li { counter-increment: d; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.dirs li::before { content: counter(d); font-family: var(--font-mono); color: var(--ink-2); font-size: 13px; padding-top: 2px; }
.about-side { display: grid; gap: 16px; align-content: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

.sub-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin: 48px 0 20px; }
.licenses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.lic-link { display: grid; grid-template-rows: auto 1fr; gap: 10px; text-decoration: none; }
.lic-link:hover .ph { border-color: var(--o); }
.lic .ph { display: block; width: 100%; aspect-ratio: 210 / 297; max-width: 100%; overflow: hidden; transition: border-color .3s ease; }
.lic .ph img { width: 100%; height: 100%; object-fit: contain; background: var(--paper); }
.lic-caption { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.lic-caption b { color: var(--ink); font-size: 14px; display: block; margin-bottom: 4px; }
@media (max-width: 860px) { .licenses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ceo { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; border: 1px solid var(--line); background: var(--bg); padding: 24px; margin: 0; }
.ceo .ph { aspect-ratio: 1; max-width: 100%; }
.ceo blockquote { margin: 0; display: grid; gap: 12px; font-size: 17px; }
.ceo cite { font-style: normal; font-size: 14px; color: var(--ink-2); }
@media (max-width: 640px) { .ceo { grid-template-columns: minmax(0, 1fr); } .ceo .ph { width: 140px; } }

.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review { border: 1px solid var(--line); border-radius: var(--t-r); background: var(--bg); padding: 20px; display: grid; gap: 12px; align-content: start; transition: border-color .5s var(--ease), box-shadow .7s var(--ease); }
.review:hover { border-color: var(--o); box-shadow: var(--t-shadow); }
.review:hover .review-meta b { text-decoration: underline; text-underline-offset: 3px; }
.review a:hover { color: var(--o-deep); }
.review-meta { display: flex; gap: 12px; align-items: center; }
.review-meta .ph { width: 48px; height: 48px; flex: none; font-size: 9px; padding: 2px; }
.review-meta div { display: grid; font-size: 14px; min-width: 0; }
.review-meta small { color: var(--ink-2); }
.review .placeholder { color: var(--ink-2); font-style: italic; }
.review a { font-size: 13px; }
@media (max-width: 860px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 500 14px/1 var(--font-body); cursor: pointer; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:hover, .chip:focus-visible { border-color: var(--o); background: var(--o); color: var(--on-o); }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.proj { background: var(--surface); border: 1px solid var(--line); border-radius: var(--t-r); display: grid; grid-template-rows: auto 1fr; overflow: hidden; transition: border-color .5s var(--ease), box-shadow .7s var(--ease); }
.proj:hover { border-color: var(--o); box-shadow: var(--t-shadow); }
.proj .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 0; border-bottom: 1px solid var(--line); max-width: 100%; }
.proj .ph img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.proj:hover .ph img { transform: scale(1.03); }
.proj-body { padding: 20px; display: grid; gap: 12px; align-content: start; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.proj-tag { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--o) 45%, transparent); border-radius: 999px; padding: 6px 12px; background: color-mix(in srgb, var(--o) 12%, var(--surface)); color: #9E3512; cursor: pointer; font: 500 13px/1.2 var(--font-body); transition: background-color .4s var(--ease), border-color .4s var(--ease); }
.proj-tag:hover, .proj-tag:focus-visible { background: var(--o); border-color: var(--o); color: #000; }
.proj h2, .proj h3 { margin: 0; }
.proj h2 a, .proj h3 a { text-decoration: none; }
.proj h2 a:hover, .proj h3 a:hover { text-decoration: underline; }
.proj p { font-size: 14px; color: var(--ink-2); }
.proj dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.proj dt { color: var(--ink-2); }
.proj dd { margin: 0; }
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .projects { grid-template-columns: minmax(0, 1fr); } }
.more-row { display: flex; justify-content: center; margin-top: 28px; }

/* Clients */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px; display: grid; gap: 10px; align-content: start; background: var(--bg); }
.clients .ph { height: 56px; font-size: 10px; }
.clients .ph img { object-fit: contain; }
.clients b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; hyphens: auto; }
.clients li { min-width: 0; }
@media (max-width: 860px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); background: var(--surface); border-radius: 3px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; }
.faq details p { padding: 0 18px 16px; color: var(--ink-2); max-width: 68ch; }

/* Contacts + form */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.contact-list { display: grid; gap: 18px; font-style: normal; }
.contact-list div { display: grid; gap: 2px; }
.lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.contact-list b { font-size: 18px; font-weight: 600; }
.copy-btn { background: none; border: 1px solid var(--line); border-radius: 3px; font: 12px var(--font-body); color: var(--ink-2); cursor: pointer; padding: 3px 8px; margin-left: 8px; }
.map-static { position: relative; display: block; height: 260px; overflow: hidden; border: 1px solid var(--ln); border-radius: var(--t-r); }
.map-static > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.map-static:hover > img { transform: scale(1.02); }
.map-marker { position: absolute; left: 48.2%; top: 58%; display: flex; align-items: center; gap: 8px; transform: translate(-12px, -100%); pointer-events: none; }
.map-marker-pin { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50% 50% 50% 0; background: var(--o); box-shadow: 0 6px 16px rgba(0,0,0,.25); transform: rotate(-45deg); }
.map-marker-pin::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #000; }
.map-marker-label { padding: 6px 10px; border-radius: 999px; background: #000; color: #fff; font: 500 12px/1.2 var(--font-display); white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.contact-page-info .map-static { height: 220px; }
@media (max-width: 860px) { .contacts { grid-template-columns: minmax(0, 1fr); } }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 24px; display: grid; gap: 14px; }
.form-card h2, .form-card h3 { font-size: 22px; }
.form-sub { font-size: 14px; color: var(--ink-2); }
.field { display: grid; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { font: 15px/1.4 var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 11px 12px; width: 100%; }
.field textarea { min-height: 84px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.drop { border: 1px dashed var(--ink-2); border-radius: 3px; padding: 14px; text-align: center; font-size: 14px; color: var(--ink-2); cursor: pointer; background: var(--bg); }
.drop.drag { border-color: var(--note); color: var(--note); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.file-list li { display: flex; justify-content: space-between; gap: 8px; background: var(--fill); padding: 4px 8px; border-radius: 2px; }
.file-list li span { min-width: 0; overflow-wrap: anywhere; }
.file-list button { background: none; border: 0; color: var(--ink-2); cursor: pointer; font-size: 13px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.err-msg { color: var(--err); font-size: 13px; }
.ok-box { border: 1px solid var(--ok); color: var(--ok); padding: 16px; border-radius: 4px; font-size: 15px; }

/* Footer */
.site-footer { background: var(--fill); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-block: 40px 24px; }
.foot h3 { font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.req { display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.foot-bottom { border-top: 1px solid var(--line); padding-block: 16px 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.foot-legal { display: flex; flex: 1 1 auto; flex-direction: column; align-self: start; gap: 12px; }
.foot-legal > span { display: block; margin: 0; }
.foot-bottom a { color: var(--ink); }
@media (max-width: 900px) { .foot-bottom { flex-direction: column; align-items: stretch; } }
@media (max-width: 860px) { .foot { grid-template-columns: minmax(0, 1fr); } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, var(--on-o) 55%, transparent); display: grid; place-items: center; padding-block: 16px; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.modal-box { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; }
.modal-box.wide { width: min(860px, 100%); }
.modal-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 3px; cursor: pointer; font-size: 18px; }
.policy { display: grid; gap: 12px; font-size: 14px; }
.policy ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.cookie .wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-block: 12px; font-size: 13px; }
.cookie p { max-width: 70ch; min-width: 0; }
.cookie .btn { padding: 10px 16px; font-size: 14px; }


/* ===== Геострой: яркий слой оформления. Разметка, тексты и порядок блоков из утверждённого прототипа ===== */
:root:not(#gs) {
  --bg: var(--page); --surface: var(--surf); --fill: var(--slot); --fill-2: var(--slot); --line: var(--ln);
  --ink: var(--tx); --ink-2: var(--tx2); --note: var(--focus); --note-bg: transparent;
  --font-body: "Golos Text", "Arial", sans-serif; --font-mono: "Golos Text", "Arial", sans-serif; --font-display: "Rubik", "Arial", sans-serif;
  --o: #F57336; --o-deep: #D9531F; --o-hot: #FF8A4C;
  --ease: cubic-bezier(.22, 1, .36, 1); --ease-io: cubic-bezier(.76, 0, .24, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}
:root:not(#gs) .logo-mark { filter: none; }
body { background: var(--page); color: var(--tx); font-size: 16px; line-height: 1.6; }
::selection { background: var(--o); color: var(--on-o); }
h1, h2, h3, .brand-name, .nav a, .btn, .hdr-contacts b, .hero-facts b, .lead-toggle, .chip, .proj-tag, .contact-list b, .mobile-nav a, .sub-chip, .cell-body h3, .faq summary, .lbl { font-family: var(--font-display); }
h2 { font-weight: 500; letter-spacing: -.025em; }
h3 { font-weight: 500; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.band.alt { background: var(--alt); }
a[href^="tel:"], a[href^="mailto:"] { color: inherit; text-decoration: none; background: linear-gradient(var(--o), var(--o)) no-repeat 0 100% / 0 2px; transition: background-size .5s var(--ease), color .3s; }
a[href^="tel:"]:hover, a[href^="mailto:"]:hover, a[href^="tel:"]:focus-visible, a[href^="mailto:"]:focus-visible { background-size: 100% 2px; }

/* ---------- text roll (меню и кнопки): текст уезжает вверх, снизу въезжает его копия-тень ---------- */
.gs-r { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; height: 1.25em; }
.gs-ri { display: inline-block; text-shadow: 0 1.25em 0 currentColor; transition: transform .6s var(--ease); }
a:hover > .gs-r .gs-ri, .btn:hover > .gs-r .gs-ri, a:focus-visible > .gs-r .gs-ri, .btn:focus-visible > .gs-r .gs-ri { transform: translateY(-1.25em); }

/* ---------- header ---------- */
.site-header { background: var(--hdr-bg); color: var(--hdr-ink); border-bottom: 1px solid var(--hdr-line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--prog); transform: scaleX(var(--sp, 0)); transform-origin: left; pointer-events: none; }
.site-header .brand { color: var(--hdr-ink); }
.site-header .brand-name { font-weight: 500; letter-spacing: .06em; }
.site-header .brand-slogan { color: var(--hdr-ink2); }
.site-header .logo-mark { transition: transform .8s var(--spring); }
.site-header .brand:hover .logo-mark { transform: scale(1.04) rotate(-2deg); }
.nav { position: relative; gap: 6px; }
.nav a { position: relative; z-index: 1; color: var(--hdr-ink); font-weight: 500; font-size: 15px; padding: 9px 14px; border-radius: var(--ind-r); transition: color .35s var(--ease); }
.nav a:hover { text-decoration: none; }
.nav a.gs-act { color: var(--ind-ink); }
.gs-ind { position: absolute; z-index: 0; left: 0; top: var(--ind-top); height: var(--ind-h); width: var(--iw, 0); transform: translateX(var(--ix, 0)); background: var(--ind-bg); border-radius: var(--ind-r); opacity: 1; pointer-events: none; transition: clip-path .55s var(--ease), opacity .3s; }
.nav.gs-on .gs-ind { opacity: 1; }
.nav:not(.gs-moved) .gs-ind { transition: opacity .3s; }
.hdr-contacts { color: var(--hdr-ink); }
.hdr-contacts b { font-weight: 500; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.hdr-contacts span { color: var(--hdr-ink2); }
.burger { position: relative; font-size: 0; color: var(--hdr-ink); border: 0; border-radius: 50%; background: var(--burger-bg); transition: background-color .4s; }
.burger::before, .burger::after { content: ""; position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .6s var(--spring); }
.burger::before { top: 17px; } .burger::after { top: 25px; left: 18px; }
.burger[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"]::after { top: 21px; left: 12px; transform: rotate(-45deg); }
.mobile-nav { background: var(--hdr-bg); border-top-color: var(--hdr-line); }
.mobile-nav a { color: var(--hdr-ink); border-bottom-color: var(--hdr-line) !important; font-weight: 500; font-size: 22px; }
.mobile-nav.open nav > * { animation: gs-in .7s var(--ease) both; }
.mobile-nav.open nav > :nth-child(2) { animation-delay: .05s; } .mobile-nav.open nav > :nth-child(3) { animation-delay: .1s; } .mobile-nav.open nav > :nth-child(4) { animation-delay: .15s; } .mobile-nav.open nav > :nth-child(5) { animation-delay: .2s; } .mobile-nav.open nav > :nth-child(6) { animation-delay: .25s; }
.mobile-nav nav span { color: var(--hdr-ink2) !important; }
.mobile-nav nav span a { border: 0 !important; padding: 0 !important; font-size: inherit !important; display: inline !important; }

/* ---------- buttons: заливка растёт из точки курсора, текст перекатывается, кнопка тянется к курсору ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--btn-r); font-weight: 500; font-size: 15px; letter-spacing: .01em; padding: 17px 30px; background: var(--btn-bg); color: var(--btn-ink); border: 1.5px solid var(--btn-bd); transition: color .45s var(--ease), border-color .45s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.btn:hover { opacity: 1; color: var(--btn-fink); border-color: var(--btn-hbd, var(--btn-fill)); box-shadow: var(--btn-glow); }
.btn:active { transform: scale(.97) !important; }
.gs-fill { position: absolute; z-index: -1; left: var(--x, 50%); top: var(--y, 50%); width: var(--d, 300px); height: var(--d, 300px); border-radius: 50%; background: var(--btn-fill); transform: translate(-50%, -50%) scale(0); transition: transform .7s var(--ease); pointer-events: none; }
.btn:hover > .gs-fill, .btn:focus-visible > .gs-fill { transform: translate(-50%, -50%) scale(1); }
.btn.ghost { --btn-bg: transparent; --btn-ink: var(--tx); --btn-bd: var(--ghost-bd); --btn-fill: var(--tx); --btn-fink: var(--page); --btn-glow: none; }

/* ---------- first screen ---------- */
.hero { background: #FFFFFF; overflow: hidden; }
.hero-video.ph { border: 0; background: var(--mesh-base); overflow: hidden; }
.hero-video.ph span { visibility: hidden; }
.hero-video.ph::before { content: ""; position: absolute; inset: -30%; background: radial-gradient(28% 34% at 26% 30%, var(--mesh1), transparent 70%), radial-gradient(30% 30% at 74% 62%, var(--mesh2), transparent 70%), radial-gradient(24% 28% at 52% 88%, var(--mesh3), transparent 70%); filter: blur(30px); animation: gs-orbit 28s linear infinite; }
.hero-video.ph::after { content: ""; position: absolute; inset: 0; background: radial-gradient(520px circle at var(--hx, 50%) var(--hy, 40%), var(--glow), transparent 65%); transition: background .2s; }
@keyframes gs-orbit { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(1.12); } 100% { transform: rotate(360deg) scale(1); } }
.hero.v-b::after { background: var(--hero-overlay), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero h1 { color: var(--h1); font-weight: 500; letter-spacing: -.02em; line-height: 1.14; }
.hero.v-b .hero-lead { color: var(--lead); font-size: clamp(14px, 1.9vh, 16.5px); line-height: 1.65; }
.hero .lead-toggle { color: var(--h1); }
.hero :focus-visible { outline-color: var(--o); }
.hero.v-b .hero-copy { gap: clamp(16px, 2.6vh, 28px); }
.gs-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.gs-wi { display: inline-block; animation: gs-up 1.1s var(--ease) both; animation-delay: calc(.15s + var(--i) * 40ms); }
@keyframes gs-up { from { transform: translateY(110%); } to { transform: none; } }
.hero-copy > .hero-lead, .hero-copy > .lead-toggle { animation: gs-in 1.2s var(--ease) .7s both; }
.hero-copy > .hero-facts { animation: gs-in 1.2s var(--ease) .85s both; }
.hero-copy > .hero-actions { animation: gs-in 1.2s var(--ease) 1.05s both; }
@keyframes gs-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes gs-fade { from { opacity: 0; } to { opacity: 1; } }
.hero .btn { --btn-bg: var(--hb-bg); --btn-ink: var(--hb-ink); --btn-bd: var(--hb-bd); --btn-fill: var(--hb-fill); --btn-fink: var(--hb-fink); }
/* живой контур главной кнопки */
.hero .btn::before { content: ""; position: absolute; z-index: -2; inset: -1.5px; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--ang, 0deg), transparent 0 62%, var(--trace) 78%, transparent 92%); -webkit-mask: linear-gradient(currentColor 0 0) content-box, linear-gradient(currentColor 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: gs-spin 3.2s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes gs-spin { to { --ang: 360deg; } }

/* ---------- facts: цифры прокручиваются как счётчик, ячейки по очереди подсвечиваются, за курсором идёт свет ---------- */
.hero-facts { position: relative; background: var(--f-bg); border: 1px solid var(--f-line); border-radius: var(--f-r); overflow: hidden; -webkit-backdrop-filter: var(--f-blur); backdrop-filter: var(--f-blur); }
.hero-facts::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(260px circle at var(--mx, -300px) var(--my, -300px), var(--f-spot), transparent 70%); pointer-events: none; }
.hero-facts li { position: relative; z-index: 1; color: var(--f-ink); border-right: 1px solid var(--f-line) !important; padding: 16px 18px 18px; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; line-height: 1.5; transition: background-color .5s var(--ease), color .5s var(--ease); }
.hero-facts li:last-child { border-right: 0 !important; }
.hero-facts li::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--f-bar); transform: scaleX(0); transform-origin: left; }
.hero-facts li.gs-on::before { animation: gs-bar var(--cyc, 2.6s) linear both; }
@keyframes gs-bar { 0% { transform: scaleX(0); } 85% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.hero-facts li.gs-on, .hero-facts li:hover { background: var(--f-on-bg); color: var(--f-on-ink); }
.hero-facts b { display: block; color: var(--f-num); font-weight: 500; font-size: clamp(22px, 3.1vh, 30px); letter-spacing: -.01em; text-transform: none; margin-bottom: 6px; transition: color .5s var(--ease), transform .6s var(--spring); }
.hero-facts li.gs-on b, .hero-facts li:hover b { color: var(--f-on-num); transform: translateY(-3px); }
.gs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gs-od { display: inline-block; height: 1.15em; line-height: 1.15em; overflow: hidden; vertical-align: top; }
.gs-ods { display: flex; flex-direction: column; transform: translateY(0); transition: transform 2.2s var(--ease); transition-delay: calc(var(--j) * 120ms + 1s); }
.gs-ods > span { height: 1.15em; }
.gs-run .gs-ods { transform: translateY(calc(var(--t) * -1.15em)); }
.gs-ch { display: inline-block; line-height: 1.15em; vertical-align: top; }
@media (max-width: 900px) { .hero-facts li { padding: 10px; font-size: 9.5px; letter-spacing: .03em; overflow-wrap: anywhere; } .hero-facts li { border-bottom: 1px solid var(--f-line) !important; } .hero-facts li:nth-child(n+4) { border-bottom: 0 !important; } .hero-facts li:nth-child(3n) { border-right: 0 !important; } .hero-facts b { font-size: 20px; } }

/* ---------- services ---------- */
#services.band { background: var(--svc-bg); padding-block: 96px 112px; }
#services .section-head { margin-bottom: 56px; gap: 14px; }
#services h2 { font-size: clamp(40px, 5vw, 72px); font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--svc-h2); }
#services .section-head p { color: var(--tx2); font-size: 15px; }
.svc-groups { gap: 72px; }
.svc-group { gap: 22px; }
.svc-group-head { position: relative; border-bottom: 1px solid var(--rule); padding-bottom: 14px; }
.svc-group-head::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--o); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .1s; }
.svc-group.gs-seen .svc-group-head::after { transform: scaleX(var(--rule-k, .12)); }
.svc-group:hover .svc-group-head::after { transform: scaleX(1); }
.svc-group-head h3 { font-size: 26px; font-weight: 500; color: var(--svc-h3); }
.svc-group-head a { position: relative; color: var(--tx); font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--ln); border-radius: 999px; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s; }
.svc-group-head a:hover { color: var(--on-o); background: var(--o); border-color: var(--o); text-decoration: none; }
.sub-chips { gap: var(--gap); }
.sub-chip { position: relative; isolation: isolate; background: var(--t-bg); border: 1px solid var(--t-line); border-radius: var(--t-r); color: var(--t-ink); font-weight: 500; font-size: 15px; transition: border-color .5s var(--ease), transform .7s var(--ease), box-shadow .7s var(--ease), color .45s var(--ease); }
.sub-chip::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; top: 200px; background: var(--t-hbg); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.sub-chip:hover { border-color: var(--t-hline); color: var(--t-hink); box-shadow: var(--t-shadow); transform: translateY(var(--t-lift, 0)); }
.sub-chip:hover::before { transform: scaleY(1); }
.sub-chip span { padding: 14px 8px 16px 18px !important; line-height: 1.4; }
.sub-chip::after { color: var(--t-arrow); padding-right: 18px !important; font-size: 18px; }
.sub-chip:hover::after { color: var(--t-harrow); animation: gs-arrow .7s var(--ease); }
@keyframes gs-arrow { 0% { transform: none; opacity: 1; } 45% { transform: translateX(14px); opacity: 0; } 55% { transform: translateX(-14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.sub-img { background-color: var(--slot); background-image: none; border-bottom: 0; overflow: hidden; }
.sub-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--ease); }
.sub-img:has(img)::before { display: none; }
.sub-chip:hover .sub-img img { transform: scale(1.03); }
.sub-img::before { content: ""; position: absolute; inset: 0; background: inherit; transition: transform 1.2s var(--ease); }
.sub-img::after { content: ""; position: absolute; inset: 0; background: var(--tint); mix-blend-mode: var(--tint-mode, multiply); opacity: 0; transition: opacity .7s var(--ease); }
.sub-chip:hover .sub-img::before { transform: scale(1.08); }
.sub-chip:hover .sub-img::after { opacity: 1; }
@media (max-width: 760px) { .sub-chip::before { top: 150px; } }
.js.gs-reveal .sub-chips li.gs-pre { opacity: 0; transform: translateY(28px); }
.js.gs-reveal .sub-chips li.gs-pre .sub-img { clip-path: inset(0 0 100% 0); }
.js.gs-reveal .sub-chips li.gs-in { animation: gs-in 1s var(--ease) both; animation-delay: calc(var(--k, 0) * 90ms); }
.js.gs-reveal .sub-chips li.gs-in .sub-img { animation: gs-wipe 1.2s var(--ease-io) both; animation-delay: calc(var(--k, 0) * 90ms + 80ms); }
@keyframes gs-wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.js.gs-reveal #services h2.gs-pre { clip-path: inset(0 0 100% 0); transform: translateY(30px); }
.js.gs-reveal #services h2.gs-in { animation: gs-h2 1.2s var(--ease) both; }
@keyframes gs-h2 { from { clip-path: inset(0 0 100% 0); transform: translateY(30px); } to { clip-path: inset(0 0 -20% 0); transform: none; } }

/* ---------- placeholders under future photos ---------- */
.ph { background-color: var(--slot); background-image: none; border-color: var(--ln); }
.ph span { visibility: hidden; }

/* ---------- modal ---------- */
.modal { background: var(--scrim); }
.modal:not([hidden]) { animation: gs-fade .45s var(--ease) both; }
.modal:not([hidden]) .modal-box { animation: gs-modal .8s var(--ease) both; }
@keyframes gs-modal { from { opacity: 0; transform: translateY(40px); clip-path: inset(10% 0 0 0 round 8px); } to { opacity: 1; transform: none; clip-path: inset(0 round 0); } }
.form-card { background: var(--modal-bg); border: 0; border-top: 4px solid var(--o); border-radius: var(--m-r); padding: 36px; gap: 18px; }
.modal-close { top: 14px; right: 14px; border: 0; border-radius: 50%; width: 40px; height: 40px; background: transparent; color: var(--tx); font-size: 24px; transition: transform .6s var(--spring), background-color .3s, color .3s; }
.modal-close:hover { transform: rotate(90deg); background: var(--o); color: var(--on-o); }
.sub-info h3 { font-size: 30px !important; font-weight: 500; }
.sub-info p.desc { color: var(--tx2); line-height: 1.7; }
.sub-info .hero-actions > * { animation: gs-in .8s var(--ease) both; }
.sub-info .hero-actions > :nth-child(2) { animation-delay: .08s; }
.mini-proj { background: transparent; border: 0; gap: 10px; }
.mini-proj .ph { border: 0; border-radius: var(--t-r); }
.mini-proj div:last-child { padding: 0; }
.field input, .field select, .field textarea { background: var(--field); border-color: var(--ln); color: var(--tx); border-radius: var(--t-r); transition: border-color .3s, box-shadow .3s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--o); box-shadow: 0 0 0 3px var(--o-ring); outline: none; }
.toast { background: var(--o); color: var(--on-o); border-radius: var(--btn-r); font-family: var(--font-body); }
.site-footer { background: var(--foot); }
.cookie { background: var(--surf); }
.chip, .copy-btn { border-radius: var(--btn-r); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js.gs-reveal .sub-chips li.gs-pre, .js.gs-reveal #services h2.gs-pre { opacity: 1; transform: none; clip-path: none; }
  .js.gs-reveal .sub-chips li.gs-pre .sub-img { clip-path: none; }
}
:root:not(#gs) {--prog: #F57336; --rule-k: .12; --focus: #F57336; --glow: rgba(245,115,54,.25); --trace: #FFFFFF; --t-lift: -4px; --t-shadow: 0 30px 50px -30px rgba(245,115,54,.6); --tint-mode: multiply; --btn-glow: 0 14px 30px -12px rgba(245,115,54,.7); --f-blur: blur(14px); --m-r: 18px; --color-scheme: light; --page: #FFFFFF; --surf: #F5F5F5; --alt: #F1EFEA; --slot: #E6E6E6; --ln: #E2E2E2; --tx: #000000; --tx2: #555555; --hdr-bg: #FFFFFF; --hdr-ink: #000000; --hdr-ink2: #6B6B6B; --hdr-line: #EEEEEE; --burger-bg: #F1EFEA; --ind-bg: #F57336; --ind-ink: #000000; --ind-top: calc(50% - 19px); --ind-h: 38px; --ind-r: 999px; --btn-r: 999px; --btn-bg: #000000; --btn-ink: #FFFFFF; --btn-bd: #000000; --btn-fill: #F57336; --btn-fink: #000000; --ghost-bd: #000000; --mesh-base: #140D09; --mesh1: rgba(245,115,54,.85); --mesh2: rgba(217,83,31,.6); --mesh3: rgba(149,149,149,.35); --hero-overlay: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.55)); --h1: #FFFFFF; --lead: rgba(255,255,255,.84); --hb-bg: #F57336; --hb-ink: #000000; --hb-bd: #F57336; --hb-fill: #FFFFFF; --hb-fink: #000000; --f-bg: rgba(255,255,255,.08); --f-line: rgba(255,255,255,.18); --f-r: 16px; --f-spot: rgba(245,115,54,.38); --f-ink: rgba(255,255,255,.72); --f-num: #F57336; --f-bar: #F57336; --f-on-bg: #F57336; --f-on-ink: rgba(0,0,0,.78); --f-on-num: #000000; --svc-bg: #FFFFFF; --svc-h2: #000000; --svc-h3: #000000; --rule: #000000; --gap: 24px; --t-bg: #F5F5F5; --t-line: #F5F5F5; --t-r: 14px; --t-ink: #000000; --t-hbg: #FBE0D4; --t-hline: #F3B79D; --t-hink: #000000; --t-arrow: #000000; --t-harrow: #000000; --tint: rgba(245,115,54,.38); --modal-bg: #FFFFFF; --scrim: rgba(10,10,10,.55); --field: #FFFFFF; --foot: #F1EFEA;}


/* ===== Hallmark polish: слой правок поверх яркого оформления, разметка и тексты прежние ===== */
html, body { overflow-x: clip; }
:root:not(#gs) { --spring: cubic-bezier(.16, 1, .3, 1); }
/* разделитель-волосок вместо средней точки */
.sep { display: inline-block; width: 1px; height: .95em; margin: 0 .7em; vertical-align: -.12em; background: currentColor; opacity: .32; }

/* подписи: основной шрифт, на шаг меньше, без капители и разрядки */
.hero-facts li { text-transform: none; letter-spacing: 0; font-size: 13px; line-height: 1.45; font-family: var(--font-body); }
.svc-group-head a { text-transform: none; letter-spacing: 0; font-size: 14px; }
.lbl { text-transform: none; letter-spacing: 0; font-size: 13px; font-family: var(--font-body); }
.wf-tag { text-transform: none; letter-spacing: 0; }
@media (max-width: 900px) { .hero-facts li { font-size: 11.5px; letter-spacing: 0; } }

/* шапка: сжатие без анимации ширины и высоты; знак и название доезжают трансформом */
.logo-mark, .site-header .logo-mark { transition: transform .9s var(--ease); }
.hdr, .site-header .brand-name { transition: none; }
.site-header { --hdr-gap: 36px; }
.site-header.compact .logo-mark { animation: gs-mark-in .7s var(--ease) backwards; }
.site-header.gs-grown .logo-mark { animation: gs-mark-out .7s var(--ease) backwards; }
.site-header.compact .brand-name, .site-header.compact .brand-slogan { animation: gs-name-in .65s var(--ease) backwards; }
.site-header.gs-grown .brand-name, .site-header.gs-grown .brand-slogan { animation: gs-name-out .65s var(--ease) backwards; }
.site-header.compact::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--hdr-gap); background: var(--hdr-bg); transform-origin: top; pointer-events: none; animation: gs-hdr-fold .65s var(--ease) both; }
@keyframes gs-mark-in { from { transform: scale(1.79); transform-origin: left center; } to { transform: none; transform-origin: left center; } }
@keyframes gs-mark-out { from { transform: scale(.56); transform-origin: left center; } to { transform: none; transform-origin: left center; } }
@keyframes gs-name-in { from { transform: translateX(60px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes gs-name-out { from { transform: translateX(-60px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes gs-hdr-fold { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@media (max-width: 900px) { .site-header.compact .logo-mark, .site-header.gs-grown .logo-mark, .site-header.compact .brand-name, .site-header.gs-grown .brand-name, .site-header.compact .brand-slogan, .site-header.gs-grown .brand-slogan { animation: none; } .site-header.compact::before { content: none; } }

/* подложка меню: едет клип-маской, а не шириной */
.gs-ind { left: 0; width: 100%; transform: none; opacity: 1; clip-path: inset(0 calc(100% - var(--ix, 0px) - var(--iw, 0px)) 0 var(--ix, 0px) round var(--ind-r)); transition: clip-path .85s var(--ease), opacity .4s var(--ease); }
.nav:not(.gs-on) .gs-ind { opacity: 0; }
.nav:not(.gs-moved) .gs-ind { transition: opacity .3s; }

/* бургер: линии двигаются только трансформом */
.burger::before, .burger::after { left: 12px; right: 12px; transition: transform .6s var(--spring); }
.burger::before { top: 17px; transform: none; }
.burger::after { top: 25px; transform-origin: center; transform: translateX(3px) scaleX(.7); }
.burger[aria-expanded="true"]::before { top: 17px; transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"]::after { top: 25px; left: 12px; transform: translateY(-4px) rotate(-45deg); }

/* поверхности: затемнение без стеклянного размытия, текст на тёмной подложке задан явно */
.modal { -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero-video.ph { color: var(--h1); }
.cookie p { max-width: 70ch; }

/* состояния: недоступные элементы */
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn:disabled > .gs-fill { transform: translate(-50%, -50%) scale(0); }
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: .55; cursor: not-allowed; }
.chip:disabled, .copy-btn:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { transition: none; }

/* фокус и поля: контраст не ниже 3:1 на любой подложке */
:focus-visible { outline: 2px solid var(--tx); outline-offset: 3px; }
.hero :focus-visible { outline-color: var(--h1); }
.site-header :focus-visible, .mobile-nav :focus-visible { outline-color: var(--hdr-ink); }
.field input, .field select, .field textarea { border-color: color-mix(in srgb, var(--tx) 50%, var(--page)); }
.nav { align-items: center; }
.nav a { display: flex; align-items: center; justify-content: center; min-height: 38px; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: #000000;
  color-scheme: light;
  padding-right: 42px;
}
.field select option { background: #FFFFFF; color: #000000; }
.consent { position: relative; z-index: 1; align-items: center; cursor: pointer; pointer-events: auto; }
.consent input { position: relative; z-index: 2; display: inline-block; width: 22px; height: 22px; margin: 0; accent-color: #F57336; cursor: pointer; pointer-events: auto; }
.consent span { cursor: pointer; }
.consent[hidden], .consent-toggle[hidden] { display: none; }
.consent-toggle { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--ink-2); font: 13px var(--font-body); text-align: left; cursor: pointer; }
.consent-box { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1px solid var(--ink); border-radius: 2px; background: #fff; color: #000; }
.consent-toggle[aria-checked="true"] .consent-box { border-color: #F57336; background: #F57336; }
.consent-toggle[aria-checked="true"] .consent-box::after { content: "✓"; font-size: 19px; line-height: 1; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.drop small { font-size: 12px; }
.btn { padding-block: 15px; }

@media (prefers-reduced-motion: reduce) {
  .site-header .logo-mark, .site-header .brand-name, .site-header .brand-slogan, .site-header::before { animation: none !important; }
  .gs-ind { transition: none; }
}


/* ===== Раунд 2: видео на первом экране, спокойные эффекты, блок Saby, cookie по требованиям 152-ФЗ ===== */
/* видео */
.hero-video.ph::before { content: none; }
.hero-video.ph { background: #FFFFFF; padding: 0; }
.hero-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; display: block; }
.hero-video.ph::after { z-index: 1; transition: background .9s var(--ease); }
.hero-pause { position: absolute; z-index: 3; right: max(16px, calc((100% - var(--rail)) / 2 + 16px)); bottom: 20px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--h1) 40%, transparent); background: color-mix(in srgb, var(--mesh-base) 35%, transparent); color: var(--h1); cursor: pointer; opacity: .7; transition: opacity .6s var(--ease), background-color .6s var(--ease); }
.hero-pause:hover { opacity: 1; }
.hero-pause:focus-visible { opacity: 1; outline: 2px solid var(--h1); outline-offset: 3px; }
.hero-pause .i-play { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: block; }
.hero-pause[aria-pressed="true"] .i-pause { display: none; }

/* спокойные эффекты: длинные мягкие переходы, без перекатов, рывков и притяжения к курсору */
:root:not(#gs) { --ease: cubic-bezier(.4, 0, .2, 1); --spring: cubic-bezier(.4, 0, .2, 1); --t-lift: 0px; }
.gs-ri { text-shadow: none; transition: none; }
a:hover > .gs-r .gs-ri, .btn:hover > .gs-r .gs-ri, a:focus-visible > .gs-r .gs-ri, .btn:focus-visible > .gs-r .gs-ri { transform: none; }
.nav a { transition: color .6s var(--ease); }
.gs-ind { transition: clip-path .9s var(--ease), opacity .6s var(--ease); }
.btn { transform: none !important; transition: color .7s var(--ease), border-color .7s var(--ease), box-shadow .9s var(--ease), background-color .7s var(--ease); }
.btn:active { transform: none !important; }
.gs-fill { transition: transform 1.1s var(--ease); }
.hero .btn::before { animation-duration: 16s; opacity: .7; }
.site-header .brand:hover .logo-mark { transform: none; }
.hero-facts li { transition: background-color 1s var(--ease), color 1s var(--ease); }
.hero-facts b { transition: color 1s var(--ease); }
.hero-facts li.gs-on b, .hero-facts li:hover b { transform: none; }
.hero-facts::after { transition: opacity .8s var(--ease); }
.sub-chip { transition: border-color .8s var(--ease), box-shadow 1s var(--ease), color .7s var(--ease); }
.sub-chip:hover { transform: none; }
.sub-chip::before { transform: none; opacity: 0; transition: opacity .8s var(--ease); }
.sub-chip:hover::before { transform: none; opacity: 1; }
.sub-chip::after { transition: transform .8s var(--ease), color .7s var(--ease); }
.sub-chip:hover::after { animation: none; transform: translateX(4px); }
.sub-img::before { transition: transform 2s var(--ease); }
.sub-chip:hover .sub-img::before { transform: scale(1.03); }
.sub-img::after { transition: opacity 1s var(--ease); }
.svc-group-head a { transition: background-color .7s var(--ease), color .7s var(--ease), border-color .7s var(--ease); }
.svc-group-head::after { transition: transform 1.6s var(--ease); }
.modal-close { transition: background-color .5s var(--ease), color .5s var(--ease); }
.modal-close:hover { transform: none; }
a[href^="tel:"], a[href^="mailto:"] { transition: background-size .8s var(--ease), color .5s var(--ease); }
.field input, .field select, .field textarea { transition: border-color .5s var(--ease), box-shadow .5s var(--ease); }

/* блок Saby в «О компании» */
.about-grid { align-items: start; }
.about-grid .prose { align-content: start; }
.trust { display: grid; gap: 8px; padding: 24px 24px 20px; border: 1px solid var(--ln); border-left: 3px solid var(--o); border-radius: var(--t-r); background: var(--surf); color: var(--tx); text-decoration: none; transition: border-color .7s var(--ease), background-color .7s var(--ease); }
.trust:hover { border-color: var(--o); }
.trust-num { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.trust-cap { color: var(--tx2); font-size: 15px; }
.trust-row { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--ln); font-size: 16px; font-weight: 500; }
.trust-row svg { flex: none; color: var(--o); }
.trust-link { display: inline-flex; gap: 6px; align-items: center; justify-self: start; margin-top: 4px; font-size: 14px; color: var(--tx2); background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .8s var(--ease), color .6s var(--ease); }
.trust:hover .trust-link, .trust:focus-visible .trust-link { background-size: 100% 1px; color: var(--tx); }
.trust-link svg { flex: none; }

/* cookie */
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { min-width: 132px; justify-content: center; text-align: center; }
.cookie-actions .btn.ghost { --btn-ink: var(--tx); --btn-bd: var(--tx); }
.consent-note { font-size: 13px; color: var(--tx2); margin: -6px 0 0; }

@media (prefers-reduced-motion: reduce) { .hero .btn::before { animation: none; } }
:root:not(#gs) { --hero-overlay: linear-gradient(180deg, rgba(0,0,0,.46), rgba(0,0,0,.62)); }


/* ===== Раунд 3: свет за курсором убран с первого экрана и перенесён на блоки ниже ===== */
.hero-video.ph::after, .hero-facts::after { content: none; }
.band { position: relative; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(640px circle at var(--sx, 50%) var(--sy, 50%), var(--band-spot), transparent 70%); opacity: 0; transition: opacity 1.2s var(--ease); }
.band.gs-lit::before { opacity: 1; }
:root:not(#gs) { --band-spot: color-mix(in srgb, var(--o) 11%, transparent); }
@media (prefers-reduced-motion: reduce), (hover: none) { .band::before { content: none; } }


/* ===== Белый: 3 квадратные подуслуги в ряду и единая типографическая шкала ===== */
:root:not(#gs) {
  --fs-body: 17px;
  --fs-lead: 18px;
  --fs-h1: clamp(32px, 3.5vw, 48px);
  --fs-h2: clamp(34px, 4vw, 56px);
  --fs-h3: clamp(24px, 2.35vw, 30px);
  --fs-h4: clamp(17px, 1.5vw, 19px);
}
body { font-size: var(--fs-body); line-height: 1.65; }
h1, h2, h3, .sub-title { text-wrap: balance; }
.hero h1, .hero.v-e .hero-copy h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -.035em; }
.hero-lead, .hero.v-b .hero-lead { font-size: var(--fs-lead); line-height: 1.6; max-width: 80ch; }
h2, #services h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.06; letter-spacing: -.035em; }
.section-head { max-width: 800px; }
.section-head p, #services .section-head p { max-width: 65ch; font-size: var(--fs-body); line-height: 1.6; }
h3, .sub-head h3, .form-card h2, .form-card h3 { font-size: 24px; line-height: 1.25; }
.svc-group-head h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.02em; }
.sub-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; gap: 24px; }
.sub-chip { height: auto; min-height: 0; aspect-ratio: 1; grid-template-rows: minmax(0, 1fr) auto; font-size: var(--fs-h4); line-height: 1.35; }
.sub-chip::before { top: 58%; }
.sub-chip span { padding: 20px 10px 22px 22px !important; line-height: 1.35; -webkit-line-clamp: 3; }
.sub-chip::after { padding-right: 22px !important; font-size: 22px; }
.hero-facts li { font-size: 14px; }
.proj h2, .proj h3 { font-size: 20px; line-height: 1.3; }
.proj p, .faq details p, .sub-info p.desc, .svc-detail .lead { font-size: 16px; line-height: 1.65; }
.faq summary { font-size: 18px; }
.contact-list b { font-size: 19px; }
.form-sub, .field input, .field select, .field textarea { font-size: 16px; }
.policy { font-size: 15px; }
.site-footer { font-size: 14px; }
@media (max-width: 1000px) {
  :root:not(#gs) {
    --fs-body: 16px;
    --fs-lead: 17px;
    --fs-h1: clamp(30px, 4.8vw, 42px);
    --fs-h2: clamp(32px, 4.8vw, 46px);
    --fs-h3: 26px;
    --fs-h4: 17px;
  }
  .sub-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 620px) {
  :root:not(#gs) {
    --fs-h1: clamp(28px, 8vw, 34px);
    --fs-h2: clamp(30px, 9vw, 38px);
    --fs-h3: 24px;
    --fs-h4: 18px;
  }
  .hero-lead, .hero.v-b .hero-lead { font-size: 16px; }
  h3, .sub-head h3, .form-card h2, .form-card h3 { font-size: 22px; }
  .sub-chips { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sub-chip span { padding: 18px 8px 20px 20px !important; }
}

.field-float { position: relative; display: block; }
.field-float > label {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  color: var(--tx);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  transform: translateY(-50%);
  pointer-events: none;
  transition: top .24s var(--ease), transform .24s var(--ease), font-size .24s var(--ease), color .24s var(--ease);
}
.field-float > input, .field-float > select { height: 58px; padding-top: 24px; padding-bottom: 6px; }
.field-float > select { padding-right: 42px; }
.field-float > textarea { min-height: 112px; padding-top: 28px; padding-bottom: 10px; }
.field-float:has(> textarea) > label { top: 18px; overflow: visible; white-space: normal; text-overflow: clip; transform: none; }
.field-float:focus-within > label,
.field-float:has(> input:not(:placeholder-shown)) > label,
.field-float:has(> textarea:not(:placeholder-shown)) > label,
.field-float:has(> select > option:checked:not([value=""])) > label,
.field-float:has(> input:-webkit-autofill) > label {
  top: 7px;
  color: #6B6B6B;
  font-size: 12px;
  transform: none;
}
.field-float > input::placeholder, .field-float > textarea::placeholder { color: transparent; opacity: 0; transition: color .24s var(--ease), opacity .24s var(--ease); }
.field-float:focus-within > input::placeholder, .field-float:focus-within > textarea::placeholder { color: #6B6B6B; opacity: 1; }
.field-float.is-invalid > input, .field-float.is-invalid > textarea { border-color: #D92D20; background: #FFF7F6; }
.field-float.is-invalid > label { overflow: visible; color: #B42318; font-size: 11px; white-space: normal; text-overflow: clip; }
.consent-toggle.is-invalid .consent-box { border-color: #D92D20; background: #FFF7F6; }
.consent-toggle.is-invalid::after { content: "Обязательно для заполнения"; display: block; flex-basis: 100%; margin: 6px 0 0 28px; color: #B42318; font-size: 12px; }

.site-header .brand-name, .site-header .brand-slogan { transition: color .7s var(--ease); }
.logo-mark, .site-header .logo-mark { transition: transform .9s var(--ease), opacity .7s var(--ease); }
.site-header .brand:hover .logo-mark { opacity: .82; }
.site-header .brand:hover .brand-slogan { color: var(--prog); }
.nav a { transition: color .55s var(--ease), background-color .55s var(--ease); }
@media (max-width: 900px) {
  .hdr { height: 68px; gap: 12px; }
  .brand { flex: 1 1 auto; gap: 10px; }
  .brand-text { padding-top: 4px; }
  .logo-mark, .site-header.compact .logo-mark { width: 72px; }
  .brand-name, .site-header.compact .brand-name { font-size: 17px; letter-spacing: .035em; white-space: nowrap; }
  .brand-slogan, .site-header.compact .brand-slogan { font-size: 10px; letter-spacing: .035em; white-space: nowrap; }
}
@media (max-width: 620px) {
  .band { padding-block: 44px; scroll-margin-top: 84px; }
  .section-head { gap: 10px; margin-bottom: 24px; }
  #services.band { padding-block: 48px 56px; }
  #services .section-head { margin-bottom: 28px; }
  .hero .wrap { padding-block: 14px 20px; }
  .hero.v-b .hero-copy { gap: 14px; }
  .hero h1, .hero.v-e .hero-copy h1 { font-size: clamp(25px, 7vw, 30px); line-height: 1.1; }
  .hero-facts li { padding: 8px; font-size: 10.5px; overflow-wrap: normal; word-break: normal; hyphens: none; }
  .hero-facts b { font-size: 18px; }
  #contacts .wrap { width: min(var(--rail), calc(100% - 24px)); }
  .form-card { padding: 12px; }
  .more-row { margin-top: 22px; }
  .foot { gap: 24px; padding-block: 32px 20px; }
  .foot-bottom { gap: 12px; padding-block: 16px 18px; }
}
@media (max-width: 380px) {
  .brand { gap: 8px; }
  .logo-mark, .site-header.compact .logo-mark { width: 64px; }
  .brand-name, .site-header.compact .brand-name { font-size: 16px; letter-spacing: .02em; }
  .brand-slogan, .site-header.compact .brand-slogan { font-size: 9px; letter-spacing: .02em; }
}

.js.gs-reveal [data-home-reveal].gs-pre { opacity: 0; transform: translateY(24px); }
.js.gs-reveal [data-home-reveal].gs-in { animation: gs-home-reveal .85s var(--ease) both; animation-delay: calc(var(--k, 0) * 80ms); }
@keyframes gs-home-reveal { to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  #modal-sub, #modal-svc { padding: 0; }
  #modal-sub .modal-box, #modal-svc .modal-box { width: 100%; max-height: 100dvh; height: 100dvh; }
  #modal-sub .form-card, #modal-svc .form-card { min-height: 100dvh; border-radius: 0; padding: 24px 18px; }
  #modal-sub .modal-close, #modal-svc .modal-close { position: fixed; top: max(12px, env(safe-area-inset-top, 0px)); right: 14px; background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .js.gs-reveal [data-home-reveal].gs-pre { opacity: 1; transform: none; }
}

#faq .wrap { display: grid; grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
#faq .section-head { position: sticky; top: 110px; margin-bottom: 0; }
.faq { max-width: none; border-top: 1px solid var(--line); }
.faq details { overflow: hidden; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.faq summary { display: grid; grid-template-columns: 36px minmax(0, 1fr) 34px; gap: 16px; align-items: center; padding: 24px 0; font-size: 19px; font-weight: 500; line-height: 1.4; list-style: none; transition: color .35s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { display: none; }
.faq summary:hover { color: var(--o); }
.faq summary:focus-visible { outline: 2px solid var(--o); outline-offset: 4px; border-radius: 4px; }
.faq-index { padding-top: 2px; color: var(--tx2); font: 500 12px/1 var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: .04em; transition: color .35s var(--ease); }
.faq-icon { position: relative; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .45s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 9px; top: 15px; width: 12px; height: 1.5px; border-radius: 2px; background: var(--tx); transition: transform .4s var(--ease), background-color .35s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq summary:hover .faq-icon, .faq details[open] .faq-icon { border-color: var(--o); background: var(--o); }
.faq details[open] .faq-icon { transform: none; }
.faq details[open] .faq-icon::after { transform: rotate(0); }
.faq details[open] .faq-index { color: var(--o); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-answer > p { min-height: 0; overflow: hidden; margin: 0; padding: 0 48px 0 52px; color: var(--tx2); max-width: 68ch; transition: padding-bottom .45s var(--ease); }
.faq details[open] .faq-answer { grid-template-rows: 1fr; }
.faq details[open] .faq-answer > p { padding-bottom: 26px; }
.faq details.is-closing .faq-answer { grid-template-rows: 0fr; }
.faq details.is-closing .faq-answer > p { padding-bottom: 0; }
@media (max-width: 900px) {
  #faq .section-head { position: static; }
}
@media (max-width: 620px) {
  #faq .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .faq summary { grid-template-columns: 28px minmax(0, 1fr) 30px; gap: 12px; padding: 20px 0; font-size: 17px; }
  .faq-icon { width: 30px; height: 30px; }
  .faq-icon::before, .faq-icon::after { left: 8px; top: 14px; }
  .faq-answer > p { padding-right: 12px; padding-left: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-answer, .faq-answer > p, .faq-icon, .faq-icon::before, .faq-icon::after { transition: none; }
}
body, body * { overflow-wrap: normal !important; word-break: normal !important; hyphens: none !important; }
.sub-chip { aspect-ratio: auto; grid-template: auto auto / minmax(0, 1fr); font-size: 15px; }
.sub-chip .sub-img { aspect-ratio: 1 / 1; }
.sub-chip::after { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0 !important; border-radius: 50%; background: #fff; }
.sub-chip span { padding: 18px !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
@media (max-width: 620px) { .sub-chip { font-size: 17px; } }
