/* =========================================================
   Car-Customizing — design system
   Concept: the instrument cluster. Graphite panels, cool
   workshop greys, and one accent — the brand orange from the
   Car-Customizing logo, which also reads as the check-engine
   lamp. Red appears only where a real warning lamp would be red.
   ========================================================= */

:root {
  --graphite: #1a1d21;
  --graphite-2: #23272c;
  --graphite-3: #2d3238;
  --panel: #14171a;
  --line-dark: #373d44;
  --steel: #9ea5ad;
  --steel-2: #c6cbd0;
  --concrete: #eceeef;
  --concrete-2: #e1e4e6;
  --paper: #ffffff;
  --ink: #16181b;
  --ink-2: #4b5159;
  --line: #d4d8db;
  --amber: #fc8d3c;
  --amber-hover: #ffa25e;
  --amber-ink: #a8470a;
  --lamp-red: #e5493b;
  --ok: #45b98c;
  --on-amber: #16181b;
  --line-2: #cfd3d6;
  --tg: #1c8ac0;
  --viber: #6e5bd9;

  --font-display: "Unbounded", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(48px, 6.5vw, 96px);
  --header-h: 72px;
  --radius-s: 3px;
  --radius-m: 6px;
  --radius-l: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px + env(safe-area-inset-top, 0px)); }
:root { box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--amber); color: var(--on-amber); padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Type roles */
.h-display { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 600; line-height: 1.04; letter-spacing: -.03em; }
.h-section { font-size: clamp(1.6rem, 2.8vw, 2.35rem); font-weight: 600; letter-spacing: -.02em; }
.h-sub { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.2; }
.lede { font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.55; max-width: 38em; }
.muted { color: var(--ink-2); }
.on-dark .muted, .on-dark .lede { color: var(--steel-2); }

/* Placeholder marker — data the business still has to supply */
.ph {
  color: inherit; opacity: .6;
  border-bottom: 1px dashed currentColor;
  font-style: normal; white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius-s);
  font-family: var(--font-body); font-size: .9375rem; font-weight: 600; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--amber); color: var(--on-amber); }
.btn--primary:hover { background: var(--amber-hover); }
.btn--dark { background: var(--graphite-2); color: #fff; border-color: var(--line-dark); }
.btn--dark:hover { border-color: var(--steel); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--graphite-3); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn .i-tg { color: #3fb3ec; }
.btn .i-viber { color: #9a8cff; }
.btn--ink .i-tg, .btn--outline:hover .i-tg { color: #3fb3ec; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .875rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--amber); padding-bottom: 2px;
}
.text-link:hover { border-color: currentColor; }
.text-link svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: var(--graphite); color: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.logo-mark { width: 34px; height: 34px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: 0; }
.logo-sub { font-size: .72rem; color: var(--steel); margin-top: 3px; letter-spacing: .01em; }

.main-nav { margin-left: 12px; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px; white-space: nowrap; text-decoration: none; color: var(--steel-2);
  font-weight: 500; font-size: .98rem; position: relative;
}
.main-nav a:hover { color: #fff; }
.main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--amber);
}

.header-contact { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.open-status { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--steel-2); white-space: nowrap; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--steel); flex: none; }
.open-status.is-open::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(69, 185, 140, .18); }
.header-phone { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #fff; text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--amber); }

.header-call, .menu-toggle {
  display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
  border: 1px solid var(--line-dark); border-radius: var(--radius-s); background: transparent; color: #fff; cursor: pointer;
}
.header-call { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.header-call svg, .menu-toggle svg { width: 20px; height: 20px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 99;
  background: var(--graphite); color: #fff;
  overflow-y: auto; padding: 8px 0 32px;
  border-top: 1px solid var(--line-dark);
}
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; text-decoration: none;
}
.mobile-menu nav a svg { width: 22px; height: 22px; color: var(--steel); }
.mobile-menu nav a[aria-current="page"] { color: var(--amber); }
.mobile-menu-contacts { display: grid; gap: 10px; margin-top: 28px; }
.mobile-menu-contacts .btn { width: 100%; min-height: 50px; white-space: normal; text-align: center; }
.mobile-menu-meta { margin-top: 24px; color: var(--steel-2); font-size: .95rem; display: grid; gap: 6px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { background: var(--graphite); color: #fff; padding: clamp(32px, 5vw, 64px) 0 clamp(44px, 6vw, 76px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.hero-kicker { display: none; color: var(--steel-2); font-size: 1rem; margin-bottom: 18px; gap: 10px; align-items: center; }
.hero-kicker svg { width: 18px; height: 18px; color: var(--amber); }
.hero h1 { max-width: 12ch; }
.hero .lede { margin-top: 24px; color: var(--steel-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-actions .btn--primary { min-height: 50px; padding: 0 22px; font-size: .9375rem; }
.hero-actions .btn--dark { min-height: 50px; }
.hero-address { margin-top: 28px; display: flex; gap: 10px; align-items: flex-start; color: var(--steel); font-size: .95rem; }
.hero-address svg { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.hero-address a { color: var(--steel-2); text-underline-offset: 3px; }

/* Instrument cluster */
.cluster {
  background: var(--panel);
  border: 1px solid #2a2f35;
  border-radius: var(--radius-l);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 30px 60px -30px rgba(0,0,0,.6);
}
.cluster-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.cluster-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.cluster-hint { font-size: .85rem; color: var(--steel); }
.lamps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.lamp {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  aspect-ratio: 1 / 1.05; padding: 6px 2px;
  min-width: 0; background: #0f1113; border: 1px solid #262b30; border-radius: 10px;
  color: #3a4047; cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.lamp svg { width: 56%; max-width: 34px; height: auto; transition: filter .2s var(--ease); }
.lamp-label { font-size: .6875rem; color: var(--steel); line-height: 1.15; text-align: center; }
.lamp:hover { color: #59616a; border-color: #3a4047; }
.lamp[aria-selected="true"] { border-color: #4a525b; background: #16191c; }
.lamp[aria-selected="true"][data-color="amber"],
.cluster.is-igniting .lamp[data-color="amber"] { color: var(--amber); }
.lamp[aria-selected="true"][data-color="red"],
.cluster.is-igniting .lamp[data-color="red"] { color: var(--lamp-red); }
.lamp[aria-selected="true"] svg,
.cluster.is-igniting .lamp svg { filter: drop-shadow(0 0 6px currentColor); }
.lamp[aria-selected="true"] .lamp-label { color: #fff; }

.cluster.is-igniting .lamp { animation: bulb-check 1.5s steps(1, end) both; }
.cluster.is-igniting .lamp:nth-child(2) { animation-delay: .06s; }
.cluster.is-igniting .lamp:nth-child(3) { animation-delay: .12s; }
.cluster.is-igniting .lamp:nth-child(4) { animation-delay: .18s; }
.cluster.is-igniting .lamp:nth-child(5) { animation-delay: .24s; }
.cluster.is-igniting .lamp:nth-child(6) { animation-delay: .30s; }
@keyframes bulb-check { 0% { opacity: .35; } 8% { opacity: 1; } 100% { opacity: 1; } }

.lamp-panel { margin-top: 18px; padding-top: 18px; border-top: 1px solid #262b30; min-height: 196px; }
.lamp-panel h3 { font-size: 1.3rem; }
.lamp-urgency { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-weight: 600; font-size: .95rem; }
.lamp-urgency::before { content: ""; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; flex: none; }
.lamp-panel[data-color="amber"] .lamp-urgency { color: var(--amber); }
.lamp-panel[data-color="amber"] .lamp-urgency::before { background: var(--amber); }
.lamp-panel[data-color="red"] .lamp-urgency { color: #ff7b6e; }
.lamp-panel[data-color="red"] .lamp-urgency::before { background: var(--lamp-red); }
.lamp-panel p { margin-top: 10px; color: var(--steel-2); font-size: .98rem; line-height: 1.55; }
.lamp-panel .btn { margin-top: 18px; }

/* ---------- Facts band ---------- */
.facts { background: var(--concrete); border-bottom: 1px solid var(--line); }
.facts-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 22px 24px 22px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact dt { font-size: .875rem; color: var(--ink-2); }
.fact dd { font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 600; line-height: 1.15; margin-top: 6px; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section); }
.section--concrete { background: var(--concrete); }
.section--dark { background: var(--graphite); color: #fff; }
.section--dark-2 { background: var(--graphite-2); color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head .lede { margin-top: 16px; }

/* ---------- Services preview (home) ---------- */
.svc-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-intro .lede { margin-top: 18px; }
.svc-feature {
  margin-top: 36px; background: var(--graphite); color: #fff; border-radius: var(--radius-m);
  overflow: hidden; display: block; text-decoration: none;
}
.svc-feature-art { background: var(--panel); padding: 20px 20px 8px; color: var(--steel); }
.svc-feature-art svg { width: 100%; height: auto; }
.svc-feature-body { padding: 26px 26px 28px; }
.svc-feature-body h3 { font-size: 1.35rem; }
.svc-feature-body p { margin-top: 10px; color: var(--steel-2); }
.svc-feature-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.svc-feature-price { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.svc-feature .text-link { color: #fff; }

.svc-rows { border-top: 2px solid var(--ink); }
.svc-row a {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 24px; gap: 24px; align-items: baseline;
  padding: 22px 8px 22px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background-color .18s var(--ease), padding .18s var(--ease);
}
.svc-row a:hover { background: var(--concrete); padding-left: 12px; }
.svc-row h3 { font-size: 1.15rem; line-height: 1.15; }
.svc-row p { color: var(--ink-2); font-size: .98rem; }
.svc-row svg { width: 20px; height: 20px; align-self: center; color: var(--ink-2); }
.svc-row a:hover svg { color: var(--ink); }
.svc-all { margin-top: 28px; }

/* ---------- Workshop mosaic ---------- */
.workshop-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto;
  gap: 14px;
}
.workshop-text { grid-column: 1 / span 5; grid-row: 1; padding: 8px 32px 32px 0; }
.workshop-text .lede { margin-top: 18px; }
.workshop-list { margin-top: 28px; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.workshop-list li { padding: 12px 0; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; font-size: .96rem; }
.workshop-list li span:first-child { font-weight: 600; }
.workshop-list li span:last-child { color: var(--steel); }
.shot { margin: 0; position: relative; background: var(--panel); border-radius: var(--radius-s); overflow: hidden; color: #5b646d; }
.shot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  font-size: .85rem; color: var(--steel-2);
  background: linear-gradient(to top, rgba(20,23,26,.95), rgba(20,23,26,0));
}
.shot--photo { aspect-ratio: 588 / 377; background: var(--graphite-3); }
.shot--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.workshop-text { grid-row: 1 / span 2; }
.shot--a { grid-column: 6 / span 7; grid-row: 1; }
.shot--b { grid-column: 6 / span 7; grid-row: 2; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.statement { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.statement blockquote { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; }
.statement blockquote::before {
  content: ""; display: block; width: 40px; height: 5px; background: var(--amber); margin-bottom: 24px;
}
.statement figcaption { margin-top: 20px; color: var(--ink-2); font-size: .95rem; }
.principle-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 32px; }
.principle h3 { font-size: 1.15rem; line-height: 1.15; display: flex; gap: 12px; align-items: flex-start; }
.principle h3 svg { width: 20px; height: 20px; flex: none; color: var(--amber-ink); margin-top: 1px; }
.principle p { margin-top: 10px; color: var(--ink-2); font-size: .98rem; padding-left: 34px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { padding: 26px 22px 8px 0; border-top: 2px solid var(--ink); position: relative; }
.step + .step { padding-left: 22px; }
.step + .step::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 8px; width: 1px; background: var(--line); }
.step-num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--ink); }
.step:nth-child(5) .step-num { color: var(--amber-ink); }
.step h3 { font-size: 1.15rem; margin-top: 16px; line-height: 1.2; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: .94rem; line-height: 1.5; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 40px; row-gap: 48px; }
.review { margin: 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.review-stars { display: flex; gap: 3px; color: var(--amber); }
.review-stars svg { width: 16px; height: 16px; }
.review blockquote { margin: 16px 0 0; font-size: 1rem; line-height: 1.55; }
.review blockquote p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; line-clamp: 8; overflow: hidden; }
.review figcaption { margin-top: 18px; font-size: .92rem; color: var(--ink-2); }
.review figcaption strong { color: var(--ink); font-weight: 600; display: block; }
.review.is-placeholder blockquote, .review.is-placeholder figcaption { color: #8b9198; }
.review.is-placeholder { border-top-style: dashed; }
.review.is-placeholder .review-stars { color: var(--line); }
.reviews-head-link { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.reviews-score { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1; }
.reviews-score span[aria-hidden] { color: var(--amber); font-size: 1.2rem; }
.reviews-note {
  margin-top: 32px; padding: 14px 18px; border: 1px dashed var(--line); border-radius: var(--radius-s);
  font-size: .9rem; color: var(--ink-2); max-width: 60em;
}

/* ---------- Final CTA ---------- */
.cta { background: var(--graphite); color: #fff; padding-block: clamp(48px, 6.5vw, 88px); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.cta h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); max-width: 13ch; }
.cta .lede { margin-top: 18px; color: var(--steel-2); }
.cta-phone {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1; color: #fff; text-decoration: none; letter-spacing: -.02em;
}
.cta-phone:hover { color: var(--amber); }
.cta-phone-label { color: var(--steel); font-size: .95rem; margin-bottom: 10px; }
.cta-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 24px; }
.cta-actions .btn { min-height: 48px; padding: 0 12px; }
.cta-info { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: .95rem; color: var(--steel-2); }
.cta-info strong { display: block; color: #fff; font-weight: 600; margin-bottom: 4px; }
.cta-info a { color: var(--steel-2); text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--panel); color: var(--steel-2); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { margin-top: 18px; max-width: 30em; color: var(--steel); }
.footer-col h2 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 14px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-phone { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: #fff; }
.footer-hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.footer-hours dt { color: var(--steel); }
.footer-messengers { display: flex; gap: 8px; margin-top: 14px; }
.footer-messengers a {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-dark); border-radius: var(--radius-s);
}
.footer-messengers a:hover { border-color: var(--steel); }
.footer-messengers svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid #262b30; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--steel); font-size: .875rem; }

/* ---------- Mobile contact bar ---------- */
.contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; grid-template-columns: 1.3fr 1fr 1fr;
  background: var(--graphite); border-top: 1px solid var(--line-dark);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  gap: 8px;
  transform: translateY(110%); transition: transform .25s var(--ease);
}
.contact-bar.is-visible { transform: translateY(0); }
.contact-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  border-radius: var(--radius-s); text-decoration: none; font-weight: 600; font-size: .9rem; color: #fff;
  background: var(--graphite-2); border: 1px solid var(--line-dark);
}
.contact-bar a:first-child { background: var(--amber); color: var(--on-amber); border-color: var(--amber); }
.contact-bar svg { width: 18px; height: 18px; }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--graphite); color: #fff; padding: clamp(32px, 5vw, 60px) 0 clamp(32px, 4vw, 48px); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--steel); margin-bottom: 22px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-dark); }
.breadcrumbs a { color: var(--steel-2); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.page-hero .lede { margin-top: 20px; color: var(--steel-2); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 48px; align-items: end; }
.page-hero-aside { border-left: 1px solid var(--line-dark); padding-left: 28px; color: var(--steel-2); font-size: .98rem; }
.page-hero-aside a { color: #fff; }
.page-hero-aside .btn { margin-top: 18px; }

/* ---------- Services page ---------- */
.cat-nav { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.cat-nav ul { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a {
  display: block; padding: 18px 18px 16px; white-space: nowrap; text-decoration: none; color: var(--ink-2);
  font-weight: 500; font-size: .96rem; border-bottom: 2px solid transparent;
}
.cat-nav li:first-child a { padding-left: 0; }
.cat-nav a:hover { color: var(--ink); }
.cat-nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--amber); }
.cat-nav a.is-main { color: var(--ink); font-weight: 600; }
.cat-nav li.is-first-other { position: relative; margin-left: 12px; padding-left: 12px; }
.cat-nav li.is-first-other::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }

.cat { padding-block: clamp(44px, 5.5vw, 76px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 60px); }
.cat:nth-of-type(even) { background: var(--concrete); }
.cat-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.cat-aside { position: sticky; top: calc(var(--header-h) + 90px); }
.cat-icon { width: 48px; height: 48px; color: var(--ink); margin-bottom: 18px; }
.cat--main .cat-icon { color: var(--amber-ink); }
.cat-badge {
  display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em; line-height: 1.3;
  color: var(--amber-ink); background: rgba(252, 141, 60, .12); border: 1px solid rgba(252, 141, 60, .4);
}
.cat-badge + .h-section { margin-top: 0; }
.cat-aside p { margin-top: 16px; color: var(--ink-2); }
.cat-aside .btn { margin-top: 26px; }
.cat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.svc-item { padding: 24px 0 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.cat:nth-of-type(even) .svc-item { border-top-color: var(--line-2); }
.svc-item h3 { font-size: 1.15rem; line-height: 1.15; }
.svc-item p { margin-top: 10px; color: var(--ink-2); font-size: .98rem; flex: 1; }
.svc-item-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.svc-price { font-size: .92rem; color: var(--ink-2); }
.svc-price b { color: var(--ink); font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.svc-item .text-link { font-size: .94rem; }

.pricing-note { background: var(--graphite-2); color: #fff; }
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.pricing-grid p { color: var(--steel-2); margin-top: 14px; }
.pricing-points { display: grid; gap: 14px; }
.pricing-points li { display: flex; gap: 14px; align-items: flex-start; color: var(--steel-2); }
.pricing-points svg { width: 20px; height: 20px; color: var(--amber); flex: none; margin-top: 2px; }
.pricing-points strong { color: #fff; display: block; font-weight: 600; }

/* ---------- About page ---------- */
.about-hero h1 { max-width: 16ch; }
.story { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.story-text p + p { margin-top: 18px; }
.story-text p { max-width: 36em; }
.story-text .h-section { margin-bottom: 26px; }
.story .shot { aspect-ratio: 588 / 377; align-self: center; }

.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.rule { padding: 28px 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 1fr; gap: 10px; }
.rule h3 { font-size: 1.2rem; line-height: 1.15; }
.rule p { color: var(--steel-2); }

.equip { width: 100%; border-collapse: collapse; }
.equip th, .equip td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.equip th { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; width: 38%; }
.equip td { color: var(--ink-2); }
.equip tr:first-child th, .equip tr:first-child td { border-top: 2px solid var(--ink); }
.equip-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); }
.equip-split .lede { margin-top: 16px; }

.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.member-photo { aspect-ratio: 4 / 5; background: var(--concrete-2); border-radius: var(--radius-s); display: flex; align-items: flex-end; padding: 14px; color: #8b9198; font-size: .82rem; }
.member h3 { margin-top: 16px; font-size: 1.05rem; }
.member p { color: var(--ink-2); font-size: .94rem; margin-top: 4px; }

/* ---------- Contacts page ---------- */
.contact-hero { padding-bottom: 0; }
.contact-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.channels { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin-top: 36px; transform: translateY(36px); }
.channel {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 190px; padding: 22px; border-radius: var(--radius-m); text-decoration: none; color: #fff;
  transition: filter .18s var(--ease);
}
.channel:hover { filter: brightness(1.07); }
.channel svg { width: 28px; height: 28px; flex: none; }
.channel-label { font-size: .9rem; opacity: .85; }
.channel-value { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.05; margin-top: 6px; white-space: nowrap; }
.channel-note { font-size: .9rem; opacity: .85; margin-top: 8px; }
.channel--phone { background: var(--amber); color: var(--on-amber); }
.channel--tg { background: var(--tg); }
.channel--viber { background: var(--viber); }
.contact-body { padding-top: calc(var(--section) + 40px); }
.visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.visit-block + .visit-block { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.visit-block h2 { font-size: 1.4rem; margin-bottom: 14px; }
.visit-address { font-size: 1.05rem; font-weight: 600; }
.visit-block p { color: var(--ink-2); margin-top: 8px; }
.visit-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours-table td { text-align: right; font-weight: 600; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--ink); }
.hours-table tr.is-today th::after { content: " — сьогодні"; color: var(--ink-2); font-weight: 400; }
.map { position: relative; border-radius: var(--radius-m); overflow: hidden; background: var(--concrete); aspect-ratio: 4 / 3; }
.map svg, .map iframe { width: 100%; height: 100%; border: 0; }
.map-caption { position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.map-caption .btn { box-shadow: 0 6px 20px -8px rgba(0,0,0,.35); }

.form-section { background: var(--concrete); }
.form-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-grid .lede { margin-top: 16px; }
.lead-form { background: var(--paper); padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-m); border: 1px solid var(--line); }
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 18px; }
.field label { font-weight: 600; font-size: .95rem; }
.field label span { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 14px; border: 1px solid var(--field-line, #b9bfc4); border-radius: var(--radius-s); background: var(--paper);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(252, 141, 60, .35); }
.field[data-invalid] input { border-color: var(--lamp-red); }
.field-error { color: #b3261e; font-size: .9rem; }
.form-foot { margin-top: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-foot small { color: var(--ink-2); font-size: .88rem; max-width: 26em; }
.form-result { margin-top: 20px; padding: 18px; border-radius: var(--radius-s); background: var(--concrete); }
.form-result h3 { font-size: 1.1rem; }
.form-result p { margin-top: 8px; color: var(--ink-2); font-size: .96rem; }
.form-result textarea { background: var(--paper); color: var(--ink); width: 100%; margin-top: 12px; min-height: 110px; font: inherit; font-size: .92rem; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.form-result .visit-actions { margin-top: 14px; }

/* ---------- Illustrations ---------- */
.draw { stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.draw-thin { stroke-width: 1; }
.draw-dim { opacity: .45; }
.draw-accent { stroke: var(--amber); }
.draw-text { fill: currentColor; stroke: none; font-family: var(--font-body); font-size: 11px; }


/* ---------- Dark theme: light sections become graphite, brand stays ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1e2125; --concrete: #25292e; --concrete-2: #2d3238;
    --ink: #eceeef; --ink-2: #b3b9bf; --line: #3a4047; --line-2: #3a4047;
    --amber-ink: #fc8d3c; --field-line: #4a5159; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1e2125; --concrete: #25292e; --concrete-2: #2d3238;
  --ink: #eceeef; --ink-2: #b3b9bf; --line: #3a4047; --line-2: #3a4047;
  --amber-ink: #fc8d3c; --field-line: #4a5159; color-scheme: dark;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero-kicker { display: flex; }
  .header-contact .open-status { display: none; }
  .svc-row a { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) 24px; }
}

@media (max-width: 1024px) {
  .main-nav, .header-contact .btn { display: none; }
  .menu-toggle, .header-call { display: inline-flex; }
  .header-contact { gap: 10px; }
  .header-phone { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 14ch; }
  .cluster { max-width: 640px; }
  .facts-list { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .svc-split, .principles, .cta-grid, .story, .equip-split, .form-grid, .visit, .pricing-grid { grid-template-columns: 1fr; }
  .statement { position: static; }
  .workshop-text { grid-column: 1 / -1; padding-right: 0; }
  .workshop-text { grid-row: auto; }
  .shot--a { grid-column: 1 / span 6; grid-row: 2; }
  .shot--b { grid-column: 7 / span 6; grid-row: 2; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .step:nth-child(4) { padding-left: 0; }
  .step:nth-child(4)::before { display: none; }
  .reviews-grid { grid-template-columns: 1fr; gap: 28px; max-width: 720px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channels { grid-template-columns: 1fr 1fr; }
  .channel--phone { grid-column: 1 / -1; min-height: 180px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .logo-sub { display: none; }
  .contact-bar { display: grid; }
  body.has-contact-bar { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .btn--primary { grid-column: 1 / -1; }
  .hero-actions .btn { width: 100%; padding: 0 12px; }
  .lamps { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lamp { aspect-ratio: auto; min-height: 88px; }
  .lamp svg { width: 40px; }
  .lamp-label { font-size: .75rem; }
  .lamp-panel { min-height: 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .svc-row a { grid-template-columns: minmax(0, 1fr) 20px; gap: 6px 16px; padding: 18px 0; }
  .svc-row a:hover { padding-left: 0; background: transparent; }
  .svc-row h3 { grid-column: 1; }
  .svc-row p { grid-column: 1; grid-row: 2; }
  .svc-row svg { grid-column: 2; grid-row: 1 / span 2; }
  .workshop-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .workshop-text { grid-column: 1 / -1; }
  .shot--a, .shot--b { grid-column: 1 / -1; grid-row: auto; }
  .workshop-list li { grid-template-columns: 1fr; gap: 2px; }
  .principle-list { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step, .step + .step { padding: 20px 0 22px 64px; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 2px solid var(--ink); }
  .step + .step::before { display: none; }
  .step-num { position: absolute; left: 0; top: 20px; font-size: 2rem; }
  .step h3 { margin-top: 0; }
  .cta-actions { grid-template-columns: 1fr 1fr; }
  .cta-actions .btn:first-child { grid-column: 1 / -1; }
  .cta-info { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cat-list { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .equip th, .equip td { display: block; width: auto; padding: 0; border: 0; }
  .equip tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .equip tr:first-child { border-top: 2px solid var(--ink); }
  .equip tr:first-child th, .equip tr:first-child td { border-top: 0; }
  .equip td { margin-top: 4px; }
  .channels { grid-template-columns: 1fr; transform: translateY(32px); }
  .channel { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; padding: 20px; }
  .channel--phone { min-height: 0; }
  .channel-value { font-size: 1.2rem; white-space: normal; overflow-wrap: anywhere; }
  .channel > span { min-width: 0; }
  .channel--tg .channel-value { font-size: 1rem; }
  .channel-note { display: none; }
  .contact-body { padding-top: calc(var(--section) + 24px); }
  .map { aspect-ratio: 1 / 1; }
}

@media (max-width: 430px) {
  .header-row { gap: 12px; }
  .logo { gap: 8px; min-width: 0; }
  .logo-mark { width: 28px; height: 28px; }
  .logo-name { font-size: 1rem; }
  .facts-list { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 18px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .team { gap: 14px; }
  .cluster-head { flex-direction: column; gap: 4px; }
}

@media (max-width: 370px) {
  .logo-name { font-size: .9rem; }
  .hero-actions { grid-template-columns: 1fr; }
  .cta-actions { grid-template-columns: 1fr; }
  .contact-bar a { font-size: .85rem; gap: 6px; }
  .contact-bar svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
