/* Дизайн 2026: светлый, шрифт Manrope, акцент зелёный */
:root {
  --accent: #15803D;
  --accent-dark: #166534;
  --ink: #0F172A;
  --text: #334155;
  --muted: #475569;
  --line: #E5E7EB;
  --soft: #F4F6F8;
  --star: #F59E0B;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #FFFFFF;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: 40px; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { scroll-margin-top: 80px; }
.section { padding: 80px 0; }
.soft { background: var(--soft); }
.dark { background: var(--ink); color: #FFFFFF; }
.lead { font-size: 18px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 14px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn-ghost { background: #FFFFFF; color: var(--ink); border-color: #CBD5E1; }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: 12px; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.brand-name { display: block; font-weight: 800; font-size: 20px; line-height: 1.2; }
.brand-sub { display: block; font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: 24px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.header-contact { display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; flex-direction: column; align-items: flex-end; }
.header-phone a { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-phone span { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* Первый экран */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.05; }
.hero-sub { font-size: 20px; color: var(--text); max-width: 560px; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.badge:hover { color: var(--ink); border-color: #CBD5E1; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 15px; color: var(--text); list-style: none; margin: 0; padding: 0; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-photo { flex: 1 1 380px; min-width: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }

/* Услуги */
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.head-row > div { display: flex; flex-direction: column; gap: 12px; }
.head-row > a { font-weight: 700; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.price-group + .price-group { margin-top: 32px; }
.price-group h3 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.price { border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 140px; background: #FFFFFF; }
.price-name { font-size: 17px; font-weight: 700; line-height: 1.35; }
.price-note { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.price-cost { font-size: 22px; font-weight: 800; color: var(--accent); }
.price-hint { margin-top: 20px; font-size: 15px; color: var(--muted); }

/* Как работаем */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 40px; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 16px; background: #1E293B; }
.step-n { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.step-title { font-size: 19px; font-weight: 700; }
.step-text { color: #CBD5E1; }
.guarantee { margin-top: 24px; padding: 24px; border-radius: 16px; border: 1px solid #334155; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.guarantee strong { font-size: 19px; }
.guarantee span { color: #CBD5E1; }

/* Фото */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.gallery figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* Отзывы */
.reviews .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.reviews-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.score { display: flex; align-items: baseline; gap: 12px; }
.score b { font-size: 64px; font-weight: 800; line-height: 1; }
.score span { font-size: 18px; color: var(--text); }
.stars { display: flex; gap: 4px; }
.reviews-side a { font-weight: 700; }
.reviews-widget { flex: 999 1 560px; min-width: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.reviews-widget iframe { display: block; width: 100%; height: 720px; border: 0; }

/* Контакты и форма */
.contacts .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.contacts-info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.info-block { display: flex; flex-direction: column; gap: 6px; font-size: 18px; }
.info-label { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.info-hint { font-size: 15px; color: var(--muted); }
.info-phone { font-size: 24px; font-weight: 800; color: var(--ink); text-decoration: none; }
.map { border-radius: 20px; overflow: hidden; min-height: 300px; background: #E2E8F0; }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }
.form { flex: 1 1 380px; min-width: 0; align-self: flex-start; background: var(--soft); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.form h3 { font-size: 28px; font-weight: 800; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.form input, .form textarea { font: inherit; font-weight: 500; font-size: 17px; padding: 14px 16px; border: 1px solid #CBD5E1; border-radius: 12px; background: #FFFFFF; color: var(--ink); min-height: 52px; width: 100%; }
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .btn { width: 100%; min-height: 56px; }
.form-status { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-status.is-ok { background: #DCFCE7; color: #14532D; }
.form-status.is-error { background: #FEE2E2; color: #7F1D1D; }
.form .btn:disabled { opacity: .7; cursor: wait; }
.form-note { font-size: 13px; color: var(--muted); }
.form label.consent { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.form label.consent input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--accent); }

/* Страница политики */
.doc { max-width: 820px; padding-top: 48px; padding-bottom: 64px; }
.doc h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 32px 0 12px; }
.doc p, .doc li { color: var(--text); margin: 0 0 10px; }
.doc ul { padding-left: 22px; margin: 0 0 12px; }

/* Подвал */
.footer { background: var(--ink); color: #CBD5E1; font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.footer a { color: #FFFFFF; }

/* Кнопка звонка внизу экрана на телефоне */
.mobile-bar { display: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
}
@media (max-width: 767px) {
  h2 { font-size: 30px; }
  .section { padding: 56px 0; }
  .wrap { padding: 0 16px; }
  .header-phone, .header .btn { display: none; }
  .brand-name { font-size: 18px; }
  .hero .wrap { padding-top: 32px; padding-bottom: 40px; gap: 28px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 17px; }
  .actions .btn { flex: 1 1 100%; }
  .price-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .price { min-height: 0; padding: 16px; gap: 10px; border-radius: 14px; }
  .price-name { font-size: 15px; }
  .price-note { font-size: 13px; }
  .price-cost { font-size: 18px; }
    .score b { font-size: 52px; }
  .reviews .wrap { gap: 28px; }
  .reviews-widget iframe { height: 560px; }
  .form { padding: 24px 20px; border-radius: 20px; }
  .form h3 { font-size: 24px; }
  body { padding-bottom: 76px; }
  .mobile-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15, 23, 42, .08); }
  .mobile-bar .btn { flex: 1; min-height: 52px; padding: 10px 12px; font-size: 16px; }
}

/* Калькулятор стоимости (calc.js) */
.calc { border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: #FFFFFF; max-width: 860px; }
.calc-step { font-weight: 800; font-size: 17px; margin: 0 0 12px; color: var(--ink); }
.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.calc-chip { font: inherit; font-size: 15px; font-weight: 600; padding: 10px 16px; min-height: 44px; border-radius: 999px; border: 1px solid #CBD5E1; background: #FFFFFF; color: var(--ink); cursor: pointer; text-align: left; }
.calc-chip:hover { border-color: var(--accent); }
.calc-chip[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.calc-result { border-radius: 16px; background: var(--soft); padding: 20px 24px; }
.calc-hint { color: var(--muted); }
.calc-price-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.calc-label { font-weight: 700; color: var(--ink); }
.calc-price { font-size: 30px; font-weight: 800; color: var(--accent); }
.calc-note { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.calc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
@media (max-width: 640px) {
  .calc { padding: 20px 16px; }
  .calc-chip { font-size: 14px; padding: 8px 14px; }
  .calc-price { font-size: 26px; }
}

/* Акция и мессенджеры */
.promo { display: inline-block; align-self: flex-start; margin: 0; padding: 8px 14px; border-radius: 10px; background: #FEF3C7; color: #92400E; font-weight: 700; font-size: 16px; }
.msg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; font-size: 16px; color: var(--muted); }
.msg { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.msg-wa, .msg-wa:hover { color: #128C4A; }
.msg-tg, .msg-tg:hover { color: #1C8ACB; }
.msg-max, .msg-max:hover { color: #6B3FE0; }
.btn-icon { flex: 0 0 52px !important; padding: 0 !important; }


/* Адрес и действия до прокрутки страницы */
.visit-address { margin: 12px 0; font-size: 15px; line-height: 1.5; }
.visit-address a { text-decoration: underline; }
.buyback-contact { padding: 16px; margin: 16px 0 24px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; background: var(--soft, #f4f6f8); }
.buyback-contact .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.buyback-contact p { margin: 0 0 12px; }
#route { scroll-margin-top: 110px; }
@media(max-width:640px) { .buyback-contact .btn { width:100%; white-space:normal; text-align:center; } }

