:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --navy: #0f172a;
  --slate: #1e293b;
  --muted: #64748b;
  --bg: #f8fafc;
  --bg-alt: #eff4fb;
  --card: #ffffff;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, .14);
  --transition: .4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', -apple-system, sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- КНОПКИ И АНИМАЦИИ --- */
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  60% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; border: 2px solid transparent;
  transition: var(--transition);
}
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.btn-pulse { animation: pulse-glow 3s infinite ease-in-out; }

.hero-actions .btn-primary { position: relative; overflow: hidden; }
.hero-actions .btn-primary::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0;
  background: rgba(255, 255, 255, 0.2); border-radius: 50%;
  transform: translate(-50%, -50%); transition: width 0.6s ease, height 0.6s ease;
}
.hero-actions .btn-primary:hover::after { width: 300px; height: 300px; }

.ic { width: 20px; height: 20px; flex-shrink: 0; color: var(--primary); }
.ic-sm { width: 16px; height: 16px; }

/* --- БЕЙДЖИ --- */
.badge {
  display: inline-block; padding: 6px 16px; border-radius: 100px;
  background: #dbeafe; color: var(--primary-dark);
  font-size: 13px; font-weight: 700; letter-spacing: .03em; margin-bottom: 14px;
}
.badge-light { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25); }

/* --- ШАПКА --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(15,23,42,.08); border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { width: auto; height: 48px; max-width: 180px; object-fit: contain; display: block; }

.footer-logo-wrapper {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-flex;
  transition: var(--transition);
}
.footer-logo-wrapper:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}
.footer-logo-wrapper .logo-img { height: 40px; max-width: 150px; }

/* --- НАВИГАЦИЯ ДЕСКТОП --- */
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600;
  color: var(--slate); transition: var(--transition); white-space: nowrap;
}
.main-nav a:hover { color: var(--primary); background: #dbeafe; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; transition: var(--transition); white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--primary); }
.header-phone:hover { color: var(--primary); }

.header-cta-btn { white-space: nowrap; flex-shrink: 0; }

.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; flex-shrink: 0; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2.5px; margin: 0 auto; background: var(--navy); border-radius: 2px; transition: var(--transition); }
.burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Overlay отключён полностью */
.mobile-overlay { display: none !important; }

.mobile-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  color: var(--slate);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.mobile-close-btn:hover { background: #ef4444; color: #fff; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- HERO --- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; min-height: 600px; }
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 80% 10%, rgba(96,165,250,.25), transparent 60%),
              radial-gradient(700px 500px at 10% 90%, rgba(37,99,235,.35), transparent 60%),
              linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
}
.hero-bg::before {
  content: ''; position: absolute; top: -10%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  border-radius: 50%; animation: float 8s ease-in-out infinite; pointer-events: none;
}
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 30px); } }

.hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-inner { position: relative; color: #fff; max-width: 820px; z-index: 2; }
.hero h1 { font-size: clamp(28px, 4.5vw, 48px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero-lead { font-size: clamp(15px, 1.8vw, 18px); color: #cbd5e1; max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero-features { display: flex; flex-wrap: wrap; gap: 40px; }
.hero-features li { display: flex; flex-direction: column; }
.hero-features strong { font-size: 26px; font-weight: 800; color: #fff; }
.hero-features span { font-size: 14px; color: #cbd5e1; }

/* --- СЕКЦИИ --- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16px; }
.light-title { color: #fff; }
.light-sub { color: #94a3b8; }

/* --- КАРТОЧКИ --- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card, .card-product, .gallery-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: var(--transition);
}
.card:hover, .card-product:hover, .gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
}
.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: #dbeafe; color: var(--primary); margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }

.card-product { padding: 0; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card-product::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0; transition: opacity 0.4s ease;
}
.card-product:hover::after { opacity: 1; }

.product-img { position: relative; height: 200px; background: linear-gradient(135deg, var(--g1, #dbeafe), var(--g2, #93c5fd)); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.card-product:hover .product-img img { transform: scale(1.06); }
.product-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37,99,235,0.1) 0%, rgba(37,99,235,0.25) 100%); pointer-events: none; }
.product-label {
  position: absolute; bottom: 12px; left: 12px; background: rgba(255,255,255,0.95);
  color: var(--primary-dark); padding: 6px 14px; border-radius: 100px;
  font-weight: 800; font-size: 14px; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 12px; padding-top: 16px; }
.price { font-weight: 800; color: var(--primary-dark); white-space: nowrap; }

/* --- ГАЛЕРЕЯ --- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.filter-btn {
  padding: 9px 20px; border-radius: 100px; border: 1px solid var(--border);
  background: var(--card); color: var(--slate); font-size: 14px; font-weight: 700; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item { padding: 0; margin: 0; display: flex; flex-direction: column; height: 100%; }
.gallery-item.hidden { display: none; }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; display: block; flex-shrink: 0; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption { padding: 16px 18px; font-size: 14px; font-weight: 600; color: var(--slate); background: var(--card); flex: 1; display: flex; align-items: center; }

/* --- О КОМПАНИИ --- */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.about-img { position: relative; height: 420px; border-radius: var(--radius); background: linear-gradient(135deg, var(--g1, #1e3a8a), var(--g2, #60a5fa)); box-shadow: var(--shadow-lg); overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.about-stat {
  position: absolute; right: -20px; bottom: -20px; background: var(--card);
  border-radius: var(--radius); padding: 20px 26px; box-shadow: var(--shadow-lg); text-align: center; z-index: 2;
}
.about-stat strong { display: block; font-size: 28px; color: var(--primary); }
.about-stat span { font-size: 13px; color: var(--muted); }
.about-content p { color: var(--muted); margin-bottom: 20px; }
.about-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.about-features li { display: flex; gap: 14px; }
.af-ico { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #dbeafe; color: var(--primary-dark); font-weight: 800; }
.about-features strong { display: block; }
.about-features p { margin: 2px 0 0; font-size: 14px; }

/* --- ЭТАПЫ --- */
.steps-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; transition: var(--transition);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-num { font-size: 30px; font-weight: 800; color: #dbeafe; margin-bottom: 8px; }
.step h3 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }

/* --- КАЛЬКУЛЯТОР --- */
.section-dark { background: linear-gradient(135deg, #0f172a, #1e3a8a); }
.calc-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.calc-form, .calc-result { background: var(--card); border-radius: var(--radius); padding: 32px; }
.calc-field { margin-bottom: 26px; }
.calc-field > label { display: block; font-weight: 700; margin-bottom: 10px; font-size: 15px; }
input[type="range"] { width: 100%; accent-color: var(--primary); height: 6px; }
.range-info { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }
.range-info span:nth-child(2) { font-weight: 800; color: var(--primary); }
.tariffs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tariff { position: relative; }
.tariff input { position: absolute; opacity: 0; }
.tariff span {
  display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; transition: var(--transition);
}
.tariff span small { font-weight: 600; color: var(--muted); }
.tariff input:checked + span { border-color: var(--primary); background: #dbeafe; color: var(--primary-dark); }
.tariff input:checked + span small { color: var(--primary-dark); }
.calc-checks { display: flex; flex-direction: column; gap: 10px; }
.calc-check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; cursor: pointer; padding: 10px; border: 1px solid var(--border); border-radius: 8px; transition: 0.2s; }
.calc-check:hover { border-color: var(--primary); background: #f8fafc; }
.calc-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.calc-check small { color: var(--muted); font-weight: 600; }

.calc-result { display: flex; flex-direction: column; }
.calc-result h3 { font-size: 16px; color: var(--muted); }
.calc-total { font-size: clamp(34px, 4vw, 46px); font-weight: 800; color: var(--primary); margin: 8px 0 20px; }
.calc-lines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.calc-lines li { display: flex; justify-content: space-between; font-size: 14px; border-bottom: 1px dashed var(--border); padding-bottom: 8px; }
.calc-lines li span:first-child { color: var(--muted); }
.calc-lines li b { color: var(--navy); font-weight: 700; }
.calc-note { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

/* --- ОТЗЫВЫ --- */
.review-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; font-weight: 800; font-size: 14px;
}
.review-head strong { display: block; }
.review-head small { color: var(--muted); }
.stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 10px; }
.review-card p { font-size: 14.5px; color: var(--slate); }

/* --- FAQ --- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; background: none; border: none; text-align: left;
  font-size: 16px; font-weight: 700; color: var(--navy); transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #dbeafe; color: var(--primary-dark); font-size: 18px; transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-answer { max-height: 240px; }
.faq-answer-inner { padding: 0 24px 20px; color: var(--muted); font-size: 15px; }

/* --- CTA --- */
.section-cta { background: linear-gradient(135deg, #0f172a, #1e3a8a); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta-text h2 { color: #fff; font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; }
.cta-text p { color: #cbd5e1; margin-bottom: 20px; }
.cta-bullets li { position: relative; padding-left: 28px; color: #e2e8f0; margin-bottom: 10px; }
.cta-bullets li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-light); font-weight: 800; }
.cta-form { background: var(--card); border-radius: var(--radius); padding: 32px; }
.cta-form h3 { margin-bottom: 20px; }

/* --- ФОРМЫ --- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; background: var(--bg); transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.form-group input.invalid, .form-group textarea.invalid { border-color: #ef4444; }
.field-error { display: block; min-height: 18px; margin-top: 5px; font-size: 12.5px; color: #ef4444; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--primary); }
.link { color: var(--primary); text-decoration: underline; }

/* Заявка: дополнительные согласия и микровзаимодействия */
.request-consents { margin: 8px 0 18px; }
.request-consents .field-error { margin: -3px 0 7px 30px; }
.consent-card {
  position: relative; align-items: center; gap: 11px; margin: 0; padding: 11px 12px;
  border: 1px solid transparent; border-radius: 12px; color: var(--slate);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.consent-card:hover { background: rgba(37,99,235,.045); border-color: rgba(37,99,235,.13); transform: translateX(2px); }
.consent-card input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: 0 0 18px; width: 18px; height: 18px; margin: 0;
  border: 1.7px solid #aeb9c9; border-radius: 5px; background: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.consent-card input[type="checkbox"]::after {
  content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform .18s ease;
}
.consent-card input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); box-shadow: 0 3px 10px rgba(37,99,235,.22); }
.consent-card input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }
.consent-card input[type="checkbox"]:focus-visible { outline: 3px solid rgba(37,99,235,.2); outline-offset: 3px; }
.consent-card input[type="checkbox"].invalid { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
.consent-card span { line-height: 1.5; }
.consent-card .link { text-decoration: none; font-weight: 600; background-image: linear-gradient(currentColor,currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1px; transition: color .2s ease, background-size .2s ease; }
.consent-card .link:hover { color: var(--primary-dark); background-size: 100% 2px; }
.selected-chip { box-shadow: 0 5px 18px rgba(37,99,235,.10); animation: chip-in .45s ease both; }
@keyframes chip-in { from { opacity: 0; transform: translateY(7px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-overlay { background: rgba(15,23,42,.66); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.modal.open .modal-dialog { animation: modal-spring .55s cubic-bezier(.2,.8,.2,1) both; }
.modal-dialog .form-group input:hover, .modal-dialog .form-group textarea:hover { border-color: #b8c9e5; }
.modal-dialog .form-group input:focus, .modal-dialog .form-group textarea:focus { box-shadow: 0 0 0 4px rgba(37,99,235,.09); transform: translateY(-1px); }
.modal-dialog form > .btn { position: relative; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, filter .22s ease; }
.modal-dialog form > .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37,99,235,.25); filter: brightness(1.04); }
.modal-dialog form > .btn:active { transform: translateY(0) scale(.99); }
@media (prefers-reduced-motion: reduce) {
  .modal.open .modal-dialog, .selected-chip { animation: none; }
  .consent-card, .consent-card input, .modal-dialog form > .btn { transition: none; }
}


/* --- КОНТАКТЫ И КАРТА --- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.ci { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #dbeafe; display: grid; place-items: center; font-size: 18px; }
.contact-list strong { display: block; font-size: 14px; }
.contact-list a:hover { color: var(--primary); }
.map-container { width: 100%; height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--bg-alt); }
.map-container iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- FOOTER --- */
.footer { background: var(--navy); color: #94a3b8; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-about p { font-size: 14px; margin: 16px 0 20px; }

/* Социальные сети в подвале сайта */
.footer-socials { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 22px; }
.footer-socials-caption { color: #94a3b8; font-size: 13px; }
.footer-socials-list { display: flex; align-items: center; gap: 12px; }
.footer-social { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(148,163,184,.22); border-radius: 13px; background: rgba(255,255,255,.07);
  color: #cbd5e1; text-decoration: none; transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease; }
.footer-social svg { width: 22px; height: 22px; fill: currentColor; }
.footer-social-max span { font-size: 12px; font-weight: 800; letter-spacing: -.04em; }
.footer-social-vk:hover { background: #2787f5; border-color: #2787f5; color: #fff; }
.footer-social-tg:hover { background: #229ed9; border-color: #229ed9; color: #fff; }
.footer-social-max:hover { background: #111827; border-color: #64748b; color: #fff; }
.footer-social:hover { transform: translateY(-4px); box-shadow: 0 9px 22px rgba(37,99,235,.25); }
.footer-social:focus-visible { outline: 3px solid rgba(59,130,246,.5); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .footer-social { transition: none; } }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.requisites li { font-size: 13.5px; }
.footer-bottom { border-top: 1px solid rgba(148,163,184,.15); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13.5px; }
.footer-clock { font-variant-numeric: tabular-nums; }

/* --- КНОПКА НАВЕРХ --- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; z-index: 800;
  border: none; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,99,235,.4);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }
.back-to-top svg { width: 22px; height: 22px; }

/* --- МОДАЛКИ --- */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.modal.open { visibility: visible; opacity: 1; }
.modal-overlay { position: absolute; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(4px); }

@keyframes modal-spring {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-dialog {
  position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: var(--radius);
  padding: 36px 32px; box-shadow: 0 30px 80px rgba(15,23,42,.35);
  max-height: 88vh; overflow-y: auto;
}
.modal.open .modal-dialog { animation: modal-spring 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

.modal-dialog h3 { font-size: 22px; margin-bottom: 6px; }
.modal-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: none; border-radius: 50%;
  background: var(--bg-alt); color: var(--slate); font-size: 16px; transition: var(--transition);
}
.modal-close:hover { background: #ef4444; color: #fff; transform: rotate(90deg); }
.selected-chip { display: inline-block; background: #dbeafe; color: var(--primary-dark); padding: 8px 16px; border-radius: 100px; font-size: 13.5px; margin-bottom: 18px; }
.form-success { text-align: center; padding: 24px 0 8px; }
.success-ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 30px; font-weight: 800; display: grid; place-items: center; }
.form-success h4 { margin-bottom: 6px; }
.form-success p { color: var(--muted); font-size: 14px; }

.exit-bonus { display: flex; align-items: center; gap: 10px; background: #f0fdf4; color: #166534; padding: 12px 16px; border-radius: 10px; margin-bottom: 24px; font-weight: 600; font-size: 0.95rem; }
.exit-bonus .ic { color: #16a34a; }
.exit-dialog { border-top: 5px solid var(--primary); }

/* --- SCROLL REVEAL --- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }

/* ============================================================
   АДАПТИВНОСТЬ + МОБИЛЬНОЕ МЕНЮ
   ============================================================ */

@media (max-width: 1024px) {
  .main-nav {
    display: none !important;
  }

  .burger {
    display: flex !important;
    position: relative;
    z-index: 960;
  }

  .main-nav.mobile-open {
    display: flex !important;
    position: fixed !important;
    top: 76px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100dvh - 76px) !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 60px 24px 24px !important;
    gap: 0 !important;
    overflow-y: auto !important;
    z-index: 950 !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: slideDown 0.3s ease-out !important;
  }

  .main-nav.mobile-open .mobile-close-btn {
    display: flex !important;
  }

  .main-nav.mobile-open a {
    display: block !important;
    width: 100% !important;
    padding: 18px 0 !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: var(--navy) !important;
    text-align: left !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .main-nav.mobile-open a:last-child {
    border-bottom: none !important;
  }

  .main-nav.mobile-open a:hover,
  .main-nav.mobile-open a:active {
    color: var(--primary) !important;
    background: #f8fafc !important;
  }

  /* Остальные адаптивные сетки */
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-wrap { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { height: 300px; }
  .cta-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .map-container { height: 350px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .header-phone { display: none; }
  .header-cta-btn { padding: 10px 16px; font-size: 13px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .tariffs { grid-template-columns: 1fr 1fr; }
  .logo-img { height: 40px; max-width: 150px; }
}

@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .map-container { height: 280px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .header-inner { gap: 10px; }
  .header-cta-btn { padding: 8px 12px; font-size: 12px; }
  .steps-grid { grid-template-columns: 1fr; }
  .tariffs { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; min-height: auto; }
  .hero-features { gap: 24px; }
  .modal-dialog { padding: 28px 22px; }
  .logo-img { height: 36px; max-width: 130px; }
  .product-img { height: 180px; }
  .gallery-item img { height: 220px; }
  .about-img { height: 260px; }
  .map-container { height: 240px; }
  .modal { padding: 10px; }
  .modal-dialog.modal-doc { max-height: calc(100dvh - 20px); }
  .modal-doc-header { padding: 22px 18px 2px; }
  .modal-doc .modal-close { top: 12px; right: 12px; }
  .modal-doc-body { padding: 6px 18px 22px; }
}

@media (max-width: 360px) {
  .header-cta-btn { padding: 7px 10px; font-size: 11px; }
  .logo-img { max-width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; transition: none !important; }
}

/* ============================================================
   ТОЧЕЧНЫЕ ДОРАБОТКИ: юридические модалки, скролл.
   ============================================================ */

html, body { overflow-x: hidden; }
html { scrollbar-gutter: stable; }

.modal-dialog.modal-doc {
  max-width: 820px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(92vh, 940px);
}
.modal-doc .modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: transparent;
  color: var(--slate);
  font-size: 20px;
}
.modal-doc .modal-close:hover { background: var(--bg-alt); }
.modal-doc-header {
  flex: none;
  padding: 30px 32px 4px;
}
.modal-doc-header h3 {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  padding-right: 44px;
}
.modal-doc-body {
  padding: 10px 32px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  overflow-wrap: break-word;
}
.modal-doc-body h4 {
  font-size: 16px; font-weight: 800; color: var(--navy);
  margin: 24px 0 10px;
}
.modal-doc-body h4:first-child { margin-top: 14px; }
.modal-doc-body p  { font-size: 15px; color: var(--muted); margin: 0 0 12px; line-height: 1.65; }
.modal-doc-body ul { list-style: disc; padding-left: 22px; margin: 0 0 12px; }
.modal-doc-body li { font-size: 15px; color: var(--muted); margin-bottom: 8px; }

/* ============================================================
   АНИМАЦИЯ ВИБРАЦИИ ДЛЯ КНОПКИ «РАССЧИТАТЬ СТОИМОСТЬ»
   ============================================================ */
@keyframes vibrate {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

.btn-vibrate {
  animation: vibrate 0.5s ease-in-out 3.5s infinite;
}

.btn-vibrate:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .btn-vibrate {
    animation: none !important;
  }
}

/* Социальные сети внизу формы заявки */
.modal-socials {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 22px; padding-top: 17px; border-top: 1px solid rgba(25, 45, 75, .09);
}
.modal-socials-caption { color: #8993a3; font-size: 12px; letter-spacing: .02em; }
.modal-socials-list { display: flex; align-items: center; justify-content: center; gap: 12px; }
.modal-social { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: #f1f5fb; color: #2864d9; text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease; }
.modal-social svg { width: 20px; height: 20px; fill: currentColor; }
.modal-social-max span { font-size: 11px; font-weight: 800; letter-spacing: -.04em; }
.modal-social-vk:hover { background: #2787f5; color: #fff; }
.modal-social-tg:hover { background: #229ed9; color: #fff; }
.modal-social-max:hover { background: #111827; color: #fff; }
.modal-social:hover { transform: translateY(-3px); box-shadow: 0 7px 18px rgba(35, 91, 180, .18); }
.modal-social:focus-visible { outline: 3px solid rgba(39, 105, 230, .3); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .modal-social { transition: none; } }
