/* ============================================================
   СК «Ока» — бетонный завод, г. Бор · borbeton.ru
   Design tokens: wet concrete + safety amber + the Oka river
   ============================================================ */

:root {
  /* concrete neutrals */
  --graphite: #1A1D21;     /* cured concrete — dark sections, ink */
  --graphite-2: #24282D;   /* raised dark surface */
  --concrete: #ECE8E1;     /* warm stone — page background (not cream) */
  --concrete-2: #F5F2EC;   /* lighter card surface */
  --stone: #C9C3B8;        /* aggregate mid — borders, hairlines */
  --steel: #5E6368;        /* secondary text */
  --ink: #2A2D31;          /* body text on light */

  /* brand + accents */
  --oka: #15489B;          /* brand royal blue — river, trust */
  --oka-deep: #0E3066;     /* deep blue */
  --amber: #F6A000;        /* hi-vis action amber — CTA, energy */
  --amber-deep: #C97D00;   /* amber border/hover */
  --good: #2E7D52;         /* success / 24-7 */

  /* type */
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Golos Text", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Roboto Mono", ui-monospace, "Cascadia Code", monospace;

  /* metrics */
  --wrap: 1200px;
  --gap: clamp(16px, 4vw, 28px);
  --radius: 4px;          /* formwork-sharp, minimal rounding */
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(26,29,33,.06), 0 12px 32px rgba(26,29,33,.10);
  --shadow-sm: 0 1px 2px rgba(26,29,33,.08), 0 4px 14px rgba(26,29,33,.07);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.62;
  color: var(--ink);
  background: var(--concrete);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--oka); outline-offset: 2px; border-radius: 2px; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

/* formwork-seam divider between light sections */
.seam { border: none; height: 0; border-top: 2px solid var(--stone); position: relative; }
.seam::after {
  content: ""; position: absolute; left: 0; right: 0; top: 3px;
  border-top: 1px solid var(--stone); opacity: .5;
}

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--oka);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--amber); display: inline-block;
}
.eyebrow--light { color: var(--amber); }
.eyebrow--light::before { background: var(--amber); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -.01em; overflow-wrap: break-word; }
p, li, a, span, .lede, .eyebrow { overflow-wrap: break-word; }
h2.title {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .002em;
  margin-top: .5rem;
}
.lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--steel); max-width: 64ch; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 70ch; }
.section-head .lede { margin-top: 16px; }

/* mono number helper — the "honest measurement" signature */
.num { font-family: var(--mono); font-feature-settings: "tnum" 1; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--amber); --fg: var(--graphite);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  background: var(--bg); color: var(--fg);
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em; font-size: 1rem;
  padding: 15px 26px; min-height: 52px; border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s;
  text-align: center;
}
.btn:hover { background: var(--amber-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg: transparent; --fg: var(--graphite); border-color: var(--graphite); }
.btn--ghost:hover { background: var(--graphite); color: #fff; }
.btn--on-dark.btn--ghost { --fg: #fff; border-color: rgba(255,255,255,.5); }
.btn--on-dark.btn--ghost:hover { background: #fff; color: var(--graphite); border-color: #fff; }
.btn--blue { --bg: var(--oka); --fg: #fff; }
.btn--blue:hover { background: var(--oka-deep); }
.btn--block { width: 100%; }
.btn svg { width: 1.15em; height: 1.15em; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--graphite); color: var(--concrete);
  font-family: var(--mono); font-size: .76rem; letter-spacing: .03em;
}
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 38px; flex-wrap: wrap; }
.topbar__meta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar__meta span { display: inline-flex; align-items: center; gap: .5em; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(46,125,82,.25); flex: none; }
.topbar a { color: var(--amber); font-weight: 500; }
.topbar .hide-sm { }

/* ---------- header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(236,232,225,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--stone);
}
.header__row { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark {
  width: 42px; height: 42px; flex: none; border-radius: var(--radius);
  background: var(--oka); color: #fff; display: grid; place-items: center;
}
.brand__mark svg { width: 26px; height: 26px; }
.brand__name { display: block; font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1.05; font-size: 1.18rem; letter-spacing: .01em; white-space: nowrap; }
.brand__name b { color: var(--oka); }
.brand__sub { display: block; margin-top: 3px; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; color: var(--steel); text-transform: uppercase; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 13px; border-radius: var(--radius); font-weight: 500; font-size: .96rem;
  color: var(--ink); transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(21,72,155,.08); color: var(--oka); }
.nav a.is-cta { color: var(--oka); font-weight: 600; }

.header__phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.header__phone .num { font-family: var(--display); font-weight: 700; font-size: 1.18rem; letter-spacing: .01em; white-space: nowrap; }
.header__phone small { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; color: var(--steel); text-transform: uppercase; }

.burger { display: none; width: 46px; height: 46px; border-radius: var(--radius); border: 1px solid var(--stone); }
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--graphite); margin-inline: auto; position: relative; transition: transform .25s var(--ease), opacity .2s;
}
.burger span::before { position: absolute; top: -6px; left: 0; }
.burger span::after { position: absolute; top: 6px; left: 0; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.drawer { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--graphite); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media picture, .segments__bg picture { display: contents; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(20,23,27,.95) 0%, rgba(20,23,27,.86) 32%, rgba(20,23,27,.45) 58%, rgba(20,23,27,.15) 100%),
    linear-gradient(0deg, rgba(20,23,27,.6) 0%, rgba(20,23,27,0) 30%);
}
.hero__inner { position: relative; z-index: 2; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: center; }

.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.05rem);
  text-transform: uppercase; font-weight: 700; letter-spacing: -.005em;
  margin: 18px 0 0;
}
.hero h1 .hl { color: var(--amber); }
.hero__sub { margin-top: 20px; font-size: clamp(1.04rem, 1.7vw, 1.24rem); color: rgba(255,255,255,.84); max-width: 54ch; }
.hero__sub b { color: #fff; font-weight: 600; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .02em;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff;
  backdrop-filter: blur(2px);
}
.chip svg { width: 16px; height: 16px; color: var(--amber); flex: none; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }
.hero__callnote { font-family: var(--mono); font-size: .8rem; color: rgba(255,255,255,.7); display: inline-flex; align-items: center; gap: .5em; }
.hero__callnote .dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(246,160,0,.25); }

/* honest-cubes seal — the signature element */
.seal {
  justify-self: end; align-self: center;
  width: min(310px, 80vw); aspect-ratio: 1; position: relative;
  display: grid; place-items: center; text-align: center;
}
/* dark backdrop disc lifts the seal off the busy photo */
.seal::before {
  content: ""; position: absolute; inset: 4%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(13,15,18,.85), rgba(13,15,18,.66) 62%, rgba(13,15,18,0) 86%);
  filter: blur(3px);
}
.seal__cube { position: absolute; inset: 2%; z-index: 1; color: var(--amber); filter: drop-shadow(0 2px 10px rgba(13,15,18,.6)); }
.seal__inner { position: relative; z-index: 2; padding: 18px; }
.seal__big { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6.2vw, 3.8rem); line-height: .9; color: #fff; text-shadow: 0 2px 14px rgba(13,15,18,.7); }
.seal__big small { display: block; font-size: .9rem; color: var(--amber); font-family: var(--mono); font-weight: 700; letter-spacing: .1em; margin-top: 8px; text-transform: uppercase; text-shadow: 0 1px 8px rgba(13,15,18,.8); }
.seal__cap { font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin-top: 14px; text-shadow: 0 1px 8px rgba(13,15,18,.8); }

.hero__strip {
  position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(13,15,18,.45);
}
.hero__strip ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__strip li { padding: 16px 18px; border-left: 1px solid rgba(255,255,255,.1); }
.hero__strip li:first-child { border-left: none; }
.hero__strip .num { color: var(--amber); font-weight: 700; font-size: 1.45rem; font-family: var(--display); }
.hero__strip span { display: block; font-size: .82rem; color: rgba(255,255,255,.72); margin-top: 2px; }

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc { background: var(--graphite-2); color: #fff; }
.calc__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.calc__intro h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-transform: uppercase; color: #fff; }
.calc__intro p { color: rgba(255,255,255,.74); margin-top: 14px; max-width: 42ch; }
.calc__intro .alt { font-family: var(--mono); font-size: .86rem; margin-top: 22px; color: rgba(255,255,255,.6); }
.calc__intro .alt a { color: var(--amber); border-bottom: 1px solid rgba(246,160,0,.4); }

.calc__card { background: var(--concrete); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.calc__card.flash { animation: calcflash .9s var(--ease); }
@keyframes calcflash {
  0% { box-shadow: 0 0 0 0 rgba(246,160,0,.6), var(--shadow); }
  60% { box-shadow: 0 0 0 6px rgba(246,160,0,0), var(--shadow); }
  100% { box-shadow: var(--shadow); }
}
@media (prefers-reduced-motion: reduce) { .calc__card.flash { animation: none; } }
.field { margin-bottom: 18px; }
.field > label { display: block; font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
.field__opt { text-transform: none; letter-spacing: 0; opacity: .75; }
.control { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--stone); border-radius: var(--radius); background: #fff; font-size: 1.02rem; transition: border-color .15s, box-shadow .15s; }
.control:focus { outline: none; border-color: var(--oka); box-shadow: 0 0 0 3px rgba(21,72,155,.15); }
select.control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235E6368' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.calc__out { margin-top: 6px; border-top: 1px dashed var(--stone); padding-top: 18px; }
.calc__line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .96rem; }
.calc__line span:first-child { color: var(--steel); }
.calc__line .num { font-weight: 500; }
.calc__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 14px; border-top: 2px solid var(--graphite); }
.calc__total .lbl { font-family: var(--display); text-transform: uppercase; font-weight: 600; font-size: 1.05rem; }
.calc__total .num { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--oka); }
.calc__note { font-size: .8rem; color: var(--steel); margin-top: 12px; line-height: 1.5; }
.calc__card .btn { margin-top: 18px; }

/* ============================================================
   ADVANTAGES
   ============================================================ */
.adv__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--stone); border: 1px solid var(--stone); border-radius: var(--radius-lg); overflow: hidden; }
.adv__cell { background: var(--concrete-2); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: background .28s var(--ease), color .28s var(--ease); }
.adv__cell:not(.is-feature):hover { background: var(--concrete); }
.adv__ico { width: 46px; height: 46px; border-radius: var(--radius); background: var(--graphite); color: var(--amber); display: grid; place-items: center; flex: none; transition: background .28s var(--ease), color .28s var(--ease); }
.adv__ico svg { width: 26px; height: 26px; }
.adv__cell h3 { font-size: 1.22rem; text-transform: uppercase; font-weight: 600; letter-spacing: 0; transition: color .28s var(--ease); }
.adv__cell p { color: var(--steel); font-size: .96rem; transition: color .28s var(--ease); }
.adv__cell.is-feature { background: var(--oka); color: #fff; }
.adv__cell.is-feature h3 { color: #fff; }
.adv__cell.is-feature p { color: rgba(255,255,255,.85); }
.adv__cell.is-feature .adv__ico { background: var(--amber); color: var(--graphite); }
.tagstamp { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-deep); margin-top: auto; transition: color .28s var(--ease); }
.is-feature .tagstamp { color: rgba(255,255,255,.85); }

/* ============================================================
   GRADES (test-cube stamp cards)
   ============================================================ */
.grades-sec { position: relative; overflow: hidden; }
.grades-sec > .wrap { position: relative; z-index: 1; }
.grades-bg {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  height: 46%;
  background: url("../assets/beton-zavod-rbu-bor.webp") center 30% / cover no-repeat;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 88%, transparent 100%);
  pointer-events: none;
}
/* карточки приподнимаем над фактурой, чтобы читались */
.grades-sec .grade:not(.grade--cta) { box-shadow: 0 2px 4px rgba(26,29,33,.08), 0 14px 30px rgba(26,29,33,.1); }
.grades-sec .grade:not(.grade--cta):not(:hover) { border-color: transparent; }
.grades__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grade {
  position: relative; background: var(--concrete-2); border: 1px solid var(--stone);
  border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s var(--ease), box-shadow .18s, border-color .18s;
}
.grade:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--oka); }
.grade__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.grade__mark { font-family: var(--display); font-weight: 700; font-size: 1.85rem; line-height: 1; text-transform: uppercase; }
.grade__class { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--steel); background: var(--concrete); border: 1px solid var(--stone); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.grade__use { font-size: .92rem; color: var(--steel); flex: 1; }
.grade__price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--stone); }
.grade__price .from { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); }
.grade__price .val { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--oka); }
.grade__price .unit { font-family: var(--mono); font-size: .8rem; color: var(--steel); }
.grade__calc {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  width: 100%; margin-top: 2px;
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  font-size: .82rem; color: var(--oka);
  padding: 9px 12px; border: 1.5px solid var(--stone); border-radius: var(--radius);
  background: transparent; transition: background .15s, color .15s, border-color .15s;
}
.grade__calc:hover { background: var(--oka); color: #fff; border-color: var(--oka); }
.grade__calc svg { width: 15px; height: 15px; }
.grade--cta {
  background: var(--graphite); color: #fff; border-color: var(--graphite);
  align-items: flex-start; justify-content: center; gap: 14px;
}
.grade--cta:hover { border-color: var(--amber); }
.grade--cta h3 { font-size: 1.3rem; text-transform: uppercase; color: #fff; }
.grade--cta p { color: rgba(255,255,255,.72); font-size: .92rem; }

/* ============================================================
   HELPER BAND (помощь новичку)
   ============================================================ */
.band { background: var(--oka); color: #fff; }
.band--amber { background: var(--amber); color: var(--graphite); }
.band__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.band h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); text-transform: uppercase; }
.band--blue h2 { color: #fff; }
.band p { margin-top: 12px; max-width: 60ch; font-size: 1.06rem; }
.band--blue p { color: rgba(255,255,255,.85); }
.band--amber p { color: rgba(26,29,33,.78); }

/* ============================================================
   DELIVERY
   ============================================================ */
.deliv__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 52px); align-items: start; }
.zones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.zone { font-family: var(--mono); font-size: .88rem; padding: 9px 14px; background: var(--concrete-2); border: 1px solid var(--stone); border-radius: 999px; display: inline-flex; align-items: center; gap: .5em; }
.zone--home { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.zone svg { width: 15px; height: 15px; color: var(--oka); }
.zone--home svg { color: var(--amber); }
.zones-note { margin-top: 14px; font-size: .9rem; color: var(--steel); font-style: italic; }

.deliv__note { margin-top: 24px; display: grid; gap: 14px; }
.deliv__line { display: flex; gap: 14px; align-items: flex-start; }
.deliv__line svg { width: 22px; height: 22px; color: var(--oka); flex: none; margin-top: 2px; }
.deliv__line b { font-weight: 600; }
.deliv__line p { color: var(--steel); font-size: .94rem; }

.pricecards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pricecard { background: var(--concrete-2); border: 1px solid var(--stone); border-radius: var(--radius); padding: 16px; }
.pricecard .km { font-family: var(--mono); font-size: .8rem; color: var(--steel); text-transform: uppercase; letter-spacing: .04em; }
.pricecard .rub { font-family: var(--display); font-weight: 700; font-size: 1.4rem; margin-top: 4px; }
.pricecard .rub small { font-size: .8rem; color: var(--steel); font-family: var(--mono); font-weight: 400; }

/* ============================================================
   PUMP RENTAL (аренда автобетононасоса)
   ============================================================ */
.pump-sec { position: relative; overflow: hidden; }
.pump-sec > .wrap { position: relative; z-index: 1; }
.pump-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../assets/arenda-avtobetononasosa-sk-oka.webp") center 35% / cover no-repeat;
  opacity: .24;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 32%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 32%, #000 90%, transparent 100%);
  pointer-events: none;
}
.pump__prices { grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; }
.pump-sec .pricecard { background: var(--concrete-2); box-shadow: 0 1px 2px rgba(26,29,33,.05), 0 6px 18px rgba(26,29,33,.05); }
.pump-sec .lede { color: var(--ink); }
.pump__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px clamp(24px, 4vw, 48px); align-items: center; }
.pump__arms { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.pump__arm { font-family: var(--mono); font-size: .86rem; padding: 8px 13px; border: 1px solid var(--stone); border-radius: 999px; background: var(--concrete-2); display: inline-flex; align-items: center; gap: .45em; }
.pump__arm b { color: var(--oka); font-weight: 600; }
.pump__adv { display: grid; gap: 10px; margin: 20px 0 24px; }
.pump__adv li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; color: var(--ink); font-weight: 500; }
.pump__adv svg { width: 19px; height: 19px; color: var(--amber); flex: none; margin-top: 2px; }
.pump__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.pump__cond { margin-top: clamp(24px, 4vw, 40px); border: 1px solid var(--stone); border-radius: var(--radius-lg); background: var(--concrete-2); overflow: hidden; }
.pump__cond > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 1.1rem; }
.pump__cond > summary::-webkit-details-marker { display: none; }
.pump__cond > summary .ic { width: 28px; height: 28px; flex: none; border: 2px solid var(--graphite); border-radius: var(--radius); position: relative; transition: background .2s; }
.pump__cond > summary .ic::before, .pump__cond > summary .ic::after { content: ""; position: absolute; background: var(--graphite); transition: transform .25s var(--ease); }
.pump__cond > summary .ic::before { width: 12px; height: 2px; top: 12px; left: 6px; }
.pump__cond > summary .ic::after { width: 2px; height: 12px; top: 7px; left: 11px; }
.pump__cond[open] > summary .ic { background: var(--amber); border-color: var(--amber); }
.pump__cond[open] > summary .ic::after { transform: scaleY(0); }
.pump__cond__body { padding: 0 22px 22px; }
.pump__cond__body ul { display: grid; gap: 9px; }
.pump__cond__body li { position: relative; padding-left: 20px; font-size: .94rem; color: var(--steel); line-height: 1.5; }
.pump__cond__body li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--oka); border-radius: 2px; }

@media (max-width: 860px) {
  .pump__prices { grid-template-columns: repeat(2, 1fr); }
  .pump__foot { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pump__prices { grid-template-columns: 1fr; }
  .pump__foot .pump__cta .btn { flex: 1 1 auto; }
}

/* ============================================================
   PRICE TABLE (→ cards on mobile)
   ============================================================ */
.ptable-wrap { border: 1px solid var(--stone); border-radius: var(--radius-lg); overflow: hidden; background: var(--concrete-2); }
.ptable { width: 100%; border-collapse: collapse; }
.ptable caption { text-align: left; font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); padding: 16px 18px 0; }
.ptable th, .ptable td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--stone); }
.ptable thead th { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); font-weight: 500; background: var(--concrete); }
.ptable tbody tr:last-child td { border-bottom: none; }
.ptable tbody tr:hover { background: rgba(21,72,155,.04); }
.ptable .g-mark { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.ptable .g-class { font-family: var(--mono); font-size: .82rem; color: var(--steel); }
.ptable .g-price { font-family: var(--mono); font-weight: 500; }
.ptable .g-price b { color: var(--oka); font-size: 1.05rem; }
.ptable .g-link { color: var(--oka); font-weight: 600; font-size: .88rem; white-space: nowrap; }

.prices__cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.prices__aside { background: var(--graphite); color: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 30px); position: sticky; top: 90px; }
.prices__aside h3 { color: #fff; text-transform: uppercase; font-size: 1.3rem; }
.prices__aside ul { margin-top: 16px; display: grid; gap: 12px; }
.prices__aside li { display: flex; gap: 12px; font-size: .94rem; color: rgba(255,255,255,.82); }
.prices__aside li .num { color: var(--amber); font-weight: 500; flex: none; }
.prices__aside .btn { margin-top: 22px; }
.rastvor { margin-top: 14px; font-size: .9rem; color: var(--steel); font-family: var(--mono); line-height: 1.9; }
.rastvor b { color: var(--ink); }

/* ============================================================
   STEPS (real sequence — numbered legitimately)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; background: var(--concrete-2); border: 1px solid var(--stone); border-radius: var(--radius-lg); padding: 28px 24px 24px; }
.step__no { font-family: var(--mono); font-weight: 700; font-size: .9rem; color: var(--graphite); background: var(--amber); width: 38px; height: 38px; border-radius: var(--radius); display: grid; place-items: center; }
.step h3 { margin-top: 16px; font-size: 1.3rem; text-transform: uppercase; }
.step p { margin-top: 8px; color: var(--steel); font-size: .96rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; right: -8px; width: 16px; height: 2px; background: var(--stone); z-index: 2;
}

/* ============================================================
   SEGMENTS (застройщики / частники, переключение + фон)
   ============================================================ */
.segments { position: relative; background: var(--graphite); color: #fff; overflow: hidden; padding: clamp(48px, 7vw, 92px) 0; }
.segments__bg { position: absolute; inset: 0; z-index: 0; }
.segments__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; opacity: 0; transition: opacity .6s var(--ease); }
.segments__img.is-active { opacity: .42; }
.segments__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--graphite) 14%, rgba(26,29,33,.78) 52%, rgba(26,29,33,.42) 100%); }
.segments__inner { position: relative; z-index: 2; }

.segments__toggle {
  display: inline-flex; gap: 4px; padding: 5px; margin-bottom: clamp(24px, 3vw, 36px);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  backdrop-filter: blur(3px);
}
.seg-btn {
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  font-size: .92rem; color: rgba(255,255,255,.8); padding: 11px 22px; border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.seg-btn:hover { color: #fff; }
.seg-btn.is-active { background: var(--amber); color: var(--graphite); }

.segments__panels { position: relative; }
.seg-panel { max-width: 62ch; }
.seg-panel[hidden] { display: none; }
.seg-panel.is-active { animation: segIn .45s var(--ease); }
@keyframes segIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.seg-panel h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); text-transform: uppercase; margin-top: 14px; }
.seg-panel p { margin-top: 16px; color: rgba(255,255,255,.84); }
.seg-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 22px 0 28px; }
.seg-list li { font-family: var(--mono); font-size: .88rem; display: flex; align-items: center; gap: .6em; color: rgba(255,255,255,.92); }
.seg-list svg { width: 17px; height: 17px; color: var(--amber); flex: none; }
.seg-cta { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 560px) {
  .segments__toggle { display: flex; width: 100%; }
  .seg-btn { flex: 1; padding: 12px 10px; font-size: .82rem; }
  .seg-list { grid-template-columns: 1fr; }
  .seg-cta .btn { flex: 1 1 auto; }
}

/* ============================================================
   PARTNER (агентам и перекупам)
   ============================================================ */
.partner {
  background: var(--graphite); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 52px);
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px); align-items: center;
  position: relative; overflow: hidden;
}
.partner::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  border: 2px dashed rgba(246,160,0,.35); border-radius: 50%; pointer-events: none;
}
.partner h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-transform: uppercase; color: #fff; margin-top: 10px; }
.partner p { color: rgba(255,255,255,.78); margin-top: 14px; max-width: 56ch; }
.partner__hook {
  margin-top: 18px; display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: var(--radius); max-width: 56ch;
  background: rgba(246,160,0,.1); border-left: 3px solid var(--amber);
  color: #fff; font-size: 1rem;
}
.partner__hook b { color: var(--amber); }
.partner__hook svg { width: 22px; height: 22px; color: var(--amber); flex: none; margin-top: 1px; }
.partner__list { margin-top: 20px; display: grid; gap: 10px; }
.partner__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; color: rgba(255,255,255,.9); }
.partner__list svg { width: 20px; height: 20px; color: var(--amber); flex: none; margin-top: 2px; }
.partner__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.partner__side { position: relative; z-index: 2; text-align: center; }
.partner__badge {
  display: inline-grid; place-items: center; gap: 6px;
  border: 2px solid rgba(246,160,0,.5); border-radius: var(--radius-lg);
  padding: 28px 26px; background: rgba(246,160,0,.06);
}
.partner__badge .big { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--amber); }
.partner__badge .lbl { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); }

@media (max-width: 860px) {
  .partner { grid-template-columns: 1fr; }
  .partner__side { order: -1; justify-self: start; }
  .partner__cta .btn { flex: 1 1 auto; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq__grid { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, .58fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.faq__list { border-top: 2px solid var(--graphite); }
.faq__item { border-bottom: 1px solid var(--stone); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 20px 4px; font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.22rem); text-transform: uppercase; color: var(--graphite); }
.faq__q .ic { width: 30px; height: 30px; flex: none; border: 2px solid var(--graphite); border-radius: var(--radius); position: relative; transition: background .2s, border-color .2s; }
.faq__q .ic::before, .faq__q .ic::after { content: ""; position: absolute; background: var(--graphite); transition: transform .25s var(--ease), background .2s; }
.faq__q .ic::before { width: 12px; height: 2px; top: 13px; left: 7px; }
.faq__q .ic::after { width: 2px; height: 12px; top: 8px; left: 12px; }
.faq__item[open] .faq__q .ic { background: var(--amber); border-color: var(--amber); }
.faq__item[open] .faq__q .ic::after { transform: scaleY(0); }
.faq__a { padding: 0 4px 22px; color: var(--steel); max-width: 60ch; }
.faq__q::-webkit-details-marker { display: none; }
details > summary { list-style: none; cursor: pointer; }

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 52px); align-items: start; }
.contact-list { display: grid; gap: 4px; margin-top: 10px; }
.contact-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--stone); align-items: flex-start; }
.contact-row .ico { width: 44px; height: 44px; flex: none; border-radius: var(--radius); background: var(--concrete-2); border: 1px solid var(--stone); display: grid; place-items: center; color: var(--oka); }
.contact-row .ico svg { width: 22px; height: 22px; }
.contact-row .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.contact-row .v { font-size: 1.06rem; font-weight: 500; margin-top: 2px; }
.contact-row .v a { color: var(--ink); }
.contact-row .v a:hover { color: var(--oka); }
.contact-row .v.phone { font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.contact-row .v.phone a { color: var(--oka); }
.maproute { display: inline-flex; align-items: center; gap: .5em; margin-top: 10px; font-family: var(--mono); font-size: .86rem; color: var(--oka); border-bottom: 1px solid rgba(21,72,155,.3); }

.mapbox { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--stone); background: var(--concrete-2); }
.mapbox iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.map-placeholder { min-height: 360px; display: grid; place-items: center; text-align: center; padding: 28px; background:
  repeating-linear-gradient(45deg, var(--concrete-2), var(--concrete-2) 14px, var(--concrete) 14px, var(--concrete) 28px); }
.map-placeholder .pin { width: 54px; height: 54px; border-radius: 50% 50% 50% 0; background: var(--oka); transform: rotate(-45deg); display: grid; place-items: center; margin: 0 auto 16px; box-shadow: var(--shadow-sm); }
.map-placeholder .pin::after { content: ""; width: 18px; height: 18px; background: #fff; border-radius: 50%; transform: rotate(45deg); }
.map-placeholder p { font-family: var(--mono); font-size: .82rem; color: var(--steel); max-width: 34ch; }

/* lead form */
.lead { background: var(--graphite-2); color: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
.lead h3 { color: #fff; text-transform: uppercase; font-size: 1.4rem; }
.lead p { color: rgba(255,255,255,.7); margin-top: 8px; font-size: .94rem; }
.lead .field > label { color: rgba(255,255,255,.6); }
.lead .control { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.lead .control::placeholder { color: rgba(255,255,255,.4); }
.lead .control:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(246,160,0,.18); }
.lead__status { font-size: .9rem; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); line-height: 1.45; }
.lead__status.ok { background: rgba(46,125,82,.18); border: 1px solid rgba(46,125,82,.5); color: #b9f0cf; }
.lead__status.err { background: rgba(214,69,69,.16); border: 1px solid rgba(214,69,69,.5); color: #ffc9c9; }
.lead__status a { color: var(--amber); font-weight: 600; }
.lead__consent { font-size: .76rem; color: rgba(255,255,255,.5); margin-top: 12px; line-height: 1.5; }
.lead__consent a { color: rgba(255,255,255,.75); text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--graphite); color: rgba(255,255,255,.72); padding: clamp(48px, 6vw, 72px) 0 28px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 32px; }
.footer .brand__name { color: #fff; }
.footer .brand__name b { color: var(--amber); }
.footer__about { color: rgba(255,255,255,.62); font-size: .92rem; margin-top: 16px; max-width: 34ch; }
.footer h4 { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.footer__col a { display: block; padding: 5px 0; color: rgba(255,255,255,.72); font-size: .94rem; }
.footer__col a:hover { color: #fff; }
.footer__contact .num { color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.footer__contact p { font-size: .9rem; margin-top: 10px; color: rgba(255,255,255,.62); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.5); }
.footer__bottom .req { font-family: var(--mono); font-size: .76rem; }

/* ============================================================
   STICKY CALL BUTTON (pulsing)
   ============================================================ */
.callfab {
  position: fixed; z-index: 70; right: 22px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--amber); color: var(--graphite);
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  padding: 14px 20px 14px 16px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(26,29,33,.28);
}
.callfab__ring { position: relative; width: 30px; height: 30px; display: grid; place-items: center; }
.callfab__ring svg { width: 20px; height: 20px; position: relative; z-index: 2; }
.callfab__ring::before, .callfab__ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--graphite);
  animation: ring 2.2s var(--ease) infinite;
}
.callfab__ring::after { animation-delay: 1.1s; }
@keyframes ring { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(2.1); opacity: 0; } }
.callfab:hover { background: var(--amber-deep); }
.callfab__txt small { display: block; font-family: var(--mono); font-size: .6rem; font-weight: 400; letter-spacing: .06em; opacity: .8; }

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 85;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: 760px; margin-inline: auto;
  background: var(--graphite); color: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  padding: 14px 18px; box-shadow: 0 14px 40px rgba(13,15,18,.42);
}
.cookie[hidden] { display: none; }
.cookie__text { flex: 1 1 280px; font-size: .9rem; line-height: 1.45; }
.cookie__text a { color: var(--amber); text-decoration: underline; }
.cookie__btn { flex: none; min-height: 44px; padding: 11px 28px; }
body.cookie-open .callfab { bottom: 104px; }
@media (max-width: 560px) {
  /* на телефонах — вертикальная раскладка; сбрасываем flex-basis текста
     (иначе в column он становится высотой 280px и даёт пустой прогал) */
  .cookie { flex-direction: column; align-items: stretch; gap: 12px; right: 12px; left: 12px; }
  .cookie__text { flex: 0 1 auto; }
  .cookie__btn { width: 100%; }
  body.cookie-open .callfab { bottom: 132px; }
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grades__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .prices__aside { position: static; }
}

@media (max-width: 860px) {
  .nav, .header__phone { display: none; }
  .burger { display: grid; place-items: center; }
  .drawer { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .seal { justify-self: start; order: -1; width: min(220px, 60vw); margin-bottom: 8px; }
  .calc__grid { grid-template-columns: 1fr; }
  .adv__grid { grid-template-columns: 1fr 1fr; }
  .grades__grid { grid-template-columns: 1fr 1fr; }
  .band__grid { grid-template-columns: 1fr; }
  .band__grid .btn { justify-self: start; }
  .deliv__grid, .prices__cols, .faq__grid, .contacts__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .hero__strip ul { grid-template-columns: 1fr 1fr; }
  .hero__strip li:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero__strip li:nth-child(odd) { border-left: none; }
}

@media (max-width: 520px) {
  .topbar__meta span.hide-sm { display: none; }
  .adv__grid { grid-template-columns: 1fr; }
  .grades__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .pricecards { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .callfab__txt { display: none; }
  .callfab { padding: 14px; right: 16px; bottom: 16px; }
  .hero__strip ul { grid-template-columns: 1fr; }
  .hero__strip li { border-left: none; border-bottom: 1px solid rgba(255,255,255,.1); }
}

@media (max-width: 560px) {
  /* топбар компактнее — телефон помещается */
  .topbar { font-size: .72rem; }
  .topbar__row { gap: 10px; min-height: 36px; }

  /* таблица цен → карточки (без горизонтальной прокрутки) */
  .ptable thead { display: none; }
  .ptable tbody tr {
    display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto;
    align-items: center; column-gap: 14px; row-gap: 2px; padding: 14px 16px;
    border-bottom: 1px solid var(--stone);
  }
  .ptable tbody td { padding: 0; border: none; }
  .ptable .g-mark { grid-column: 1; grid-row: 1 / span 2; }
  .ptable .g-class { grid-column: 2; grid-row: 1; }
  .ptable .g-price { grid-column: 2; grid-row: 2; white-space: nowrap; }
  .ptable .g-link { grid-column: 3; grid-row: 1 / span 2; }
  .ptable caption { padding: 14px 16px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .callfab__ring::before, .callfab__ring::after { animation: none; }
}
