/* ============================================================
   БАСТИОН — Design v3 — "Concrete & Sand"
   Architectural cool concrete + warm sandstone accent.
   Bricolage Grotesque (display) + Inter (body) + JetBrains Mono (numerals)
   ============================================================ */

/* ---------- Tokens ---------- */
/* Палитра 2026-05-02: warm charcoal + copper-orange (Бастион v4) */
:root {
  /* Surfaces — warm charcoal stack */
  --bg:           #0E0E0E;
  --bg-deep:      #0a0a0a;
  --surface-1:    #161614;
  --surface-2:    #1C1C1A;
  --surface-3:    #242421;
  --hairline:     rgba(244,241,234,0.06);
  --hairline-strong: rgba(244,241,234,0.14);

  /* Type — warm cream → bone → ash */
  --ink:          #F4F1EA;
  --ink-soft:     #D5CFC0;
  --ink-muted:    #B8B3A6;
  --ink-dim:      #6E6A60;

  /* Accent — bright sandstone / saw-cut limestone (kept warm-yellow) */
  --accent:       oklch(0.83 0.155 78);
  --accent-bright:oklch(0.89 0.16 80);
  --accent-deep:  oklch(0.62 0.17 65);
  --accent-glaze: oklch(0.83 0.155 78 / 0.12);
  --accent-line:  oklch(0.83 0.155 78 / 0.32);

  /* Cool (informational only — weather widget) */
  --cool:         #7A8FA8;
  --cool-glaze:   rgba(122,143,168,0.12);

  /* Status */
  --warn:         #D4A24C;
  --good:         #8FB36C;

  /* Type scale (fluid) — tightened for density */
  --t-xs:   clamp(0.6875rem, 0.67rem + 0.1vw, 0.75rem);
  --t-sm:   clamp(0.8125rem, 0.79rem + 0.13vw, 0.875rem);
  --t-base: clamp(0.9375rem, 0.91rem + 0.13vw, 1rem);
  --t-lg:   clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-xl:   clamp(1.125rem, 1.06rem + 0.3vw, 1.375rem);
  --t-2xl:  clamp(1.375rem, 1.22rem + 0.7vw, 1.75rem);
  --t-3xl:  clamp(1.625rem, 1.35rem + 1.25vw, 2.5rem);
  --t-4xl:  clamp(1.875rem, 1.5rem + 1.7vw, 3rem);
  --t-hero: clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem);
  --t-mega: clamp(3rem, 1.8rem + 5.5vw, 6rem);

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-7:  3rem;
  --sp-8:  4rem;
  --sp-9:  6rem;
  --sp-10: 8rem;
  --section-y: clamp(2.5rem, 1.5rem + 2.5vw, 4.25rem);

  /* Layout */
  --maxw: 1320px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  --header-h: 72px;

  /* Radii */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 14px;
  --r-4: 22px;
  --r-pill: 999px;

  /* Effects */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-snap: cubic-bezier(0.6, 0, 0.2, 1);
  --d-fast: 160ms;
  --d-norm: 280ms;
  --d-slow: 520ms;

  --shadow-card: 0 1px 0 0 oklch(1 0 0 / 0.04) inset, 0 12px 40px -16px oklch(0 0 0 / 0.55);
  --shadow-pop:  0 1px 0 0 oklch(1 0 0 / 0.06) inset, 0 24px 70px -20px oklch(0 0 0 / 0.7);
  --shadow-glow: 0 0 0 1px var(--accent-line), 0 24px 80px -20px oklch(0.83 0.155 78 / 0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--surface-3) var(--bg);
  scrollbar-width: thin;
  overflow-x: clip;
}
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  font-feature-settings: "ss01", "cv11", "ss03";
}

/* Subtle grain only on dark surfaces — gives material depth without muddying photos */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
img { color: transparent; }

button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea, select { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--bg); }

/* ---------- Typography ---------- */
.display, h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-feature-settings: "ss01", "ss02";
}
h1 { font-size: var(--t-hero); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--t-3xl); letter-spacing: -0.03em; }
h3 { font-size: var(--t-lg); letter-spacing: -0.018em; }
h4 { font-size: var(--t-base); letter-spacing: -0.012em; font-weight: 600; }

p { color: var(--ink-soft); max-width: 62ch; }
strong { color: var(--ink); font-weight: 600; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: "tnum", "ss01", "zero"; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 1.6em; height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }

.skip-link {
  position: absolute; top: 0; left: 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--accent); color: var(--bg);
  transform: translateY(-110%);
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-norm) var(--ease), background var(--d-norm) var(--ease);
}
.hdr.is-scrolled {
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  border-bottom-color: var(--hairline);
}
.hdr__inner {
  display: flex; align-items: center; gap: var(--sp-4);
  height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand__mark {
  width: 34px; height: 38px;
  background: url('../img/logo-light.png') center / contain no-repeat;
  flex-shrink: 0;
  transition: transform var(--d-fast) var(--ease), filter var(--d-fast) var(--ease);
  /* Hide any fallback text that might be inside the span (legacy "Б"). */
  font: 0/0 a; color: transparent; text-indent: -9999px;
}
.brand:hover .brand__mark { transform: scale(1.05); }
.nav {
  display: flex; gap: 0.1rem;
  margin-inline-start: auto;
  flex-wrap: nowrap;
}
.nav a {
  position: relative;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-2);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--surface-1); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content: '';
  position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.15rem;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.hdr__phone {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.hdr__phone:hover { color: var(--accent); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-2);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--ink);
  transition: transform var(--d-norm) var(--ease), top var(--d-norm) var(--ease), opacity var(--d-fast);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile menu drawer */
.mmenu {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 49;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--d-norm) var(--ease), opacity var(--d-norm) var(--ease);
  overflow-y: auto;
}
.mmenu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mmenu__inner { padding: var(--sp-6) var(--gutter); display: flex; flex-direction: column; gap: 0.25rem; }
.mmenu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.mmenu a::after {
  content: '→';
  color: var(--ink-muted);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  transition: transform var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
.mmenu a:hover::after { transform: translateX(4px); color: var(--accent); }
.mmenu__phone {
  margin-top: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  background: var(--accent);
  color: var(--bg) !important;
  border-radius: var(--r-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem !important;
  text-align: center;
  border-bottom: 0 !important;
  justify-content: center !important;
}
.mmenu__phone::after { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--r-2);
  border: 1px solid transparent;
  transition: transform var(--d-fast) var(--ease), background var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 1px 0 0 oklch(1 0 0 / 0.2) inset, 0 8px 24px -10px oklch(0.83 0.155 78 / 0.7);
}
.btn--primary:hover { background: var(--accent-bright); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--surface-1); }
.btn--lg { padding: 1rem 1.5rem; font-size: 1rem; }
.btn--sm { padding: 0.5rem 0.85rem; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn .arr {
  display: inline-block;
  width: 1.1em; height: 1.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--d-fast) var(--ease);
}
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: end;
  padding-block: clamp(4rem, 2.5rem + 5vw, 6.5rem) clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -1;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.92) contrast(1.05);
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, oklch(0 0 0 / 0.92) 22%, oklch(0 0 0 / 0.55) 55%, oklch(0 0 0 / 0.20) 100%),
    linear-gradient(115deg, oklch(0 0 0 / 0.55) 0%, oklch(0 0 0 / 0.20) 50%, transparent 80%);
}

.hero__inner { position: relative; z-index: 1; display: grid; gap: var(--sp-4); }

/* Live status — compact ambient widget for hero */
.live {
  display: inline-flex; align-items: center; gap: 0.85rem;
  padding: 0.5rem 0.9rem 0.5rem 0.75rem;
  background: oklch(0 0 0 / 0.5);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid oklch(1 0 0 / 0.10);
  border-radius: var(--r-pill);
  width: fit-content;
  max-width: 100%;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.live__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px oklch(0.74 0.13 145 / 0.20);
  animation: pulse 2.6s var(--ease) infinite;
  flex-shrink: 0;
}
.live[data-state="warn"] .live__dot { background: var(--warn); box-shadow: 0 0 0 3px oklch(0.78 0.14 75 / 0.20); animation-name: pulse-warn; }
.live[data-state="cold"] .live__dot { background: var(--cool); box-shadow: 0 0 0 3px oklch(0.72 0.07 235 / 0.20); animation-name: pulse-cold; }
.live__temp { color: var(--ink); font-weight: 500; }
.live__sep {
  width: 1px; height: 11px;
  background: oklch(1 0 0 / 0.18);
  flex-shrink: 0;
}
.live__hint, .live__season { color: var(--ink-muted); }
.live__hint { color: var(--ink-soft); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px oklch(0.74 0.13 145 / 0.20); }
  50%      { box-shadow: 0 0 0 6px oklch(0.74 0.13 145 / 0.04); }
}
@keyframes pulse-warn {
  0%, 100% { box-shadow: 0 0 0 3px oklch(0.78 0.14 75 / 0.20); }
  50%      { box-shadow: 0 0 0 6px oklch(0.78 0.14 75 / 0.04); }
}
@keyframes pulse-cold {
  0%, 100% { box-shadow: 0 0 0 3px oklch(0.72 0.07 235 / 0.20); }
  50%      { box-shadow: 0 0 0 6px oklch(0.72 0.07 235 / 0.04); }
}
@media (max-width: 640px) {
  .live { font-size: 0.75rem; gap: 0.55rem; flex-wrap: wrap; padding: 0.5rem 0.75rem; }
  .live__sep:nth-of-type(2) { display: none; }
  .live__season { width: 100%; padding-left: calc(7px + 0.85rem); }
}

.hero__title {
  font-size: clamp(3rem, 1.8rem + 6.5vw, 7.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 14ch;
  text-wrap: balance;
  margin-top: var(--sp-2);
  color: var(--ink);
  text-shadow: 0 8px 36px oklch(0 0 0 / 0.45);
}
.hero__title em {
  font-style: normal;
  color: var(--ink-soft);
  font-weight: 600;
}
.hero__title .accent {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
  position: relative;
}
.hero__title .accent::after {
  content: '.';
  color: var(--accent);
}
.hero__lede {
  font-size: var(--t-lg);
  color: var(--ink-soft);
  max-width: 55ch;
  line-height: 1.5;
  margin-top: var(--sp-3);
}
.hero__cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-2); }
@media (max-width: 520px) {
  .hero__title { letter-spacing: -0.035em; line-height: 0.96; }
}

.hero__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: var(--sp-5);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.hero__strip-item { padding: 0 var(--sp-4); }
.hero__strip-item + .hero__strip-item { border-left: 1px solid var(--hairline); }
.hero__strip-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  display: flex; align-items: baseline; gap: 0.15em;
}
.hero__strip-num small { font-size: 0.6em; color: var(--accent); font-weight: 600; }
.hero__strip-label {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-top: 0.15rem;
}

/* ---------- Section header ---------- */
.s-head {
  display: grid;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  max-width: 56ch;
}
.s-head--row { grid-template-columns: 1fr auto; align-items: end; gap: var(--sp-5); max-width: none; }
.s-head__title { text-wrap: balance; max-width: 36ch; }
@media (max-width: 720px) {
  .s-head__title { max-width: 22ch; }
}
.s-head__lede { color: var(--ink-soft); font-size: 0.9375rem; max-width: 50ch; }

/* ---------- Advantages ---------- */
.adv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  overflow: hidden;
}
.adv__item {
  background: var(--surface-1);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-2);
  transition: background var(--d-fast) var(--ease);
}
.adv__item:hover { background: var(--surface-2); }
.adv__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.adv__title { font-size: 1.125rem; }
.adv__text { font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- Service cards (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-3);
  grid-auto-rows: minmax(220px, auto);
}
.svc {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--sp-3);
  border-radius: var(--r-3);
  overflow: hidden;
  isolation: isolate;
  min-height: 320px;
  border: 1px solid var(--hairline);
  background: var(--surface-1);
  transition: transform var(--d-norm) var(--ease), border-color var(--d-norm) var(--ease);
}
.svc__bg {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden;
  border-radius: inherit;
}
.svc__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter var(--d-norm) var(--ease);
  filter: saturate(0.88) contrast(1.02);
}
.svc::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(to top, oklch(0 0 0 / 0.45) 0%, transparent 55%);
}
.svc:hover { border-color: var(--accent-line); }
.svc:hover .svc__bg img { transform: scale(1.04); filter: saturate(1) contrast(1.05); }

.svc__panel {
  position: relative;
  margin-top: auto;
  padding: var(--sp-4) var(--sp-5);
  background: oklch(0.088 0.004 240 / 0.65);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid oklch(1 0 0 / 0.09);
  border-radius: calc(var(--r-3) - 6px);
  display: flex; flex-direction: column;
  gap: var(--sp-2);
}
.svc__price {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--accent);
  width: fit-content;
}
.svc__price::before { content: '₽'; opacity: 0.6; }
.svc__title {
  font-size: var(--t-xl);
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
.svc__desc {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  max-width: 42ch;
  line-height: 1.45;
}
.svc__more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.8125rem;
  font-family: 'JetBrains Mono', monospace;
  border-top: 1px solid oklch(1 0 0 / 0.10);
  padding-top: var(--sp-3);
  margin-top: var(--sp-1);
  width: fit-content;
}
.svc__more::after {
  content: '→';
  transition: transform var(--d-fast) var(--ease);
}
.svc:hover .svc__more::after { transform: translateX(4px); }

/* Bento spans */
.svc--lg { grid-column: span 4; grid-row: span 2; min-height: 460px; }
.svc--md { grid-column: span 3; }
.svc--sm { grid-column: span 2; min-height: 240px; }
.svc--wide { grid-column: span 6; min-height: 240px; }

/* ---------- Work cards (portfolio) ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-4);
  align-items: stretch;
}
.work {
  grid-column: span 4;
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  transition: transform var(--d-norm) var(--ease), border-color var(--d-norm) var(--ease);
}
.work--feat { grid-column: span 8; }
.work--wide { grid-column: span 8; }
.work:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.work__media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex: 1 1 auto;
}
.work--feat .work__media,
.work--wide .work__media { aspect-ratio: 16/9; }
.work__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 700ms var(--ease);
}
.work:hover .work__media img { transform: scale(1.04); }
.work__tag {
  position: absolute;
  top: var(--sp-3); left: var(--sp-3);
  padding: 0.3rem 0.7rem;
  background: oklch(0 0 0 / 0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}
.work__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.work__title {
  font-size: var(--t-lg);
  margin-bottom: var(--sp-3);
}
.work__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.work__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.work__meta span::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- Filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  margin-bottom: var(--sp-6);
}
.filters__group { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.filters__group + .filters__group {
  margin-left: auto;
  padding-left: var(--sp-3);
  border-left: 1px solid var(--hairline);
}
.filters__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0 var(--sp-2);
}
.chip {
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid transparent;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--d-fast) var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--hairline-strong); }
.chip.is-active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ---------- Process (steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 32px; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--hairline-strong) 20%, var(--hairline-strong) 80%, transparent);
}
.step {
  position: relative;
  padding: 0 var(--sp-3);
}
.step__num {
  position: relative;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.step__num::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  animation: pulse-ring 3s var(--ease) infinite;
  opacity: 0;
}
.step:hover .step__num::after { opacity: 1; }
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}
.step__title {
  font-size: var(--t-lg);
  margin-bottom: var(--sp-2);
}
.step__text {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ---------- Stats / numbers ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-radius: var(--r-3);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.stat {
  background: var(--surface-1);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.stat__num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
  display: flex; align-items: baseline; gap: 0.05em;
}
.stat__num small { font-size: 0.4em; color: var(--accent); font-weight: 700; }
.stat__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* ---------- Geo / cities ---------- */
.cities { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cities__chip {
  padding: 0.5rem 1rem;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}
.cities__chip:hover { color: var(--ink); border-color: var(--accent-line); background: var(--surface-2); }
.cities__chip.is-active {
  background: var(--accent-glaze);
  border-color: var(--accent);
  color: var(--accent-bright);
  font-weight: 500;
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.cities__chip--reset {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.cities__chip--reset.is-active { color: var(--ink); }

.map {
  margin-top: var(--sp-6);
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 16/7;
  background: var(--surface-1);
}
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.95); }

/* ---------- Area Map (custom service-area widget) ---------- */
.area-map {
  margin-top: var(--sp-6);
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.18) 100%), var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  padding: var(--sp-4);
  overflow: hidden;
  position: relative;
}
.area-map--compact {
  margin-top: 0;
  padding: 0;
  aspect-ratio: 4/5;
  display: grid;
  place-items: stretch;
  min-height: 340px;
}
.area-map--compact .area-map__svg { padding: var(--sp-3); }
.area-map__svg {
  width: 100%;
  height: auto;
  display: block;
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
}
.area-map__connectors line {
  stroke: rgba(255, 140, 40, 0.32);
  stroke-width: 1.2;
  stroke-dasharray: 2 4;
}
.area-map__cities .area-map__city circle {
  fill: var(--ink-soft, #cfcfcf);
  stroke: var(--surface-0, #14110d);
  stroke-width: 2.5;
  transition: transform 0.2s ease;
  transform-origin: center;
  transform-box: fill-box;
}
.area-map__cities .area-map__city--base circle {
  fill: var(--accent, #ff8c28);
  stroke-width: 3;
  filter: drop-shadow(0 0 12px rgba(255, 140, 40, 0.55));
}
.area-map__cities .area-map__city text {
  fill: var(--ink-soft, #d6d6d6);
  font-size: 12px;
  font-weight: 500;
  text-anchor: middle;
  letter-spacing: -0.01em;
}
.area-map__cities .area-map__city--base text {
  fill: var(--ink, #fff);
  font-weight: 700;
  font-size: 13px;
}
.area-map__city:hover circle {
  fill: var(--accent-bright, #ffae5c);
  transform: scale(1.4);
}
.area-map__city:hover text {
  fill: var(--ink, #fff);
}
.area-map__ring-label {
  fill: rgba(255, 255, 255, 0.32);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-anchor: start;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace);
}
.area-map__cdir {
  fill: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace);
}
.area-map__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  padding: var(--sp-3) var(--sp-1) 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--hairline);
  margin-top: var(--sp-3);
}
.area-map__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
}
.area-map__legend-item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-soft);
  display: inline-block;
}
.area-map__legend-item .dot--base {
  width: 10px; height: 10px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 140, 40, 0.5);
}
.area-map__legend-note {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
@media (max-width: 720px) {
  .area-map { padding: var(--sp-3); }
  .area-map__cities .area-map__city text { font-size: 14px; }
  .area-map__cities .area-map__city--base text { font-size: 15px; }
  .area-map__legend-note { margin-left: 0; flex-basis: 100%; }
}

/* ---------- Yandex Map (real iframe service-area map) ---------- */
.ymap {
  margin-top: var(--sp-6);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  padding: var(--sp-4);
  overflow: hidden;
  position: relative;
}
.ymap__frame {
  width: 100%;
  aspect-ratio: 16/8;
  min-height: 360px;
  border: 0;
  border-radius: calc(var(--r-3) - 4px);
  display: block;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.55) brightness(0.95);
}
.ymap__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  padding: var(--sp-3) var(--sp-1) 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--hairline);
  margin-top: var(--sp-3);
}
.ymap__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
}
.ymap__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-soft);
  display: inline-block;
}
.ymap__dot--base {
  width: 10px; height: 10px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 140, 40, 0.5);
}
.ymap__legend-note {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
@media (max-width: 720px) {
  .ymap { padding: var(--sp-3); }
  .ymap__frame { min-height: 300px; aspect-ratio: 4/3; }
  .ymap__legend-note { margin-left: 0; flex-basis: 100%; }
}

/* ---------- Reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.review {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.review__stars { color: var(--accent); display: flex; gap: 0.15rem; }
.review__stars svg { width: 16px; height: 16px; }
.review__quote { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.55; }
.review__quote::before { content: '«'; color: var(--accent); margin-right: 0.1em; }
.review__quote::after { content: '»'; color: var(--accent); }
.review__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--hairline);
  font-size: 0.875rem;
}
.review__author { color: var(--ink); font-weight: 500; }
.review__src {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* ---------- CTA section ---------- */
.cta {
  position: relative;
  padding: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) clamp(1.5rem, 0.8rem + 2.5vw, 3.5rem);
  border-radius: var(--r-4);
  background:
    radial-gradient(ellipse 80% 50% at 80% 0%, oklch(0.83 0.155 78 / 0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 100%, oklch(0.83 0.155 78 / 0.10), transparent 60%),
    var(--surface-1);
  border: 1px solid var(--hairline);
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    repeating-linear-gradient(135deg, transparent 0 80px, oklch(1 0 0 / 0.012) 80px 81px);
}
.cta__title { max-width: 22ch; text-wrap: balance; margin: var(--sp-2) 0 var(--sp-3); font-size: var(--t-2xl); }
.cta__lede { color: var(--ink-soft); margin-bottom: var(--sp-4); max-width: 50ch; font-size: 0.9375rem; }
.cta__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-3);
  max-width: 600px;
  align-items: stretch;
}
.input {
  padding: 0.95rem 1.15rem;
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-2);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color var(--d-fast) var(--ease);
}
.input::placeholder { color: var(--ink-muted); }
.input:focus { outline: 0; border-color: var(--accent); }
.cta__hint {
  margin-top: var(--sp-3);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.cta__hint a { color: var(--ink-soft); border-bottom: 1px solid var(--hairline-strong); }

/* ---------- Article / long-form blocks ---------- */
.lede {
  font-size: var(--t-lg);
  color: var(--ink);
  line-height: 1.5;
  max-width: 60ch;
  font-weight: 500;
}
.lede strong { color: var(--accent); font-weight: 600; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.split--media-right .split__text { padding-right: var(--sp-4); }
.split__media {
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 4/3;
  position: relative;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2, .split h3 { margin-bottom: var(--sp-3); }
.split p + p { margin-top: var(--sp-3); }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: var(--sp-5); }
  .split--media-right .split__text { padding-right: 0; order: 2; }
  .split--media-right .split__media { order: 1; }
}

.note {
  position: relative;
  padding: var(--sp-5);
  background: var(--accent-glaze);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-3);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.note strong { color: var(--ink); }
.note__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: var(--sp-2);
}

/* List with check icons */
.checks { display: grid; gap: var(--sp-3); }
.checks li {
  list-style: none;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--sp-3);
  align-items: start;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.checks li::before {
  content: '';
  display: block;
  width: 24px; height: 24px;
  margin-top: 2px;
  background: var(--accent-glaze);
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e89255' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-9'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}
.checks strong { color: var(--ink); }

/* Price breakdown */
.price-card {
  padding: var(--sp-6);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.price-card__head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.price-card__big {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  display: flex; align-items: baseline; gap: 0.2em;
}
.price-card__big small { font-size: 0.45em; color: var(--ink-muted); font-weight: 500; }
.price-card__rows { display: flex; flex-direction: column; }
.price-card__rows li {
  list-style: none;
  display: flex; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
}
.price-card__rows li span:first-child { color: var(--ink-soft); }
.price-card__rows li span:last-child { color: var(--ink); font-family: 'JetBrains Mono', monospace; }

/* FAQ */
.faq { display: grid; gap: var(--sp-3); }
.faq details {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  padding: var(--sp-4) var(--sp-5);
  transition: border-color var(--d-fast) var(--ease);
}
.faq details[open] { border-color: var(--hairline-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 16px; height: 16px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  color: var(--ink-muted);
  transition: transform var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq__answer {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Article body (blog) */
.article {
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.article h2 {
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-4);
  font-size: var(--t-2xl);
}
.article h3 {
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  font-size: var(--t-xl);
}
.article p { margin-bottom: var(--sp-4); max-width: none; }
.article ul, .article ol {
  margin: var(--sp-3) 0 var(--sp-4) var(--sp-5);
  padding: 0;
}
.article li { margin-bottom: var(--sp-2); }
.article blockquote {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--accent);
  background: var(--surface-1);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  font-size: 1rem;
  color: var(--ink);
  font-style: italic;
}
.article a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
}
.article a:hover { color: var(--accent-bright); }
.article__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  display: flex; gap: var(--sp-3); flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}
.article__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.article__meta span::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* Blog list */
.posts { display: grid; gap: var(--sp-4); }
.post {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-6);
  align-items: center;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--hairline);
}
.post:first-child { padding-top: 0; }
.post__media {
  aspect-ratio: 16/10;
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--surface-1);
  position: relative;
}
.post__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.post:hover .post__media img { transform: scale(1.04); }
.post__cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.post__title {
  font-size: var(--t-xl);
  margin-bottom: var(--sp-3);
  text-wrap: balance;
}
.post:hover .post__title { color: var(--accent); }
.post__excerpt {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin-bottom: var(--sp-4);
}
.post__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-muted);
  display: flex; gap: var(--sp-4);
}
@media (max-width: 720px) {
  .post { grid-template-columns: 1fr; gap: var(--sp-3); }
}

/* Contact info card */
.kv {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  overflow: hidden;
}
.kv__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-5);
  background: var(--surface-1);
  padding: var(--sp-4) var(--sp-5);
  align-items: baseline;
}
.kv__key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.kv__value { color: var(--ink); font-size: 1rem; }
.kv__value a { color: var(--ink); border-bottom: 1px solid var(--hairline-strong); }
.kv__value a:hover { color: var(--accent); border-color: var(--accent-line); }
@media (max-width: 720px) {
  .kv__row { grid-template-columns: 1fr; gap: var(--sp-2); }
}

/* Big quote / scale block */
.quote-block {
  padding: clamp(2rem, 1.2rem + 2.5vw, 3.5rem) clamp(1.5rem, 0.8rem + 2.5vw, 3rem);
  background:
    radial-gradient(ellipse 80% 50% at 80% 0%, oklch(0.83 0.155 78 / 0.10), transparent 60%),
    var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-4);
}
.quote-block__big {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: var(--t-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
  margin: var(--sp-3) 0 var(--sp-3);
}
.quote-block__big::before { content: '“'; color: var(--accent); margin-right: 0.05em; }
.quote-block__big::after  { content: '”'; color: var(--accent); }
.quote-block__attr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
@media (max-width: 720px) {
  .quote-block { padding: var(--sp-6) var(--sp-5); }
}

/* Calculator-style step form */
.calc {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  overflow: hidden;
}
.calc__head {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-3);
}
.calc__title { font-size: var(--t-xl); }
.calc__progress {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.calc__body { padding: var(--sp-5) var(--sp-6); display: grid; gap: var(--sp-5); }
.calc__row { display: grid; gap: var(--sp-2); }
.calc__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.calc__chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.calc__foot {
  padding: var(--sp-5) var(--sp-6);
  background: var(--bg-deep);
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-3);
}
.calc__hint { font-size: 0.8125rem; color: var(--ink-muted); }

/* Range slider */
.range {
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
  outline: none;
}
.range::-webkit-slider-thumb {
  appearance: none;
  width: 20px; height: 20px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent-line);
  cursor: pointer;
}
.range::-moz-range-thumb {
  width: 20px; height: 20px;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent-line);
  border-radius: 50%;
  cursor: pointer;
}

/* 404 */
.notfound {
  min-height: 70vh;
  display: grid; place-items: center;
  text-align: center;
}
.notfound__big {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(6rem, 4rem + 12vw, 14rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--ink);
  margin-bottom: var(--sp-4);
  background: linear-gradient(180deg, var(--ink) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Weather conditions card (rich widget) ---------- */
.wx {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-6);
  padding: clamp(1.25rem, 0.8rem + 1.5vw, 2rem);
  background:
    radial-gradient(ellipse 70% 60% at 0% 30%, var(--accent-glaze), transparent 60%),
    linear-gradient(135deg, var(--surface-1), var(--surface-2));
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--d-norm) var(--ease);
}
.wx[data-state="warn"] { background: radial-gradient(ellipse 70% 60% at 0% 30%, oklch(0.78 0.14 75 / 0.14), transparent 60%), linear-gradient(135deg, var(--surface-1), var(--surface-2)); }
.wx[data-state="cold"] { background: radial-gradient(ellipse 70% 60% at 0% 30%, var(--cool-glaze), transparent 60%), linear-gradient(135deg, var(--surface-1), var(--surface-2)); }

.wx::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, oklch(1 0 0 / 0.025) 0.5px, transparent 1px);
  background-size: 18px 18px;
  mask: linear-gradient(120deg, transparent 30%, #000 70%);
  -webkit-mask: linear-gradient(120deg, transparent 30%, #000 70%);
}

.wx__visual {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 1;
  width: 100%;
  max-width: 200px;
  border-radius: var(--r-3);
  background: oklch(0 0 0 / 0.25);
  border: 1px solid oklch(1 0 0 / 0.06);
  overflow: hidden;
}
.wx__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, oklch(1 0 0 / 0.04), transparent 70%);
}

.wx__main { display: flex; flex-direction: column; gap: var(--sp-2); justify-content: center; }
.wx__head {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}
.wx__head-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px oklch(0.74 0.13 145 / 0.20);
  animation: pulse 2.6s var(--ease) infinite;
}
.wx[data-state="warn"] .wx__head-dot { background: var(--warn); box-shadow: 0 0 0 3px oklch(0.78 0.14 75 / 0.20); animation-name: pulse-warn; }
.wx[data-state="cold"] .wx__head-dot { background: var(--cool); box-shadow: 0 0 0 3px oklch(0.72 0.07 235 / 0.20); animation-name: pulse-cold; }

.wx__temp {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.75rem, 1.8rem + 4.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 0.05em;
}
.wx__temp small { font-size: 0.45em; color: var(--ink-muted); font-weight: 600; }
.wx__city {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.wx__status {
  font-size: var(--t-lg);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: var(--sp-1);
}
.wx__hint {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 56ch;
}

.wx__season {
  grid-column: 1 / -1;
  margin-top: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: var(--sp-2);
}
.wx__season-row {
  display: flex; align-items: center; gap: var(--sp-3);
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.wx__season-key {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.wx__season-state {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--accent-glaze);
  color: var(--accent-bright);
  border: 1px solid var(--accent-line);
  font-size: 0.75rem;
}
.wx__season-state--off {
  background: oklch(0.72 0.07 235 / 0.10);
  color: var(--cool);
  border-color: oklch(0.72 0.07 235 / 0.30);
}
.wx__season-bar {
  height: 5px;
  background: oklch(0 0 0 / 0.4);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.wx__season-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-bright));
  border-radius: 3px;
  transition: width 1.4s var(--ease) 200ms;
  box-shadow: 0 0 12px var(--accent);
}
.wx__season-pct {
  font-size: 0.8125rem;
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 720px) {
  .wx { grid-template-columns: 1fr; gap: var(--sp-4); }
  .wx__visual { max-width: 140px; margin-inline: auto; }
  .wx__temp { justify-content: center; }
  .wx__main { text-align: center; align-items: center; }
}

/* ---------- Animated weather icons ---------- */
.wx-icon { display: none; width: 78%; height: 78%; }
.wx[data-icon="sun"]    .wx-icon--sun,
.wx[data-icon="partly"] .wx-icon--partly,
.wx[data-icon="cloud"]  .wx-icon--cloud,
.wx[data-icon="rain"]   .wx-icon--rain,
.wx[data-icon="snow"]   .wx-icon--snow,
.wx[data-icon="thunder"].wx-icon--thunder,
.wx[data-icon="cold"]   .wx-icon--cold { display: block; }

/* Sun rays rotation */
.wx-icon--sun .rays { transform-origin: 100px 100px; animation: spin 22s linear infinite; }
.wx-icon--sun .core { animation: pulse-glow 3.5s var(--ease) infinite; transform-origin: 100px 100px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px oklch(0.84 0.16 75 / 0.5)); }
  50%      { transform: scale(1.03); filter: drop-shadow(0 0 16px oklch(0.84 0.16 75 / 0.7)); }
}

/* Cloud float */
.wx-icon--cloud .cloud-grp,
.wx-icon--partly .cloud-grp,
.wx-icon--rain .cloud-grp,
.wx-icon--snow .cloud-grp,
.wx-icon--thunder .cloud-grp { animation: float 5s var(--ease) infinite; transform-origin: center; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Sun behind partly cloudy */
.wx-icon--partly .sun-bg { animation: spin 30s linear infinite; transform-origin: 70px 70px; }

/* Rain drops */
.wx-icon--rain .drop {
  animation: rain-drop 1.4s linear infinite;
  transform-origin: top;
  opacity: 0;
}
.wx-icon--rain .drop:nth-child(2) { animation-delay: 0.25s; }
.wx-icon--rain .drop:nth-child(3) { animation-delay: 0.5s; }
.wx-icon--rain .drop:nth-child(4) { animation-delay: 0.75s; }
.wx-icon--rain .drop:nth-child(5) { animation-delay: 1.0s; }
.wx-icon--rain .drop:nth-child(6) { animation-delay: 1.2s; }
@keyframes rain-drop {
  0%   { transform: translateY(0) scaleY(0.6); opacity: 0; }
  20%  { opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translateY(60px) scaleY(1); opacity: 0; }
}

/* Snow flakes */
.wx-icon--snow .flake {
  animation: snow-fall 3s linear infinite;
  transform-origin: top;
  opacity: 0;
}
.wx-icon--snow .flake:nth-child(2) { animation-delay: 0.5s; }
.wx-icon--snow .flake:nth-child(3) { animation-delay: 1.0s; }
.wx-icon--snow .flake:nth-child(4) { animation-delay: 1.5s; }
.wx-icon--snow .flake:nth-child(5) { animation-delay: 2.0s; }
.wx-icon--snow .flake:nth-child(6) { animation-delay: 2.4s; }
@keyframes snow-fall {
  0%   { transform: translateY(-5px) rotate(0deg); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(60px) rotate(360deg); opacity: 0; }
}

/* Thunder bolt */
.wx-icon--thunder .bolt {
  animation: bolt-flash 1.6s var(--ease) infinite;
}
@keyframes bolt-flash {
  0%, 92%, 100% { opacity: 1; filter: drop-shadow(0 0 0px oklch(0.84 0.16 75 / 0)); }
  93%, 96%      { opacity: 0.4; }
  94%           { opacity: 1; filter: drop-shadow(0 0 18px oklch(0.84 0.16 75 / 0.9)); }
}

/* Cold thermometer */
.wx-icon--cold .mercury {
  transform-origin: 100px 165px;
  animation: thermo 3s var(--ease) infinite;
}
@keyframes thermo {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .wx-icon * { animation: none !important; }
}

/* ---------- Reading progress bar (long articles) ---------- */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.read-progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-bright));
  box-shadow: 0 0 12px var(--accent);
  transition: width 80ms linear;
}

/* ---------- TOC (sticky article sidebar) ---------- */
.toc {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  font-size: 0.875rem;
  max-height: calc(100vh - var(--header-h) - var(--sp-7));
  overflow: auto;
}
.toc__head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--sp-1);
}
.toc__list { display: grid; gap: var(--sp-2); list-style: none; padding: 0; }
.toc__list a {
  display: block;
  color: var(--ink-soft);
  padding: 0.35rem var(--sp-3);
  border-left: 2px solid var(--hairline);
  font-size: 0.875rem;
  line-height: 1.4;
  transition: color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.toc__list a:hover { color: var(--ink); border-left-color: var(--ink-muted); }
.toc__list a.is-current {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-glaze);
}

/* Article-with-TOC layout */
.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-7);
  align-items: start;
  max-width: 1080px;
  margin-inline: auto;
}
.article-layout .article { margin-inline: 0; max-width: 680px; }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
}

/* ---------- Pirog — facade cross-section ---------- */
.pirog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface-1);
  isolation: isolate;
}
.pirog__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-deep);
}
.pirog__title {
  font-size: var(--t-xl);
  letter-spacing: -0.02em;
  margin: 0;
}
.pirog__total {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pirog__total b { color: var(--accent); font-weight: 600; }

.pirog__body { display: flex; flex-direction: column; }
.pirog__layer {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--hairline);
  cursor: default;
  transition: background var(--d-fast) var(--ease);
  position: relative;
}
.pirog__layer:last-child { border-bottom: 0; }
.pirog__layer:hover { background: var(--surface-2); }
.pirog__layer:hover .pirog__sample { transform: scaleX(1.05); }

.pirog__sample {
  height: 32px;
  border-radius: var(--r-1);
  position: relative;
  overflow: hidden;
  transform-origin: left center;
  transition: transform var(--d-norm) var(--ease);
  border: 1px solid oklch(1 0 0 / 0.06);
}
/* Material colour samples — visual identification of layer type */
.pirog__sample--wall    { background: linear-gradient(135deg, oklch(0.72 0.02 65) 25%, oklch(0.65 0.02 65) 25% 50%, oklch(0.72 0.02 65) 50% 75%, oklch(0.65 0.02 65) 75%); background-size: 14px 14px; }
.pirog__sample--primer  { background: linear-gradient(180deg, oklch(0.55 0.03 50), oklch(0.42 0.04 45)); }
.pirog__sample--glue    { background: oklch(0.78 0.01 60); position: relative; }
.pirog__sample--glue::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 40%, oklch(0 0 0 / 0.18) 0 1.5px, transparent 2px) 0 0 / 8px 8px; }
.pirog__sample--mwool   { background: linear-gradient(180deg, oklch(0.84 0.16 95), oklch(0.74 0.14 85)); }
.pirog__sample--mwool::after { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, oklch(0 0 0 / 0.10) 0 1px, transparent 1px 4px); }
.pirog__sample--eps     { background: oklch(0.96 0.005 95); position: relative; }
.pirog__sample--eps::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 35% 45%, oklch(0 0 0 / 0.12) 0 1px, transparent 1.5px) 0 0 / 6px 6px; }
.pirog__sample--xps     { background: oklch(0.55 0.10 25); position: relative; }
.pirog__sample--xps::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 40% 50%, oklch(1 0 0 / 0.10) 0 1px, transparent 1.5px) 0 0 / 5px 5px; }
.pirog__sample--anchor  { background: oklch(0.42 0.012 55); position: relative; }
.pirog__sample--anchor::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 14px, oklch(1 0 0 / 0.18) 14px 17px); }
.pirog__sample--base    { background: linear-gradient(180deg, oklch(0.74 0.02 60), oklch(0.62 0.02 55)); }
.pirog__sample--mesh    { background: oklch(0.75 0.10 165); position: relative; }
.pirog__sample--mesh::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 4px, oklch(0 0 0 / 0.18) 4px 5px), repeating-linear-gradient(0deg, transparent 0 4px, oklch(0 0 0 / 0.18) 4px 5px); }
.pirog__sample--quartz  { background: oklch(0.68 0.01 60); position: relative; }
.pirog__sample--quartz::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 35%, oklch(1 0 0 / 0.18) 0 0.6px, transparent 1px) 0 0 / 4px 4px, radial-gradient(circle at 75% 70%, oklch(0 0 0 / 0.16) 0 0.6px, transparent 1px) 2px 2px / 4px 4px; }
.pirog__sample--kor     { background: linear-gradient(180deg, oklch(0.78 0.04 70), oklch(0.70 0.04 70)); position: relative; }
.pirog__sample--kor::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(95deg, transparent 0 2px, oklch(0 0 0 / 0.16) 2px 3px); opacity: 0.5; }
.pirog__sample--shuba   { background: oklch(0.86 0.02 75); position: relative; }
.pirog__sample--shuba::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, oklch(0 0 0 / 0.12) 0 1.2px, transparent 1.8px) 0 0 / 5px 5px, radial-gradient(circle at 70% 65%, oklch(0 0 0 / 0.10) 0 1px, transparent 1.5px) 0 0 / 4px 4px; }
.pirog__sample--paint   { background: oklch(0.78 0.05 60); }
.pirog__sample--klinker { background: linear-gradient(180deg, oklch(0.45 0.10 32), oklch(0.38 0.10 32)); position: relative; }
.pirog__sample--klinker::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 12px, oklch(0 0 0 / 0.30) 12px 14px), repeating-linear-gradient(90deg, transparent 0 24px, oklch(0 0 0 / 0.30) 24px 25px); }
.pirog__sample--stone   { background: linear-gradient(135deg, oklch(0.58 0.012 60), oklch(0.45 0.014 55) 50%, oklch(0.58 0.012 60)); position: relative; }
.pirog__sample--gidro   { background: oklch(0.22 0.013 55); position: relative; }
.pirog__sample--gidro::after { content: ''; position: absolute; inset: 0; background: linear-gradient(45deg, transparent 45%, oklch(1 0 0 / 0.10) 45% 55%, transparent 55%); background-size: 6px 6px; }

.pirog__info { display: flex; flex-direction: column; gap: 0.15rem; }
.pirog__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.pirog__brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.pirog__thick {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .pirog__head { grid-template-columns: 1fr; align-items: start; }
  .pirog__layer { grid-template-columns: 64px 1fr auto; gap: var(--sp-3); padding: var(--sp-3); }
  .pirog__sample { height: 28px; }
}

/* ---------- Gallery grid (project pages) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-3);
}
.gallery__item {
  grid-column: span 4;
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--hairline);
  cursor: zoom-in;
  background: var(--surface-1);
}
.gallery__item--feat { grid-column: span 8; aspect-ratio: 16/10; }
.gallery__item--wide { grid-column: span 6; aspect-ratio: 3/2; }
.gallery__item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0 0 0 / 0.35), transparent 30%);
  opacity: 0;
  transition: opacity var(--d-fast) var(--ease);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item-icon {
  position: absolute;
  bottom: var(--sp-3); right: var(--sp-3);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: oklch(0 0 0 / 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  color: var(--ink);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.gallery__item:hover .gallery__item-icon { opacity: 1; transform: scale(1); }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item, .gallery__item--feat, .gallery__item--wide { grid-column: span 2; aspect-ratio: 4/3; }
}

/* ---------- Lightbox ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: oklch(0 0 0 / 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d-norm) var(--ease);
}
.lb.is-open { opacity: 1; pointer-events: auto; }
.lb__img {
  max-width: 92vw; max-height: 88vh;
  border-radius: var(--r-3);
  box-shadow: 0 30px 100px oklch(0 0 0 / 0.6);
  transform: scale(0.95);
  transition: transform var(--d-norm) var(--ease);
}
.lb.is-open .lb__img { transform: scale(1); }
.lb__close, .lb__nav {
  position: absolute;
  background: oklch(0 0 0 / 0.5);
  border: 1px solid var(--hairline-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
.lb__close { top: var(--sp-5); right: var(--sp-5); }
.lb__nav { top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: var(--sp-5); }
.lb__nav--next { right: var(--sp-5); }
.lb__close:hover, .lb__nav:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.lb__counter {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  background: oklch(0 0 0 / 0.5);
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong);
}

/* ---------- Marquee (auto-scroll tape, partner logos) ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: var(--sp-7);
  width: max-content;
  animation: marquee 38s linear infinite;
  padding-block: var(--sp-4);
}
.marquee__item {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  letter-spacing: -0.025em;
  color: var(--ink-muted);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: var(--sp-7);
  transition: color var(--d-fast) var(--ease);
}
.marquee__item::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item:hover { color: var(--ink); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Timeline (project pages) ---------- */
.tl {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  padding-left: var(--sp-6);
}
.tl::before {
  content: '';
  position: absolute;
  left: 15px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent-line) 8%, var(--accent-line) 92%, transparent);
  border-radius: 1px;
}
.tl__day {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  padding: var(--sp-4) var(--sp-5);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: baseline;
}
.tl__day::before {
  content: '';
  position: absolute;
  left: -25px; top: 26px;
  width: 16px; height: 16px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg);
}
.tl__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  white-space: nowrap;
}
.tl__body h4 { font-size: 1.0625rem; margin-bottom: 0.25rem; color: var(--ink); }
.tl__body p { font-size: 0.875rem; color: var(--ink-soft); margin: 0; }

/* ---------- Project meta strip ---------- */
.meta-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  overflow: hidden;
}
.meta-strip__item {
  background: var(--surface-1);
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.meta-strip__key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.meta-strip__value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
@media (max-width: 880px) { .meta-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .meta-strip { grid-template-columns: 1fr; } }

/* ---------- Tilt cards (subtle 3D parallax) ---------- */
.tilt {
  transform-style: preserve-3d;
  transition: transform 250ms var(--ease);
  will-change: transform;
}
.tilt:hover { transition-duration: 80ms; }

/* ---------- Click-to-copy phone ---------- */
.copy-phone { position: relative; }
.copy-phone::after {
  content: 'скопировано ✓';
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--bg);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  transition: opacity var(--d-fast) var(--ease);
}
.copy-phone.is-copied::after { opacity: 1; }

/* ---------- Featured blog hero card ---------- */
.post-feat {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--surface-1);
  margin-bottom: var(--sp-7);
  transition: border-color var(--d-norm) var(--ease);
}
.post-feat:hover { border-color: var(--accent-line); }
.post-feat__media {
  position: relative;
  min-height: 320px;
  background: var(--surface-2);
}
.post-feat__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.post-feat:hover .post-feat__media img { transform: scale(1.04); }
.post-feat__body {
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  display: flex; flex-direction: column; gap: var(--sp-3);
  justify-content: center;
}
.post-feat__cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}
.post-feat__title {
  font-size: var(--t-2xl);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.post-feat__excerpt { color: var(--ink-soft); font-size: 0.9375rem; }
.post-feat__meta {
  display: flex; gap: var(--sp-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: var(--sp-2);
}
@media (max-width: 880px) {
  .post-feat { grid-template-columns: 1fr; }
  .post-feat__media { min-height: 240px; }
}

/* Compact post grid (smaller cards) */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  overflow: hidden;
  transition: border-color var(--d-norm) var(--ease), transform var(--d-norm) var(--ease);
}
.post-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.post-card__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.post-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.post-card__cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}
.post-card__title {
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.post-card__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--hairline);
  display: flex; gap: var(--sp-3);
}
@media (max-width: 880px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .posts-grid { grid-template-columns: 1fr; } }

/* Tags chip cluster */
.tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--surface-1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag::before {
  content: '#';
  color: var(--accent);
}

/* ---------- Sticky mobile CTA bar ---------- */
.mcta {
  position: fixed;
  left: var(--sp-3); right: var(--sp-3); bottom: var(--sp-3);
  z-index: 40;
  display: none;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  gap: var(--sp-2);
  padding: 0.5rem;
  background: oklch(0.118 0.004 240 / 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid oklch(1 0 0 / 0.10);
  border-radius: var(--r-3);
  box-shadow: 0 14px 40px -12px oklch(0 0 0 / 0.7);
  transform: translateY(120%);
  transition: transform 320ms var(--ease), opacity 320ms var(--ease), visibility 0s linear 320ms;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.mcta.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 320ms var(--ease), opacity 320ms var(--ease), visibility 0s linear 0s;
}
.mcta__call {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: var(--surface-2);
  color: var(--ink);
  border-radius: var(--r-2);
  border: 1px solid var(--hairline-strong);
  transition: background var(--d-fast) var(--ease);
}
.mcta__call:hover, .mcta__call:focus { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.mcta__call svg { width: 20px; height: 20px; }
.mcta__cta {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  font-size: 0.9375rem;
}
@media (max-width: 720px) {
  .mcta { display: grid; }
  body { padding-bottom: 80px; }
}

/* ---------- Animated stat bars ---------- */
.stat__bar {
  margin-top: var(--sp-2);
  height: 3px;
  background: oklch(0 0 0 / 0.4);
  border-radius: 2px;
  overflow: hidden;
}
.stat__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-bright));
  border-radius: 2px;
  transition: width 1.4s var(--ease);
  box-shadow: 0 0 8px var(--accent);
}

/* ---------- Photo-tour scroll-snap ---------- */
.tour {
  position: relative;
  overflow: hidden;
}
.tour__track {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--sp-4) 0;
  scroll-behavior: smooth;
  scroll-padding-inline: var(--gutter);
}
.tour__track::-webkit-scrollbar { display: none; }
.tour__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  cursor: zoom-in;
}
.tour__slide:first-child { margin-left: 0; }
.tour__slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.tour__slide:hover img { transform: scale(1.03); }
.tour__caption {
  position: absolute;
  left: var(--sp-4); bottom: var(--sp-4);
  padding: 0.5rem 0.85rem;
  background: oklch(0 0 0 / 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-pill);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.tour__nav {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-3);
}
.tour__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  color: var(--ink);
  transition: all var(--d-fast) var(--ease);
}
.tour__btn:hover:not([disabled]) { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.tour__btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.tour__dots {
  flex: 1;
  display: flex; gap: 4px;
  justify-content: center;
}
.tour__dot {
  width: 24px; height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  transition: background var(--d-fast) var(--ease);
}
.tour__dot.is-active { background: var(--accent); }
.tour__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  min-width: 56px;
  text-align: right;
}
@media (max-width: 720px) {
  .tour__slide { flex-basis: 90%; }
}

/* ---------- Command palette (Cmd+K) ---------- */
.cmdk {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid; place-items: start center;
  padding-top: clamp(2rem, 8vh, 8rem);
  background: oklch(0 0 0 / 0.65);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
}
.cmdk.is-open { opacity: 1; pointer-events: auto; }
.cmdk__panel {
  width: min(640px, 92vw);
  background: oklch(0.118 0.004 240 / 0.96);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: var(--r-3);
  box-shadow: 0 30px 100px -20px oklch(0 0 0 / 0.8);
  display: flex; flex-direction: column;
  max-height: min(540px, 70vh);
  overflow: hidden;
  transform: translateY(-12px) scale(0.98);
  transition: transform 200ms var(--ease);
}
.cmdk.is-open .cmdk__panel { transform: translateY(0) scale(1); }
.cmdk__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--hairline);
}
.cmdk__head svg { color: var(--ink-muted); width: 18px; height: 18px; }
.cmdk__input {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--ink);
}
.cmdk__input::placeholder { color: var(--ink-muted); }
.cmdk__esc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--surface-2);
}
.cmdk__list {
  list-style: none;
  margin: 0; padding: var(--sp-2);
  overflow: auto;
  display: flex; flex-direction: column;
  gap: 1px;
}
.cmdk__group-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: var(--sp-3) var(--sp-3) var(--sp-2);
}
.cmdk__item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  padding: 0.6rem var(--sp-3);
  border-radius: var(--r-2);
  cursor: pointer;
  color: var(--ink-soft);
  transition: background var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  font: inherit;
}
.cmdk__item:hover, .cmdk__item.is-active {
  background: var(--surface-2);
  color: var(--ink);
}
.cmdk__item-icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--surface-3);
  border-radius: var(--r-2);
  color: var(--ink-soft);
}
.cmdk__item-icon svg { width: 14px; height: 14px; }
.cmdk__item.is-active .cmdk__item-icon { background: var(--accent); color: var(--bg); }
.cmdk__item-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.cmdk__item-title { font-size: 0.9375rem; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk__item-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.cmdk__item-kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--ink-muted);
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--surface-3);
}
.cmdk__empty {
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}
.cmdk__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--hairline);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.cmdk__foot-keys { display: flex; gap: var(--sp-3); }
.cmdk__foot-keys span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cmdk__foot-keys kbd {
  font-family: inherit; font-size: inherit;
  padding: 0.15rem 0.35rem;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  color: var(--ink);
}

/* Header search trigger */
.search-trigger {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2);
  color: var(--ink-muted);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
.search-trigger:hover { border-color: var(--hairline-strong); color: var(--ink-soft); }
.search-trigger svg { width: 14px; height: 14px; }
.search-trigger kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  padding: 0.1rem 0.35rem;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
@media (max-width: 1080px) { .search-trigger { display: none; } }

/* ---------- View Transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-fade-out 200ms cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-fade-in 320ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes vt-fade-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-fade-in  { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Color picker (plaster service) ---------- */
.colorlab {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-5);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  padding: var(--sp-5);
  align-items: center;
}
.colorlab__viz {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
}
.colorlab__viz-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  background: var(--surface-2);
}
.colorlab__viz-tag {
  position: absolute;
  bottom: var(--sp-3); left: var(--sp-3);
  padding: 0.4rem 0.85rem;
  background: oklch(0 0 0 / 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-pill);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink);
}

.colorlab__panel { display: flex; flex-direction: column; gap: var(--sp-4); }
.colorlab__title { font-size: var(--t-xl); margin: 0; }
.colorlab__desc { font-size: 0.9375rem; color: var(--ink-soft); }
.colorlab__row {
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.colorlab__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.colorlab__swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-2);
}
.colorlab__swatch {
  aspect-ratio: 1;
  border-radius: var(--r-2);
  border: 2px solid transparent;
  outline: 1px solid var(--hairline);
  cursor: pointer;
  position: relative;
  transition: transform var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
.colorlab__swatch:hover { transform: scale(1.05); }
.colorlab__swatch.is-active {
  border-color: var(--ink);
  outline-color: var(--accent);
  outline-width: 2px;
}
.colorlab__swatch.is-active::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--r-2);
  border: 1px solid var(--accent);
  pointer-events: none;
}
.colorlab__current {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-2);
  border-radius: var(--r-2);
  border: 1px solid var(--hairline);
}
.colorlab__current-chip {
  width: 36px; height: 36px;
  border-radius: var(--r-1);
  background: var(--colorlab-tint, oklch(0.78 0.10 70));
  border: 1px solid var(--hairline-strong);
  flex-shrink: 0;
  transition: background 320ms var(--ease);
}
.colorlab__current-info { display: flex; flex-direction: column; gap: 0.1rem; }
.colorlab__current-name { font-size: 0.9375rem; color: var(--ink); font-weight: 500; }
.colorlab__current-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
@media (max-width: 880px) { .colorlab { grid-template-columns: 1fr; } }

/* ---------- Weather / season widget (legacy, unused — kept for backward compat) ---------- */
.cond {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}
.cond__cell {
  background: var(--surface-1);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-2);
  position: relative;
}
.cond__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 0.5rem;
}
.cond__label .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px oklch(0.74 0.13 145 / 0.18);
}
.cond__cell--warn .cond__label .dot { background: var(--warn); box-shadow: 0 0 0 3px oklch(0.78 0.14 75 / 0.18); }
.cond__cell--cold .cond__label .dot { background: var(--cool); box-shadow: 0 0 0 3px oklch(0.72 0.07 235 / 0.18); }
.cond__value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: var(--t-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}
.cond__value small { font-size: 0.4em; color: var(--ink-muted); font-weight: 500; }
.cond__hint { font-size: 0.875rem; color: var(--ink-soft); }
.cond__bar {
  margin-top: var(--sp-2);
  height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
  overflow: hidden;
}
.cond__bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 800ms var(--ease);
}

/* ---------- Footer ---------- */
.ftr {
  margin-top: var(--section-y);
  padding: var(--sp-8) 0 var(--sp-5);
  border-top: 1px solid var(--hairline);
  background: var(--bg-deep);
}
.ftr__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-7);
  margin-bottom: var(--sp-7);
}
.ftr__brand .brand { margin-bottom: var(--sp-4); }
.ftr__brand p { font-size: 0.9375rem; max-width: 36ch; margin-bottom: var(--sp-4); }
.ftr__brand .phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink);
  font-weight: 500;
}
.ftr__brand .phone:hover { color: var(--accent); }
.ftr__heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
  font-weight: 500;
}
.ftr__col { display: flex; flex-direction: column; gap: var(--sp-3); }
.ftr__col a { font-size: 0.9375rem; color: var(--ink-soft); transition: color var(--d-fast) var(--ease); }
.ftr__col a:hover { color: var(--accent); }
.ftr__bottom {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.ftr__bottom a:hover { color: var(--ink-soft); }

/* ---------- Page hero (sub-pages) ---------- */
.phero {
  padding-block: clamp(3rem, 2rem + 3vw, 5rem) clamp(1.5rem, 0.8rem + 2vw, 2.5rem);
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, oklch(0.83 0.155 78 / 0.10), transparent 60%),
    var(--bg);
}
.phero__crumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: var(--sp-4);
  display: flex; gap: 0.5rem; align-items: center;
}
.phero__crumb a { color: var(--ink-soft); }
.phero__crumb a:hover { color: var(--accent); }
.phero__crumb span.sep { color: var(--ink-dim); }
.phero__title {
  font-size: var(--t-4xl);
  max-width: 22ch;
  text-wrap: balance;
  margin: var(--sp-2) 0 var(--sp-3);
}
.phero__lede {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.55;
}

/* ============================================================
   Project page (dense layout) — for individual portfolio pages
   ============================================================ */
.section--proj { padding-block: clamp(1.25rem, 0.75rem + 1.5vw, 2.25rem); }

.proj-hero {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1.15fr);
  gap: var(--sp-5);
  align-items: stretch;
  padding-top: var(--sp-5);
}
.proj-hero__text {
  display: flex; flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
}
.proj-hero__crumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-muted);
  display: flex; gap: 0.5rem; align-items: center;
  margin-bottom: var(--sp-2);
}
.proj-hero__crumb a { color: var(--ink-soft); }
.proj-hero__crumb a:hover { color: var(--accent); }
.proj-hero__crumb .sep { color: var(--ink-dim); }
.proj-hero__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.625rem, 1.15rem + 1.7vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 22ch;
  text-wrap: balance;
  margin: var(--sp-2) 0;
  color: var(--ink);
}
.proj-hero__lede {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 52ch;
  margin: 0;
}
.proj-hero__meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: auto;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2);
  overflow: hidden;
}
.proj-hero__meta-item {
  background: var(--surface-1);
  padding: var(--sp-3);
  display: flex; flex-direction: column;
  gap: 0.15rem;
}
.proj-hero__meta-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.proj-hero__meta-val {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.proj-hero__photo {
  position: relative;
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--hairline);
  cursor: zoom-in;
  min-height: 400px;
  background: var(--surface-1);
}
.proj-hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.proj-hero__photo:hover img { transform: scale(1.02); }
.proj-hero__photo .gallery__item-icon {
  position: absolute; right: var(--sp-3); bottom: var(--sp-3);
  background: rgba(0,0,0,0.55); color: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
}
@media (max-width: 880px) {
  .proj-hero { grid-template-columns: 1fr; padding-top: var(--sp-3); }
  .proj-hero__photo { min-height: 260px; aspect-ratio: 16/10; }
  .proj-hero__meta { grid-template-columns: repeat(2, 1fr); }
}

/* Two-column dense grid */
.proj-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: stretch;
}
@media (max-width: 880px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-grid > * { display: flex; flex-direction: column; }
.proj-grid__story { gap: 0; }
.proj-grid__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0.5rem 0 1rem;
}
.proj-grid__story-text {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.proj-grid__story-text:last-of-type { margin-bottom: 1.25rem; }
.proj-grid .proj-cost { margin-top: auto; }
.proj-grid .pirog { height: 100%; display: flex; flex-direction: column; }
.proj-grid .pirog__body { flex: 1; }

/* Section header — compact (для проектных секций) */
.s-head--mini { margin-bottom: var(--sp-3); }
.s-head--mini .s-head__title {
  font-size: clamp(1.125rem, 0.95rem + 0.5vw, 1.375rem);
  margin: 0;
}

/* Dense pirog (less vertical) */
.pirog--dense .pirog__head { padding: var(--sp-3) var(--sp-4); }
.pirog--dense .pirog__title { font-size: 0.9375rem; }
.pirog--dense .pirog__total { font-size: 0.75rem; }
.pirog--dense .pirog__layer { padding: 0.45rem var(--sp-4); gap: var(--sp-3); }
.pirog--dense .pirog__sample { width: 36px; height: 26px; }
.pirog--dense .pirog__name { font-size: 0.8125rem; line-height: 1.25; }
.pirog--dense .pirog__brand { font-size: 0.6875rem; line-height: 1.2; }
.pirog--dense .pirog__thick { font-size: 0.6875rem; }

/* Project cost card */
.proj-cost {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  padding: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
}
.proj-cost__head {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--hairline);
}
.proj-cost__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.9375rem; font-weight: 700;
  letter-spacing: -0.01em;
}
.proj-cost__total {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.375rem; font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.proj-cost__rows { display: grid; gap: 0.35rem; }
.proj-cost__row {
  display: grid; grid-template-columns: 1fr auto;
  gap: var(--sp-3);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  padding: 0.25rem 0;
}
.proj-cost__row b { color: var(--ink); font-weight: 500; }
.proj-cost__hint {
  font-size: 0.75rem;
  color: var(--ink-muted);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--hairline);
  margin-top: var(--sp-1);
  line-height: 1.4;
}

/* Result card — energy savings & after-state metrics */
.proj-result {
  background:
    radial-gradient(ellipse 60% 100% at 0% 0%, oklch(0.32 0.10 60 / 0.18), transparent 70%),
    var(--surface-1);
  border: 1px solid oklch(0.32 0.06 60 / 0.7);
  border-radius: var(--r-3);
  padding: var(--sp-4);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--hairline);
  overflow: hidden;
}
.proj-result__item {
  background: var(--surface-1);
  padding: var(--sp-3) var(--sp-4);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.proj-result__big {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.375rem, 1.1rem + 0.7vw, 1.75rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.025em;
  line-height: 1;
}
.proj-result__label {
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.3;
}
.proj-result__sub {
  font-size: 0.6875rem;
  color: var(--ink-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
@media (max-width: 720px) { .proj-result { grid-template-columns: 1fr 1fr; } }

/* Gallery + Timeline two-column on desktop */
.proj-split-mid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: start;
}
@media (max-width: 980px) { .proj-split-mid { grid-template-columns: 1fr; } }

/* Compact timeline */
.tl--compact { padding-left: var(--sp-5); gap: var(--sp-2); }
.tl--compact .tl__day {
  padding: var(--sp-3) var(--sp-4);
  gap: var(--sp-3);
}
.tl--compact .tl__day::before {
  left: -17px; top: 18px;
  width: 10px; height: 10px;
  box-shadow: 0 0 0 3px var(--bg);
}
.tl--compact .tl__num { font-size: 0.6875rem; }
.tl--compact .tl__body h4 { font-size: 0.9375rem; margin-bottom: 0.15rem; }
.tl--compact .tl__body p { font-size: 0.8125rem; line-height: 1.4; }

/* Compact gallery */
.tour--compact .tour__slide { width: 65%; aspect-ratio: 4/3; }
.tour--compact .tour__caption { font-size: 0.75rem; padding: 0.4rem var(--sp-3); }
.tour--compact .tour__nav { padding-top: var(--sp-3); }

/* Project bottom: location + related — split */
.proj-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--sp-5);
  align-items: stretch;
}
@media (max-width: 880px) { .proj-foot { grid-template-columns: 1fr; } }

.proj-locmap {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-3);
  height: 100%;
}
.proj-locmap__frame {
  width: 100%;
  flex: 1 1 auto;
  min-height: 280px;
  border: 0;
  border-radius: var(--r-2);
  display: block;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.55) brightness(0.95);
  background: var(--surface-2);
}
.proj-locmap__meta {
  display: flex; justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-family: 'JetBrains Mono', monospace;
}
.proj-related { display: flex; flex-direction: column; gap: var(--sp-3); }

/* Related compact (2x2 grid в правой колонке proj-foot) */
.works--proj-related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.works--proj-related .work { grid-column: span 1; }
.works--proj-related .work__media { aspect-ratio: 4/3; }
.works--proj-related .work__body { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.works--proj-related .work__title { font-size: 0.9375rem; margin-bottom: 0.4rem; }
.works--proj-related .work__meta { font-size: 0.75rem; gap: var(--sp-3); }
@media (max-width: 540px) {
  .works--proj-related { grid-template-columns: 1fr; }
}

/* Slim CTA for project pages */
.cta--slim {
  padding: var(--sp-5) var(--sp-6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-5);
  align-items: center;
}
.cta--slim .cta__title { font-size: clamp(1.25rem, 1rem + 0.6vw, 1.5rem); margin: 0; max-width: 24ch; }
.cta--slim .cta__lede { font-size: 0.875rem; margin: 0.25rem 0 0; max-width: 42ch; }
.cta--slim .cta__form { margin: 0; min-width: 280px; }
.cta--slim .cta__hint { display: none; }
@media (max-width: 720px) {
  .cta--slim { grid-template-columns: 1fr; padding: var(--sp-4); }
  .cta--slim .cta__form { min-width: 0; }
}

/* ---------- Materials (suppliers) ---------- */
.mats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  overflow: hidden;
}
.mat {
  background: var(--surface-1);
  padding: var(--sp-5);
  display: grid; place-items: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  text-align: center;
  transition: color var(--d-fast) var(--ease);
}
.mat:hover { color: var(--ink); background: var(--surface-2); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Responsive ---------- */

/* Hide search-trigger and shrink phone label at intermediate widths to prevent overflow */
@media (max-width: 1280px) {
  .search-trigger span { display: none; }
  .search-trigger kbd { display: none; }
  .search-trigger { padding: 0.45rem 0.55rem; }
}
@media (max-width: 1180px) {
  .hdr__phone { display: none; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .hdr__phone { display: none; }
  .search-trigger { display: none; }
  .burger { display: block; margin-inline-start: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .svc--lg { grid-column: span 2; grid-row: auto; min-height: 360px; }
  .svc--md { grid-column: span 1; }
  .svc--sm { grid-column: span 1; }
  .svc--wide { grid-column: span 2; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .work, .work--feat, .work--wide { grid-column: span 1; grid-row: auto; }
  .work--feat .work__media, .work--wide .work__media { aspect-ratio: 4/3; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .adv { grid-template-columns: repeat(2, 1fr); }
  .mats { grid-template-columns: repeat(3, 1fr); }
  .cond { grid-template-columns: 1fr; }
  .cta { padding: var(--sp-7) var(--sp-5); }
}

@media (max-width: 640px) {
  .hdr__inner { gap: var(--sp-3); }
  .hero { min-height: 88svh; }
  .hero__title { font-size: clamp(2.5rem, 8vw, 4rem); }
  .hero__strip { grid-template-columns: repeat(2, 1fr); }
  .hero__strip-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--hairline); padding-top: var(--sp-3); margin-top: var(--sp-3); }
  .hero__strip-item:nth-child(4) { border-top: 1px solid var(--hairline); padding-top: var(--sp-3); margin-top: var(--sp-3); }
  .bento, .works { grid-template-columns: 1fr; }
  .svc, .svc--lg, .svc--md, .svc--sm, .svc--wide { grid-column: span 1; }
  .work, .work--feat, .work--wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .adv { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .mats { grid-template-columns: repeat(2, 1fr); }
  .cta__form { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters__group + .filters__group {
    margin: 0; padding: var(--sp-3) 0 0;
    border-left: 0; border-top: 1px solid var(--hairline);
  }
  .s-head--row { grid-template-columns: 1fr; }
}

/* ============================================================
 * MATERIALS / BRANDS SHOWCASE — index.html, service pages
 * ============================================================ */
.brands {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  overflow: hidden;
  margin-top: var(--sp-6);
}
.brand-card {
  background: var(--surface-1);
  padding: var(--sp-5) var(--sp-4);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--sp-3);
  text-align: left;
  transition: background 220ms var(--ease);
}
.brand-card:hover { background: var(--surface-2); }
.brand-card__mark {
  display: grid; place-items: start;
  height: 44px;
  align-items: center;
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
  color: var(--ink-soft);
  display: flex;
  gap: 0.45rem;
  align-items: center;
  transition: color 220ms var(--ease);
}
.brand-card:hover .brand-card__mark { color: var(--ink); }
.brand-card__mark::before {
  content: '';
  display: block;
  width: 14px; height: 14px;
  background: var(--accent);
}
.brand-card[data-mark="rockwool"] .brand-card__mark::before { border-radius: 50%; }
.brand-card[data-mark="caparol"] .brand-card__mark { font-style: italic; }
.brand-card[data-mark="technonikol"] .brand-card__mark::before {
  background: transparent;
  border-bottom: 14px solid var(--accent);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  width: 0; height: 0;
}
.brand-card[data-mark="baumit"] .brand-card__mark::before { transform: rotate(45deg); }
.brand-card[data-mark="knauf"] .brand-card__mark::before {
  background: var(--ink-soft);
}
.brand-card:hover[data-mark="knauf"] .brand-card__mark::before { background: var(--ink); }
.brand-card__mark--text {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}
.brand-card__name {
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.brand-card__role {
  font-size: 0.78125rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.brand-card__use {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.brand-card__tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.625rem;
  background: oklch(0 0 0 / 0.4);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  width: fit-content;
}
.brand-card__tag::before {
  content: ''; width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%;
}
@media (max-width: 1100px) {
  .brands { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .brands { grid-template-columns: repeat(2, 1fr); }
  .brand-card { padding: var(--sp-4) var(--sp-3); }
  .brand-card__mark { height: 44px; }
  .brand-card__mark svg { height: 28px; }
}

/* ============================================================
 * COMPARISON TABLE — Bastion vs typical contractor
 * ============================================================ */
.cmp {
  margin-top: var(--sp-6);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  overflow: hidden;
}
.cmp__col {
  display: flex; flex-direction: column;
}
.cmp__col + .cmp__col { border-left: 1px solid var(--hairline); }
.cmp__head {
  padding: var(--sp-5) var(--sp-4);
  border-bottom: 1px solid var(--hairline);
}
.cmp__head--ours {
  background: linear-gradient(135deg,
    oklch(0.62 0.17 65 / 0.18) 0%,
    oklch(0.62 0.17 65 / 0.04) 100%);
}
.cmp__head .eyebrow { display: block; margin-bottom: var(--sp-2); }
.cmp__head h3 {
  font-size: var(--t-xl);
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  letter-spacing: -0.02em;
}
.cmp__head--ours h3 { color: var(--ink); }
.cmp__head--theirs h3 { color: var(--ink-muted); }
.cmp__row {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-4);
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
  min-height: 64px;
}
.cmp__row:first-of-type { border-top: 0; }
.cmp__col--criteria .cmp__row {
  color: var(--ink-soft);
  font-weight: 500;
  background: var(--surface-1);
}
.cmp__col--ours .cmp__row {
  color: var(--ink);
  background: oklch(0.62 0.17 65 / 0.05);
}
.cmp__col--theirs .cmp__row { color: var(--ink-muted); }
.cmp__row::before {
  content: ''; flex: 0 0 auto;
  width: 20px; height: 20px; margin-top: 1px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.cmp__col--ours .cmp__row::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8c28' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>");
}
.cmp__col--theirs .cmp__row::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.2' stroke-linecap='round'><path d='M18 6L6 18M6 6l12 12'/></svg>");
}
.cmp__col--criteria .cmp__row::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='9'/><path d='M12 8v4M12 16h.01'/></svg>");
  opacity: 0.5;
}
@media (max-width: 760px) {
  .cmp {
    grid-template-columns: 1fr;
  }
  .cmp__col + .cmp__col {
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }
  .cmp__head { padding: var(--sp-4); }
  .cmp__col--criteria { display: none; }
  .cmp__col--ours .cmp__row, .cmp__col--theirs .cmp__row {
    padding: var(--sp-3) var(--sp-4);
    min-height: 0;
  }
  .cmp__col--ours .cmp__row::after,
  .cmp__col--theirs .cmp__row::after {
    content: attr(data-criteria);
    color: var(--ink-muted);
    font-size: 0.75rem;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}

/* ============================================================
 * FAQ accordion
 * ============================================================ */
.faq {
  margin-top: var(--sp-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  overflow: hidden;
}
.faq__col { display: flex; flex-direction: column; }
.faq__item {
  background: var(--surface-1);
  border-top: 1px solid var(--hairline);
}
.faq__item:first-child { border-top: 0; }
.faq__btn {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 200ms var(--ease);
}
.faq__btn:hover { background: var(--surface-2); }
.faq__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq__btn-icon {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 280ms var(--ease), border-color 280ms var(--ease);
}
.faq__btn-icon::before, .faq__btn-icon::after {
  content: '';
  position: absolute;
  background: var(--ink-soft);
  transition: transform 280ms var(--ease), background 280ms var(--ease);
}
.faq__btn-icon::before { width: 10px; height: 1.5px; }
.faq__btn-icon::after { width: 1.5px; height: 10px; }
.faq__btn-icon { position: relative; }
.faq__item[aria-expanded="true"] .faq__btn-icon {
  border-color: var(--accent);
  transform: rotate(45deg);
}
.faq__item[aria-expanded="true"] .faq__btn-icon::before,
.faq__item[aria-expanded="true"] .faq__btn-icon::after { background: var(--accent); }
.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease);
}
.faq__item[aria-expanded="true"] .faq__body { grid-template-rows: 1fr; }
.faq__body > div { overflow: hidden; }
.faq__answer {
  padding: 0 var(--sp-5) var(--sp-4);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.faq__answer strong { color: var(--ink); }
@media (max-width: 760px) {
  .faq { grid-template-columns: 1fr; }
  .faq__btn { padding: var(--sp-3) var(--sp-4); }
  .faq__answer { padding: 0 var(--sp-4) var(--sp-3); }
}

/* ============================================================
 * Trust strip — guarantee badges row (under hero or near CTA)
 * ============================================================ */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  overflow: hidden;
  margin-top: var(--sp-6);
}
.trust__item {
  background: var(--surface-1);
  padding: var(--sp-5) var(--sp-4);
  display: flex; gap: var(--sp-3);
  align-items: flex-start;
}
.trust__icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: oklch(0.62 0.17 65 / 0.12);
  border: 1px solid oklch(0.62 0.17 65 / 0.25);
  border-radius: 10px;
  color: var(--accent);
}
.trust__icon svg { width: 20px; height: 20px; }
.trust__title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: 0.2em;
  letter-spacing: -0.01em;
}
.trust__desc {
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}
@media (max-width: 1000px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .trust { grid-template-columns: 1fr; }
}

/* ============================================================
 * Floating contact bubble (WhatsApp / Telegram / Phone)
 * ============================================================ */
.fab {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 38;
  pointer-events: none;
}
.fab__main {
  pointer-events: auto;
}
.fab__option {
  pointer-events: none;
}
.fab.is-open .fab__option {
  pointer-events: auto;
}
.fab__main {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  border: 0;
  cursor: pointer;
  box-shadow:
    0 10px 30px -8px oklch(0.62 0.17 65 / 0.55),
    0 0 0 0 oklch(0.62 0.17 65 / 0.5);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
  position: relative;
}
.fab__main::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: fab-pulse 2.5s var(--ease) infinite;
}
@keyframes fab-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.fab__main:hover { transform: scale(1.06); }
.fab__main svg { width: 24px; height: 24px; transition: transform 280ms var(--ease); }
.fab.is-open .fab__main svg { transform: rotate(45deg); }
.fab__menu {
  position: absolute;
  bottom: calc(56px + var(--sp-3));
  right: 0;
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transform-origin: bottom right;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s linear 220ms;
  white-space: nowrap;
  max-width: calc(100vw - var(--sp-4) * 2);
}
.fab.is-open .fab__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s linear 0s;
}
.fab__option {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 0.625rem 0.875rem 0.625rem 0.625rem;
  background: oklch(0.118 0.004 240 / 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid oklch(1 0 0 / 0.10);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
  box-shadow: 0 8px 20px -8px oklch(0 0 0 / 0.55);
  max-width: calc(100vw - var(--sp-4) * 2);
  min-width: 0;
}
.fab__option > span:not(.fab__option-icon) {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.fab__option:hover { background: oklch(0.158 0.005 240 / 0.95); transform: translateX(-2px); }
.fab__option-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.fab__option-icon svg { width: 16px; height: 16px; }
.fab__option--whatsapp .fab__option-icon { background: #25D366; color: #fff; }
.fab__option--telegram .fab__option-icon { background: #2AABEE; color: #fff; }
.fab__option--phone    .fab__option-icon { background: var(--accent); color: var(--bg); }

@media (max-width: 720px) {
  .fab { bottom: 90px; right: var(--sp-3); }
  .fab__main { width: 48px; height: 48px; }
  .fab__menu { max-width: calc(100vw - var(--sp-3) * 2); }
  .fab__option {
    max-width: calc(100vw - var(--sp-3) * 2);
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  }
  .fab__option-icon { width: 28px; height: 28px; }
}

/* Hide FAB on mobile when sticky mobile CTA is visible (avoid stacking) */
@media (max-width: 720px) {
  body:has(.mcta.is-visible) .fab {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms, visibility 0s linear 200ms;
  }
}

/* ============================================================
 * Hero polish — guarantee pill, accent improvements
 * ============================================================ */
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.75rem 0.4rem 0.5rem;
  background: oklch(0 0 0 / 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid oklch(1 0 0 / 0.10);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-3);
}
.hero__badge-icon {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: oklch(0.62 0.17 65 / 0.2);
  border-radius: 50%;
  color: var(--accent);
}
.hero__badge-icon svg { width: 12px; height: 12px; }
.hero__badge strong { color: var(--accent-bright); font-weight: 700; }

/* ============================================================
 * Бастион — UI отправки форм (toast + success overlay)
 * ============================================================ */

/* --- Toast (ошибка под формой) --- */
.bs-toast {
  display: block;
  margin-top: var(--sp-3, 12px);
  padding: 10px 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  border-radius: 8px;
  border: 1px solid;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s ease, transform .25s ease;
  font-weight: 500;
}
.bs-toast.is-in { opacity: 1; transform: translateY(0); }

.bs-toast--error {
  background: rgba(220, 90, 80, 0.08);
  border-color: rgba(220, 90, 80, 0.45);
  color: #f4a8a0;
}
.bs-toast--success {
  background: rgba(120, 200, 130, 0.08);
  border-color: rgba(120, 200, 130, 0.4);
  color: #a8dcb0;
}

/* Loading state кнопки */
.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}
.btn.is-loading::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 10px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: bs-spin 0.7s linear infinite;
}
@keyframes bs-spin { to { transform: rotate(360deg); } }

/* --- Success overlay --- */
.bs-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 9, 7, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .28s ease;
}
.bs-success-overlay.is-in { opacity: 1; }

.bs-success {
  width: min(440px, 100%);
  background: var(--surface, #221f1a);
  border: 1px solid var(--hairline-strong, #3a342c);
  border-radius: 16px;
  padding: 36px 32px 28px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  transform: scale(0.96) translateY(8px);
  transition: transform .32s cubic-bezier(.2,.7,.2,1);
}
.bs-success-overlay.is-in .bs-success { transform: scale(1) translateY(0); }

.bs-success__icon {
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(201, 160, 100, 0.14);
  color: var(--accent, #c9a064);
  animation: bs-pop .55s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes bs-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}

.bs-success__title {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--ink, #f1efea);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bs-success__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft, #cfc8be);
  margin: 0 0 22px;
}
.bs-success__close {
  min-width: 140px;
}

@media (max-width: 480px) {
  .bs-success { padding: 28px 22px 22px; }
  .bs-success__title { font-size: 1.25rem; }
}

/* ============================================================
   v3 — TICKER (бегущая строка под hero)
   ============================================================ */
.ticker {
  position: relative;
  border-block: 1px solid var(--hairline);
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    var(--bg-deep) 50%,
    var(--bg) 100%
  );
  overflow: hidden;
  padding-block: clamp(1.1rem, 0.7rem + 1.2vw, 1.6rem);
  margin-block: 0;
  isolation: isolate;
}
.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 14vw; max-width: 180px;
  pointer-events: none;
  z-index: 2;
}
.ticker::before { left: 0;  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%); }
.ticker::after  { right: 0; background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%); }
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
  will-change: transform;
}
.ticker__group {
  display: flex; align-items: center;
  gap: clamp(2.25rem, 1.5rem + 2vw, 3.75rem);
  padding-right: clamp(2.25rem, 1.5rem + 2vw, 3.75rem);
  flex-shrink: 0;
}
.ticker__item {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.125rem, 0.95rem + 0.7vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 0.55em;
}
.ticker__item::before {
  content: '◆';
  display: inline-block;
  color: var(--accent);
  font-size: 0.55em;
  transform: translateY(-0.1em);
  font-weight: 900;
}
.ticker__item--accent {
  color: var(--accent);
}
.ticker__item--accent::before {
  color: var(--ink-soft);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ============================================================
   v3 — "ЧТО МЫ ДЕЛАЕМ" — architectural cards block
   ============================================================ */
.do {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-4);
}
.do__card {
  position: relative;
  grid-column: span 6;
  display: flex; flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  overflow: hidden;
  transition:
    transform var(--d-norm) var(--ease),
    border-color var(--d-norm) var(--ease),
    background var(--d-norm) var(--ease);
  isolation: isolate;
}
.do__card:hover {
  border-color: var(--accent-line);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.do__card:hover .do__media img {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.05);
}
.do__card:hover .do__more::after { transform: translateX(4px); }

.do__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-deep);
}
.do__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter var(--d-norm) var(--ease);
  filter: saturate(0.88) contrast(1.02);
}
.do__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, oklch(0 0 0 / 0.35) 100%);
  pointer-events: none;
}

.do__num {
  position: absolute;
  top: var(--sp-3); left: var(--sp-4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  z-index: 2;
  background: oklch(0 0 0 / 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-1);
  border: 1px solid oklch(1 0 0 / 0.10);
}
.do__price {
  position: absolute;
  top: var(--sp-3); right: var(--sp-4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  z-index: 2;
  background: oklch(0 0 0 / 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-1);
  border: 1px solid oklch(1 0 0 / 0.10);
}
.do__body {
  display: flex; flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  flex: 1;
}
.do__title {
  font-size: var(--t-xl);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}
.do__desc {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
  flex: 1;
}
.do__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: var(--sp-2);
}
.do__chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r-1);
  text-transform: uppercase;
}
.do__more {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-top: var(--sp-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  border-top: 1px solid var(--hairline);
  padding-top: var(--sp-3);
}
.do__more::after {
  content: '→';
  color: var(--accent);
  transition: transform var(--d-fast) var(--ease);
}

/* feature card — full-width horizontal layout */
.do__card--feat {
  grid-column: span 12;
  flex-direction: row;
  min-height: 360px;
}
.do__card--feat .do__media { aspect-ratio: auto; flex: 1.15; }
.do__card--feat .do__body { flex: 1; padding: var(--sp-6); justify-content: center; }
.do__card--feat .do__title { font-size: var(--t-2xl); max-width: 22ch; }

@media (max-width: 900px) {
  .do__card { grid-column: span 12; }
}
@media (max-width: 700px) {
  .do { gap: var(--sp-3); }
  .do__card,
  .do__card--feat { grid-column: span 12; flex-direction: column; min-height: 0; }
  .do__card--feat .do__media { aspect-ratio: 16 / 10; flex: none; }
  .do__card--feat .do__body { padding: var(--sp-5); }
}

/* ============================================================
   v4 — REDESIGN 2026-05-02 — три блока главной страницы
   ============================================================ */

/* ---------- HERO v4 (typographic) ---------- */
.hero-x {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--hairline);
}
.hero-x__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: calc(100vh - var(--header-h));
}
.hero-x__text {
  padding: clamp(2rem, 4vw, 4.5rem) clamp(1rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 3;
}
.hero-x__photo {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--hairline);
}
.hero-x__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.95);
}
.hero-x__photo::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, transparent 25%),
    linear-gradient(0deg, rgba(0,0,0,0.5), transparent 60%);
  pointer-events: none;
}
.hero-x__photo-tag {
  position: absolute;
  bottom: 24px; right: 24px;
  z-index: 2;
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex; flex-direction: column; gap: 2px;
  color: var(--ink-muted);
}
.hero-x__photo-tag b { color: var(--accent); font-weight: 500; }

.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--sp-6);
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-strong);
  width: fit-content;
}
.hx-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-line);
  animation: hx-pulse 1.6s infinite;
}
@keyframes hx-pulse {
  0%,100% { box-shadow: 0 0 0 0 var(--accent-line); }
  50%     { box-shadow: 0 0 0 8px transparent; }
}

.hx-title {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: clamp(48px, 7vw, 124px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  margin-bottom: var(--sp-6);
  color: var(--ink);
}
.hx-row { display: block; }
.hx-italic {
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  padding-left: 1.4em;
  color: var(--ink-soft);
}
.hx-stroke {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
  font-weight: 800;
  padding-left: 0.6em;
}
.hx-accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
  position: relative;
}
.hx-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 4px;
  bottom: 0.05em;
  height: 0.08em;
  background: var(--accent);
  transform-origin: left;
  animation: hx-underline 1s 0.4s var(--ease) backwards;
}
@keyframes hx-underline {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hx-lead {
  max-width: 480px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: var(--sp-7);
}

.hx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  align-items: center;
  margin-bottom: var(--sp-7);
}
.hx-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  padding: 6px 0;
  transition: color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
.hx-link:hover { color: var(--accent); border-color: var(--accent); }
.hx-link svg { width: 14px; height: 14px; transition: transform 0.25s; }
.hx-link:hover svg { transform: translate(2px,-2px); }

.hx-trust {
  display: flex;
  border-top: 1px dashed var(--hairline-strong);
  padding-top: var(--sp-5);
  max-width: 540px;
}
.hx-trust-item {
  flex: 1;
  padding: 0 16px;
  border-right: 1px dashed var(--hairline-strong);
}
.hx-trust-item:first-child { padding-left: 0; }
.hx-trust-item:last-child  { border-right: none; }
.hx-trust-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.hx-trust-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-x__foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline-strong);
  background: var(--surface-1);
}
.hero-x__foot-cell {
  padding: 18px 24px;
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 4px;
}
.hero-x__foot-cell:last-child { border-right: none; }
.hero-x__foot-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero-x__foot-val {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.hero-x__foot-cell.scroll-hint .hero-x__foot-val { color: var(--accent); animation: hx-arrow 1.6s var(--ease) infinite; }
@keyframes hx-arrow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

@media (max-width: 1100px) {
  .hero-x__inner { grid-template-columns: 1fr; }
  .hero-x__photo { height: 56vh; min-height: 360px; border-left: none; border-top: 1px solid var(--hairline); }
  .hero-x__foot { grid-template-columns: repeat(2,1fr); }
  .hero-x__foot-cell:nth-child(2n) { border-right: none; }
  .hero-x__foot-cell:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
}
@media (max-width: 600px) {
  .hx-trust { flex-wrap: wrap; gap: 12px 0; }
  .hx-trust-item { flex: 0 0 50%; padding: 8px 12px; border-bottom: 1px dashed var(--hairline-strong); }
  .hx-trust-item:nth-child(2n) { border-right: none; }
  .hx-trust-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ---------- TICKER v4 ---------- */
.tk {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline-strong);
  background: var(--bg);
  height: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.tk-track {
  display: flex;
  white-space: nowrap;
  animation: tk-scroll 40s linear infinite;
  gap: 60px;
  padding-left: 60px;
}
.tk-item {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.tk-item .tk-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.tk-item--accent { color: var(--accent); }
.tk:hover .tk-track { animation-play-state: paused; }
@keyframes tk-scroll { to { transform: translateX(-50%); } }

/* ---------- SERVICES GRID v4 (что мы делаем) ---------- */
.svc-section {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 6vw, 6.25rem) var(--gutter);
  border-top: 1px solid var(--hairline);
}
.svc-head {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: end;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto var(--sp-7);
  padding-bottom: var(--sp-5);
  border-bottom: 1px dashed var(--hairline-strong);
}
.svc-head__idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.svc-head__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(36px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--ink);
}
.svc-head__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-muted);
  text-align: right;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline);
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--bg);
}
.svc-card {
  position: relative;
  padding: 32px 28px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-1);
  transition: background var(--d-norm) var(--ease);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.svc-card:nth-child(4n) { border-right: none; }
.svc-card:nth-last-child(-n+4) { border-bottom: none; }
.svc-card:hover { background: var(--surface-2); }
.svc-card:hover .svc-card__letter { color: var(--accent); transform: translateX(8px); }
.svc-card:hover .svc-card__foot   { color: var(--accent); }
.svc-card::before, .svc-card::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--accent);
  opacity: 0;
  transition: opacity var(--d-norm) var(--ease);
}
.svc-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.svc-card::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.svc-card:hover::before, .svc-card:hover::after { opacity: 1; }

.svc-card__head {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  margin-bottom: 60px;
  color: var(--ink-muted);
}
.svc-card__head-idx { color: var(--accent); }
.svc-card__letter {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--ink);
  transition: color var(--d-norm), transform var(--d-norm) var(--ease);
}
.svc-card__name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}
.svc-card__desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 28px;
  flex: 1;
}
.svc-card__foot {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-top: 1px dashed var(--hairline-strong);
  padding-top: 16px;
  margin-top: auto;
  transition: color var(--d-norm);
}

@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-card:nth-child(4n) { border-right: 1px solid var(--hairline); }
  .svc-card:nth-child(2n) { border-right: none; }
  .svc-card:nth-last-child(-n+4) { border-bottom: 1px solid var(--hairline); }
  .svc-card:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 600px) {
  .svc-head { grid-template-columns: 1fr; gap: 12px; }
  .svc-head__meta { text-align: left; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { border-right: none !important; min-height: 260px; padding: 24px 20px; }
  .svc-card__head { margin-bottom: 32px; }
  .svc-card__letter { font-size: 72px; }
}

/* ============================================================
   v4 — СЭНДВИЧ МАТЕРИАЛОВ (разрез СФТК с CSS-текстурами)
   ============================================================ */
.mat-stack {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  border: 1px solid var(--hairline);
  background: var(--bg);
  overflow: hidden;
}

/* левая шкала «внутри → снаружи» */
.mat-stack__axis {
  position: relative;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  background: var(--surface-1);
}
.mat-stack__axis-end {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.mat-stack__axis-line {
  flex: 1;
  width: 1px;
  background: var(--hairline-strong);
  margin: 12px 0;
  position: relative;
}
.mat-stack__axis-line::before, .mat-stack__axis-line::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 7px; height: 7px;
  border: 1px solid var(--accent);
  background: var(--bg);
  transform: translateX(-50%) rotate(45deg);
}
.mat-stack__axis-line::before { top: -3px; }
.mat-stack__axis-line::after  { bottom: -3px; }

/* стопка слоёв */
.mat-stack__layers {
  display: flex;
  flex-direction: column;
}

/* общий слой */
.mat-layer {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--bg);
  overflow: hidden;
  transition: transform var(--d-norm) var(--ease);
}
.mat-layer:last-child { border-bottom: none; }
.mat-layer:hover { z-index: 2; }
.mat-layer:hover .mat-layer__texture { filter: brightness(1.08) saturate(1.15); }

/* текстура — фон, занимает всю высоту слоя */
.mat-layer__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: filter var(--d-norm) var(--ease);
}
.mat-layer__texture::after {
  /* виньетка для читаемости текста справа */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,14,14,0.92) 0%, rgba(14,14,14,0.78) 18%, rgba(14,14,14,0.4) 38%, transparent 60%);
}

/* левая часть — номер + название слоя */
.mat-layer__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-right: 1px dashed var(--hairline-strong);
}
.mat-layer__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  padding: 4px 8px;
  border: 1px solid var(--accent-line);
  background: rgba(14,14,14,0.7);
  align-self: flex-start;
  flex-shrink: 0;
}
.mat-layer__name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 0.95;
}

/* правая часть — три блока спецификации */
.mat-layer__meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
}
.mat-layer__thick {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-feature-settings: 'tnum';
  white-space: nowrap;
}
.mat-layer__role {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.mat-layer__brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--hairline-strong);
  padding: 6px 10px;
  white-space: nowrap;
  text-align: right;
}

/* высоты слоёв — пропорция эмоциональная, не строгая */
.mat-layer--01 { min-height: 80px;  }
.mat-layer--02 { min-height: 56px;  }
.mat-layer--03 { min-height: 150px; }
.mat-layer--04 { min-height: 72px;  }
.mat-layer--05 { min-height: 50px;  }
.mat-layer--06 { min-height: 110px; }

/* ===== Текстуры материалов ===== */

/* 01 — газобетонные блоки: серая порода с расшивкой */
.mat-layer--01 .mat-layer__texture {
  background:
    repeating-linear-gradient(0deg,
      transparent 0 38px,
      rgba(0,0,0,0.45) 38px 40px),
    repeating-linear-gradient(90deg,
      transparent 0 78px,
      rgba(0,0,0,0.45) 78px 80px),
    radial-gradient(ellipse 60px 30px at 22% 50%, rgba(255,255,255,0.04), transparent),
    radial-gradient(ellipse 80px 40px at 70% 80%, rgba(0,0,0,0.18), transparent),
    linear-gradient(180deg, #918578 0%, #7e7264 100%);
}

/* 02 — клеевая смесь: гладкий цемент, мелкая зернистость */
.mat-layer--02 .mat-layer__texture {
  background:
    radial-gradient(circle at 15% 30%, rgba(0,0,0,0.22) 0 0.7px, transparent 1.4px),
    radial-gradient(circle at 75% 60%, rgba(0,0,0,0.18) 0 0.6px, transparent 1.2px),
    radial-gradient(circle at 45% 85%, rgba(255,255,255,0.06) 0 0.5px, transparent 1px),
    linear-gradient(180deg, #4e4c47 0%, #3e3c38 100%);
  background-size: 6px 6px, 11px 11px, 18px 18px, 100% 100%;
}

/* 03 — минеральная вата: жёлто-медные диагональные волокна */
.mat-layer--03 .mat-layer__texture {
  background:
    repeating-linear-gradient(118deg,
      rgba(212,162,76,0.95) 0 1.5px,
      rgba(160,114,40,0.95) 1.5px 3px,
      rgba(228,180,90,0.95) 3px 4.5px,
      rgba(140,98,28,0.95) 4.5px 6px),
    repeating-linear-gradient(118deg,
      transparent 0 22px,
      rgba(0,0,0,0.18) 22px 24px),
    linear-gradient(180deg, #c89438 0%, #a07424 100%);
}

/* 04 — армсетка: клетчатый узор + точки дюбелей */
.mat-layer--04 .mat-layer__texture {
  background:
    radial-gradient(circle at 22% 50%, var(--accent) 0 4px, transparent 5px),
    radial-gradient(circle at 56% 50%, var(--accent) 0 4px, transparent 5px),
    radial-gradient(circle at 88% 50%, var(--accent) 0 4px, transparent 5px),
    repeating-linear-gradient(0deg,
      transparent 0 9px,
      rgba(0,0,0,0.55) 9px 10px),
    repeating-linear-gradient(90deg,
      transparent 0 9px,
      rgba(0,0,0,0.55) 9px 10px),
    linear-gradient(180deg, #c4bba3 0%, #a89c80 100%);
}

/* 05 — кварц-грунт: гладкий тонированный слой */
.mat-layer--05 .mat-layer__texture {
  background:
    radial-gradient(circle at 25% 50%, rgba(0,0,0,0.18) 0 0.7px, transparent 1.4px),
    radial-gradient(circle at 65% 50%, rgba(255,255,255,0.08) 0 0.6px, transparent 1.2px),
    radial-gradient(circle at 45% 50%, rgba(0,0,0,0.14) 0 0.5px, transparent 1px),
    linear-gradient(180deg, #aa9070 0%, #998060 100%);
  background-size: 5px 5px, 7px 7px, 9px 9px, 100% 100%;
}

/* 06 — короед: бежевая штукатурка с царапинами */
.mat-layer--06 .mat-layer__texture {
  background:
    radial-gradient(ellipse 1px 50px at 18% 50%, rgba(60,38,18,0.6), transparent 80%),
    radial-gradient(ellipse 1px 70px at 38% 50%, rgba(60,38,18,0.5), transparent 80%),
    radial-gradient(ellipse 1px 60px at 58% 50%, rgba(60,38,18,0.55), transparent 80%),
    radial-gradient(ellipse 1px 80px at 78% 50%, rgba(60,38,18,0.45), transparent 80%),
    radial-gradient(ellipse 1px 55px at 92% 50%, rgba(60,38,18,0.5), transparent 80%),
    linear-gradient(180deg, #dccaa4 0%, #c8b48a 100%);
  background-size: 32px 100%, 48px 100%, 36px 100%, 56px 100%, 28px 100%, 100% 100%;
}

/* подвал — мелкая подпись о сертификации */
.mat-stack__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--hairline);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Адаптив */
@media (max-width: 900px) {
  .mat-stack { grid-template-columns: 40px 1fr; }
  .mat-layer { grid-template-columns: 220px 1fr; }
  .mat-layer__head { padding: 14px 16px; gap: 12px; }
  .mat-layer__name { font-size: 20px; }
  .mat-layer__meta { grid-template-columns: 1fr auto; padding: 14px 16px; gap: 10px 16px; }
  .mat-layer__thick { grid-column: 1 / -1; font-size: 18px; }
  .mat-layer__role { grid-column: 1; font-size: 12px; }
  .mat-layer__brand { grid-column: 2; font-size: 9px; padding: 4px 8px; }
}
@media (max-width: 640px) {
  .mat-stack { grid-template-columns: 1fr; }
  .mat-stack__axis { display: none; }
  .mat-layer { grid-template-columns: 1fr; }
  .mat-layer__head {
    border-right: none;
    border-bottom: 1px dashed var(--hairline-strong);
    padding: 12px 14px;
  }
  .mat-layer__meta {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px;
  }
  .mat-layer__thick { font-size: 18px; }
  .mat-layer__role { font-size: 12px; }
  .mat-layer__brand {
    white-space: normal;
    text-align: left;
    line-height: 1.45;
    font-size: 9px;
    padding: 6px 8px;
    justify-self: start;
  }
  .mat-layer__texture::after {
    background: linear-gradient(180deg, rgba(14,14,14,0.92) 0%, rgba(14,14,14,0.55) 50%, rgba(14,14,14,0.85) 100%);
  }
  .mat-layer--01 { min-height: 110px; }
  .mat-layer--02 { min-height: 95px; }
  .mat-layer--03 { min-height: 165px; }
  .mat-layer--04 { min-height: 110px; }
  .mat-layer--05 { min-height: 95px; }
  .mat-layer--06 { min-height: 140px; }
}

/* ============================================================
 * Mobile polish: targeted fixes for ≤480 / ≤720 viewports
 * ============================================================ */

/* Calculator footer: stack hint + CTA, full-width button, wrap long text */
@media (max-width: 720px) {
  .calc__foot {
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-4);
    gap: var(--sp-3);
  }
  .calc__foot .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    padding: 0.9rem 1rem;
  }
  .calc__hint { text-align: center; }
}

/* Project hero image: aspect-ratio + min-height combo was forcing width > viewport */
@media (max-width: 720px) {
  .proj-hero__photo {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .proj-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Defensive: nothing should overflow viewport horizontally on phones.
   Long inline content (very long names, unbreakable URLs) gets a soft break. */
@media (max-width: 480px) {
  html, body { overflow-x: hidden; }
}
