/* =====================================================================
   ДомГарант — дизайн-система v2 (mobile-first, авторский стиль)
   Бумага + графит + зелёный + жёлтый сигнал. Onest + JetBrains Mono.
   ===================================================================== */

/* ---------- Токены ---------- */
:root {
  --paper:    #f4f6f1;   /* чистый светлый фон с лёгкой зеленцой */
  --paper-2:  #e8ece1;
  --surface:  #ffffff;
  --ink:      #1d231b;   /* почти чёрный, тёпло-зелёный */
  --ink-2:    #535a4d;   /* основной текст */
  --ink-3:    #8a9181;   /* подписи */
  --line:     #e2e7da;   /* границы */
  --line-2:   #d3dac6;

  --green:    #0f5a33;   /* зелёные панели (дружелюбный, не тёмный лес) */
  --green-900:#0b3a21;   /* крупные тёмные блоки: футер, гарантия, бегущая строка */
  --grass:    #17a258;   /* основное действие — яркий «народный» зелёный */
  --grass-d:  #128247;   /* ховер */
  --grass-ink:#0e7a43;   /* зелёный текст-акцент на светлом (контраст) */
  --grass-t:  #e4f3ea;

  --yellow:   #ffc62e;   /* солнечный акцент */
  --yellow-d: #eaa800;

  --r:   14px;           /* кнопки */
  --r-2: 20px;           /* карточки */
  --r-3: 28px;           /* крупные блоки */

  --maxw: 1180px;
  --pad: 20px;

  --f-sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

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

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--grass); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--ink); }

h1,h2,h3 { line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Утилиты ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(48px, 9vw, 104px); }
.section--ink { background: var(--green-900); color: var(--paper); }
.label {
  font-family: var(--f-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grass); box-shadow: 0 0 0 3px var(--grass-t); }
.label--ink { color: #b7b1a0; }
.hl { color: var(--grass-ink); }
.muted { color: var(--ink-3); }
.mono { font-family: var(--f-mono); }

.sec-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin-top: 14px; }
.sec-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; }
.sec-head--center { margin-inline: auto; text-align: center; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1rem; padding: 15px 24px; border-radius: var(--r);
  transition: transform .15s var(--ease), background .15s, box-shadow .15s, color .15s;
  line-height: 1; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grass); color: #fff; }
.btn--primary:hover { background: var(--grass-d); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #000; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-d); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--lg { padding: 17px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Шапка (mobile-first) ---------- */
.header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-stuck { border-color: var(--line); }
.header__bar { display: flex; align-items: center; gap: 12px; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.logo__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--green); display: grid; place-items: center; }
.logo__mark svg { width: 20px; height: 20px; }
.logo__mark .y { stroke: var(--yellow); }
.logo b { color: var(--grass); }

.header__right { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 11px; background: var(--paper-2); display: grid; place-items: center; }
.icon-btn:hover { background: var(--line); }
.icon-btn svg { width: 21px; height: 21px; }
.city-switch { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .95rem; }
.city-switch .nm { display: none; }
.header__phone, .header__cta, .nav { display: none; }
.burger { width: 44px; height: 44px; border-radius: 11px; background: var(--ink); display: grid; place-items: center; }
.burger span { position: relative; width: 18px; height: 2px; background: var(--paper); border-radius: 2px; transition: .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--paper); border-radius: 2px; transition: .2s; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Мобильное меню */
.nav.is-open {
  display: grid; gap: 2px; position: fixed; top: 62px; left: 0; right: 0;
  background: var(--paper); padding: 12px var(--pad) calc(20px + env(safe-area-inset-bottom));
  border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.12);
  max-height: calc(100dvh - 62px); overflow: auto;
}
.nav.is-open > a { padding: 14px 12px; font-weight: 700; font-size: 1.05rem; border-radius: 10px; }
.nav.is-open > a:hover { background: var(--paper-2); }
.nav__foot { margin-top: 12px; display: grid; gap: 10px; }
.nav__foot .tel { font-family: var(--f-mono); font-weight: 700; font-size: 1.15rem; text-align: center; padding: 10px; }

/* Выпадающий список «Услуги» */
.nav__has { position: relative; }
.nav__top { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav__chev { width: 14px; height: 14px; transition: transform .2s; }
.nav__drop a { display: flex; align-items: center; gap: 10px; }
.nav__drop a svg { width: 18px; height: 18px; color: var(--grass); flex: none; }

/* ---------- Hero ---------- */
.hero { padding-block: 32px clamp(40px, 7vw, 72px); }
.hero__inner { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(2.1rem, 8vw, 3.4rem); margin: 16px 0 0; }
.hero__sub { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; max-width: 30ch; }

.leadbar { margin-top: 24px; display: grid; gap: 10px; max-width: 460px; }
.leadbar input {
  font: inherit; font-size: 1rem; padding: 16px 18px; border-radius: var(--r);
  background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink);
}
.leadbar input:focus { outline: none; border-color: var(--grass); }
.leadbar input::placeholder { color: var(--ink-3); }
.hero__or { margin-top: 14px; font-size: .95rem; color: var(--ink-3); }
.hero__or a { font-family: var(--f-mono); font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--yellow); }

.stats { margin-top: 28px; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; border-top: 1px solid var(--line); padding-top: 22px; }
.stats b { font-family: var(--f-mono); font-size: clamp(1.2rem,4.5vw,1.6rem); font-weight: 700; display: block; letter-spacing: -.02em; }
.stats span { font-size: .82rem; color: var(--ink-3); }

/* Тёмная trust-панель */
.hero__panel { background: var(--green); color: var(--paper); border-radius: var(--r-3); padding: 26px; position: relative; overflow: hidden; }
.hero__panel::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,203,58,.14); }
.stamp { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-weight: 700; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 8px 14px; border-radius: 999px; }
.promises { margin-top: 22px; display: grid; gap: 14px; position: relative; }
.promises li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.promises li svg { width: 22px; height: 22px; flex: none; color: var(--yellow); margin-top: 1px; }
.hero__panel-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-family: var(--f-mono); font-size: .82rem; color: #cfe3d6; }

/* ---------- Бегущая строка ---------- */
.ticker { background: var(--green-900); color: var(--paper); overflow: hidden; border-block: 1px solid #062c18; }
.ticker__row { display: flex; width: max-content; gap: 0; animation: ticker 38s linear infinite; }
.ticker__row span { font-family: var(--f-mono); font-size: .82rem; font-weight: 500; letter-spacing: .04em; padding: 13px 0; display: inline-flex; align-items: center; }
.ticker__row span::before { content: "✶"; color: var(--yellow); margin: 0 26px; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker:hover .ticker__row { animation-play-state: paused; }

/* ---------- Услуги ---------- */
.cat-grid { display: grid; gap: 14px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s; }
.cat:hover { border-color: var(--ink); transform: translateY(-3px); }
.cat__top { display: flex; align-items: center; gap: 11px; }
.cat__ico { flex: none; display: inline-flex; color: var(--grass-ink); }
.cat__ico svg { width: 28px; height: 28px; }
.cat h3 { font-size: 1.22rem; }
.cat ul { display: grid; gap: 6px; }
.cat li { font-size: .94rem; color: var(--ink-2); padding-left: 16px; position: relative; }
.cat li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--grass); }
.cat__bottom { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; }
.cat__from { font-family: var(--f-mono); font-weight: 700; font-size: .95rem; }
.cat__from b { color: var(--grass-ink); }
.cat__go { width: 38px; height: 38px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; transition: .2s; }
.cat:hover .cat__go { background: var(--grass); color: #fff; }
.cat__go svg { width: 18px; height: 18px; }

/* ---------- Как работаем ---------- */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); align-items: start; }
.step:first-child { border-top: 0; }
.step__n { font-family: var(--f-mono); font-weight: 700; font-size: 1.4rem; color: var(--grass-ink); width: 2.4ch; }
.step h3 { font-size: 1.15rem; }
.step p { margin-top: 6px; color: var(--ink-2); font-size: .98rem; }

/* ---------- Гарантия (тёмный блок) ---------- */
.guarantee { display: grid; gap: 28px; }
.guarantee .label { color: var(--yellow); }
.guarantee h2 { font-size: clamp(1.7rem,5vw,2.6rem); margin-top: 14px; }
.guarantee > div > p { margin-top: 14px; color: #c3d2c6; font-size: 1.05rem; }
.g-list { display: grid; gap: 12px; }
.g-item { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-2); padding: 18px; }
.g-item svg { width: 24px; height: 24px; flex: none; color: var(--yellow); }
.g-item b { display: block; font-size: 1.02rem; }
.g-item span { color: #aec3b3; font-size: .92rem; }

/* ---------- Цены ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; }
.price-table th, .price-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .96rem; }
.price-table th { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); background: var(--paper); }
.price-table td:last-child, .price-table th:last-child { text-align: right; }
.price-table td:last-child { font-family: var(--f-mono); font-weight: 700; white-space: nowrap; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover td { background: var(--paper); }
.price-cats { display: grid; gap: clamp(30px, 4.5vw, 52px); }
.price-cat { scroll-margin-top: 90px; }
.price-cat__head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.price-cat__head h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); }
.price-note { margin-top: clamp(24px, 3.5vw, 36px); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-2); padding: clamp(18px, 2.6vw, 26px); }
.price-note p { color: var(--ink-2); font-size: .98rem; line-height: 1.65; }
.price-note b { color: var(--ink); }

/* ---------- Отзывы ---------- */
.reviews-wrap { display: grid; gap: 16px; }
.reviews { display: grid; gap: 16px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.review__stars { color: var(--yellow-d); font-size: 1rem; letter-spacing: 2px; display: flex; align-items: center; }
.review__star-off { color: var(--line-2); }
.review__src { margin-left: auto; font-family: var(--f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: var(--paper); padding: 5px 10px; border-radius: 999px; }
/* Избранный отзыв — ломает ритм секции */
.review--feat { background: var(--green); border-color: transparent; padding: clamp(24px,3vw,38px); gap: 18px; }
.review--feat .review__stars { color: var(--yellow); }
.review--feat .review__q { color: #fff; font-size: clamp(1.12rem, 2.2vw, 1.55rem); font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.review--feat .review__by b { color: #fff; }
.review--feat .review__by span { color: #b7c7ba; }
.review--feat .review__ava { background: var(--yellow); color: var(--ink); }
.review--feat .review__src { color: var(--paper); background: rgba(255,255,255,.14); }
.review p { color: var(--ink); font-size: 1rem; }
.review__by { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.review__ava { width: 42px; height: 42px; border-radius: 12px; background: var(--green); color: var(--paper); display: grid; place-items: center; font-weight: 800; }
.review__by b { display: block; font-size: .96rem; }
.review__by span { font-family: var(--f-mono); font-size: .76rem; color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; }
.faq__item[open] { border-color: var(--ink); }
.faq__q { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 22px; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q span { width: 26px; height: 26px; flex: none; position: relative; }
.faq__q span::before, .faq__q span::after { content: ""; position: absolute; background: var(--grass); border-radius: 2px; transition: .2s; }
.faq__q span::before { inset: 12px 4px auto 4px; height: 2px; }
.faq__q span::after { inset: 4px 12px auto 12px; width: 2px; bottom: 4px; }
.faq__item[open] .faq__q span::after { transform: scaleY(0); }
.faq__a { padding: 0 22px 22px; color: var(--ink-2); }

/* ---------- Города ---------- */
.cities { display: grid; gap: 14px; }
.city-card { background: var(--green); color: var(--paper); border-radius: var(--r-2); padding: 24px; transition: transform .2s; }
.city-card:hover { transform: translateY(-3px); }
.city-card h3 { font-size: 1.3rem; }
.city-card p { color: #b7c7ba; font-size: .9rem; margin-top: 4px; }
.city-card__meta { margin-top: 16px; display: flex; gap: 22px; font-family: var(--f-mono); }
.city-card__meta b { display: block; font-size: 1.2rem; }
.city-card__meta span { font-size: .74rem; color: #9fb3a4; }
.city-card__go { margin-top: 16px; display: inline-flex; gap: 6px; font-weight: 700; color: var(--yellow); }

/* ---------- CTA ---------- */
.cta { background: var(--yellow); border-radius: var(--r-3); padding: clamp(32px,6vw,56px); text-align: center; }
.cta h2 { font-size: clamp(1.7rem,5vw,2.6rem); color: var(--ink); }
.cta p { margin-top: 12px; color: #4a3f15; font-size: 1.05rem; }
.cta .btn { margin-top: 24px; }

/* ---------- Футер ---------- */
.footer { background: var(--green-900); color: #aec3b3; padding-block: 48px 28px; }
.footer__grid { display: grid; gap: 32px; }
.footer h4 { font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: #7fa088; margin-bottom: 14px; }
.footer a { display: block; padding: 5px 0; color: #d3e2d7; font-size: .96rem; }
.footer a:hover { color: #fff; }
.footer .logo { display: inline-flex; color: #fff; margin-bottom: 14px; }
.footer .logo b { color: var(--yellow); }
.footer__about { font-size: .94rem; line-height: 1.6; max-width: 30ch; }
.footer__tel { font-family: var(--f-mono); font-size: 1.3rem; font-weight: 700; color: #fff; display: inline-block; margin: 10px 0 4px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 22px; display: grid; gap: 10px; font-size: .82rem; font-family: var(--f-mono); }
.footer__bottom a { display: inline; text-decoration: underline; }

/* ---------- Sticky CTA + модалка ---------- */
.sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 70; display: flex; gap: 10px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
.sticky-cta .btn { flex: 1; white-space: nowrap; padding-inline: 12px; }

.modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 16px; }
.modal.is-open { display: grid; }
.modal__ov { position: absolute; inset: 0; background: rgba(27,26,23,.55); animation: fade .2s; }
.modal__box { position: relative; background: var(--surface); border-radius: var(--r-3); padding: clamp(24px,5vw,36px); width: min(100%,460px); animation: pop .25s var(--ease); }
.modal__x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 11px; background: var(--paper); display: grid; place-items: center; font-size: 1.1rem; }
.modal__box h3 { font-size: 1.45rem; }
.modal__box > p { color: var(--ink-3); margin-top: 6px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }

.form { display: grid; gap: 12px; margin-top: 18px; }
.field input, .field select { width: 100%; font: inherit; font-size: 1rem; padding: 15px 16px; border-radius: var(--r); background: var(--paper); border: 1.5px solid transparent; color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--grass); background: #fff; }
.form__note { font-size: .78rem; color: var(--ink-3); text-align: center; line-height: 1.4; }
.form__note a { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .88rem; font-weight: 700; padding: 9px 15px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); transition: .15s; }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Honeypot — скрытое поле против ботов */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Согласие на обработку данных */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--ink-3); line-height: 1.4; cursor: pointer; text-align: left; }
.consent input { margin-top: 1px; width: 18px; height: 18px; flex: none; accent-color: var(--grass); }
.consent a { text-decoration: underline; color: var(--ink-2); }
.consent.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Галерея «до / после» */
.works-grid { display: grid; gap: 16px; }
.work { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); padding: 12px; margin: 0; }
.work__cap { margin: 12px 4px 4px; font-size: .96rem; font-weight: 600; color: var(--ink); }
.works-more { margin-top: clamp(22px, 3vw, 34px); display: flex; justify-content: center; }

/* Слайдер «до / после» */
.ba { --pos: 50%; position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--paper-2); touch-action: pan-y; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba__top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag { position: absolute; top: 12px; z-index: 3; font-family: var(--f-mono); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; color: #fff; pointer-events: none; }
.ba__tag--after { left: 12px; background: var(--grass); }
.ba__tag--before { right: 12px; background: rgba(20,24,18,.72); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; transform: translateX(-50%); background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); z-index: 2; pointer-events: none; }
.ba__grip { position: absolute; top: 50%; left: var(--pos); z-index: 2; width: 44px; height: 44px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--grass); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.22); pointer-events: none; }
.ba__grip svg { width: 22px; height: 22px; }
.ba__range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* Портфолио: список работ с описанием */
.pgrid { display: grid; gap: clamp(20px, 3vw, 32px); }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; margin: 0; }
.pcard .ba { border-radius: 0; aspect-ratio: 16 / 11; }
.pcard__body { padding: clamp(18px, 2.4vw, 28px); }
.pcard__title { font-size: clamp(1.2rem, 2.6vw, 1.55rem); margin-bottom: 14px; }
.pcard__row { margin-top: 10px; color: var(--ink-2); font-size: .98rem; line-height: 1.6; }
.pcard__row span { display: block; font-family: var(--f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--grass-ink); margin-bottom: 3px; }

.form-success { text-align: center; display: none; }
.form-success.is-on { display: block; animation: pop .3s var(--ease); }
.form-success__ico { width: 64px; height: 64px; border-radius: 18px; background: var(--grass-t); color: var(--grass); display: grid; place-items: center; margin: 0 auto 14px; }
.form-success__ico svg { width: 34px; height: 34px; }

/* ---------- Внутренние страницы ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); padding-block: 16px; }
.crumbs a:hover { color: var(--ink); }
.prose { max-width: 680px; }
.prose h2 { font-size: clamp(1.5rem,4vw,2rem); margin-top: 1.3em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.1em; }
.prose p, .prose ul { margin-top: .8em; color: var(--ink-2); }
.prose ul { display: grid; gap: 8px; }
.prose ul li { padding-left: 26px; position: relative; }
.prose ul li::before { content: "✓"; position: absolute; left: 0; color: var(--grass); font-weight: 800; }
.two-col { display: grid; gap: 36px; }

/* анимация появления */
[data-anim] { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
[data-anim].in { opacity: 1; transform: none; }

/* =====================================================================
   Адаптив — наращиваем от мобильного
   ===================================================================== */
@media (min-width: 600px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .reviews-wrap .reviews { grid-template-columns: 1fr 1fr; }
  .cities { grid-template-columns: repeat(3,1fr); }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; display: flex; justify-content: space-between; }
}

@media (min-width: 860px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
  .hero__panel { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
  .steps { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .step { border-top: 1px solid var(--line); }
  .step:nth-child(2) { border-top: 1px solid var(--line); }
  .guarantee { grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
  .reviews { grid-template-columns: repeat(3,1fr); }
  .two-col { grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .pgrid { grid-template-columns: 1fr 1fr; }
}

/* Десктоп: показываем полноценную навигацию */
@media (min-width: 1000px) {
  .header__bar { height: 74px; }
  .nav { display: flex; align-items: center; gap: 2px; margin-inline-start: 18px; }
  .nav > a { padding: 9px 13px; font-weight: 600; font-size: .96rem; color: var(--ink-2); border-radius: 9px; }
  .nav > a:hover { background: var(--paper-2); color: var(--ink); }
  .nav__foot { display: none; }

  .nav__top { padding: 9px 13px; font-weight: 600; font-size: .96rem; color: var(--ink-2); border-radius: 9px; background: transparent; }
  .nav__has:hover .nav__top, .nav__has.is-open .nav__top { background: var(--paper-2); color: var(--ink); }
  .nav__has:hover .nav__chev, .nav__has.is-open .nav__chev { transform: rotate(180deg); }
  .nav__drop {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 22px 44px rgba(27,26,23,.13); padding: 8px; display: grid; gap: 2px; z-index: 55;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav__drop::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 12px; }
  .nav__has:hover .nav__drop, .nav__has:focus-within .nav__drop, .nav__has.is-open .nav__drop { opacity: 1; visibility: visible; transform: none; }
  .nav__drop a { padding: 11px 14px; border-radius: 10px; font-weight: 600; font-size: .96rem; color: var(--ink-2); }
  .nav__drop a:hover { background: var(--paper); color: var(--ink); }
  .city-switch { padding: 9px 14px; background: var(--paper-2); border-radius: 999px; }
  .city-switch:hover { background: var(--line); }
  .city-switch .nm { display: inline; }
  .city-switch .icon-only { display: none; }
  .header__phone { display: block; font-family: var(--f-mono); font-weight: 700; font-size: 1.02rem; white-space: nowrap; }
  .header__phone small { display: block; font-family: var(--f-sans); font-size: .68rem; font-weight: 600; color: var(--grass); }
  .header__cta { display: inline-flex; }
  .header__right .icon-btn[data-open-city] { display: none; }
  .burger { display: none; }
  .cat-grid { grid-template-columns: repeat(4,1fr); }
  .cta { padding-block: 64px; }
  .sticky-cta { display: none; }
  body { padding-bottom: 0 !important; }
}

@media (min-width: 1200px) {
  .footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
}

/* На мобиле резервируем место под нижнюю панель */
@media (max-width: 999px) {
  body { padding-bottom: 78px; }

  /* «Услуги» в мобильном меню — заголовок + раскрытый список */
  .nav__has { display: block; }
  .nav__top { width: 100%; justify-content: flex-start; cursor: default; pointer-events: none;
    font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-3); padding: 16px 12px 6px; }
  .nav__chev { display: none; }
  .nav__drop { position: static; display: grid; gap: 2px; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .nav__drop::before { display: none; }
  .nav__drop a { padding: 13px 12px 13px 22px; font-weight: 700; font-size: 1.05rem; border-radius: 10px; color: var(--ink); }
  .nav__drop a:hover { background: var(--paper-2); }
  .nav__drop a svg { display: none; }
}

/* ===== Телефоны: компактнее текст для аккуратности ===== */
@media (max-width: 600px) {
  body { font-size: 15px; }

  .hero { padding-block: 24px 36px; }
  .hero h1 { font-size: clamp(1.6rem, 7.2vw, 2rem); }
  .hero__sub { font-size: .95rem; max-width: 36ch; margin-top: 12px; }
  .label { font-size: .66rem; }
  .hero__or { font-size: .82rem; }

  .leadbar { margin-top: 18px; }
  .leadbar input, .field input, .field select { font-size: .95rem; padding: 13px 14px; }
  .btn { font-size: .92rem; padding: 13px 18px; }
  .btn--lg { font-size: .96rem; padding: 15px 20px; }

  .stats { margin-top: 22px; padding-top: 16px; gap: 10px; }
  .stats b { font-size: 1.15rem; }
  .stats span { font-size: .72rem; }

  .hero__panel { padding: 20px; }
  .stamp { font-size: .66rem; padding: 7px 12px; }
  .promises li { font-size: .92rem; gap: 10px; }
  .promises li svg { width: 20px; height: 20px; }
  .hero__panel-note { font-size: .76rem; }

  .ticker__row span { font-size: .74rem; padding: 11px 0; }
  .ticker__row span::before { margin: 0 18px; }

  .sec-head { margin-bottom: 24px; }
  .sec-head h2 { font-size: clamp(1.4rem, 6vw, 1.75rem); }
  .sec-head p { font-size: .94rem; }

  .cat { padding: 18px; gap: 10px; }
  .cat__ico svg { width: 24px; height: 24px; }
  .cat h3 { font-size: 1.06rem; }
  .cat li { font-size: .89rem; }
  .cat__from { font-size: .88rem; }

  .step { padding: 18px 0; gap: 14px; }
  .step__n { font-size: 1.2rem; }
  .step h3 { font-size: 1.02rem; }
  .step p { font-size: .9rem; }

  .guarantee h2 { font-size: clamp(1.4rem, 6vw, 1.75rem); }
  .guarantee > div > p { font-size: .94rem; }
  .g-item { padding: 15px; }
  .g-item b { font-size: .95rem; }
  .g-item span { font-size: .84rem; }

  .price-table th { font-size: .66rem; }
  .price-table th, .price-table td { padding: 12px 13px; font-size: .89rem; }

  .review { padding: 20px; }
  .review p { font-size: .94rem; }
  .review__by b { font-size: .9rem; }
  .review__by span { font-size: .72rem; }

  .faq__q { font-size: .97rem; padding: 16px 18px; }
  .faq__a { font-size: .91rem; padding: 0 18px 18px; }

  .city-card { padding: 20px; }
  .city-card h3 { font-size: 1.16rem; }
  .city-card__meta b { font-size: 1.1rem; }

  .cta { padding: 30px 22px; }
  .cta h2 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .cta p { font-size: .95rem; }

  .work__cap { font-size: .85rem; }
  .work__tag { font-size: .6rem; }

  .consent { font-size: .78rem; }
  .crumbs { font-size: .73rem; }

  .modal__box h3 { font-size: 1.28rem; }
  .modal__box > p { font-size: .92rem; }

  .prose h1 { font-size: clamp(1.5rem, 6vw, 1.9rem) !important; }
  .prose h2 { font-size: clamp(1.3rem, 5.5vw, 1.65rem); }
  .prose h3 { font-size: 1.06rem; }
  .prose p, .prose ul { font-size: .94rem; }

  .footer { padding-block: 40px 24px; }
  .footer__about { font-size: .9rem; }
  .footer a { font-size: .92rem; }
  .footer__bottom { font-size: .76rem; }
  .logo { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-anim] { opacity: 1; transform: none; }
  .ticker__row { animation: none !important; }
}
