/* =========================================================
   ЛПБ — «Лаборатория пожарной безопасности»
   Дизайн-система v2: тёмный индустриальный — горячий графит,
   пламенные акценты, красный штамп-подпись бренда.
   ========================================================= */

:root {
  --bg: #14120E;
  --bg-2: #181510;
  --card: #1D1A14;
  --card-2: #221D16;
  --ink: #F2EEE6;
  --ink-2: #C4BCAD;
  --muted: #8F8778;
  --line: #2E2A22;
  --line-soft: #26221B;
  --red: #FF4B2E;
  --red-deep: #C81E10;
  --red-dark: #8F1409;
  --orange: #FF7A3D;
  --amber: #FFB08A;
  --max: #8B6BFF;
  --max-deep: #6E3AFF;

  --font-display: 'Russo One', 'Arial Black', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

  --radius: 6px;
  --header-h: 76px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -18px rgba(0, 0, 0, .7);
  --shadow-pop: 0 32px 80px -16px rgba(0, 0, 0, .8);
  --glow-ember: 0 0 44px -6px rgba(255, 75, 46, .35);
}

/* ---------- база ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.15; margin: 0; }

a { color: inherit; }

::selection { background: var(--red-deep); color: #fff; }

.mono { font-family: var(--font-mono); }

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.icon { width: 20px; height: 20px; flex: none; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--red); color: #170A08;
  box-shadow: var(--glow-ember);
}
.btn--primary:hover { background: var(--orange); color: #170A08; }

.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: #4A443A;
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(242, 238, 230, .06); }

.btn--dark {
  background: var(--bg); color: var(--ink);
  border-color: #3A352C;
}
.btn--dark:hover { border-color: var(--red); color: var(--amber); }

.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--full { width: 100%; }

.link-btn {
  background: none; border: none; padding: 0;
  font: inherit; color: var(--amber); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--red); }
.link-btn--light { color: var(--muted); }
.link-btn--light:hover { color: var(--ink); }

/* ---------- шапка ---------- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 18, 14, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; margin-right: auto;
}
.brand__logo { width: 40px; height: auto; }
.brand__name {
  font-family: var(--font-display);
  font-size: 13px; line-height: 1.25; letter-spacing: .02em;
  text-transform: uppercase; color: var(--ink);
}

.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 15.5px; font-weight: 500; text-decoration: none;
  color: var(--ink-2); padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--ink); border-color: var(--red); }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone {
  font-family: var(--font-mono); font-size: 16px; font-weight: 500;
  text-decoration: none; color: var(--ink);
}
.header__phone:hover { color: var(--amber); }

.burger {
  display: none; width: 44px; height: 44px;
  background: none; border: 1.5px solid var(--line); border-radius: var(--radius);
  cursor: pointer; position: relative;
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--ink); transition: transform .25s, top .25s;
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- герой: горячий лист ---------- */

.hero { padding: 56px 0 72px; }

.sheet {
  position: relative;
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
  background:
    radial-gradient(90% 120% at 88% -10%, rgba(255, 75, 46, .12), transparent 55%),
    radial-gradient(60% 90% at -10% 110%, rgba(255, 122, 61, .07), transparent 60%),
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
    var(--bg-2);
  background-size: auto, auto, 24px 24px, 24px 24px, auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: clamp(40px, 6vw, 84px) clamp(24px, 6vw, 84px) 20px;
}

.sheet__frame {
  position: absolute; inset: 10px;
  border: 1px solid #3B352B;
  pointer-events: none;
}
.sheet__frame::before {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid rgba(255, 255, 255, .07);
}

.hero__grid {
  display: grid; grid-template-columns: 1.55fr 1fr;
  gap: 48px; align-items: center;
  min-height: 360px;
}

.eyebrow {
  margin: 0 0 22px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em;
  color: #A69D8D;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 14px; flex: none;
  background:
    linear-gradient(var(--red), var(--red)) 0 0/14px 14px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 18px 6px/8px 8px no-repeat;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.04;
  display: flex; flex-direction: column; gap: 8px;
  color: var(--ink);
}
.hero__title--red {
  background: linear-gradient(100deg, #FF6A3D 10%, #FF3B1F 60%, #FF7A3D 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--red);
}

.hero__lead {
  margin: 26px 0 0;
  max-width: 56ch;
  font-size: clamp(17px, 2vw, 19.5px);
  color: var(--ink-2);
}

.hero__cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 34px;
}

.hero__chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 34px 0 0; padding: 0;
  font-size: 13px; color: #A69D8D;
}
.hero__chips li { display: flex; align-items: center; gap: 8px; }
.hero__chips li::before {
  content: ""; width: 7px; height: 7px; flex: none;
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 75, 46, .8);
}

/* штамп */
.hero__side { display: flex; justify-content: center; }

.stamp {
  width: clamp(200px, 20vw, 264px);
  transform: rotate(-11deg);
  opacity: 0;
  filter: drop-shadow(0 0 18px rgba(255, 75, 46, .35));
}
.stamp svg { width: 100%; height: auto; display: block; }
.stamp__ring { fill: none; stroke: var(--red); stroke-width: 3; }
.stamp__ring--thin { stroke-width: 1.5; }
.stamp__text {
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 500;
  letter-spacing: .22em; fill: var(--red);
}
.stamp__abbr {
  font-family: var(--font-display); font-size: 44px; fill: var(--red);
}
.stamp__year {
  font-family: var(--font-mono); font-size: 15px; letter-spacing: .3em; fill: var(--red);
}
.stamp--slam {
  animation: slam .5s cubic-bezier(.2, 1.4, .4, 1) forwards;
}
@keyframes slam {
  0% { opacity: 0; transform: rotate(-2deg) scale(1.7); }
  60% { opacity: 1; }
  100% { opacity: .95; transform: rotate(-11deg) scale(1); }
}

/* основная надпись */
.sheet__footer {
  display: flex; justify-content: flex-end;
  padding-top: 26px;
}
.titleblock {
  border-collapse: collapse;
  font-size: 11px; color: var(--muted);
  background: rgba(20, 18, 14, .6);
}
.titleblock__cell {
  border: 1px solid #4A443A;
  padding: 4px 10px; text-align: center; font-weight: 500;
  min-width: 52px;
}
.titleblock__cell--wide { text-align: left; min-width: 0; letter-spacing: .04em; }

/* ---------- секции ---------- */

.section { padding: 88px 0; }
.section--tight { padding: 40px 0 8px; }
.section--dark { background: #0F0D0A; }

.section__head { max-width: 720px; margin-bottom: 48px; }
.section__eyebrow {
  margin: 0 0 14px;
  font-size: 13px; letter-spacing: .14em; font-weight: 500;
  color: var(--red);
  display: flex; align-items: center; gap: 12px;
}
.section__eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--red); flex: none;
}
.section__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  text-transform: uppercase; letter-spacing: .01em;
  color: var(--ink);
}
.section__note { margin: 16px 0 0; color: var(--ink-2); }

/* ---------- преимущества ---------- */

.adv {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.adv__item {
  padding: 26px 24px 26px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.adv__item:last-child { border-right: none; }
.adv__idx {
  font-size: 12px; color: var(--red); letter-spacing: .1em;
  display: block; margin-bottom: 12px;
}
.adv__title { font-size: 19px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.adv__text { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- услуги ---------- */

.services {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  overflow: hidden;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(180deg, var(--red), var(--orange));
  transform: scaleY(0); transform-origin: top;
  transition: transform .25s ease;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--glow-ember);
  border-color: #3B342B;
  background: var(--card-2);
}
.service:hover::before { transform: scaleY(1); }

.service__idx {
  font-size: 12px; color: var(--muted); letter-spacing: .12em;
}
.service__icon {
  width: 42px; height: 42px; color: var(--red);
  margin-bottom: 2px;
  filter: drop-shadow(0 0 10px rgba(255, 75, 46, .45));
}
.service__title { font-size: 19.5px; font-weight: 600; color: var(--ink); }
.service__text { margin: 0; color: var(--ink-2); font-size: 15px; flex: 1; }

.service__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 6px; padding-top: 14px;
  border-top: 1px dashed #3B362D;
}
.service__price { font-size: 14.5px; font-weight: 500; color: var(--amber); }
.service__btn {
  font: inherit; font-size: 14.5px; font-weight: 600;
  background: none; border: none; padding: 4px 2px; cursor: pointer;
  color: var(--red);
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s, color .2s;
}
.service__btn:hover { border-color: var(--red); color: var(--amber); }

.service--cta {
  background: linear-gradient(150deg, #26150E, #1A0F0A);
  border-color: #4A2418;
  color: var(--ink);
  justify-content: center; gap: 20px;
}
.service--cta::before { background: var(--orange); }
.service--cta .service__cta-note {
  margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--ink-2);
}

/* ---------- процесс ---------- */

.process {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--line);
}
.process__step {
  padding: 8px 26px 8px 22px;
  border-right: 1px solid var(--line);
  position: relative;
}
.process__num {
  display: block; font-size: 12.5px; letter-spacing: .14em;
  color: var(--orange); margin-bottom: 14px;
}
.process__step::after {
  content: ""; position: absolute; right: -5px; top: 14px;
  width: 9px; height: 9px; background: var(--bg);
  border: 2px solid var(--orange); transform: rotate(45deg);
}
.process__step:last-child::after { display: none; }
.process__title { font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.process__text { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- о компании + проекты ---------- */

.about {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: 64px; align-items: start;
}
.about__text > p { margin: 0 0 16px; color: var(--ink-2); }
.about__text strong { color: var(--ink); }

.about__facts {
  margin: 30px 0 0;
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 12px 36px; justify-content: start;
}
.about__facts dt {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.about__facts dd { margin: 4px 0 0; font-size: 15.5px; font-weight: 500; color: var(--amber); }

.clients {
  border: 1px solid #4A2418;
  background: linear-gradient(160deg, #20130D, #17110B);
  padding: 34px 30px;
  box-shadow: 0 0 0 1px rgba(255, 75, 46, .08), 0 24px 60px -30px rgba(255, 75, 46, .25);
}
.clients__eyebrow {
  margin: 0 0 12px; font-size: 12.5px; letter-spacing: .14em;
  color: var(--red); font-weight: 500;
}
.clients__title { font-size: 20px; font-weight: 600; margin-bottom: 22px; color: var(--ink); }
.clients__list { list-style: none; margin: 0; padding: 0; }
.clients__group { margin-bottom: 20px; }
.clients__group:last-child { margin-bottom: 0; }
.clients__cap {
  margin: 0 0 4px;
  font-size: 11.5px; letter-spacing: .14em; font-weight: 500;
  color: var(--orange); text-transform: uppercase;
}
.clients__item {
  display: flex; gap: 12px; align-items: baseline;
  padding: 13px 0;
  border-top: 1px dashed #3B362D;
  font-size: 15.5px; color: var(--ink-2);
}
.clients__group:last-child .clients__item:last-child { border-bottom: 1px dashed #3B362D; }
.clients__mark { color: var(--red); font-size: 13px; flex: none; }
.clients__geo {
  margin-left: 8px; font-size: 11.5px; letter-spacing: .06em;
  color: var(--muted); white-space: nowrap;
}

/* ---------- CTA-полоса ---------- */

.cta {
  background:
    radial-gradient(120% 160% at 85% -20%, rgba(255, 122, 61, .45), transparent 55%),
    linear-gradient(120deg, #A61B0D, #E03616);
  color: #fff;
  padding: 76px 0;
}
.cta__inner {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 56px; align-items: center;
}
.cta__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  text-transform: uppercase;
  color: #fff;
}
.cta__note { margin: 18px 0 0; color: #FFE0D9; font-size: 17px; max-width: 46ch; }

.cta__form {
  background: rgba(20, 10, 8, .35);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  padding: 30px 28px;
  backdrop-filter: blur(6px);
}

/* ---------- формы ---------- */

.lead-form { display: flex; flex-direction: column; gap: 16px; }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field__label {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.field__req { color: var(--red); }
.field__input {
  font: inherit; font-size: 16px;
  padding: 13px 15px;
  border: 1.5px solid #3B362D;
  border-radius: var(--radius);
  background: #12100C;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field__input:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 75, 46, .18);
}
.field__input::placeholder { color: #6B655A; }
textarea.field__input { resize: vertical; min-height: 84px; }
.field__select {
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(135deg, var(--amber) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field__select:invalid, .field__select option { color: var(--ink); background: var(--card); }

.cta .field__label { color: #FFD2C7; }
.cta .field__input {
  background: rgba(255, 255, 255, .96);
  border-color: transparent;
  color: #1C1914;
}
.cta .field__input::placeholder { color: #8A8378; }
.cta .field__input:focus { border-color: #FFD2C7; box-shadow: 0 0 0 3px rgba(0, 0, 0, .18); }

.hp-field {
  position: absolute; left: -4000px; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

.lead-form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lead-form__policy { margin: 0; font-size: 13px; color: var(--muted); max-width: 40ch; }
.cta .lead-form__policy { color: #FFD2C7; }

.lead-form__status {
  margin: 0; font-size: 14.5px; font-weight: 500;
  min-height: 22px; display: none;
}
.lead-form__status.is-ok { display: block; color: #7ED98A; }
.lead-form__status.is-err { display: block; color: var(--red); }
.cta .lead-form__status.is-ok { color: #FFE0D9; }
.cta .lead-form__status.is-err { color: #fff; }
.lead-form.is-sent .field__input, .lead-form.is-sent button[type="submit"] { opacity: .55; pointer-events: none; }

/* ---------- контакты ---------- */

.contacts {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 48px; align-items: stretch;
}
.contacts__info { display: flex; flex-direction: column; gap: 26px; }
.contacts__cap {
  margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; font-weight: 500;
  color: var(--red); text-transform: uppercase;
}
.contacts__value { margin: 0; font-size: 17.5px; font-weight: 500; color: var(--ink); }
.contacts__value a { text-decoration: none; }
.contacts__value a:hover { color: var(--amber); }
.contacts__value--small { font-size: 14.5px; font-weight: 400; color: var(--ink-2); line-height: 1.7; }

.contacts__map {
  min-height: 420px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.contacts__map iframe {
  width: 100%; height: 100%; min-height: 420px; border: 0; display: block;
  filter: invert(0.92) hue-rotate(185deg) saturate(0.55) brightness(0.92) contrast(0.95);
}

/* ---------- подвал ---------- */

.footer { background: #0D0B08; color: #B4AC9E; padding: 44px 0; border-top: 1px solid var(--line); }
.footer__inner {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__logo { width: 38px; height: auto; filter: drop-shadow(0 0 10px rgba(255, 75, 46, .4)); }
.footer__name {
  font-family: var(--font-display); font-size: 12px; line-height: 1.3;
  text-transform: uppercase; color: var(--ink);
}
.footer__legal { font-size: 13.5px; line-height: 1.7; color: #8F8778; }
.footer__legal p { margin: 0 0 6px; }
.footer__legal a { color: #C4BCAD; text-decoration: none; }
.footer__legal a:hover { color: var(--amber); }
.footer__actions { margin-left: auto; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.footer__max { margin: 0; font-size: 13px; color: #8F8778; display: flex; align-items: center; gap: 8px; }
.footer__max-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 75, 46, .25);
}

/* ---------- плавающая кнопка MAX ---------- */

.max-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #170A08; border: none; border-radius: 999px;
  padding: 15px 22px;
  font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer;
  box-shadow: var(--glow-ember), 0 14px 34px -10px rgba(0, 0, 0, .8);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.max-fab:hover { transform: translateY(-2px); filter: brightness(1.07); }
.max-fab__spark { width: 20px; height: 20px; fill: currentColor; }

/* ---------- модалки ---------- */

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 7, 5, .72);
  backdrop-filter: blur(4px);
}

.modal__box {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--card);
  border: 1px solid #3B362D;
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 40px 38px 34px;
  animation: pop .28s cubic-bezier(.2, 1.2, .4, 1);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.modal__box--scroll { width: min(760px, 100%); }

.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: none; border: 1px solid #3B362D; border-radius: var(--radius);
  cursor: pointer; color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.modal__close:hover { background: var(--red); border-color: var(--red); color: #170A08; }

.modal__eyebrow {
  margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; font-weight: 500;
  color: var(--max); text-transform: uppercase;
}
.modal__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 28px; text-transform: uppercase;
  margin-bottom: 10px; color: var(--ink);
}
.modal__note { margin: 0 0 22px; color: var(--ink-2); font-size: 15.5px; }

.policy { font-size: 15px; color: var(--ink-2); }
.policy h3 { font-size: 16px; color: var(--ink); margin: 20px 0 6px; }
.policy p { margin: 0 0 10px; }

/* ---------- появление при скролле ---------- */

.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stamp--slam { animation: none; opacity: .95; }
  .modal__box { animation: none; }
}

/* ---------- адаптив ---------- */

@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .burger { display: block; }
  .header.open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .header.open .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__side { justify-content: flex-start; margin-top: 18px; }
  .adv { grid-template-columns: repeat(2, 1fr); }
  .adv__item:nth-child(2n) { border-right: none; }
  .process { grid-template-columns: repeat(2, 1fr); border-left: none; }
  .process__step { border-bottom: 1px solid var(--line); }
  .process__step::after { display: none; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .cta__inner { grid-template-columns: 1fr; gap: 36px; }
  .contacts { grid-template-columns: 1fr; }
  .titleblock { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .services { grid-template-columns: 1fr; }
  .adv { grid-template-columns: 1fr; }
  .adv__item { border-right: none; }
  .lead-form__row { grid-template-columns: 1fr; }
  .header__phone { display: none; }
  .header__actions .btn { display: none; }
  .header.open .header__actions .btn { display: none; }
  .max-fab { right: 16px; bottom: 16px; padding: 14px 18px; }
  .max-fab__label { display: none; }
  .max-fab__spark { width: 26px; height: 26px; }
  .sheet { padding: 40px 22px 16px; }
  .sheet__frame { inset: 6px; }
  .about__facts { grid-template-columns: 1fr; gap: 14px; }
  .process { grid-template-columns: 1fr; }
  .modal__box { padding: 30px 22px 26px; }
}

/* печать: только суть, на белом */
@media print {
  .header, .max-fab, .cta, .modal, .contacts__map { display: none !important; }
  body { background: #fff; color: #000; }
}

/* =========================================================
   Подстраницы услуг (/uslugi/...)
   ========================================================= */

.crumbs {
  padding: 22px 0 0;
  font-family: var(--font-mono); font-size: 12.5px;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; color: var(--muted); }
.crumbs li { display: flex; gap: 8px; align-items: center; }
.crumbs li + li::before { content: "→"; color: var(--red); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }

.page-hero {
  padding: 40px 0 64px;
}
.page-hero__grid {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: 48px; align-items: center;
}
.page-hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px);
  text-transform: uppercase; line-height: 1.08;
  margin: 14px 0 18px;
}
.page-hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, #FF6A3D 10%, #FF3B1F 60%, #FF7A3D 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero__lead { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 56ch; }
.page-hero__meta {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px;
}
.page-hero__price {
  font-family: var(--font-mono); font-size: 15px;
  border: 1px solid #4A2418; border-radius: var(--radius);
  padding: 10px 16px; color: var(--amber);
  background: linear-gradient(160deg, #20130D, #17110B);
}
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.page-hero__art {
  background:
    radial-gradient(80% 100% at 70% 0%, rgba(255, 75, 46, .1), transparent 60%),
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
    var(--bg-2);
  background-size: auto, 24px 24px, 24px 24px, auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.page-hero__art svg { width: 100%; height: auto; display: block; }

.svc-section { padding: 64px 0; }
.svc-section--alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.includes {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.includes li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; font-size: 15.5px; color: var(--ink-2);
}
.includes li::before {
  content: "★"; color: var(--red); font-size: 13px; line-height: 1.7; flex: none;
}
.includes strong { color: var(--ink); font-weight: 600; }

.norms {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px;
  font-family: var(--font-mono); font-size: 14px; color: var(--ink-2);
}
.norms li { padding: 10px 0 10px 22px; position: relative; border-bottom: 1px dashed #3B362D; }
.norms li::before {
  content: ""; position: absolute; left: 0; top: 19px;
  width: 8px; height: 8px; background: var(--red); transform: rotate(45deg);
}

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 22px;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; color: var(--ink);
  padding: 18px 40px 18px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 22px; color: var(--red);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--ink-2); font-size: 15.5px; }

.svc-cta {
  margin-top: 0;
}

/* перелинковка: услуги в подвале */
.footer__services {
  width: 100%;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding-top: 26px; margin-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.footer__services a { color: #8F8778; text-decoration: none; }
.footer__services a:hover { color: var(--amber); }

@media (max-width: 900px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .includes, .norms { grid-template-columns: 1fr; }
}

/* ссылки на карточках услуг */
.service__links { display: flex; align-items: center; gap: 14px; }
.service__btn--more { color: var(--muted); font-weight: 500; }
.service__btn--more:hover { color: var(--amber); border-color: transparent; }

/* прямая ссылка на MAX */
.footer__max a { color: inherit; text-decoration: none; }
.footer__max a:hover { color: var(--amber); }
.modal__alt { margin: -10px 0 18px; font-size: 13px; color: var(--muted); }
.modal__alt a { color: var(--amber); text-decoration: none; font-weight: 600; }
.modal__alt a:hover { color: var(--red); }
