:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2438;
  --primary-light: #2a5580;
  --accent: #d35400;
  --accent-hover: #b84700;
  --text: #1e1e1e;
  --text-muted: #5c6670;
  --bg: #f4f6f8;
  --white: #fff;
  --border: #dde3ea;
  --shadow: 0 4px 24px rgba(26, 58, 92, 0.12);
  --radius: 10px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.top-bar { background: var(--primary-dark); color: rgba(255,255,255,0.88); font-size: 13px; padding: 8px 0; }
.top-bar__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-bar__schedule { display: flex; gap: 18px; flex-wrap: wrap; }
.top-bar__region { font-weight: 600; color: #ffb366; }

.header { background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,0.07); position: sticky; top: 0; z-index: 1000; }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo__icon { width: 46px; height: 46px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.logo__name { font-size: 20px; font-weight: 800; color: var(--primary); line-height: 1.15; }
.logo__tagline { font-size: 11px; color: var(--text-muted); }
.header__phone a { font-size: 21px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.header__phone span { display: block; font-size: 12px; color: var(--text-muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-hover); color: var(--white); }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-light); color: var(--white); }
.btn--outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--white { background: var(--white); color: var(--primary); }
.btn--white:hover { background: #eef2f6; color: var(--primary); }

.nav { background: var(--primary); }
.nav-wrap { position: relative; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; padding: 12px 0; cursor: pointer; }
.nav__list { display: flex; list-style: none; flex-wrap: wrap; gap: 0; }
.nav__list > li > a { display: block; padding: 14px 16px; color: rgba(255,255,255,0.92); font-size: 14px; font-weight: 500; }
.nav__list > li > a:hover, .nav__list > li.active > a { background: rgba(255,255,255,0.12); color: var(--white); }

.hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #2a5580 100%); color: var(--white); padding: 56px 0 64px; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero__badge { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); padding: 6px 14px; border-radius: 20px; font-size: 13px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.2; margin-bottom: 16px; font-weight: 800; }
.hero__price { font-size: 22px; font-weight: 700; color: #ffb366; margin-bottom: 12px; }
.hero__desc { font-size: 17px; opacity: 0.92; margin-bottom: 24px; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; opacity: 0.9; }
.hero__photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.15); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }
.hero__card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(4px); }
.hero__card h3 { margin-bottom: 12px; font-size: 18px; }
.hero__card ul { list-style: none; }
.hero__card li { padding: 6px 0; padding-left: 22px; position: relative; font-size: 15px; }
.hero__card li::before { content: '✓'; position: absolute; left: 0; color: #ffb366; font-weight: 700; }

.section { padding: 56px 0; }
.section--gray { background: var(--bg); }
.section__title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--primary); margin-bottom: 12px; text-align: center; }
.section__subtitle { text-align: center; color: var(--text-muted); max-width: 640px; margin: 0 auto 36px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 0 22px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card__img { display: block; overflow: hidden; aspect-ratio: 16/10; margin-bottom: 16px; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.service-card:hover .service-card__img img { transform: scale(1.03); }
.service-card--no-img { padding: 22px; }
.service-card h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; padding: 0 22px; }
.service-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; padding: 0 22px; }
.service-card__price { font-weight: 700; color: var(--accent); font-size: 15px; padding: 0 22px; }

.quiz { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; max-width: 640px; margin: 0 auto; }
.quiz__progress { height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 24px; overflow: hidden; }
.quiz__progress-bar { height: 100%; background: var(--accent); width: 20%; transition: width 0.3s; border-radius: 3px; }
.quiz__step { display: none; }
.quiz__step.active { display: block; }
.quiz__step h3 { font-size: 20px; color: var(--primary); margin-bottom: 16px; }
.quiz__options { display: grid; gap: 10px; }
.quiz__option { display: block; width: 100%; text-align: left; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--white); cursor: pointer; font-size: 15px; transition: all 0.2s; }
.quiz__option:hover, .quiz__option.selected { border-color: var(--accent); background: #fff8f3; }
.quiz__nav { display: flex; justify-content: space-between; margin-top: 20px; gap: 12px; }
.quiz__field { margin-bottom: 14px; }
.quiz__field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.quiz__field input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; }
.quiz__done { text-align: center; padding: 20px 0; }
.quiz__done h3 { color: var(--primary); margin-bottom: 8px; }

.price-table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.price-table th { background: var(--primary); color: var(--white); font-weight: 600; }
.price-table tr:last-child td { border-bottom: none; }
.price-table .price { font-weight: 700; color: var(--accent); white-space: nowrap; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; background: var(--bg); border: 1px solid var(--border); }
.gallery-item__img { aspect-ratio: 4/3; background: var(--primary-dark); overflow: hidden; }
.gallery-item__img img { width: 100%; height: 100%; object-fit: cover; }
.about-aside { display: flex; flex-direction: column; gap: 20px; }
.page-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.page-photo img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.gallery-item__body { padding: 14px 16px; }
.gallery-item__label { font-size: 12px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.gallery-item__title { font-size: 15px; font-weight: 600; color: var(--primary); margin-top: 4px; }

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; background: var(--white); }
.faq-item summary { padding: 16px 20px; font-weight: 600; cursor: pointer; color: var(--primary); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; font-size: 20px; color: var(--accent); }
.faq-item[open] summary::after { content: '−'; }
.faq-item__body { padding: 0 20px 16px; color: var(--text-muted); font-size: 15px; }

.cta-banner { background: linear-gradient(90deg, var(--primary-dark), var(--primary)); color: var(--white); padding: 48px 0; text-align: center; }
.cta-banner h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.cta-banner p { opacity: 0.9; margin-bottom: 20px; }
.cta-banner .btn { margin: 0 6px; }

.footer { background: var(--primary-dark); color: rgba(255,255,255,0.85); padding: 40px 0 24px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin-bottom: 28px; }
.footer h4 { color: var(--white); margin-bottom: 12px; font-size: 15px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: rgba(255,255,255,0.85); }
.footer a:hover { color: #ffb366; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; opacity: 0.75; }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius); padding: 32px; max-width: 420px; width: 100%; position: relative; }
.modal__close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--text-muted); line-height: 1; }
.modal h3 { color: var(--primary); margin-bottom: 8px; }
.modal p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }

.page-hero { background: var(--bg); padding: 28px 0; border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--primary-light); }
.page-hero h1 { font-size: clamp(24px, 3vw, 34px); color: var(--primary); font-weight: 800; }

.feature-list { list-style: none; margin: 16px 0; }
.feature-list li { padding: 8px 0 8px 26px; position: relative; }
.feature-list li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.step { text-align: center; padding: 20px; }
.step__num { width: 40px; height: 40px; background: var(--accent); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 12px; }

@media (max-width: 992px) {
  .hero__inner, .about-content { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav__list { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-dark); z-index: 100; }
  .nav__list.open { display: flex; }
  .header__phone { order: 3; width: 100%; text-align: center; }
}

@media (max-width: 576px) {
  .hero { padding: 36px 0 44px; }
  .hero__actions .btn { width: 100%; }
  .quiz { padding: 20px; }
}
