/* ==========================================================================
   ПрофПошив — технические ткани · Москва и МО
   v5 — editorial photo-forward (ink/green), portrait of build-studio's system
   ========================================================================== */

@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/onest-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/onest-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/onest-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/onest-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/onest-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/onest-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/onest-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/onest-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg:            #FFFFFF;
  --bg-alt:        #F4F6F9;
  --surface:       #FFFFFF;
  --surface-2:     #E9ECF2;
  --border:        #E5E7EB;
  --border-strong: #D7DBE3;
  --frame:         rgba(13, 13, 26, 0.15);

  --text:   #1A1A2E;
  --text-2: rgba(26, 26, 46, 0.7);
  --muted:  #6B7280;
  --subtle: #64748B;

  --ink:   #0D0D1A;
  --on-ink-text:          #F5F5F7;
  --on-ink-text-2:        rgba(245, 245, 247, 0.72);
  --on-ink-text-3:        rgba(245, 245, 247, 0.5);
  --on-ink-surface:       rgba(255, 255, 255, 0.06);
  --on-ink-surface-2:     rgba(255, 255, 255, 0.1);
  --on-ink-border:        rgba(255, 255, 255, 0.14);
  --on-ink-border-strong: rgba(255, 255, 255, 0.26);

  --accent:      #2D6A4F;
  --accent-to:   #1C4A36;
  --accent-hover: #1C4A36;
  --accent-soft: rgba(45, 106, 79, 0.10);
  --accent-line: rgba(45, 106, 79, 0.35);

  --btn-primary-bg: var(--accent);
  --btn-primary-fg: #FFFFFF;

  /* Cinzel/Onest (build-studio's actual fonts) can't be self-hosted here —
     the sandbox network can't reach fonts.gstatic.com. Approximated with a
     tracked-uppercase system serif for display, Inter for body. */
  --font-display: Georgia, 'Noto Serif', 'Times New Roman', serif;
  --font-body:    'Onest', system-ui, sans-serif;

  --container: 1220px;
  --radius:    20px;
  --radius-sm: 12px;
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-photo: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --header-h:  76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  /* .reveal-photo scales its own element (which also clips via overflow:hidden)
     to 1.15 before it's revealed — before scroll-in, that inflated box can
     poke past its container. Clip at the viewport instead of chasing every
     photo-card selector. */
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; appearance: none; -webkit-appearance: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
p { margin: 0; }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.tnum { font-variant-numeric: tabular-nums; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
}
/* On dark ink panels the default dark-green fails WCAG contrast (1.9:1) — use a lighter tint (7:1+). */
.page-banner .eyebrow, .cta-band .eyebrow, .footer .eyebrow { color: #4CAE7A; }

.section { padding: 100px 0; scroll-margin-top: var(--header-h); }
.jrow__item { scroll-margin-top: calc(var(--header-h) + 24px); }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head--compact { margin-bottom: 32px; }
.section-title { font-size: clamp(30px, 3.6vw, 44px); text-transform: uppercase; letter-spacing: -0.01em; }
.section-lead { margin-top: 18px; font-family: var(--font-body); font-size: 17px; color: var(--muted); max-width: 52ch; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-photo { opacity: 0; transform: scale(1.15); transition: opacity 1.2s var(--ease-photo), transform 1.2s var(--ease-photo); }
.reveal-photo.is-visible { opacity: 1; transform: scale(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-to)); color: var(--btn-primary-fg); box-shadow: 0 10px 24px -10px var(--accent-line); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px var(--accent-line); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-hover); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Ink panel cascade (header / hero / cta-band / footer) ---------- */
.header, .hero, .cta-band, .footer, .page-banner {
  --text:          var(--on-ink-text);
  --text-2:        var(--on-ink-text-2);
  --muted:         var(--on-ink-text-2);
  --subtle:        var(--on-ink-text-3);
  --surface:       var(--on-ink-surface);
  --surface-2:     var(--on-ink-surface-2);
  --border:        var(--on-ink-border);
  --border-strong: var(--on-ink-border-strong);
  background: var(--ink);
  color: var(--text);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.header.is-stuck { backdrop-filter: blur(14px); border-bottom-color: var(--on-ink-border); box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.6); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { display: grid; place-content: center; flex: none; width: 30px; height: 30px; color: var(--accent); }
.brand__mark svg { width: 30px; height: 30px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: 0.02em; }
.brand__tag { font-family: var(--font-body); font-size: 12px; color: var(--subtle); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-2); transition: color 0.2s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--text-2); }
.header__phone:hover { color: var(--text); }

.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.burger__box { position: relative; width: 20px; height: 14px; }
.burger__line, .burger__line::before, .burger__line::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), top 0.25s var(--ease);
}
.burger__line { top: 6px; }
.burger__line::before { content: ''; top: -6px; }
.burger__line::after { content: ''; top: 6px; }
.burger.is-open .burger__line { background: transparent; }
.burger.is-open .burger__line::before { top: 0; transform: rotate(45deg); background: var(--text); }
.burger.is-open .burger__line::after { top: 0; transform: rotate(-45deg); background: var(--text); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  background: var(--ink);
  color: var(--on-ink-text);
  border-top: 1px solid var(--on-ink-border);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu .nav__link { color: var(--on-ink-text-2); padding: 14px 4px; border-bottom: 1px solid var(--on-ink-border); font-size: 16px; }
.mobile-menu__phone { display: block; padding: 14px 4px; font-weight: 600; color: var(--on-ink-text); }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- Hero (framed) ---------- */
.hero { position: relative; height: 100dvh; min-height: 640px; display: flex; flex-direction: column; padding: 14px; }
.hero__frame {
  flex: 1;
  position: relative;
  border: 1px solid var(--on-ink-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: calc(var(--header-h) + 8px);
  background:
    radial-gradient(760px 480px at 82% 12%, rgba(45, 106, 79, 0.28), transparent 70%),
    linear-gradient(160deg, #12122a, #0a0a16);
}
.hero-slider { position: relative; height: 100%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease-photo), visibility 0s linear 0.9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.9s var(--ease-photo); z-index: 1; }
.hero-slide__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-slide__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 8s var(--ease-photo); }
.hero-slide.is-active .hero-slide__media img { transform: scale(1.08); }
.hero-slide__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 26, 0.88), rgba(13, 13, 26, 0.25) 46%, rgba(13, 13, 26, 0.05) 68%);
}
.hero-slide__content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; max-width: 560px; padding: 56px; }
.hero-slide__content .eyebrow { color: rgba(255, 255, 255, 0.78); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55); }
.hero-slide__title { font-size: clamp(28px, 3.4vw, 42px); text-transform: uppercase; margin-bottom: 16px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4); }
.hero-slide__text { font-family: var(--font-body); font-size: 16px; color: var(--on-ink-text-2); max-width: 42ch; margin-bottom: 28px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }

.hero__badge {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--on-ink-surface);
  border: 1px solid var(--on-ink-border);
  font-family: var(--font-body);
}
.hero__badge strong { font-size: 15px; }
.hero__badge span { font-size: 13px; color: var(--on-ink-text-3); }

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-content: center;
  border-radius: 999px;
  background: var(--on-ink-surface);
  border: 1px solid var(--on-ink-border);
  color: var(--on-ink-text);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero-slider__arrow:hover { background: var(--on-ink-surface-2); border-color: var(--on-ink-border-strong); }
.hero-slider__arrow svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hero-slider__arrow--prev { left: 24px; }
.hero-slider__arrow--next { right: 24px; }

.hero-slider__dots { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2; display: flex; justify-content: center; gap: 10px; }
.hero-slider__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on-ink-border-strong); transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.hero-slider__dot.is-active { background: var(--accent); transform: scale(1.3); }

/* photo placeholder (soft gradient slot, no hatching) */
.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ph-label { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--muted); }
.ph-tag { font-family: var(--font-body); font-size: 12px; color: var(--subtle); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Page banner (subpages) ---------- */
.page-banner { padding: calc(var(--header-h) + 64px) 0 64px; }
.page-banner .section-lead { color: var(--on-ink-text-2); }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--on-ink-text-3); }
.back-link:hover { color: var(--on-ink-text); }

.link-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--accent-hover); }
.link-more:hover { color: var(--accent); }

/* ---------- Stats ---------- */
.stats { padding: 56px 0; border-bottom: 1px solid var(--border); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 0 28px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__icon { display: grid; place-content: center; width: 36px; height: 36px; margin-bottom: 2px; border-radius: 10px; background: var(--accent-soft); }
.stat__icon svg { width: 18px; height: 18px; stroke: var(--accent-hover); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.stat__num { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 42px); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.stat__label { font-family: var(--font-body); font-size: 14px; color: var(--muted); }

/* ---------- Photo feature cards ---------- */
.products__grid, .adv__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.pcard--feature { min-height: 440px; padding: 40px; margin-bottom: 20px; }
.pcard--feature .pcard__title { font-size: 28px; }
.pcard--feature .pcard__text { max-width: 48ch; font-size: 16px; }

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.pcard__media { position: absolute; inset: 0; z-index: -2; transition: transform 0.7s var(--ease); }
.pcard:hover .pcard__media { transform: scale(1.08); }
.pcard::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(13, 13, 26, 0.92), rgba(13, 13, 26, 0.35) 60%, transparent);
}
.pcard__top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.pcard__no { font-family: var(--font-display); font-size: 14px; color: var(--accent); filter: brightness(1.6) saturate(1.4); }
.pcard__cat { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.pcard__title { font-size: 21px; text-transform: uppercase; margin-bottom: 10px; color: #fff; }
.pcard__text { font-family: var(--font-body); font-size: 14.5px; color: rgba(255, 255, 255, 0.78); }
.pcard__link { margin-top: 16px; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.16); font-family: var(--font-body); font-size: 12.5px; color: rgba(255, 255, 255, 0.85); }
.chips--wrap { margin-top: 0; }
.chip--lg { padding: 10px 18px; font-size: 14px; background: var(--surface-2); border-color: var(--border); color: var(--text-2); }

.adv { padding: 32px 0; border-top: 1px solid var(--border); }
.adv__grid { grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.adv__no { display: block; font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1; color: var(--accent); opacity: 0.25; }
.adv__title { font-size: 17px; text-transform: uppercase; margin: 4px 0 10px; }
.adv__text { font-family: var(--font-body); font-size: 15px; color: var(--muted); }

.clients__wall { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.client { font-family: var(--font-display); font-size: 19px; color: var(--text-2); letter-spacing: -0.01em; }
.clients__note { margin-top: 32px; font-family: var(--font-body); font-size: 14px; color: var(--subtle); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 6px; font-family: var(--font-body); font-size: 12px; font-weight: 700; margin-right: 8px; }
.tag--accent { background: var(--accent-soft); color: var(--accent-hover); }

.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.steps::before { content: ''; position: absolute; top: 20px; left: 0; right: 0; height: 2px; background: var(--border-strong); z-index: 0; }
.step { position: relative; padding-top: 60px; }
.step__no {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-to));
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 18px -8px var(--accent-line);
}
.step__title { font-size: 16px; text-transform: uppercase; margin-bottom: 8px; }
.step__text { font-family: var(--font-body); font-size: 14px; color: var(--muted); }
.step__media { aspect-ratio: 4 / 3; margin: 16px 0; border-radius: var(--radius-sm); }

.mats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mat { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.mat__media { aspect-ratio: 16 / 10; margin-bottom: 20px; }
.mat__title { font-size: 18px; text-transform: uppercase; margin-bottom: 10px; }
.mat__text { font-family: var(--font-body); font-size: 14px; color: var(--muted); }

/* ---------- Price ---------- */
.price__wrap { border-top: 1px solid var(--border); }
.price__row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.price__name { font-family: var(--font-body); font-size: 16px; font-weight: 600; display: flex; flex-direction: column; gap: 4px; }
.price__note { font-size: 13px; font-weight: 400; color: var(--subtle); }
.price__val { flex: none; font-family: var(--font-display); font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.from { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--subtle); margin-right: 4px; }
.price__disclaimer { margin-top: 24px; font-family: var(--font-body); font-size: 13px; color: var(--subtle); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media { aspect-ratio: 5 / 4; }
.feat-list { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.feat { display: flex; align-items: flex-start; gap: 14px; }
.feat__ico { flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 2px; background: var(--accent); }
.feat__text { font-family: var(--font-body); font-size: 15px; color: var(--muted); }
.feat__text strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; font-weight: 600; }

/* ---------- Asymmetric / jittered row (controlled chaos) ---------- */
.jrow { display: flex; flex-direction: column; gap: 64px; }
.jrow__item { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.jrow__item:nth-child(even) { direction: rtl; }
.jrow__item:nth-child(even) > * { direction: ltr; }
.jrow__item:nth-child(1) .jrow__media { transform: rotate(-1.2deg); }
.jrow__item:nth-child(2) .jrow__media { transform: rotate(0.8deg); width: 92%; margin-left: auto; }
.jrow__item:nth-child(3) .jrow__media { transform: rotate(-0.6deg); width: 96%; }
.jrow__item:nth-child(4) .jrow__media { transform: rotate(1deg); width: 90%; margin-left: auto; }
.jrow__item:nth-child(5) .jrow__media { transform: rotate(-0.9deg); width: 94%; }
.jrow__item:nth-child(6) .jrow__media { transform: rotate(0.7deg); width: 92%; margin-left: auto; }
.jrow__media { aspect-ratio: 4 / 3; display: flex; cursor: pointer; }
.jrow__media img { transition: transform 0.6s var(--ease); }
.jrow__media:hover img { transform: scale(1.06); }
.jrow__no { font-family: var(--font-display); font-size: 15px; color: var(--accent); }
.jrow__cat { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); margin-left: 10px; }
.jrow__title { font-size: 24px; text-transform: uppercase; margin: 14px 0 12px; }
.jrow__text { font-family: var(--font-body); font-size: 15px; color: var(--muted); max-width: 46ch; }

/* ---------- FAQ ---------- */
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; text-align: left; font-family: var(--font-body); font-size: 16px; font-weight: 600; }
.faq__icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; top: 50%; left: 50%; background: var(--muted); transform: translate(-50%, -50%); transition: transform 0.25s var(--ease); }
.faq__icon::before { width: 12px; height: 2px; }
.faq__icon::after { width: 2px; height: 12px; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq__a-inner { padding: 0 0 22px; font-family: var(--font-body); font-size: 15px; color: var(--muted); max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: 80px 0; }
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 12% 50%, rgba(45, 106, 79, 0.3), transparent 70%);
  pointer-events: none;
}
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band__title { font-size: clamp(24px, 2.6vw, 32px); text-transform: uppercase; }
.cta-band__text p { margin-top: 12px; font-family: var(--font-body); max-width: 46ch; color: var(--on-ink-text-2); }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contacts ---------- */
.contacts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ccard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.ccard:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(13, 13, 26, 0.25); border-color: var(--accent-line); }
.ccard__icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--surface-2); }
.ccard__icon img { width: 100%; height: 100%; object-fit: cover; }
.ccard__icon svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.75; }
.ccard__label { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle); }
.ccard__value { font-family: var(--font-display); font-size: 20px; }
.ccard__hint { font-family: var(--font-body); font-size: 14px; color: var(--muted); }
.ccard__arrow { margin-top: 8px; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--accent-hover); }

.contacts__meta { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 32px; border-top: 1px solid var(--border); }
.meta { display: flex; flex-direction: column; gap: 6px; }
.meta__label { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle); }
.meta__value { font-family: var(--font-body); font-size: 15px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 0; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.footer .brand__tag { color: var(--on-ink-text-3); }
.footer__desc { margin-top: 16px; font-family: var(--font-body); font-size: 14px; color: var(--on-ink-text-3); max-width: 38ch; }
.footer__col h3 { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--on-ink-text-3); margin-bottom: 16px; text-transform: none; }
.footer__links li { margin-bottom: 10px; font-family: var(--font-body); font-size: 14px; color: var(--on-ink-text-2); }
.footer__links a:hover { color: var(--on-ink-text); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid var(--on-ink-border); font-family: var(--font-body); font-size: 13px; color: var(--on-ink-text-3); }
.footer__bottom a:hover { color: var(--on-ink-text); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .hero-slide__content { padding: 32px; max-width: 460px; }
  .products__grid, .adv__grid, .mats, .contacts__grid, .contacts__meta { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .jrow__item, .jrow__item:nth-child(even) { grid-template-columns: 1fr; direction: ltr; gap: 24px; }
  .jrow__media, .jrow__item:nth-child(even) .jrow__media { width: 100% !important; margin: 0 !important; transform: none !important; }
  .jrow { gap: 48px; }

  /* Vertical timeline: side-by-side "01 above text" only works with room to
     breathe; below 1024px it collapses into 3-then-2 orphan rows, so switch
     to a real left-rail timeline instead of shrinking the grid further. */
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps::before { top: 4px; bottom: 4px; left: 20px; right: auto; width: 2px; height: auto; }
  .step { padding: 0 0 36px 64px; }
  .step:last-child { padding-bottom: 0; }
  .step__media { margin: 14px 0 0; }
}

@media (max-width: 860px) {
  .nav, .header__phone { display: none; }
  .burger { display: inline-flex; }
  .mobile-menu { display: flex; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split__media { aspect-ratio: 16 / 10; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { padding-top: 20px; border-top: 1px solid var(--border); }
  .hero { height: clamp(480px, 82vh, 620px); }
  .hero__frame { margin-top: calc(var(--header-h) + 8px); }
  .hero-slide__content { padding: 28px; max-width: 100%; }
  .hero-slide__title { font-size: clamp(24px, 5.6vw, 32px); }
  .hero-slider__arrow { display: none; }
  .hero__badge { top: 16px; right: 16px; padding: 12px 16px; }
  .pcard--feature { min-height: 380px; padding: 32px; }
  .pcard--feature .pcard__title { font-size: 24px; }
  .adv { padding: 28px 0; }
  .contacts__meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 56px 0; }
  .products__grid, .adv__grid, .mats, .contacts__grid { grid-template-columns: 1fr; }
  .contacts__meta { grid-template-columns: 1fr; gap: 20px; }
  .price__row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 56px 0; }
  .jrow { gap: 40px; }
  .pcard--feature { min-height: 320px; padding: 24px; }
  .pcard--feature .pcard__text { font-size: 15px; }
}

@media (max-width: 480px) {
  .header .container { padding: 0 16px; }
  /* Brand + "Связаться" button + burger no longer fit in one row below
     ~430px — drop the header CTA, the mobile menu already repeats it as a
     full-width button. */
  .header__actions .btn--sm { display: none; }
  .section-title { font-size: 26px; }
  .hero-slide__title { font-size: 22px; margin-bottom: 12px; }
  .hero-slide__text { font-size: 14px; margin-bottom: 20px; }
  .hero-slide__content { padding: 20px; padding-bottom: 90px; }
  .hero-slider__dots { bottom: 18px; }
  .hero__badge { top: 12px; right: 12px; padding: 8px 12px; gap: 0; }
  .hero__badge strong { font-size: 12.5px; }
  .hero__badge span { font-size: 10.5px; }
  .btn { padding: 12px 22px; font-size: 14px; }
  .step { padding-left: 52px; }
  .step__no { width: 34px; height: 34px; font-size: 13px; }
  .steps::before { left: 17px; }
}
