/* ===== Реммастер — дизайн-система ===== */
:root {
  --accent: #C23B32;
  --accent-dark: #8F2A23;
  --accent-light: #E8B7B0;
  --bg: #FFFFF3;
  --bg-soft: #F3ECD8;
  --bg-card: #FFFFFF;
  --border: #E4DBC2;
  --text: #2C2C2A;
  --text-muted: #5F5E5A;
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1180px;
  --font: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --shadow: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-soft);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

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

/* ===== Header ===== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon {
  width: 44px; height: 44px; border-radius: 11px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-icon svg { width: 24px; height: 24px; }
.logo-text-main { font-size: 19px; font-weight: 700; color: var(--text); line-height: 1.1; }
.logo-text-sub { font-size: 11px; color: var(--text-muted); }
.logo-link { display: flex; align-items: center; gap: 12px; }

.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--text); font-size: 14.5px; font-weight: 500; padding: 8px 12px;
  border-radius: 8px; text-decoration: none; white-space: nowrap;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--accent); }
.main-nav .dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 240px; padding: 8px; margin-top: 4px;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 10px; font-size: 14px; border-radius: 6px; }
.dropdown-menu a:hover { background: var(--bg-soft); }

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { font-weight: 600; color: var(--text); font-size: 14.5px; white-space: nowrap; }
.header-phone:hover { color: var(--accent); }

.nav-toggle { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600;
  font-size: 15px; cursor: pointer; border: none; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-secondary:hover { background: var(--accent); color: #fff; text-decoration: none; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }

/* ===== Hero (главная) ===== */
.hero {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 100%);
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.hero h1 { font-size: 38px; font-weight: 700; margin-bottom: 16px; max-width: 720px; }
.hero .lead { font-size: 18px; color: var(--text-muted); max-width: 640px; margin-bottom: 24px; }
.hero-facts { display: flex; gap: 32px; flex-wrap: wrap; margin: 28px 0; }
.hero-fact { padding-right: 32px; border-right: 1px solid var(--border); }
.hero-fact:last-child { border-right: none; }
.hero-fact .num { font-size: 26px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.hero-fact .label { font-size: 13.5px; color: var(--text-muted); white-space: nowrap; }

/* ===== Sections ===== */
main { background: var(--bg); }
.section { padding: 48px 0; }
.section-soft { background: var(--bg-soft); }
.section h2 { font-size: 27px; font-weight: 700; margin-bottom: 8px; }
.section h3 { font-size: 20px; font-weight: 700; margin: 24px 0 10px; }
.section p { margin-bottom: 14px; color: var(--text); }
.section-lead { color: var(--text-muted); font-size: 16px; margin-bottom: 28px; max-width: 720px; }

.quick-facts {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 24px; margin: 20px 0 28px;
}
.quick-facts ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 10px 24px; }
.quick-facts li { font-size: 14.5px; }
.quick-facts b { color: var(--accent-dark); }

/* ===== Cards / grid ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; margin: 24px 0; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h3 { margin-top: 0; font-size: 18px; }
.card .price-tag { color: var(--accent); font-weight: 700; font-size: 15px; margin-top: 8px; }

/* ===== Tables ===== */
table { width: 100%; border-collapse: collapse; margin: 18px 0; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 11px 14px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border); }
th { background: var(--bg-soft); font-weight: 700; color: var(--text); }
tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; margin: 18px 0; position: relative; -webkit-overflow-scrolling: touch; }
.table-wrap table { margin: 0; min-width: 560px; }
@media (max-width: 620px) {
  .table-wrap { border-radius: var(--radius); box-shadow: inset -14px 0 12px -12px rgba(0,0,0,0.12); }
  .table-wrap::after {
    content: "→ прокрутите таблицу"; display: block; text-align: center; font-size: 11.5px;
    color: var(--text-muted); padding: 6px 0 0; background: var(--bg-soft);
  }
}

/* ===== FAQ ===== */
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; }
.faq-item h3, .faq-item strong.faq-q { display: block; font-size: 16px; margin-bottom: 8px; color: var(--accent-dark); }

/* ===== City badges / list ===== */
.city-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 10px; margin: 20px 0; }
.city-badge {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; text-align: center; font-weight: 600; font-size: 14.5px;
}
.city-badge:hover { background: var(--accent); color: #fff; }

/* ===== Footer ===== */
.site-footer { background: #2C2620; color: #E8E2D0; padding: 48px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-col h4 { font-size: 14px; color: #fff; margin-bottom: 14px; letter-spacing: .3px; }
.footer-col a { display: block; color: #C9C2AC; font-size: 14px; padding: 4px 0; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-about p { color: #C9C2AC; font-size: 14px; margin-bottom: 14px; }
.footer-phone { color: #fff !important; font-weight: 700; font-size: 17px !important; }
.footer-bottom {
  border-top: 1px solid #453D33; padding-top: 18px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; color: #9A927D; font-size: 13px;
}
.footer-bottom a { color: #9A927D; }
.footer-social { display: flex; gap: 12px; margin-top: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: #453D33; display: flex;
  align-items: center; justify-content: center; color: #fff; font-size: 15px;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs { font-size: 13px; color: var(--text-muted); padding: 14px 0; }
.breadcrumbs a { color: var(--text-muted); }

/* ===== Sticky CTA bar (мобильный) ===== */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-card);
  border-top: 1px solid var(--border); padding: 10px 14px; z-index: 200; box-shadow: 0 -4px 14px rgba(0,0,0,.08);
}
.sticky-cta-inner { display: flex; gap: 8px; }
.sticky-cta .btn { flex: 1; padding: 11px; font-size: 13.5px; }

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .header-phone { display: none; }
  .header-cta { gap: 8px; }
  .header-cta .btn { padding: 10px 14px; font-size: 13.5px; }
  .nav-toggle { flex-shrink: 0; }
}
@media (max-width: 900px) {
  .main-nav {
    display: none; flex-direction: column; align-items: stretch; width: 100%;
    position: absolute; top: 100%; left: 0; background: var(--bg-card);
    border-top: 1px solid var(--border); padding: 10px; box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 14px; display: block; }
  .dropdown:hover .dropdown-menu { display: block; }
  .nav-toggle { display: block; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text); }
  .header-inner { position: relative; flex-wrap: wrap; }
  .header-cta { margin-left: auto; }
  .hero h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sticky-cta { display: block; }
  body { padding-bottom: 62px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-facts { gap: 18px; }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag {
  display: inline-block; background: var(--bg-soft); color: var(--accent-dark); font-size: 12.5px;
  font-weight: 600; padding: 4px 10px; border-radius: 20px; margin-right: 6px; margin-bottom: 6px;
}
.note-box {
  background: #FDF3E7; border: 1px solid #EAD9BC; border-radius: var(--radius); padding: 14px 18px;
  font-size: 13.5px; color: #7A5B2E; margin: 16px 0;
}

/* ===== Лайтбокс — увеличение фото по клику ===== */
img.zoomable { cursor: zoom-in; transition: opacity .15s; }
img.zoomable:hover { opacity: .92; }
.lightbox-overlay {
  display: none; position: fixed; inset: 0; background: rgba(20,16,10,0.92);
  z-index: 999; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 92vw; max-height: 88vh; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 18px; right: 26px; color: #fff; font-size: 34px; font-weight: 300;
  cursor: pointer; line-height: 1; background: none; border: none;
}
