/**
 * Район-лендинги — светлая чистая тема
 * «Профессиональный ремонт под ключ»: белый фон, воздух, мягкие тени.
 * Вариативность: v-a (янтарь, дефолт) / v-b (синий) / v-c (зелёный) / v-d (терракот);
 * шрифт задаётся классом на body (font-manrope / font-inter / font-rubik / font-golos).
 */

:root {
  --accent: #f59e0b;
  --accent-rgb: 245, 158, 11;
  --accent-dark: #b45309;
  --accent-soft: #fdf3e0;
  --btn-ink: #241a05;          /* текст на акцентной кнопке */
  --ink: #1d2433;              /* заголовки */
  --text: #3b4353;             /* основной текст */
  --muted: #6f7787;
  --bg: #ffffff;
  --bg-soft: #f7f6f2;          /* чередующиеся секции */
  --bg-soft-2: #f2f1ec;        /* «глубокая» секция (бывш. dark) */
  --border: #e9e7e1;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 6px 24px rgba(29, 36, 51, 0.06);
  --shadow-lg: 0 18px 48px rgba(29, 36, 51, 0.10);
  --container: 1180px;
}

/* Цветовые варианты (анти-футпринт) */
.v-b { --accent: #2563eb; --accent-rgb: 37, 99, 235;  --accent-dark: #1d4ed8; --accent-soft: #e8effd; --btn-ink: #ffffff; }
.v-c { --accent: #059669; --accent-rgb: 5, 150, 105;  --accent-dark: #047857; --accent-soft: #e2f6ee; --btn-ink: #ffffff; }
.v-d { --accent: #e0552b; --accent-rgb: 224, 85, 43;  --accent-dark: #bb3f1a; --accent-soft: #fdeae2; --btn-ink: #ffffff; }

/* Вариации геометрии/раскладки */
.v-b { --radius: 8px;  --radius-lg: 12px; }
.v-c { --radius: 18px; --radius-lg: 28px; }
.v-d .hero-grid { direction: rtl; }
.v-d .hero-grid > * { direction: ltr; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.font-inter { font-family: 'Inter', -apple-system, sans-serif; }
body.font-rubik { font-family: 'Rubik', -apple-system, sans-serif; }
body.font-golos { font-family: 'Golos Text', -apple-system, sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { color: var(--ink); line-height: 1.18; letter-spacing: -0.015em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Кнопки ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.v-b .btn { border-radius: 10px; }
.btn:active { transform: translateY(1px); }

.btn-accent {
  background: var(--accent);
  color: var(--btn-ink);
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.30);
}
.btn-accent:hover { box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.42); }

.btn-outline {
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }

.btn-light-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid #d8d5cd;
}
.btn-light-outline:hover { border-color: var(--accent); color: var(--accent-dark); }

.btn-header { padding: 11px 20px; font-size: 15px; }

.btn-whatsapp { background: #22c55e; color: #fff; }
.btn-whatsapp:hover { background: #16a34a; }
.btn-telegram { background: #38a8e8; color: #fff; }
.btn-telegram:hover { background: #2492d3; }

/* ============ Шапка ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--accent-dark); }

.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--ink); }

.header-contact { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.25;
}
.header-phone small { font-weight: 500; font-size: 12px; color: var(--muted); }
.header-phone:hover { color: var(--accent-dark); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(820px 460px at 88% -12%, rgba(var(--accent-rgb), 0.10), transparent 62%),
    radial-gradient(640px 420px at -8% 108%, rgba(var(--accent-rgb), 0.06), transparent 55%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.30);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.v-b .hero-badge { border-radius: 8px; }

.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent-dark); }

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(29, 36, 51, 0.08)); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.hero-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.hero-stat b { font-size: 30px; font-weight: 800; color: var(--ink); }
.hero-stat b i { font-style: normal; font-size: 20px; color: var(--accent-dark); }
.hero-stat span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ============ Секции ============ */
.section { padding: 88px 0; background: var(--bg); }
.section-white { background: var(--bg-soft); }
.section-dark { background: var(--bg-soft-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

/* ============ Услуги ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: rgba(var(--accent-rgb), 0.35); }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--accent-dark); }
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.service-price { font-weight: 800; color: var(--accent-dark); font-size: 16px; }

/* ============ Вводный блок (уникальный текст) ============ */
.about-block { max-width: 860px; margin: 0 auto; }
.about-block h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 20px; }
.about-block p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.about-block p:last-child { margin-bottom: 0; }
.about-block strong { color: var(--ink); }

/* ============ Процесс ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.process-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.process-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--btn-ink);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.process-step h3 { font-size: 17px; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--muted); }

/* ============ Преимущества ============ */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.adv-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.adv-card svg { width: 30px; height: 30px; stroke: var(--accent-dark); margin-bottom: 16px; }
.adv-card h3 { font-size: 18px; margin-bottom: 8px; }
.adv-card p { font-size: 15px; color: var(--muted); }

/* ============ Цены ============ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 22px 52px rgba(var(--accent-rgb), 0.16);
}
.price-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--btn-ink);
  font-size: 13px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.v-b .price-tag { border-radius: 8px; }
.price-card h3 { font-size: 21px; margin-bottom: 4px; }
.price-from { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.price-value { font-size: 34px; font-weight: 800; color: var(--accent-dark); margin-bottom: 20px; }
.price-value small { font-size: 17px; font-weight: 700; color: var(--muted); }
.price-card ul { list-style: none; margin-bottom: 26px; flex: 1; }
.price-card li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 800;
}
.price-note { text-align: center; margin-top: 34px; color: var(--muted); }
.price-note a { color: var(--accent-dark); font-weight: 700; }

/* ============ География ============ */
.geo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto;
}
.geo-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.v-b .geo-pill { border-radius: 8px; }
.geo-pill-main {
  background: var(--accent-soft);
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--accent-dark);
  font-weight: 800;
}
.geo-note { text-align: center; margin-top: 30px; color: var(--muted); max-width: 720px; margin-left: auto; margin-right: auto; }
.geo-note a { color: var(--accent-dark); font-weight: 700; }
.geo-note strong { color: var(--ink); }

/* ============ Отзывы ============ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px 24px;
  box-shadow: var(--shadow);
}
.review-stars { color: var(--accent); letter-spacing: 3px; font-size: 15px; margin-bottom: 12px; }
.review-text { color: var(--text); font-size: 15.5px; line-height: 1.65; margin-bottom: 18px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.review-author b { color: var(--ink); font-size: 15px; display: block; }
.review-author span { color: var(--muted); font-size: 13px; }

/* ============ FAQ ============ */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); overflow: hidden; box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent-dark); font-size: 26px; font-weight: 700; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-answer { padding: 0 24px 22px; color: var(--muted); }

/* ============ Контакты ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 16px; }
.contact-info > p { color: var(--muted); margin-bottom: 28px; max-width: 480px; }

.contact-points { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: var(--text); }
.contact-points svg { width: 22px; height: 22px; stroke: var(--accent-dark); flex: none; margin-top: 2px; }

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-lg);
}
.contact-person { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.contact-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-person b { color: var(--ink); font-size: 17px; display: block; }
.contact-person span { color: var(--muted); font-size: 13.5px; }

.contact-phone {
  display: block;
  font-size: 27px;
  font-weight: 800;
  color: var(--accent-dark);
  text-decoration: none;
  margin-bottom: 8px;
}
.contact-phone:hover { color: var(--accent); }
.contact-hours { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.contact-address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--text);
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  margin-bottom: 20px;
}
.contact-address svg { width: 18px; height: 18px; stroke: var(--accent-dark); flex: none; }
.contact-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-buttons .btn { flex: 1; padding: 13px 18px; font-size: 15px; }

/* ============ Футер ============ */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 34px 0;
}
.footer-grid {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.site-footer .logo { font-size: 17px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 auto; }
.footer-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.footer-phone { font-weight: 800; color: var(--ink); text-decoration: none; font-size: 16px; }
.footer-phone:hover { color: var(--accent-dark); }
.footer-address { font-size: 13px; color: var(--muted); }

/* ============ Плавающая кнопка звонка (mobile) ============ */
.fab-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.45);
  animation: fab-pulse 2.4s infinite;
}
.fab-call svg { width: 26px; height: 26px; stroke: var(--btn-ink); }
@keyframes fab-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

/* ============ Телефон по клику ============ */
.js-phone { cursor: pointer; }
.js-phone .ph { white-space: nowrap; }

/* ============ Адаптив ============ */
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .main-nav a:last-child { border-bottom: none; }
  .burger { display: flex; }
  .btn-header { display: none; }

  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { max-width: 440px; margin: 0 auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 38px; }

  .section { padding: 62px 0; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .fab-call { display: flex; }
}

@media (max-width: 600px) {
  /* телефон в шапке не влезает: остаются hero-кнопка, FAB и контакты */
  .header-phone { display: none; }
  .header-contact { margin-left: auto; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-stat { padding: 15px 16px; }
  .hero-stat b { font-size: 24px; }
  .process-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-contact { align-items: flex-start; }
}

/* MAX messenger */
.btn-max { background: linear-gradient(135deg, #8f6bff, #4a7dff); color: #fff; }
.btn-max:hover { filter: brightness(1.08); }

/* Независимое зеркалирование hero (индивидуализация раскладки) */
.hero-flip .hero-grid { direction: rtl; }
.hero-flip .hero-grid > * { direction: ltr; }
