/* ============================================================
   СТИЛИ САЙТА — mobile-first
   Дизайн-токены заданы в :root: цвета, радиусы, тени.
   ============================================================ */

:root {
  /* Цвета */
  --bg: #f5f7fa;
  --surface: #ffffff;
  --tint: #eef3f9;
  --ink: #10233c;
  --ink-2: #46566b;
  --ink-3: #8494a7;
  --line: #dfe6ee;
  --brand: #0e5aa7;
  --brand-dark: #0a4685;
  --brand-soft: #e3eefb;
  --accent: #f0730f;
  --accent-dark: #d95f00;
  --success: #178a4c;

  /* Геометрия */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 35, 60, .05), 0 8px 24px rgba(16, 35, 60, .07);
  --shadow-lg: 0 2px 4px rgba(16, 35, 60, .06), 0 16px 48px rgba(16, 35, 60, .12);

  /* Типографика: системный стек — быстро и знакомо на любом устройстве */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  /* Тематический фон: едва заметные барабан стиралки, капля, шестерёнка и гаечный ключ.
     Лёгкий inline-SVG — не грузит ни одного лишнего файла и не тормозит сайт. */
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><g fill='none' stroke='%2310233c' stroke-opacity='.045' stroke-width='2'><circle cx='52' cy='52' r='22'/><circle cx='52' cy='52' r='8'/><path d='M52 30v8M74 52h-8M52 74v-8M30 52h8'/><path d='M196 40c9 11 14 18 14 25a14 14 0 1 1-28 0c0-7 5-14 14-25z'/><circle cx='70' cy='196' r='14'/><path d='M70 178v-6M70 220v-6M88 196h6M46 196h6M83 183l4-4M53 213l4-4M83 209l4 4M53 179l4 4'/><path d='M188 170l34 34m-40-44a12 12 0 1 0 10 10l-4-4-8 2 2-8 4 4zm44 44a12 12 0 1 1-10 10l4 4 8-2-2 8-4-4z'/></g></svg>"),
    var(--bg);
  /* Отступ снизу под мобильную панель действий */
  padding-bottom: 76px;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; cursor: pointer; }
fieldset { border: 0; padding: 0; }
summary { cursor: pointer; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Контейнер и секции ---------- */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 760px; }

.section { padding: 56px 0; }
.section--tint { background: var(--tint); }
.section--accent {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: #fff;
}
.section__title {
  font-size: clamp(26px, 5.4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 14px;
}
.section__lead {
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 32px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(240, 115, 15, .35);
}
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost {
  background: var(--surface);
  color: var(--brand);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--brand); }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: var(--brand-soft); }
.btn--lg { min-height: 58px; padding: 14px 28px; }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: 15px; border-radius: 12px; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(16,35,60,.06); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.header__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.header__logo {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  border-radius: 12px;
}
.header__name { font-weight: 800; line-height: 1.15; display: flex; flex-direction: column; }
.header__name small { font-weight: 500; font-size: 12px; color: var(--ink-3); }
.header__nav { display: none; gap: 24px; }
.header__nav a { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.header__nav a:hover { color: var(--brand); }
.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone { display: none; font-weight: 800; font-size: 17px; color: var(--ink); white-space: nowrap; }
.header__phone:hover { color: var(--brand); }
/* На телефоне кнопку заявки в шапке прячем: внизу есть sticky-панель */
@media (max-width: 719px) { .header__actions .btn { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, var(--brand-soft) 0%, transparent 60%),
    var(--bg);
  padding: 40px 0 56px;
}
.hero__inner { display: grid; gap: 36px; }
.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(30px, 7.2vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero__subtitle { color: var(--ink-2); font-size: 18px; max-width: 560px; margin-bottom: 22px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.hero__chips li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta .btn { flex: 1 1 220px; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

.hero__photo { position: relative; max-width: 480px; margin: 0 auto; width: 100%; }
.hero__photo img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 6 / 7;
  object-fit: cover;
}
.hero__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  max-width: 240px;
}
.hero__badge strong { font-size: 22px; color: var(--brand); line-height: 1.2; }
.hero__badge span { font-size: 13px; color: var(--ink-2); line-height: 1.4; }

/* ---------- Табы цен ---------- */
.tabs {
  /* На мобильном — сетка на всю ширину, чтобы кнопки не вылезали за экран */
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--tint);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 24px;
  max-width: 100%;
}
.tabs__btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.tabs__btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

/* ---------- Прайс ---------- */
.pricelist {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 20px;
}
.pricelist__items li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 0;
}
.pricelist__items li + li { border-top: 1px solid var(--line); }
.pricelist__items span { color: var(--ink); }
.pricelist__items i {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-4px);
}
.pricelist__items b { white-space: nowrap; font-weight: 800; }
.pricelist__items .free { color: var(--success); }
.pricelist__footnote { margin-top: 18px; font-size: 15px; color: var(--ink-2); max-width: 640px; }

/* ---------- Доверие ---------- */
.trust { display: grid; gap: 32px; }
.trust__story p { color: var(--ink-2); margin-bottom: 14px; }
.trust__story blockquote {
  font-size: clamp(19px, 3.6vw, 24px);
  font-weight: 700;
  color: var(--ink);
  border-left: 4px solid var(--accent);
  padding: 6px 0 6px 18px;
  margin: 20px 0;
  letter-spacing: -0.01em;
}
.trust__cards { display: grid; gap: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--ink-2); font-size: 15px; }

/* ---------- Шаги ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
.steps__item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 22px 72px;
}
.steps__num {
  position: absolute;
  left: 20px;
  top: 22px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
}
.steps__item h3 { font-size: 18px; margin-bottom: 6px; }
.steps__item p { color: var(--ink-2); font-size: 15px; }

/* ---------- Неисправности ---------- */
.faults { display: grid; gap: 16px; }
.faults__group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.faults__heading { font-size: 19px; margin-bottom: 14px; }
.faults__list li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: var(--ink-2);
}
.faults__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%230e5aa7" d="M9.5 16.2 5.8 12.5l-1.3 1.3 5 5 10-10-1.3-1.3z"/></svg>') center / 12px no-repeat;
}
.faults__cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.faults__cta p { color: var(--ink-2); }

/* ---------- Честный блок ---------- */
.honest { display: grid; gap: 16px; }
.honest__col {
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.honest__col h3 { font-size: 18px; margin-bottom: 14px; }
.honest__col--yes { border-top: 4px solid var(--success); }
.honest__col--no { border-top: 4px solid var(--accent); }
.honest__col ul li {
  position: relative;
  padding: 7px 0 7px 26px;
  color: var(--ink-2);
  font-size: 15px;
}
.honest__col--yes li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.honest__col--no li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.honest__note { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

/* ---------- Бренды ---------- */
.brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.brands li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-2);
  letter-spacing: .02em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.brands li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Отзывы ---------- */
.reviews {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.reviews__item img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ---------- Скидка ---------- */
.discount {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.discount h2 {
  font-size: clamp(22px, 4.6vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.discount p { opacity: .9; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
  transition: box-shadow .15s ease;
}
.faq__item[open] { box-shadow: var(--shadow); }
.faq__item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  font-weight: 700;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tint);
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 18px; color: var(--ink-2); }

/* ---------- Форма ---------- */
.lead-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 18px;
}
.lead-form__appliance { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--line);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-2);
  transition: all .15s ease;
}
.chip-radio input:checked + span {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.chip-radio input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.lead-form__row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 700; font-size: 14px; }
.field__label em { color: var(--accent); font-style: normal; }
.field input, .field textarea {
  font: inherit;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}
.field input.is-invalid, .field textarea.is-invalid { border-color: #d33; }
.field__error { color: #d33; font-size: 13px; }

.field__label small { font-weight: 500; color: var(--ink-3); }
.lead-form__submit { width: 100%; }
.lead-form__consent { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.inline-phone { font-weight: 800; white-space: nowrap; }

/* Панель после отправки */
.lead-success {
  margin-top: 20px;
  background: var(--surface);
  border: 2px solid var(--success);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.lead-success h3 { color: var(--success); margin-bottom: 8px; }
.lead-success p { color: var(--ink-2); margin-bottom: 16px; }
.lead-success__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.lead-success__preview {
  background: var(--tint);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font: 14px/1.6 var(--font);
  white-space: pre-wrap;
  color: var(--ink-2);
}

/* ---------- Контакты ---------- */
.contacts { display: grid; gap: 16px; }
.contacts__phone {
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin: 6px 0;
}
.contacts__phone:hover { color: var(--brand); }
.contacts__card p { color: var(--ink-2); font-size: 15px; }
.contacts__links { display: flex; gap: 10px; margin-top: 12px; }

/* ---------- Подвал ---------- */
.footer {
  background: var(--ink);
  color: #b9c4d1;
  padding: 36px 0;
  font-size: 14px;
}
.footer strong { color: #fff; }
.footer__inner { display: grid; gap: 10px; }
.footer__legal { font-size: 13px; color: #8494a7; }
.footer__copy { color: #8494a7; }

/* ---------- Мобильная панель действий ---------- */
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.sticky-bar__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
}
.sticky-bar__btn--call {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(240, 115, 15, .35);
}
.sticky-bar__btn--form {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* ---------- Появление при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .brands li { transition: none; }
}

/* ============================================================
   ПЛАНШЕТ И ШИРЕ (от 720px)
   ============================================================ */
@media (min-width: 720px) {
  .section { padding: 80px 0; }
  .header__phone { display: inline; }
  .tabs { display: inline-flex; }
  .tabs__btn { padding: 10px 20px; font-size: 15px; }
  .hero { padding: 64px 0 80px; }
  .hero__cta .btn { flex: 0 1 auto; }
  .trust__cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .faults { grid-template-columns: 1fr 1fr; }
  .honest { grid-template-columns: 1fr 1fr; }
  .contacts { grid-template-columns: repeat(3, 1fr); }
  .lead-form { padding: 32px; }
  .lead-form__row { grid-template-columns: 1fr 1fr; }
  .lead-form__submit { width: auto; justify-self: start; padding-left: 40px; padding-right: 40px; }
  .discount { flex-direction: row; align-items: center; justify-content: space-between; }
  .faults__cta { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ============================================================
   ДЕСКТОП (от 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .sticky-bar { display: none; } /* на десктопе контакты всегда в шапке */
  .header__nav { display: flex; }
  .hero__inner { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
  .hero__photo { margin: 0; }
  .trust { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps__item { padding: 68px 22px 22px; }
  .steps__num { left: 22px; top: 20px; }
}
