/* ============================================================
   ИП Ардыханов Р.Р. — Пожарная безопасность
   Premium / business landing. Mobile-first.
   ============================================================ */

:root {
  /* Palette */
  --bg:            #ffffff;
  --bg-alt:        #f5f6f8;
  --ink:           #15171c;   /* dark hero / text */
  --ink-2:         #1d2027;
  --text:          #2b2f38;
  --muted:         #646b78;
  --line:          #e7e9ee;
  --line-dark:     rgba(255,255,255,.10);

  --accent:        #d6362f;   /* controlled red */
  --accent-strong: #b62a24;
  --accent-soft:   #fbeae9;
  --on-accent:     #ffffff;

  /* Typography */
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;

  --shadow-sm: 0 1px 2px rgba(20,23,28,.05), 0 4px 14px rgba(20,23,28,.05);
  --shadow-md: 0 10px 40px rgba(20,23,28,.10);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------------- Base ---------------- */
* { box-sizing: border-box; }

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

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

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.hero :focus-visible { outline-color: #ff8b85; }

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

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease);
  min-height: 48px;
  white-space: nowrap;
}
.btn--sm { padding: 10px 18px; min-height: 42px; font-size: 15px; }

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong); box-shadow: 0 8px 24px rgba(214,54,47,.30); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--on-dark { color: #fff; border-color: rgba(255,255,255,.28); }
.btn--on-dark:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* ---------------- Badge ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.badge--dark { background: rgba(255,255,255,.08); color: #fff; }
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(214,54,47,.18);
}
.badge--dark .badge__dot { box-shadow: 0 0 0 4px rgba(214,54,47,.30); }

/* ---------------- Header ---------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--accent);
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 16px; letter-spacing: -.01em; }
.brand__sub { font-size: 12px; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  position: relative;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--accent);
  transition: width .25s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
}
.header__phone:hover { color: var(--accent); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0 11px;
}
.burger span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: radial-gradient(120% 130% at 80% -10%, #2a2e38 0%, var(--ink) 55%, #0f1115 100%);
  color: #fff;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -180px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(214,54,47,.45) 0%, rgba(214,54,47,0) 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  padding-block: clamp(56px, 9vw, 110px);
}
.hero__content { max-width: 640px; }
.hero__title {
  color: #fff;
  font-size: clamp(34px, 5.6vw, 60px);
  font-weight: 800;
  margin: 22px 0 20px;
}
.hero__lead {
  color: rgba(255,255,255,.74);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
  max-width: 560px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.hero__cta .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* Hero card */
.hero__card {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.hero__card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hero__card-label { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: #fff; }
.hero__card-tag {
  font-size: 12px; font-weight: 600;
  color: #fff; background: var(--accent);
  padding: 5px 12px; border-radius: 999px;
}
.hero__list { display: flex; flex-direction: column; gap: 16px; }
.hero__list li { display: flex; gap: 14px; align-items: center; }
.hero__list-ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(214,54,47,.18);
  border: 1px solid rgba(255,255,255,.06);
  color: #ff8b85;
}
.hero__list-ico svg { width: 20px; height: 20px; display: block; }
.hero__list div strong { display: block; font-family: var(--font-head); color: #fff; font-size: 15px; font-weight: 700; }
.hero__list div span { display: block; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.45; }
.hero__card-foot {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-direction: column; gap: 2px;
}
.hero__phone { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: #fff; }
.hero__phone:hover { color: #ff7d77; }
.hero__card-foot span { color: rgba(255,255,255,.55); font-size: 13px; }

/* ---------------- Advantages strip ---------------- */
.strip { background: var(--ink-2); }
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.strip__item {
  display: flex; align-items: center; gap: 14px;
  padding: 26px 24px;
  border-right: 1px solid var(--line-dark);
}
.strip__item:last-child { border-right: none; }
.strip__num { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--accent); }
.strip__item p { color: rgba(255,255,255,.88); font-family: var(--font-head); font-weight: 600; font-size: 16px; }

/* ---------------- Sections ---------------- */
.section { padding-block: clamp(64px, 9vw, 110px); background: var(--bg); }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 720px; margin-bottom: 48px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.section__lead { margin-top: 16px; color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 640px; }

/* ---------------- Tasks ---------------- */
.tasks__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.task-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.4;
  position: relative;
  padding-left: 24px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.task-card::before {
  content: "";
  position: absolute; left: 0; top: 24px; bottom: 24px;
  width: 3px; border-radius: 3px;
  background: var(--accent);
  opacity: 0; transition: opacity .2s var(--ease);
}
.task-card:hover { border-color: #d9dce3; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.task-card:hover::before { opacity: 1; }
.task-card--accent {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.task-card--accent::before { background: var(--accent); opacity: 1; }

/* ---------------- Services ---------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.service:hover { border-color: #d9dce3; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service__ico {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 20px;
}
.service__ico svg { width: 26px; height: 26px; }
.service h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.service ul { display: flex; flex-direction: column; gap: 8px; }
.service ul li {
  position: relative; padding-left: 20px;
  font-size: 14.5px; color: var(--text);
}
.service ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

/* ---------------- Trust ---------------- */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.section .trust-card { background: #fff; }
.trust-card:hover { border-color: #d9dce3; box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.trust-card__ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: var(--accent);
  margin-bottom: 18px;
}
.trust-card__ico svg { width: 24px; height: 24px; }
.trust-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.trust-card p { color: var(--muted); font-size: 15px; }

/* ---------------- Process / steps ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step__num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------------- FAQ ---------------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq__item.is-open { border-color: #d9dce3; box-shadow: var(--shadow-sm); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none; border: none; cursor: pointer;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.4;
}
.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 22px; height: 22px;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 13px; height: 2px; border-radius: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.faq__a p {
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------------- Contacts ---------------- */
.contacts__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: stretch;
}
.contacts__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.contacts__head { margin-bottom: 8px; }
.contacts__eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.contacts__name { font-size: 22px; font-weight: 800; }
.contacts__list { display: flex; flex-direction: column; flex: 1; justify-content: space-between; margin-top: 22px; }
.contacts__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.contacts__row:first-child { border-top: none; padding-top: 0; }
.contacts__row dt { color: var(--muted); font-size: 15px; }
.contacts__row dd { margin: 0; color: var(--ink); font-size: 16px; font-weight: 500; }
.contacts__note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}
.contacts__note-ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #fff;
  color: var(--accent-strong);
}
.contacts__note-ico svg { width: 20px; height: 20px; display: block; }
.contacts__note p { color: var(--text); font-size: 14.5px; line-height: 1.5; }
.contacts__note strong { color: var(--ink); font-weight: 700; }
.contacts__row a { color: var(--ink); }
.contacts__row a:hover { color: var(--accent); }

.cta-block {
  background: radial-gradient(130% 120% at 90% 0%, #2a2e38 0%, var(--ink) 60%, #0f1115 100%);
  border-radius: var(--radius);
  padding: 40px 36px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-block__title { color: #fff; font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 18px 0 14px; }
.cta-block__text { color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.6; }
.cta-block__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------------- Footer ---------------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding-top: 56px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__brand .brand__name { color: #fff; font-size: 18px; }
.footer__brand .brand__sub { color: rgba(255,255,255,.55); }
.footer__note { color: rgba(255,255,255,.5); font-size: 14px; margin-top: 6px; }
.footer__title { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 6px; letter-spacing: .02em; }
.footer__col a { color: rgba(255,255,255,.7); font-size: 15px; transition: color .2s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__addr { color: rgba(255,255,255,.5); font-size: 14px; line-height: 1.5; margin-top: 4px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding: 22px 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 13.5px;
  color: rgba(255,255,255,.5);
}

/* ---------------- Lead form (on dark) ---------------- */
.lead-form { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255,255,255,.72);
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:hover,
.field textarea:hover { border-color: rgba(255,255,255,.26); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 3px rgba(214,54,47,.25);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: #ff6b63; }
.field__error {
  min-height: 0;
  font-size: 13px;
  color: #ff8b85;
  opacity: 0;
  max-height: 0;
  transition: opacity .2s var(--ease);
}
.field.is-invalid .field__error { opacity: 1; max-height: 40px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.lead-form__submit { margin-top: 4px; width: 100%; }
.lead-form__submit[disabled] { opacity: .65; cursor: progress; }
.lead-form__note { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.5; }
.lead-form__note a { color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.3); }
.lead-form__note a:hover { color: #fff; }
.lead-form__status {
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font-head);
  display: none;
}
.lead-form__status.is-success,
.lead-form__status.is-error {
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.45;
}
.lead-form__status.is-success { color: #7ee0a3; }
.lead-form__status.is-error { color: #ffb1ac; }
.lead-form__status.is-success::before {
  content: "";
  width: 18px; height: 18px; flex-shrink: 0;
  background: #2fb968;
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

.cta-block__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
  color: rgba(255,255,255,.4);
  font-size: 13px;
  font-family: var(--font-head);
}
.cta-block__divider::before,
.cta-block__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.12);
}
.cta-block__quick { display: flex; gap: 12px; }
.quick-btn { flex: 1; gap: 9px; }
.quick-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Tabular numbers for phones / requisites */
.header__phone, .hero__phone,
.contacts__row dd, .footer__col a[href^="tel"], .footer__bottom { font-variant-numeric: tabular-nums; }

/* ---------------- Header scrolled state ---------------- */
.header { transition: box-shadow .25s var(--ease), background-color .25s var(--ease); }
.header.is-scrolled {
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 24px rgba(20,23,28,.07);
}

/* ---------------- Process connector line ---------------- */
.steps { position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
  z-index: 0;
}
.step { position: relative; z-index: 1; }

/* ---------------- Scroll reveal ---------------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__card { max-width: 560px; }
  .tasks__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps::before { display: none; }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(2) { border-right: none; }
  .strip__item { border-bottom: 1px solid var(--line-dark); }
  .strip__item:nth-last-child(-n+2) { border-bottom: none; }
}

/* Mobile nav breakpoint */
@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link {
    padding: 16px 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__link:last-child { border-bottom: none; }

  .header__phone { display: none; }
  .header__actions .btn--sm { display: none; }
  .burger { display: flex; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }

  .container { padding-inline: 18px; }

  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }

  .tasks__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .strip__grid { grid-template-columns: 1fr; }
  .strip__item { border-right: none; border-bottom: 1px solid var(--line-dark); }
  .strip__item:last-child { border-bottom: none; }

  .contacts__grid { grid-template-columns: 1fr; }
  .contacts__card { padding: 26px 22px; }
  .contacts__row { grid-template-columns: 1fr; gap: 4px; }
  .contacts__row dt { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
  .cta-block { padding: 32px 24px; }
  .cta-block__actions { flex-direction: column; }
  .cta-block__actions .btn { width: 100%; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; }

  .section__head { margin-bottom: 36px; }
  .faq__q { font-size: 16px; padding: 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
}
