/* ============================================================
   Prachka.com · Химчистка штор — лендинг
   Design tokens → reset → layout → components → sections → modals
   ============================================================ */

:root {
  /* Brand & neutrals */
  --blue: #0D66B0;
  --blue-dark: #0A5290;
  --navy: #0B2239;
  --ink: #0B2239;
  --text: #22384C;
  --text-2: #41556A;
  --muted: #5B6B7C;
  --muted-2: #7A8894;

  --soft: #EAF3FB;      /* light-blue fills */
  --tint: #E1EAF5;      /* tinted sections */
  --panel: #F7F9FC;     /* inner panels */
  --panel-2: #F5F8FB;   /* inputs */
  --panel-3: #F2F7FB;   /* summary */
  --field-border: #EDF2F7;
  --line: #DCE7F0;
  --line-2: #E1EAF2;

  --amber: #F5A623;
  --green: #25BB5C;
  --green-ink: #1B9E4B;
  --green-bg: #E5F8EC;
  --red: #D6584F;
  --red-bg: #FDECEC;

  --page-bg: #EEF2F6;
  --white: #fff;

  /* Radii */
  --r-card: 24px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 12px;
  --r-btn: 12px;

  /* Shadows */
  --sh-card: 0 4px 20px rgba(11,34,57,.08);
  --sh-pop: 0 12px 40px rgba(11,34,57,.16);
  --sh-float: 0 6px 18px rgba(37,187,92,.30);
  --sh-header: 0 6px 24px rgba(11,34,57,.10);

  --maxw: 1288px;
  --gutter: clamp(12px, 3vw, 20px);

  --header-h: 84px;

  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid rgba(13,102,176,.55); outline-offset: 2px; border-radius: 4px; }

.icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 1000;
  background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-weight: 600; transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; color: #fff; }

.sprite { position: absolute; }

/* Индикатор прокрутки страницы */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 110;
  background: rgba(13, 102, 176, .14);
  pointer-events: none;
}
.scroll-progress__bar {
  display: block; height: 100%; width: 100%;
  background: var(--blue);
  transform: scaleX(0); transform-origin: left center;
  will-change: transform;
}

/* ---------- Layout shell ---------- */
.shell {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 18px);
}
main { padding-top: clamp(12px, 1.6vw, 18px); padding-bottom: clamp(14px, 1.6vw, 18px); }

.card {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --pad-y: 13px; --pad-x: 22px; --fs: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  font-size: var(--fs); font-weight: 700; line-height: 1.2;
  border: none; border-radius: var(--r-btn);
  background: var(--soft); color: var(--blue);
  text-align: center; white-space: nowrap;
  transition: background .18s, transform .08s, box-shadow .18s, color .18s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { font-size: 1.1em; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--soft { background: var(--soft); color: var(--blue); }
.btn--soft:hover { background: #dcecfa; color: var(--blue-dark); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--soft); color: var(--blue-dark); }
.btn--lg { --pad-y: 16px; --pad-x: 30px; --fs: 16.5px; }
.btn--sm { --pad-y: 11px; --pad-x: 20px; --fs: 14px; }
.btn--xs { --pad-y: 11px; --pad-x: 18px; --fs: 14px; font-weight: 600; }
.btn--block { width: 100%; }
.btn:disabled { background: var(--line); color: #8B99A6; cursor: not-allowed; transform: none; }
.btn--primary:disabled:hover { background: var(--line); color: #8B99A6; }

.round-btn {
  width: 44px; height: 44px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: #fff; color: var(--blue); font-size: 18px;
  transition: background .15s, border-color .15s;
}
.round-btn:hover { background: var(--soft); }
.round-btn--soft { border: none; background: var(--panel-3); color: var(--muted); }
.round-btn--soft:hover { background: var(--soft); color: var(--blue); }

/* ============================================================
   Header
   ============================================================ */
/* Bento-шапка — по умолчанию, в потоке страницы, уезжает при скролле */
.site-header {
  padding: 12px var(--gutter) 0;
  background: var(--page-bg);
}
.header-inner {
  max-width: calc(var(--maxw) - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px);
  height: 68px; padding-inline: clamp(16px, 2.4vw, 34px);
  background: #fff; border-radius: var(--r-lg);
}

/* Закреплённая полноширинная шапка — появляется при скролле вниз */
.sticky-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid #E6ECF2;
  box-shadow: 0 6px 24px rgba(11,34,57,.07);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .32s ease, visibility .32s;
  will-change: transform;
}
.sticky-nav.is-visible { transform: translateY(0); visibility: visible; }
.sticky-nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px);
  height: 64px; padding-inline: var(--gutter);
}
.logo { display: inline-flex; flex-shrink: 0; }
.logo img { height: 22px; width: auto; }
.main-nav { display: flex; gap: clamp(16px, 1.8vw, 28px); font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--text-2); }
.main-nav a:hover { color: var(--blue); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 1.4vw, 20px); }
.header-phone { text-align: right; line-height: 1.2; color: var(--ink); }
.header-phone__num { display: block; font-size: 18px; font-weight: 700; }
.header-phone__hours { display: block; font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.header-phone-icon, .burger { display: none; }
.header-phone-icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--soft); color: var(--blue);
  align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.burger {
  width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--blue); color: #fff;
  align-items: center; justify-content: center; font-size: 24px; border: none; flex-shrink: 0;
}

/* ============================================================
   Section scaffolding
   ============================================================ */
section[id], #included { scroll-margin-top: 96px; }
.section { padding: clamp(28px, 4vw, 64px) clamp(20px, 3.4vw, 56px); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: #fff; }
.section__title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.section--dark .section__title { color: #fff; }
.section__head { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.section__intro { font-size: clamp(14px, 1.4vw, 17px); line-height: 1.55; color: var(--text-2); }
.accent { color: var(--blue); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid; gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero__body { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 24px); }
.hero__title { font-size: clamp(27px, 4.4vw, 42px); font-weight: 800; }
.hero__sub { font-size: clamp(16px, 1.7vw, 21px); line-height: 1.5; color: var(--text); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.teasers { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.teaser { display: flex; align-items: center; gap: 12px; }
.teaser__ic {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  background: var(--soft); color: var(--blue); font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.teaser span:last-child { font-size: 14px; line-height: 1.35; font-weight: 500; color: var(--text); }
.hero__media { position: relative; }
.hero__media picture { display: block; border-radius: 20px; overflow: hidden; }
.hero__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.hero__badge {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 18px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-radius: 14px; padding: 12px 20px; box-shadow: 0 4px 14px rgba(11,34,57,.10);
}
.stat b { display: flex; align-items: center; gap: 6px; font-size: clamp(17px, 2vw, 20px); font-weight: 800; }
.stat span { font-size: 12px; color: var(--muted); }
.stat__divider { width: 1px; height: 32px; background: var(--line-2); }
.icon--star { color: var(--amber); font-size: 15px; }

/* ============================================================
   Промо — персональная скидка 30% (показ управляется ?t=promo,
   правила видимости — в секции «Типы страницы» внизу файла)
   ============================================================ */
.promo { background: var(--blue); color: #fff; display: grid; gap: clamp(24px, 3.4vw, 56px); align-items: center; }
.promo__body { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 20px); align-items: flex-start; }
.promo__badge {
  background: #FFA8C5; color: #4A1030;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 100px;
}
.promo__title { color: #fff; }
.promo__lead { font-size: clamp(14px, 1.6vw, 17px); line-height: 1.55; color: #CCE1F2; }
.promo__actions { display: flex; align-items: center; gap: 12px 18px; margin-top: 6px; }
.promo .btn--white { color: var(--blue); }
.promo__deadline { font-size: 13.5px; color: #9CC3E2; }
.promo__condition {
  background: rgba(255,255,255,.1); border-radius: var(--r-lg);
  padding: clamp(18px, 2.4vw, 28px);
  display: flex; flex-direction: column; gap: 12px;
}
.promo__condition-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.promo__condition-title .icon { font-size: 18px; color: #FFA8C5; }
.promo__condition-text { font-size: 14.5px; line-height: 1.6; color: #CCE1F2; }

/* ============================================================
   Цены
   ============================================================ */
.prices-grid { display: grid; gap: clamp(28px, 3.4vw, 48px); margin-top: clamp(22px, 2.6vw, 36px); }
.included { display: flex; flex-direction: column; gap: 18px; }
.included__lead { font-size: 17px; font-weight: 700; }
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--text); }
.checklist__mark {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.installment {
  display: flex; align-items: center; gap: 14px;
  border-top: 1px solid var(--line); padding-top: 18px;
}
.installment__ic {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px;
  background: #FDEBCB; color: #B25E00; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.installment p { font-size: 14px; line-height: 1.4; color: #5A4326; }
.prices-side { display: flex; flex-direction: column; gap: 20px; }
.price-list {
  list-style: none; padding: 0; flex: 1;
  background: var(--panel); border-radius: var(--r-lg); overflow: hidden;
}
.price-row {
  display: flex; align-items: center; gap: 16px;
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 28px);
  border-bottom: 1px solid #EEF3F8;
}
.price-row:last-child { border-bottom: none; }
.price-row > div { flex: 1; }
.price-row__name { display: block; font-size: clamp(15px, 1.6vw, 18px); font-weight: 700; }
.price-row__desc { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.price-row__value { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--blue); white-space: nowrap; }
.price-row__value small { font-size: .58em; font-weight: 600; color: var(--muted); }

.cta-dark {
  margin-top: clamp(24px, 3vw, 36px);
  background: var(--navy); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
}
.cta-dark__title { font-size: clamp(18px, 2vw, 22px); font-weight: 800; color: #fff; }
.cta-dark__text { font-size: clamp(13px, 1.4vw, 15px); line-height: 1.55; color: #AFC2D3; margin-top: 10px; }

/* ============================================================
   Что изменится (benefits)
   ============================================================ */
.benefits { display: grid; gap: clamp(24px, 3vw, 56px); align-items: center; }
.benefits__col { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 26px); }
.benefits__grid { display: grid; gap: 22px 28px; }
.benefit h3 { font-size: clamp(15px, 1.6vw, 16.5px); font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.benefit p { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.benefits__media { position: relative; border-radius: 20px; overflow: hidden; }
.benefits__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.benefits__media figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(11,34,57,.88); backdrop-filter: blur(4px);
  border-radius: 14px; padding: 16px 20px; color: #fff;
  font-size: clamp(13px, 1.4vw, 15.5px); line-height: 1.5; font-style: italic;
}

/* ============================================================
   Почему мы
   ============================================================ */
.why-grid { display: grid; gap: clamp(28px, 3vw, 40px) clamp(28px, 3vw, 44px); margin: clamp(24px, 3vw, 36px) 0; }
.why { display: flex; flex-direction: column; gap: 10px; }
.why__ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--soft); color: var(--blue); font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.why h3 { font-size: 17px; font-weight: 700; }
.why p { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.why__cta { align-self: center; }

/* ============================================================
   Как это работает
   ============================================================ */
.how__grid { display: grid; gap: clamp(32px, 4vw, 64px); align-items: center; margin-top: clamp(24px, 3vw, 40px); }
.how__steps { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 26px); }
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 26px); }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__n {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 16.5px; font-weight: 700; color: #fff; }
.step p { font-size: 14px; line-height: 1.5; color: #AFC2D3; margin-top: 5px; }
.how__cta { align-self: flex-start; margin-left: 52px; }
.how__media { position: relative; border-radius: 20px; overflow: hidden; }
.how__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 22%; }
/* Кнопка воспроизведения на фото временно отключена
.how__media::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(255,255,255,.94) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 5.5v13l11-6.5z" fill="%230D66B0"/></svg>') no-repeat center / 34px;
  box-shadow: 0 6px 20px rgba(11,34,57,.18);
}
*/

/* ============================================================
   Отзывы
   ============================================================ */
.reviews__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(22px, 2.6vw, 32px); }
.reviews__head .section__title { flex: 1; min-width: 240px; }
.rating-badge { display: flex; align-items: center; gap: 10px; background: var(--panel-3); border-radius: var(--r-sm); padding: 10px 18px; }
.rating-badge__val { font-size: 20px; font-weight: 800; }
.rating-badge__stars { color: var(--amber); font-size: 15px; display: inline-flex; gap: 1px; }
.rating-badge__src { font-size: 13px; color: var(--muted); }
/* Слайдер выровнен по заголовку слева, «выпускается» только вправо */
.reviews__viewport { margin-right: calc(-1 * clamp(20px, 3.4vw, 56px)); }
.reviews__track {
  list-style: none; margin: 0; padding: 4px clamp(20px, 3.4vw, 56px) 4px 0;
  display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 min(330px, 80%); scroll-snap-align: start;
  background: var(--panel); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.review__head { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: var(--soft); color: var(--blue); font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.review__name { display: block; font-size: 15px; font-weight: 700; }
.review__meta { display: block; font-size: 12.5px; color: var(--muted); }
.review__stars { margin-left: auto; color: var(--amber); font-size: 13px; display: inline-flex; gap: 1px; }
.review__text { font-size: 14px; line-height: 1.55; color: var(--text); }
.reviews__nav { display: flex; align-items: center; gap: 16px; margin-top: clamp(20px, 2.4vw, 28px); }
.reviews__dots { display: flex; gap: 8px; }
.reviews__dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: #D4DFE9; transition: width .2s, background .2s;
}
.reviews__dots button.is-active { width: 26px; border-radius: 100px; background: var(--blue); }
.reviews__arrows { margin-left: auto; display: flex; gap: 8px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; gap: clamp(28px, 3.4vw, 56px); align-items: start; }
.faq__aside { display: flex; flex-direction: column; gap: 14px; }
.faq__cta { align-self: flex-start; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.qa { background: #fff; border-radius: var(--r-md); overflow: hidden; }
.qa summary {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer;
  list-style: none; transition: background .15s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { background: #FAFCFE; }
.qa__q { flex: 1; font-size: clamp(14px, 1.5vw, 16px); font-weight: 600; line-height: 1.4; }
.qa__sign {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  background: var(--soft); color: var(--blue); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.qa[open] .qa__sign { transform: rotate(45deg); }
.qa__a { padding: 0 22px 20px; font-size: clamp(13px, 1.4vw, 14.5px); line-height: 1.6; color: var(--text-2); }

/* ============================================================
   Контакты
   ============================================================ */
.contacts { display: grid; gap: clamp(28px, 3.4vw, 56px); align-items: center; }
.contacts__body { display: flex; flex-direction: column; gap: 22px; }
.contacts__title { font-size: clamp(22px, 2.6vw, 34px); }
.contacts__list { display: flex; gap: 14px; flex-wrap: wrap; }
.contact {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel-2); border-radius: var(--r-md); padding: 15px 20px; color: var(--ink);
  transition: background .15s;
}
.contact:hover { color: var(--ink); }
.contact--phone:hover { background: var(--soft); }
.contact--wa:hover { background: var(--green-bg); }
.contact--tg:hover { background: #E7F4FD; }
.contact__ic {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  background: var(--soft); color: var(--blue); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.contact__logo { width: 38px; height: 38px; flex-shrink: 0; }
.contact__title { display: block; font-size: 16px; font-weight: 700; }
.contact__sub { display: block; font-size: 12.5px; color: var(--muted); }
.contacts__media { border-radius: 20px; overflow: hidden; }
.contacts__media img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; object-position: 50% 20%; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { padding: 0 0 clamp(14px, 1.6vw, 18px); }
.footer-card { overflow: hidden; border-radius: var(--r-lg); }
.footer-top { display: grid; gap: clamp(28px, 3.4vw, 56px); padding: clamp(28px, 3.4vw, 48px) clamp(20px, 3.4vw, 56px); }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { height: 22px; width: auto; align-self: flex-start; }
.footer-brand p { font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 360px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-col__title { font-size: 13px; font-weight: 700; color: var(--muted-2); letter-spacing: .04em; text-transform: uppercase; }
.footer-col a { color: var(--text); }
.footer-col a:hover { color: var(--blue); }
.footer-phone { font-size: 19px; font-weight: 800; color: var(--ink); }
.footer-hours { color: var(--muted); }
.footer-socials { display: flex; gap: 10px; margin-top: 4px; }
.footer-socials a { display: inline-flex; }
.footer-socials img { width: 38px; height: 38px; }
.social-max { border-radius: 9px; }
.footer-bottom {
  padding: 20px clamp(20px, 3.4vw, 56px); border-top: 1px solid #EDF1F6;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted-2);
}
.footer-bottom a { color: var(--muted-2); margin-left: auto; }
.footer-bottom a:hover { color: var(--blue); }

/* ============================================================
   Messenger widget
   ============================================================ */
.messenger { position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.messenger__panel {
  width: 280px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-pop);
  padding: 14px; display: flex; flex-direction: column; gap: 4px;
  transform-origin: bottom right;
  visibility: hidden; opacity: 0; transform: scale(.9) translateY(8px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.messenger.is-open .messenger__panel { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .messenger__panel { transition: none; } }
.messenger__title { font-size: 13px; font-weight: 700; color: var(--muted-2); padding: 6px 10px; }
.messenger__item { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: var(--r-sm); color: var(--ink); font-size: 15px; font-weight: 600; }
.messenger__item:hover { background: var(--panel-3); color: var(--ink); }
.messenger__item img { width: 38px; height: 38px; }
.messenger__call { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.messenger__toggle {
  width: 62px; height: 62px; border: none; border-radius: 50%;
  background: var(--green); color: #fff; box-shadow: var(--sh-float);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  animation: waPulse 2.2s infinite;
}
.messenger__ic-close { display: none; }
.messenger.is-open .messenger__ic-open { display: none; }
.messenger.is-open .messenger__ic-close { display: block; }
.messenger.is-open .messenger__toggle { animation: none; background: var(--green-ink); }
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,187,92,.45); }
  70% { box-shadow: 0 0 0 18px rgba(37,187,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,187,92,0); }
}

/* ============================================================
   Cookie bar
   ============================================================ */
.cookie {
  position: fixed; left: clamp(12px, 2vw, 24px); right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px);
  z-index: 90; background: var(--navy); border-radius: 16px; box-shadow: 0 8px 30px rgba(11,34,57,.22);
  padding: 18px 24px; display: flex; align-items: center; gap: 24px;
  max-width: 1100px; margin-inline: auto;
}
.cookie__text { flex: 1; font-size: 13px; line-height: 1.5; color: #AFC2D3; }
.cookie__btn { flex-shrink: 0; }

/* ============================================================
   Mobile menu (dialog drawer)
   ============================================================ */
.menu {
  margin: 0 0 0 auto; height: 100%; max-height: 100dvh; width: min(390px, 100%);
  border: none; padding: 0; background: #fff;
}
.menu[open] { display: flex; flex-direction: column; animation: slideIn .25s ease; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.menu::backdrop { background: rgba(11,34,57,.5); backdrop-filter: blur(2px); }
.menu__head { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 68px; border-bottom: 1px solid #E8EEF4; }
.menu__head img { height: 20px; width: auto; }
.menu__nav { display: flex; flex-direction: column; padding: 12px 0; }
.menu__nav a { padding: 18px 24px; font-size: 19px; font-weight: 700; color: var(--ink); border-bottom: 1px solid #F2F6FA; }
.menu__nav a:last-child { border-bottom: none; }
.menu__foot { margin-top: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid #E8EEF4; }
.menu__phone { font-size: 19px; font-weight: 800; color: var(--ink); text-align: center; }
.menu__hours { font-size: 12.5px; color: var(--muted-2); text-align: center; }

/* ============================================================
   Modals (dialog)
   ============================================================ */
.modal {
  width: min(560px, 100%); max-height: min(92dvh, 900px); margin: auto;
  border: none; border-radius: 20px; padding: clamp(24px, 3vw, 40px);
  background: #fff; box-shadow: var(--sh-pop); color: var(--ink);
  overflow: auto;
}
.modal--wide { width: min(760px, 100%); }
.modal::backdrop { background: rgba(11,34,57,.5); backdrop-filter: blur(3px); }
.modal[open] { animation: popIn .22s ease; }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: var(--panel-3); color: var(--muted); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.modal__close:hover { background: var(--soft); color: var(--blue); }
.modal__head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; padding-right: 44px; }
.modal__head--row { flex-direction: row; align-items: center; gap: 14px; }
.modal__title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; }
.modal__sub { font-size: 14px; line-height: 1.45; color: var(--muted); }
.modal__assurances { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; margin-top: 16px; }
.modal__assurances li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.assurance__ic { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 9px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Calculator ---------- */
.calc { display: flex; flex-direction: column; gap: 18px; }
.calc__rows { container-type: inline-size; display: flex; flex-direction: column; gap: 14px; }
.calc-row { background: var(--panel); border-radius: var(--r-md); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.calc-row__head { display: flex; align-items: center; justify-content: space-between; }
.calc-row__title { font-size: 14px; font-weight: 700; }
.calc-row__del {
  width: 34px; height: 34px; border: none; border-radius: 9px; background: #fff; color: #B0BCC7;
  display: flex; align-items: center; justify-content: center; font-size: 17px; transition: background .15s, color .15s;
}
.calc-row__del:hover { background: var(--red-bg); color: var(--red); }
.calc-row__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted-2); }
.field-label--qty, .field-label--mat { grid-column: 1 / -1; }
@container (min-width: 560px) {
  .calc-row__fields { grid-template-columns: 1fr 1fr minmax(120px, auto) 1.4fr; align-items: end; }
  .field-label--qty, .field-label--mat { grid-column: auto; }
}

.input, .select {
  width: 100%; font-size: 15px; font-weight: 400; padding: 13px 14px;
  background: #fff; border: 1px solid var(--field-border); border-radius: 10px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.select { padding: 13px 12px; appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6" fill="none" stroke="%235B6B7C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 34px;
}
.input:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13,102,176,.14); }
.stepper { display: flex; align-items: center; background: #fff; border: 1px solid var(--field-border); border-radius: 10px; overflow: hidden; }
.stepper button { width: 42px; height: 48px; border: none; background: none; color: var(--blue); font-size: 20px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.stepper button:hover { background: var(--soft); }
.stepper input { flex: 1; min-width: 0; width: 100%; border: none; background: none; text-align: center; font-size: 15px; padding: 14px 0; color: var(--ink); }
.stepper input:focus { outline: none; }

.calc__add { align-self: flex-start; }

.services { border: none; padding: 0; margin: 0; border-top: 1px solid var(--field-border); padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.services legend { font-size: 16px; font-weight: 700; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel-3); color: var(--text-2); font-size: 14px; font-weight: 600;
  padding: 11px 18px; border: none; border-radius: 100px; transition: background .15s, color .15s;
}
.chip:hover { background: #E4EDF5; }
.chip__check { width: 0; opacity: 0; font-size: 12px; transition: width .15s, opacity .15s; }
.chip.is-active { background: var(--blue); color: #fff; }
.chip.is-active:hover { background: var(--blue-dark); }
.chip.is-active .chip__check { width: 1em; opacity: 1; }

.calc-windows { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 14px; background: var(--panel); border-radius: var(--r-md); padding: 14px 16px; }
.calc-windows[hidden] { display: none; }
.calc-windows__text { flex: 1 1 200px; min-width: 0; }
.calc-windows__title { display: block; font-size: 14px; font-weight: 700; }
.calc-windows__hint { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted-2); margin-top: 3px; }
.calc-windows__stepper { flex: none; width: 138px; }

.summary { background: var(--panel-3); border-radius: var(--r-md); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.summary__lines { display: flex; flex-direction: column; gap: 10px; }
.summary__line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); }
.summary__line b { color: var(--ink); white-space: nowrap; }
.summary__total { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.summary__total > span:first-child { font-size: 15px; font-weight: 700; }
.summary__value { font-size: clamp(20px, 2.4vw, 24px); font-weight: 800; color: var(--blue); white-space: nowrap; }
.summary.is-empty .summary__value { color: #B0BCC7; }
.summary.is-empty .summary__lines { display: none; }
.summary__note { font-size: 12.5px; line-height: 1.45; color: var(--muted-2); }

/* ---------- Lead form ---------- */
.lead__summary { background: var(--panel-3); border-radius: var(--r-sm); padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.lead__summary-desc { font-size: 13.5px; color: var(--text-2); }
.lead__summary-total { font-size: 18px; font-weight: 800; color: var(--blue); white-space: nowrap; }
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field .input { padding: 15px 16px; background: var(--panel-2); }
.field__error { font-size: 12px; color: var(--red); padding-left: 4px; min-height: 0; }
.field.has-error .input { border-color: var(--red); background: #fff; }
.check-tile { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text); cursor: pointer; background: var(--panel-2); border: 1px solid var(--field-border); border-radius: var(--r-sm); padding: 15px 16px; }
.check-tile input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--blue); }
.consent { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; font-size: 12px; line-height: 1.5; color: var(--muted-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: var(--blue); margin-top: 1px; }
.lead__hint { font-size: 13px; line-height: 1.45; color: var(--muted); background: var(--panel-3); border-radius: 10px; padding: 14px 16px; }

/* ---------- States (success / error) ---------- */
.state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: clamp(12px, 2vw, 24px) 0; }
.state__ic { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 42px; }
.state__ic--ok { background: var(--green-bg); color: var(--green-ink); }
.state__ic--err { background: var(--red-bg); color: var(--red); }
.state .modal__title { margin-top: 0; }
.state__text { font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 40ch; }
.state__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   Scroll reveal
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* Reduced motion — гасим бесконечные и входные анимации */
@media (prefers-reduced-motion: reduce) {
  .messenger__toggle { animation: none; }
  .menu[open], .modal[open] { animation: none; }
  .sticky-nav { transition: visibility .2s; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 700px) {
  .benefits__grid { grid-template-columns: 1fr 1fr; }
  .contacts__list { flex-wrap: nowrap; }
}

@media (min-width: 1000px) {
  .hero { grid-template-columns: 1.05fr .95fr; }
  .promo { grid-template-columns: 1.2fr .8fr; }
  .teasers { flex-direction: row; }
  .teaser { flex: 1; }
  .prices-grid { grid-template-columns: 1fr 1.15fr; align-items: stretch; }
  .cta-dark { flex-direction: row; align-items: center; gap: 40px; }
  .cta-dark > div { flex: 1; }
  .benefits { grid-template-columns: 1.1fr .9fr; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .how__grid { grid-template-columns: 1fr 1.05fr; align-items: stretch; }
  .how__media picture { position: absolute; inset: 0; }
  .how__media img { height: 100%; aspect-ratio: auto; }
  .faq { grid-template-columns: .8fr 1.2fr; }
  .faq__aside { position: sticky; top: 96px; }
  .contacts { grid-template-columns: 1fr minmax(320px, 420px); }
  .contacts__media img { aspect-ratio: auto; height: 300px; }
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
}

/* ---------- Мобильный порядок элементов (по мобильному макету) ---------- */
@media (max-width: 999px) {
  /* Hero: заголовок → подзаголовок → фото → кнопки (на всю ширину) → тизеры */
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .hero__body { display: contents; }
  .hero__title { order: 1; }
  .hero__sub { order: 2; }
  .hero__media { order: 3; }
  .hero__actions { order: 4; flex-direction: column; }
  .teasers { order: 5; }

  /* Цены: заголовок → таблица цен → что входит → кнопка → тёмный блок */
  .prices-grid { display: flex; flex-direction: column; gap: 20px; }
  .prices-side { display: contents; }
  .price-list { order: 1; }
  .included { order: 2; }
  .prices-side .btn { order: 3; }
  .cta-dark .btn { align-self: stretch; }

  /* Промо: бейдж → заголовок → лид → условие → кнопка → срок акции.
     display: flex задаётся в секции «Типы страницы» (после правил видимости). */
  .promo { flex-direction: column; align-items: stretch; gap: 16px; }
  .promo__body { display: contents; }
  .promo__badge { order: 1; align-self: flex-start; }
  .promo__title { order: 2; }
  .promo__lead { order: 3; }
  .promo__condition { order: 4; }
  .promo__actions { order: 5; flex-direction: column; align-items: stretch; }
  .promo__deadline { text-align: center; }

  /* Что изменится: заголовок → фото → пункты */
  .benefits { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .benefits__col { display: contents; }
  #benefits-title { order: 1; }
  .benefits__media { order: 2; }
  .benefits__grid { order: 3; }

  /* Как это работает: заголовок → фото → шаги → кнопка (на всю ширину) */
  .how__media { order: 1; }
  .how__steps { order: 2; }
  .how__cta { margin-left: 0; align-self: stretch; }

  /* Контакты: способы связи на всю ширину */
  .contacts__list { flex-direction: column; }

  /* Все крупные CTA-кнопки в контенте — на всю ширину */
  main .btn--lg { width: 100%; }
  .why__cta { align-self: stretch; }
  /* Кнопки экранов успеха/ошибки в модалках — на всю ширину */
  .state__actions { flex-direction: column; }
  .state .btn { width: 100%; }

  /* Блок «Ответы на вопросы»: кнопку на мобилке скрыть */
  .faq__cta { display: none; }

  /* Футер: колонку «Разделы» на мобилке скрыть */
  .footer-top nav.footer-col { display: none; }
}

/* Tablet / mobile header switch */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .header-cta { display: none; }
  .header-phone-icon { display: inline-flex; }
  .burger { display: inline-flex; }
  .header-inner { height: 60px; }
  .sticky-nav__inner { height: 56px; }
}
@media (min-width: 961px) {
  .burger, .header-phone-icon { display: none; }
}

/* Small phones */
@media (max-width: 420px) {
  .hero__badge { left: 12px; bottom: 12px; padding: 10px 14px; gap: 12px; }
  .cookie { flex-direction: column; align-items: stretch; text-align: left; gap: 12px; padding: 16px 18px; }
  .cookie__btn { width: 100%; }
  .modal__assurances { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Типы страницы (?t=…) — состав, порядок блоков и тексты
   Атрибут data-t на <html> проставляет инлайн-скрипт из <head>
   ещё до отрисовки, поэтому вариант применяется без «прыжка».
   .shell уже flex-колонка → порядок задаём через order.
   Неизвестный ?t=… ничего не меняет — показывается базовая версия.
   ============================================================ */

/* Текстовые варианты: по умолчанию виден --default, --values скрыт.
   Для нужного типа — наоборот. Так же можно менять любые тексты. */
.tvar--values { display: none; }
[data-t="values"] .tvar--default { display: none; }
[data-t="values"] .tvar--values  { display: inline; }

/* t=values: Герой → Что изменится → Почему → Цены → далее как в базовой.
   Порядок задаём для всех блоков сразу — иначе неуказанные (order:0)
   всплыли бы наверх. */
[data-t="values"] #hero     { order: 1; }
[data-t="values"] #benefits { order: 2; }
[data-t="values"] #why      { order: 3; }
[data-t="values"] #prices   { order: 4; }
[data-t="values"] #how      { order: 5; }
[data-t="values"] #reviews  { order: 6; }
[data-t="values"] #faq      { order: 7; }
[data-t="values"] #contacts { order: 8; }

/* t=promo: после hero показывается промо-блок «Скидка 30%».
   Состав и порядок остальных блоков — как в базовой версии.
   Промо стоит в DOM сразу после hero, поэтому правила order
   не нужны — достаточно управлять видимостью. */
#promo { display: none; }
[data-t="promo"] #promo { display: grid; }
/* На мобилке блок — flex-колонка: порядок элементов задан через order
   в секции «Мобильный порядок элементов». Правило стоит после базового,
   чтобы выиграть при равной специфичности. */
@media (max-width: 999px) {
  [data-t="promo"] #promo { display: flex; }
}
