/* ═══════════════════════════════════════════════════════════════════════
   Антикорофф — промосайт антикоррозийной обработки
   Дизайн-система: тёмная премиум-тема (графит + электрик-блю + янтарь)
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* палитра */
  --bg:        #0E1116;
  --bg-2:      #141A24;
  --bg-3:      #1A212C;
  --line:      #232C3A;
  --line-2:    #2C3848;
  --text:      #EAEFF6;
  --muted:     #9AA6B8;
  --muted-2:   #6E7A8C;
  --brand:     #2E8BFF;
  --brand-2:   #5AA6FF;
  --brand-ink: #0a1a33;
  --amber:     #FF7A1A;
  --amber-2:   #FFB061;
  --ok:        #34D399;

  /* эффекты */
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 24px 60px -20px rgba(0,0,0,.7);
  --glow:      0 0 0 1px rgba(46,139,255,.25), 0 18px 50px -16px rgba(46,139,255,.45);
  --ring:      0 0 0 1px var(--line);

  --maxw: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22,.61,.36,1);

  --font: "Manrope", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.accent { color: var(--brand); }
.grad {
  background: linear-gradient(100deg, var(--brand-2), var(--brand) 45%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* фоновый паттерн */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(46,139,255,.16), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(255,122,26,.08), transparent 55%),
    linear-gradient(180deg, #0c0f15, #0E1116);
}
.bg-grid::after {
  content:""; position:absolute; inset:0; opacity:.5;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.container--narrow { max-width: 820px; }

/* ─── Кнопки ──────────────────────────────────────────────────────────── */
.btn {
  --bg-btn: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; font-size: .98rem; letter-spacing: .2px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .25s, background .25s, color .2s;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff; box-shadow: var(--glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(46,139,255,.4), 0 22px 50px -14px rgba(46,139,255,.6); }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(255,255,255,.07); border-color: var(--brand); transform: translateY(-2px); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }

.tag {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .8px;
  text-transform: uppercase; color: var(--brand-2);
  padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(46,139,255,.07); margin-bottom: 18px;
}
.tag--amber { color: var(--amber-2); background: rgba(255,122,26,.08); border-color: rgba(255,122,26,.25); }

/* ─── Header ──────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(14,17,22,.55);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, padding .3s;
}
.header.scrolled { background: rgba(11,14,19,.9); border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.brand__mark { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(46,139,255,.4)); }
.brand__name { letter-spacing: .3px; }

.nav { display: flex; gap: 4px; }
.nav a {
  position: relative; padding: 9px 14px; border-radius: 10px; color: var(--muted);
  font-weight: 600; font-size: .95rem; white-space: nowrap; transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active { color: var(--text); background: rgba(255,255,255,.04); }

.header__cta { display: flex; align-items: center; gap: 14px; }
.phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .98rem; white-space: nowrap; transition: color .2s; }
.phone:hover { color: var(--brand-2); }
.phone__icon { font-size: .9em; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(255,255,255,.03); cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1){ top: 15px; } .burger span:nth-child(2){ top: 21px; } .burger span:nth-child(3){ top: 27px; }
.burger.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* мобильное меню */
.mobile-menu {
  position: fixed; inset: 72px 0 0; z-index: 40; padding: 28px var(--gut) 40px;
  background: rgba(11,14,19,.98); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 22px;
  transform: translateX(100%); transition: transform .35s var(--ease); visibility: hidden;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a { padding: 16px 4px; font-size: 1.3rem; font-weight: 700; border-bottom: 1px solid var(--line); }

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(60px, 11vw, 120px) 0 clamp(50px,8vw,90px); min-height: 88vh; display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 8%, rgba(14,17,22,.55) 45%, rgba(14,17,22,.25) 100%),
    linear-gradient(0deg, var(--bg) 4%, transparent 40%);
}
.hero__inner { max-width: 760px; position: relative; }
.hero__eyebrow { color: var(--brand-2); font-weight: 700; letter-spacing: .4px; margin-bottom: 18px; text-transform: uppercase; font-size: .85rem; }
.hero__title { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -.5px;
  font-size: clamp(2rem, 4.7vw, 3.5rem); margin-bottom: 22px; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: #c8d2e0; max-width: 620px; margin-bottom: 26px; }
.hero__lead b { color: var(--text); }
.hero__points { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 32px; }
.hero__points li { display: inline-flex; align-items: center; gap: 9px; color: #d4dcea; font-weight: 600; font-size: .98rem; }
.hero__points span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(52,211,153,.15); color: var(--ok); font-size: .8rem; font-weight: 800; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero__stats { display: grid; grid-template-columns: repeat(4, auto); gap: clamp(18px, 4vw, 48px); }
.stat b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1; color: #fff; }
.stat span { color: var(--muted); font-size: .85rem; }

.hero__decor { position: absolute; z-index: -1; pointer-events: none; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.hero__decor--shield { width: clamp(140px, 22vw, 300px); right: 4%; top: 16%; opacity: .92; }
.hero__decor--drop { width: clamp(80px, 11vw, 150px); right: 26%; bottom: 14%; opacity: .8; }
.float { animation: float 7s ease-in-out infinite; }
.float-slow { animation: float 9s ease-in-out infinite reverse; }
@keyframes float { 0%,100%{ transform: translateY(0) rotate(0); } 50%{ transform: translateY(-22px) rotate(3deg); } }

.hero__scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px;
  border: 2px solid var(--line-2); border-radius: 16px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--brand-2); border-radius: 2px; animation: scroll 1.8s infinite; }
@keyframes scroll { 0%{ opacity: 0; transform: translateY(0); } 30%{ opacity: 1; } 100%{ opacity: 0; transform: translateY(14px); } }

/* ─── Marquee ─────────────────────────────────────────────────────────── */
.trust { border-block: 1px solid var(--line); background: rgba(255,255,255,.015); overflow: hidden; }
.marquee { padding: 18px 0; }
.marquee__track { display: inline-flex; align-items: center; gap: 26px; white-space: nowrap; animation: marq 32s linear infinite; }
.marquee__track span { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: #cdd6e4; }
.marquee__track i { color: var(--brand); font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ─── Секции ──────────────────────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__head h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.4px; line-height: 1.1;
  font-size: clamp(1.7rem, 3.8vw, 2.8rem); }
.section__sub { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }

/* ─── Карточки услуг ──────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--bg-2), #11161f);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.card::before { content:""; position:absolute; inset:0; border-radius: inherit; padding:1px;
  background: linear-gradient(120deg, transparent, rgba(46,139,255,.5), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
.card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card__icon { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; margin-bottom: 18px;
  background: var(--bg-3); padding: 6px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ─── Проблема ────────────────────────────────────────────────────────── */
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.problem__media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.problem__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.problem__badge { position: absolute; left: 16px; bottom: 16px; background: rgba(255,122,26,.92); color: #2a1300;
  font-weight: 700; font-size: .85rem; padding: 8px 14px; border-radius: 999px; }
.problem__text h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.12; margin-bottom: 16px; }
.problem__text p { color: var(--muted); margin-bottom: 14px; }
.checklist { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; font-weight: 600; }
.checklist li::before { content:"✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(46,139,255,.16); color: var(--brand-2); font-size: .8rem; }

/* ─── Этапы ───────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: center;
  background: linear-gradient(180deg, var(--bg-2), #11161f); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.step:hover { border-color: var(--line-2); transform: translateY(-3px); }
.step:nth-child(even) { grid-template-columns: 1fr 320px; }
.step:nth-child(even) .step__media { order: 2; }
.step__media { align-self: stretch; }
.step__media img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.step__body { padding: 28px 28px 28px 4px; }
.step:nth-child(even) .step__body { padding-left: 28px; padding-right: 4px; }
.step__num { font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--brand);
  border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 10px; display: inline-block; margin-bottom: 12px; }
.step__body h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step__body p { color: var(--muted); }

/* ─── Материалы ───────────────────────────────────────────────────────── */
.materials__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mat { background: linear-gradient(180deg, var(--bg-2), #11161f); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.mat:hover { transform: translateY(-4px); border-color: var(--line-2); }
.mat__tag { font-size: .78rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--brand-2); margin-bottom: 12px; }
.mat h3 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin-bottom: 12px; }
.mat p { color: var(--muted); }
.mat--feature { min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.mat--feature::before { content:""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--mat-img); background-size: cover; background-position: center; opacity: .9;
  transition: transform .5s var(--ease); }
.mat--feature:hover::before { transform: scale(1.06); }
.mat--feature::after { content:""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,17,22,.1) 0%, rgba(14,17,22,.65) 55%, rgba(14,17,22,.96) 100%); }
.mat--feature > * { position: relative; z-index: 2; }
.mat--feature p { color: #d2dae6; }

/* ─── До / После ──────────────────────────────────────────────────────── */
.ba { position: relative; max-width: 980px; margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); user-select: none; aspect-ratio: 16/10; touch-action: pan-y; cursor: ew-resize; box-shadow: var(--shadow); }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__clip { clip-path: inset(0 0 0 50%); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%);
  background: rgba(255,255,255,.85); cursor: ew-resize; z-index: 3; }
.ba__line { position: absolute; inset: 0; box-shadow: 0 0 18px rgba(46,139,255,.7); }
.ba__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px;
  border-radius: 50%; background: linear-gradient(180deg, var(--brand-2), var(--brand)); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.ba__grip::before, .ba__grip::after { content:""; position: absolute; width: 0; height: 0; border-block: 6px solid transparent; }
.ba__grip::before { border-right: 8px solid #fff; left: 11px; }
.ba__grip::after { border-left: 8px solid #fff; right: 11px; }
.ba__label { position: absolute; top: 16px; z-index: 3; background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  color: #fff; font-weight: 700; font-size: .82rem; padding: 6px 14px; border-radius: 999px; }
.ba__label--before { left: 16px; }
.ba__label--after { right: 16px; color: var(--brand-2); }

/* ─── Преимущества ────────────────────────────────────────────────────── */
.adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adv__item { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.015); transition: transform .3s var(--ease), border-color .3s; }
.adv__item:hover { transform: translateY(-5px); border-color: var(--line-2); }
.adv__item img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 16px; }
.adv__item h3 { font-size: 1.12rem; margin-bottom: 8px; }
.adv__item p { color: var(--muted); font-size: .95rem; }

/* ─── Цена ────────────────────────────────────────────────────────────── */
.price__grid { display: grid; grid-template-columns: 1fr 420px; gap: clamp(28px, 5vw, 56px); align-items: center; }
.price__text h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.12; margin-bottom: 14px; }
.price__text p { color: var(--muted); }
.pricecard { background: linear-gradient(165deg, #16202e, #0f141c); border: 1px solid var(--line-2);
  border-radius: 22px; padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pricecard::before { content:""; position: absolute; top: -60%; right: -30%; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(46,139,255,.3), transparent 65%); }
.pricecard__top { display: flex; justify-content: space-between; align-items: center; position: relative; color: var(--muted); font-weight: 600; }
.pricecard__time { font-size: .85rem; background: var(--bg-3); padding: 5px 12px; border-radius: 999px; }
.pricecard__price { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3rem); margin: 10px 0 22px; position: relative; }
.pricecard__price span { font-size: .42em; color: var(--muted); font-weight: 600; }
.pricecard__list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; position: relative; }
.pricecard__list li { position: relative; padding-left: 28px; font-size: .96rem; }
.pricecard__list li::before { content:"✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 800; }
.pricecard__note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 12px; }

/* ─── Отзывы ──────────────────────────────────────────────────────────── */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: linear-gradient(180deg, var(--bg-2), #11161f); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.review__stars { color: #ffc24b; letter-spacing: 3px; font-size: 1.1rem; }
.review blockquote { font-size: 1.02rem; color: #d6dde9; line-height: 1.55; flex: 1; }
.review figcaption { font-weight: 700; display: flex; flex-direction: column; }
.review figcaption span { font-weight: 500; color: var(--ok); font-size: .82rem; }
.reviews__cta { text-align: center; margin-top: 32px; }

/* ─── FAQ ─────────────────────────────────────────────────────────────── */
.acc { display: grid; gap: 12px; }
.acc__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.015); overflow: hidden; }
.acc__item[open] { border-color: var(--line-2); }
.acc__item summary { cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.08rem; position: relative; list-style: none; }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary::after { content:"+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--brand-2); transition: transform .3s; }
.acc__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.acc__body { padding: 0 22px 22px; color: var(--muted); }

/* ─── Контакты / форма ────────────────────────────────────────────────── */
.contacts__grid { display: grid; grid-template-columns: 1fr 440px; gap: clamp(28px, 5vw, 56px); align-items: start; margin-bottom: 40px; }
.contacts__info h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.12; margin-bottom: 14px; }
.contacts__info > p { color: var(--muted); margin-bottom: 26px; }
.contacts__list { list-style: none; padding: 0; display: grid; gap: 16px; margin-bottom: 28px; }
.contacts__list li { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: baseline;
  padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.contacts__list b { color: var(--muted); font-weight: 600; font-size: .9rem; }
.contacts__list a:hover { color: var(--brand-2); }
.contacts__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.lead { background: linear-gradient(165deg, #16202e, #0f141c); border: 1px solid var(--line-2);
  border-radius: 22px; padding: 30px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.lead h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; margin-bottom: 4px; }
.lead label { display: grid; gap: 7px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.lead input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.lead input::placeholder { color: var(--muted-2); }
.lead input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46,139,255,.18); }
.lead__note { font-size: .78rem; color: var(--muted-2); text-align: center; }
.lead__ok { color: var(--ok); font-weight: 600; text-align: center; }

.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; filter: grayscale(.15) contrast(1.05); }
.map__facade { min-height: 240px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  padding: 32px; background:
    linear-gradient(180deg, rgba(14,17,22,.6), rgba(14,17,22,.85)),
    url('assets/generated/backgrounds/bg-section-dark-metal.png') center/cover; }
.map__addr { display: grid; gap: 6px; }
.map__addr b { font-size: 1.1rem; }
.map__addr span { color: var(--muted); font-size: .92rem; }

/* ─── Footer ──────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); background: #0b0e13; padding: 56px 0 28px; margin-top: 20px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer__brand p { color: var(--muted); margin-top: 14px; max-width: 360px; font-size: .95rem; }
.footer__nav { display: grid; gap: 12px; align-content: start; }
.footer__nav a { color: var(--muted); font-weight: 600; }
.footer__nav a:hover { color: var(--text); }
.footer__contacts { display: grid; gap: 8px; align-content: start; color: var(--muted); font-size: .95rem; }
.footer__phone { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; color: var(--muted-2); font-size: .85rem; }

/* ─── Наверх ──────────────────────────────────────────────────────────── */
.totop { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.3rem; color: #fff;
  background: linear-gradient(180deg, var(--brand-2), var(--brand)); box-shadow: var(--glow);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }

/* ─── Hero: вход чистым CSS (без ожидания JS — хороший LCP) ────────────── */
.hero-in { animation: heroFade .9s var(--ease) both; }
.hero__eyebrow.hero-in { animation-delay: .05s; }
.hero__title.hero-in   { animation-delay: .15s; }
.hero__lead.hero-in    { animation-delay: .28s; }
.hero__points.hero-in  { animation-delay: .40s; }
.hero__actions.hero-in { animation-delay: .50s; }
.hero__stats.hero-in   { animation-delay: .60s; }
@keyframes heroFade { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ─── Reveal при скролле (только когда есть JS — иначе всё видно) ───────── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-in { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float, .float-slow, .marquee__track, .hero__scroll span { animation: none; }
}

/* ─── Адаптив ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards, .reviews { grid-template-columns: repeat(2, 1fr); }
  .adv { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .price__grid, .contacts__grid { grid-template-columns: 1fr; }
  .pricecard, .lead { max-width: 520px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .header__cta .phone, .header__cta .btn--sm { display: none; }
  .hero { min-height: auto; padding-top: 90px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .hero__decor--drop { display: none; }
  .cards, .materials__grid, .reviews, .adv { grid-template-columns: 1fr; }
  .problem__grid { grid-template-columns: 1fr; }
  .problem__media { order: -1; }
  .step, .step:nth-child(even) { grid-template-columns: 1fr; }
  .step:nth-child(even) .step__media { order: 0; }
  .step__body, .step:nth-child(even) .step__body { padding: 24px; }
  .step__media img { min-height: 200px; max-height: 240px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .contacts__list li { grid-template-columns: 1fr; gap: 2px; }
}
