/* =========================================================================
   Двери «box» / ООО «СпецПоставка»
   Design system: industrial-technical, brand green (#91C252) recalibrated.
   One accent hue. One radius (3px). One theme at a time (light / dark).
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --paper:        #F4F4F0;
  --paper-2:      #EAEAE4;
  --surface:      #FFFFFF;
  --surface-2:    #F0F0EA;
  --ink:          #161A16;
  --ink-2:        #4A5049;
  --ink-3:        #656C62;
  --line:         rgba(22, 26, 22, .14);
  --line-strong:  rgba(22, 26, 22, .28);
  --accent:       #43821F;
  --accent-text:  #38701A;   /* тот же тон, затемнён до AA на бумаге */
  --accent-hover: #366A19;
  --accent-ink:   #FFFFFF;
  --accent-soft:  rgba(67, 130, 31, .10);
  --brand:        #91C252;
  --plate:        #F2F2ED;   /* constant light plate for logos + renders */
  --plate-ink:    #3A403A;
  --shadow-sm:    0 1px 2px rgba(22, 26, 22, .06);
  --shadow-md:    0 12px 32px -14px rgba(22, 26, 22, .30);

  --r:            3px;
  --wrap:         1320px;
  --gut:          clamp(18px, 4.2vw, 56px);
  --sec:          clamp(64px, 8.5vw, 128px);
  --bleed:        calc(var(--gut) + max(0px, (100vw - var(--wrap)) / 2));

  --f-display:    "Onest", "Segoe UI", system-ui, sans-serif;
  --f-text:       "Golos Text", "Segoe UI", system-ui, sans-serif;
  --f-mono:       "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --ease:         cubic-bezier(.16, 1, .3, 1);
  color-scheme:   light;
}

/* Тема по умолчанию светлая независимо от системной.
   Тёмная включается только выбором пользователя: [data-theme="dark"]. */

:root[data-theme="dark"] {
  --paper:        #101310;
  --paper-2:      #161A15;
  --surface:      #181C17;
  --surface-2:    #1F241E;
  --ink:          #E9EBE5;
  --ink-2:        #A3AA9D;
  --ink-3:        #7B8279;
  --line:         rgba(233, 235, 229, .14);
  --line-strong:  rgba(233, 235, 229, .30);
  --accent:       #8CC44E;
  --accent-text:  #8CC44E;
  --accent-hover: #A0D65F;
  --accent-ink:   #10140E;
  --accent-soft:  rgba(140, 196, 78, .13);
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md:    0 12px 32px -14px rgba(0, 0, 0, .7);
  color-scheme:   dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.62;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }

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

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r);
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec); }
.section--tight { padding-block: clamp(44px, 5.5vw, 80px); }
.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;
}

/* ---------- 3. Type utilities ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 18px;
}
.h-display { font-size: clamp(2.05rem, 4.15vw, 3.55rem); line-height: 1.04; letter-spacing: -.035em; }
.h-section { font-size: clamp(1.75rem, 3.5vw, 2.9rem); }
.h-card    { font-size: clamp(1.1rem, 1.5vw, 1.35rem); letter-spacing: -.02em; }
.lead      { font-size: clamp(1.02rem, 1.35vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.muted     { color: var(--ink-2); }
.mono      { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

.section-head { max-width: 68ch; margin-bottom: clamp(34px, 4.5vw, 64px); }
.section-head p { margin-top: 18px; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  white-space: nowrap;
  font-family: var(--f-text);
  font-size: .95rem; font-weight: 600; line-height: 1;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .12s var(--ease);
}
.btn i { font-size: 1.15em; }
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: var(--accent-hover); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); background: var(--surface); }
.btn--ghost { background: transparent; color: var(--ink); padding-inline: 4px; }
.btn--ghost:hover { color: var(--accent-text); }
.btn:active { transform: scale(.985); }
.btn--wide { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem; color: var(--accent-text);
}
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- 5. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(2px)) { .header { background: var(--paper); } }

.header__inner {
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 38px);
  height: 72px;
}
.logo { flex: none; color: var(--ink); }
.logo svg, .logo img { height: 38px; width: auto; }

.descriptor {
  flex: none;
  margin: 0 0 0 2px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: .715rem;
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--ink-2);
}
@media (max-width: 1319px) { .descriptor { display: none; } }
.drawer .descriptor { display: block; border-left: 0; padding-left: 0; margin: 0; font-size: .78rem; }

.nav { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 26px); margin-inline-start: auto; }
.nav a {
  position: relative;
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
  padding-block: 6px;
  transition: color .2s var(--ease);
  white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }

.header__side { display: flex; align-items: center; gap: 12px; flex: none; }
.header__tel {
  font-family: var(--f-mono); font-size: .9rem; font-weight: 500;
  letter-spacing: -.01em; white-space: nowrap;
}
.header__tel:hover { color: var(--accent-text); }

.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--r);
  cursor: pointer; font-size: 1.1rem;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.burger { display: none; }

@media (max-width: 1180px) {
  .header__tel { display: none; }
}
@media (max-width: 1023px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header__side { margin-inline-start: auto; }
  .header__inner { height: 64px; }
}
.header__call { display: none; }
@media (max-width: 679px) {
  .header__side > .btn { display: none; }
  .header__call { display: grid; }
  .logo svg, .logo img { height: 32px; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  padding: 22px var(--gut) 40px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.drawer[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 42px; margin-bottom: 26px; }
.drawer nav { display: grid; gap: 2px; }
.drawer nav a {
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 600;
  letter-spacing: -.03em; padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.drawer__foot { margin-top: 32px; display: grid; gap: 14px; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 5vw, 76px); padding-bottom: clamp(48px, 6vw, 92px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(30px, 4vw, 48px); align-items: center; }

.hero__text { max-width: 40rem; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 33rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 540px) {
  .hero__cta { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .pdp__cta { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .err__links { display: grid; grid-template-columns: 1fr; gap: 10px; }
}

.hero__media {
  position: relative; margin: 0;
  aspect-ratio: 5 / 6;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: clamp(36px, 4vw, 72px);
  }
  .hero__media {
    aspect-ratio: 4 / 5;
    margin-top: calc(-1 * clamp(40px, 5vw, 76px) - 24px);
    margin-bottom: -40px;
    margin-right: calc(-1 * var(--bleed));
    border-radius: var(--r) 0 0 var(--r);
  }
}

/* staggered load-in */
.rise { opacity: 0; transform: translateY(18px); }
.is-ready .rise { animation: rise .8s var(--ease) forwards; }
.is-ready .rise:nth-child(2) { animation-delay: .07s; }
.is-ready .rise:nth-child(3) { animation-delay: .14s; }
.is-ready .rise:nth-child(4) { animation-delay: .21s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rise, .is-ready .rise { opacity: 1; transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .link-arrow i, .btn, .nav a::after { transition: none; }
}

/* ---------- 7. Logo walls ---------- */
.logowall__title {
  font-family: var(--f-display); font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 600; letter-spacing: -.02em; margin-bottom: 28px; color: var(--ink-2);
}
.logowall__grid {
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.logowall__grid li {
  list-style: none;
  display: grid; place-items: center;
  background: var(--plate);
  padding: 26px 20px;
  min-height: 104px;
  isolation: isolate;
}
.logowall__grid img {
  height: clamp(26px, 3vw, 38px); width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .78;
  mix-blend-mode: multiply;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.logowall__grid li:hover img { filter: none; opacity: 1; }
.logowall--sm .logowall__grid li { padding: 18px 16px; min-height: 84px; }
.logowall--sm .logowall__grid img { height: clamp(20px, 2.2vw, 28px); }

/* точное число колонок: делители количества логотипов, пустых ячеек не остаётся */
@media (min-width: 560px) {
  .logowall__grid[data-count="8"]  { grid-template-columns: repeat(4, 1fr); }
  .logowall__grid[data-count="12"] { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .logowall__grid[data-count="12"] { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1120px) {
  .logowall__grid[data-count="8"]  { grid-template-columns: repeat(8, 1fr); }
  .logowall__grid[data-count="12"] { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- 8. Bento: industries ---------- */
.bento { display: grid; grid-template-columns: 1fr; gap: 14px; }
.bento__cell {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 240px; padding: 26px;
  border-radius: var(--r); overflow: hidden;
  color: #F5F6F2; isolation: isolate;
}
.bento__cell img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease);
}
.bento__cell::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,14,10,.10) 0%, rgba(10,14,10,.62) 58%, rgba(10,14,10,.86) 100%);
}
.bento__cell:hover img { transform: scale(1.045); }
.bento__cell h3 { font-size: clamp(1.15rem, 1.8vw, 1.6rem); margin-bottom: 8px; }
.bento__cell p { font-size: .92rem; color: rgba(245,246,242,.82); max-width: 42ch; }
.bento__tag {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: auto;
}
@media (prefers-reduced-motion: reduce) { .bento__cell:hover img { transform: none; } }

@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); }
  .b1 { grid-column: 1 / 3; grid-row: 1 / 3; }
  .b2 { grid-column: 3 / 5; grid-row: 1 / 2; }
  .b3 { grid-column: 3 / 4; grid-row: 2 / 3; }
  .b4 { grid-column: 4 / 5; grid-row: 2 / 3; }
  .b5 { grid-column: 1 / 5; grid-row: 3 / 4; min-height: 220px; }
  .b1 { min-height: 434px; }
}

/* ---------- 9. Products ---------- */
.products { display: grid; gap: clamp(24px, 3vw, 40px); }
@media (min-width: 1000px) { .products { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); } }

.feature-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.feature-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.feature-card__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature-card:hover .feature-card__media img { transform: scale(1.04); }
.feature-card__body { padding: 24px; display: grid; gap: 12px; }
.feature-card__body p { font-size: .93rem; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .feature-card:hover .feature-card__media img { transform: none; } }

.groups { display: grid; gap: clamp(26px, 3vw, 40px); align-content: start; }
@media (min-width: 640px) { .groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .groups { grid-template-columns: repeat(3, 1fr); } }

.group h3 {
  font-family: var(--f-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2);
  padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.group ul { list-style: none; margin: 0; padding: 0; }
.group li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0;
  font-size: .96rem; font-weight: 500; color: var(--ink-2);
  transition: color .2s var(--ease), padding .25s var(--ease);
}
.group li a i { font-size: .95rem; opacity: 0; transform: translateX(-6px); transition: all .25s var(--ease); }
.group li a:hover { color: var(--accent-text); padding-left: 6px; }
.group li a:hover i { opacity: 1; transform: none; }

.wide-link {
  display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center;
  margin-top: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); overflow: hidden;
  transition: border-color .25s var(--ease);
}
.wide-link:hover { border-color: var(--accent); }
.wide-link__media { aspect-ratio: 16 / 9; background: var(--plate); }
.wide-link__media img { width: 100%; height: 100%; object-fit: cover; }
.wide-link__body { padding: 24px; display: grid; gap: 10px; }
@media (min-width: 760px) {
  .wide-link { grid-template-columns: 300px minmax(0, 1fr); gap: 0; }
  .wide-link__media { aspect-ratio: 4 / 3; height: 100%; }
  .wide-link__body { padding: 28px 32px; }
}

/* ---------- 10. Cases (horizontal scroll) ---------- */
.cases-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(268px, 300px);
  gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-right: var(--bleed); padding-bottom: 14px;
  margin-right: calc(-1 * var(--bleed));
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
.case {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); overflow: hidden;
}
.case__media { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case__qty {
  margin-top: auto; padding-top: 8px;
  font-family: var(--f-mono); font-size: 1.7rem; font-weight: 500;
  letter-spacing: -.03em; color: var(--accent-text); line-height: 1;
}
.case__qty span { font-size: .78rem; letter-spacing: .05em; color: var(--ink-3); margin-left: 6px; }
.case h3 { font-size: 1.02rem; line-height: 1.25; }
.case__meta { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.case p { font-size: .89rem; color: var(--ink-2); }

.geo {
  margin-top: clamp(28px, 3.4vw, 44px);
  padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center;
}
.geo__label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-right: 8px; }
.geo li { list-style: none; font-size: .88rem; color: var(--ink-2); }
.geo li::after { content: ","; color: var(--ink-3); }
.geo li:last-child::after { content: ""; }
.geo ul { display: contents; margin: 0; padding: 0; }

/* ---------- 11. Process ---------- */
.process { display: grid; gap: 0; }
@media (min-width: 900px) { .process { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; padding: 28px 22px 28px 0; border-top: 2px solid var(--line); }
.step:first-child { border-top-color: var(--accent); }
.step__icon { font-size: 1.5rem; color: var(--accent-text); margin-bottom: 14px; display: block; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .89rem; color: var(--ink-2); }
@media (max-width: 899px) { .step { padding-right: 0; } }

/* ---------- 12. Guarantees ---------- */
.grid-2 { display: grid; gap: clamp(28px, 3.4vw, 48px) clamp(30px, 4vw, 72px); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.point { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.point i { font-size: 1.35rem; color: var(--accent-text); line-height: 1.3; }
.point h3 { font-size: 1.05rem; margin-bottom: 7px; }
.point p { font-size: .92rem; color: var(--ink-2); }
.point strong { color: var(--ink); font-weight: 600; }

/* ---------- 13. News ---------- */
.news { display: grid; gap: 0; }
.news__item {
  display: grid; gap: 10px 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}
.news__item:first-child { border-top: 1px solid var(--line); }
.news__item:hover { padding-left: 10px; }
.news__date { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.news__item h3 { font-size: clamp(1.08rem, 1.5vw, 1.32rem); }
.news__item p { font-size: .93rem; color: var(--ink-2); max-width: 72ch; }
@media (min-width: 860px) {
  .news__item { grid-template-columns: 150px minmax(0, 1fr) auto; align-items: baseline; }
  .news__item .news__date { grid-row: 1 / 3; }
  .news__item .link-arrow { grid-column: 3; grid-row: 1 / 3; align-self: center; }
}

/* ---------- 14. Forms ---------- */
.contact { display: grid; gap: clamp(34px, 4vw, 64px); }
@media (min-width: 980px) { .contact { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); } }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font-family: var(--f-text); font-size: .98rem; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: 14px 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 108px; }
.field__help { font-size: .8rem; color: var(--ink-2); }
.field__error { font-size: .8rem; color: #C0392B; display: none; }
:root[data-theme="dark"] .field__error { color: #FF8A75; }
.field.has-error input, .field.has-error textarea { border-color: #C0392B; }
.field.has-error .field__error { display: block; }
@media (min-width: 620px) { .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; } }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin: 6px 0 22px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.consent span { font-size: .8rem; color: var(--ink-2); line-height: 1.5; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--accent-text); }

.form-note { margin-top: 16px; font-size: .82rem; color: var(--ink-2); }
.form-status { display: none; margin-top: 18px; padding: 16px 18px; border-radius: var(--r); font-size: .92rem; }
.form-status[data-state="ok"] { display: block; background: var(--accent-soft); color: var(--ink); border: 1px solid var(--accent); }

.btn[data-loading="true"] { pointer-events: none; opacity: .75; }
.btn[data-loading="true"] .btn__label::after {
  content: ""; display: inline-block; width: 1em; margin-left: .4em;
  animation: dots 1.1s steps(4, end) infinite;
}
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* contacts panel */
.contact-panel { display: grid; gap: 24px; align-content: start; }
.contact-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.contact-row i { font-size: 1.2rem; color: var(--accent-text); }
.contact-row dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--f-mono); color: var(--ink-3); margin-bottom: 5px; }
.contact-row dd { margin: 0; font-size: 1rem; }
.contact-row dd a:hover { color: var(--accent-text); }
.map { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-note { margin-top: 10px; font-size: .84rem; }
.map-note a { color: var(--accent-text); font-weight: 600; }

/* ---------- 15. CTA band ---------- */
.band {
  background: var(--surface); border-block: 1px solid var(--line);
}
.band__inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .band__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; } }
.band h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.band p { margin-top: 12px; color: var(--ink-2); max-width: 56ch; }

/* ---------- 16. Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px) 28px; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer h4 { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { font-size: .92rem; color: var(--ink-2); }
.footer a:hover { color: var(--accent-text); }
.footer__brand p { font-size: .9rem; color: var(--ink-2); margin-top: 16px; max-width: 34ch; }
.footer__legal {
  margin-top: clamp(36px, 4vw, 56px); padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  font-size: .8rem; color: var(--ink-2);
}
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__legal a { font-size: .8rem; }

/* ---------- 17. Cookie ---------- */
.cookie {
  position: fixed; left: var(--gut); right: var(--gut); bottom: 18px; z-index: 70;
  max-width: 780px; margin-inline: auto;
  display: none; gap: 18px; align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r); box-shadow: var(--shadow-md);
  padding: 18px 22px;
}
.cookie[data-show="true"] { display: flex; }
.cookie p { font-size: .84rem; color: var(--ink-2); flex: 1 1 320px; }
.cookie a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 18. Breadcrumbs + product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; color: var(--ink-2); padding-top: 26px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--accent-text); }
.crumbs i { font-size: .7rem; }

.pdp { display: grid; gap: clamp(30px, 4vw, 56px); padding-top: clamp(26px, 3vw, 44px); }
@media (min-width: 980px) { .pdp { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 4.5vw, 76px); align-items: start; } }

.gallery { display: grid; gap: 12px; }
.gallery__main { aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery__thumbs button {
  aspect-ratio: 1; padding: 0; overflow: hidden; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s var(--ease);
}
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery__thumbs button:hover { border-color: var(--line-strong); }

.pdp__side h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); margin-bottom: 20px; }
.spec-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.spec-list li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.spec-list li:first-child { border-top: 1px solid var(--line); }
.spec-list dt, .spec-list .k { color: var(--ink-2); }
.spec-list .v { font-family: var(--f-mono); font-weight: 500; text-align: right; }
.pdp__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.pdp__offer { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.pdp__offer li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .88rem; color: var(--ink-2); line-height: 1.55; }
.pdp__offer i { font-size: 1.1rem; color: var(--accent-text); line-height: 1.4; }
.pdp__offer strong { color: var(--ink); font-weight: 600; }

/* stat tiles */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }

/* Оферный пояс под hero: те же плитки, но без рамок, с волосяными разделителями */
.offers { display: grid; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 640px)  { .offers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .offers { grid-template-columns: repeat(4, 1fr); } }
.offer { padding: 26px clamp(18px, 2.2vw, 30px) 28px 0; }
@media (min-width: 640px) {
  .offer + .offer { padding-left: clamp(18px, 2.2vw, 30px); border-left: 1px solid var(--line); }
  .offers > .offer:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (min-width: 1000px) {
  .offers > .offer:nth-child(3) { border-left: 1px solid var(--line); padding-left: clamp(18px, 2.2vw, 30px); }
}
.offer .offer__v {
  font-family: var(--f-display); font-size: clamp(1.35rem, 2.1vw, 1.75rem); font-weight: 700;
  letter-spacing: -.035em; line-height: 1.12; color: var(--ink); margin-bottom: 12px;
}
.offer .offer__v em { font-style: normal; color: var(--accent-text); }
.offer p { font-size: .9rem; color: var(--ink-2); }

/* Блок «почему у производителя выгоднее» */
.direct { border-top: 1px solid var(--line-strong); }
.direct__row { display: grid; gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .direct__row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; } }
.direct__row h3 { font-size: clamp(1.1rem, 1.7vw, 1.45rem); }
.direct__row p { font-size: .96rem; color: var(--ink-2); max-width: 62ch; }
.direct__note { margin-top: 22px; font-size: .86rem; color: var(--ink-2); }
.stat__v { font-family: var(--f-mono); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -.04em; color: var(--accent-text); line-height: 1; margin-bottom: 12px; }
.stat__k { font-size: .9rem; color: var(--ink-2); }

/* construction cells */
.constr { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .constr { grid-template-columns: repeat(6, 1fr); } }
.constr__cell { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.constr__plate { background: var(--plate); display: grid; place-items: center; padding: 22px; isolation: isolate; }
.constr__plate img { max-height: 240px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.constr__body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.constr__body h3 { font-size: 1rem; }
.constr__body p { font-size: .89rem; color: var(--ink-2); }
@media (min-width: 760px) {
  .c1 { grid-column: 1 / 4; } .c2 { grid-column: 4 / 7; }
  .c3 { grid-column: 1 / 3; } .c4 { grid-column: 3 / 5; } .c5 { grid-column: 5 / 7; }
  .c1 .constr__plate img, .c2 .constr__plate img { max-height: 300px; }
  .c3 .constr__plate img, .c4 .constr__plate img, .c5 .constr__plate img { max-height: 190px; }
}

/* accordion */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0;
  font-family: var(--f-display); font-size: clamp(1rem, 1.4vw, 1.18rem); font-weight: 600; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--accent-text); font-size: 1.1rem; transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq__body { padding-bottom: 24px; font-size: .95rem; color: var(--ink-2); max-width: 72ch; }

/* finishes strip */
.finishes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.finish { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.finish img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.finish figcaption { padding: 14px 16px; font-size: .87rem; color: var(--ink-2); background: var(--surface); }

/* editorial split */
.editorial { display: grid; gap: clamp(28px, 3.6vw, 56px); align-items: center; }
@media (min-width: 900px) { .editorial { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.editorial__media { border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface-2); }
.editorial__media img { width: 100%; height: 100%; object-fit: cover; }
.editorial__text p + p { margin-top: 16px; }

/* 404 */
.err { min-height: 68vh; display: grid; place-items: center; text-align: center; }
.err__code { font-family: var(--f-mono); font-size: clamp(4rem, 14vw, 9rem); font-weight: 500; letter-spacing: -.06em; color: var(--accent-text); line-height: 1; }
.err__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
