/* ==================== ТИПОГРАФИКА И ПЕРЕМЕННЫЕ СНОиК ==================== */
@font-face {
  font-family: 'TildaSans';
  src: url('/fonts/TildaSans-VF.woff2') format('woff2-variations'),
       url('/fonts/TildaSans-Regular.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #336666;
  --color-primary-dark: #224949;
  --color-slate: #3e606f;
  --color-accent: #e05a33;
  --color-accent-hover: #c94823;
  --color-bg-light: #f4f7f7;
  --color-bg-muted: #ebf0f0;
  --color-text: #1f292a;
  --color-text-muted: #5a6869;
  --color-border: #dce4e4;
  --font-main: 'TildaSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --container-width: 1240px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 4px 16px rgba(34, 73, 73, 0.06);
  --shadow-md: 0 12px 32px rgba(34, 73, 73, 0.11);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.18s ease, opacity 0.18s ease; }
a:hover { color: var(--color-accent); }
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* ==================== ШАПКА САЙТА (БЕЗ ПЕРЕНОСОВ) ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}
.site-header .container { max-width: 1360px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo { height: 42px; width: auto; object-fit: contain; }
.brand-city-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--color-bg-light);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.nav-item { position: relative; }
.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.35px;
  padding: 8px 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--color-accent); }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  z-index: 120;
  max-height: 75vh;
  overflow-y: auto;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--color-bg-light); color: var(--color-primary); }
.nav-dropdown a.current-city { font-weight: 700; color: var(--color-accent); background: #fff7f4; }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-messengers {
  display: flex;
  align-items: center;
  gap: 6px;
}
.msg-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #ffffff !important;
  transition: background 0.18s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.msg-icon-btn:hover { background: var(--color-accent); transform: translateY(-1px); }
.msg-max-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #edf3f3;
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark) !important;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.msg-max-pill:hover { background: var(--color-primary); color: #ffffff !important; border-color: var(--color-primary); }
.header-contact-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
  text-align: right;
  flex-shrink: 0;
}
.header-phone {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -0.2px;
}
.header-phone:hover {
  color: var(--color-primary);
}
.header-subcontact {
  font-size: 11px;
  color: var(--color-text-muted);
  max-width: 380px;
  line-height: 1.3;
  text-align: right;
  white-space: normal;
}
.header-email {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.16s ease;
}
.header-email:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.btn-cta-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  background: var(--color-primary);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.15s ease;
}
.btn-cta-sm:hover { background: var(--color-accent); transform: translateY(-1px); }

.mobile-call-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  min-height: 40px;
  background: var(--color-accent);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 9px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(224, 90, 51, 0.28);
}
.mobile-call-btn:hover { background: var(--color-accent-hover); }

.mobile-burger {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  padding: 8px 11px;
  min-height: 40px;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 20px;
  line-height: 1;
}

/* ==================== HERO СЕКЦИЯ ==================== */
.hero-section {
  position: relative;
  background: linear-gradient(125deg, #214545 0%, #336666 55%, #3e606f 100%);
  color: #ffffff;
  padding: 64px 0 70px;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  pointer-events: none;
}
.hero-section .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-breadcrumbs {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 14px;
}
.hero-breadcrumbs a { color: #ffffff; opacity: 0.9; text-decoration: underline; text-underline-offset: 3px; }
.hero-badge {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(224, 90, 51, 0.92);
  color: #ffffff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}
.hero-subtitle {
  font-size: 17.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 26px;
  max-width: 650px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  background: var(--color-accent);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(224, 90, 51, 0.35);
}
.btn-accent:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  color: #ffffff !important;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.14); border-color: #ffffff; }

.hero-card {
  background: rgba(255, 255, 255, 0.97);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}
.hero-card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; color: var(--color-primary-dark); }
.hero-card p.hint { margin: 0 0 16px; font-size: 13.5px; color: var(--color-text-muted); }

/* ==================== ФОРМЫ ==================== */
.form-group { margin-bottom: 12px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--color-text);
  background: #ffffff;
  transition: border-color 0.18s;
}
.form-control:focus { outline: none; border-color: var(--color-primary); }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 10px 0 14px;
}
.form-consent a { text-decoration: underline; }

/* ==================== ИНТЕРАКТИВНАЯ КАРТА РОССИИ ==================== */
.section { padding: 64px 0; }
.section-alt { background: var(--color-bg-light); }
.section-header { text-align: center; max-width: 780px; margin: 0 auto 40px; }
.section-title { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; color: var(--color-primary-dark); margin: 0 0 12px; }
.section-subtitle { font-size: 16px; color: var(--color-text-muted); margin: 0; }

.russia-map-wrap {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto 28px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}
.russia-map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1680 / 522;
  user-select: none;
}
.russia-map-stage img.map-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 4;
  text-decoration: none;
  cursor: pointer;
}
.map-pin-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}
.map-pin:hover .map-pin-dot,
.map-pin.is-active .map-pin-dot {
  transform: scale(1.35);
  background: var(--color-primary-dark);
}
.map-pin-label {
  position: absolute;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
  transition: all 0.18s ease;
}
.map-pin:hover .map-pin-label,
.map-pin.is-active .map-pin-label {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  z-index: 20;
}
.map-pin[data-pos="right"] .map-pin-label { left: 22px; top: 0; }
.map-pin[data-pos="left"] .map-pin-label { right: 22px; top: 0; }
.map-pin[data-pos="top"] .map-pin-label { left: 50%; bottom: 22px; transform: translateX(-50%); }
.map-pin[data-pos="bottom"] .map-pin-label { left: 50%; top: 22px; transform: translateX(-50%); }

.city-pills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
}
.city-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.city-pill:hover, .city-pill.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}
.city-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }
.city-pill:hover .dot, .city-pill.active .dot { background: #ffffff; }

/* ==================== КАРТОЧКИ УСЛУГ И ЦЕН ==================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.service-card, .info-card, .article-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover, .article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card-img, .article-card-img { width: 100%; height: 190px; object-fit: cover; }
.service-card-body, .info-card, .article-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  background: #fff2ed;
  padding: 3px 9px;
  border-radius: 5px;
  margin-bottom: 10px;
}
.service-card h3, .article-card h3, .info-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.3;
}
.service-card p, .article-card p, .info-card p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--color-text-muted);
  flex: 1;
}
.card-more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}
.price-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.price-card:hover { border-top-color: var(--color-accent); }
.price-value { font-size: 24px; font-weight: 800; color: var(--color-accent); margin: 8px 0 6px; }
.price-term { font-size: 12.5px; font-weight: 700; color: var(--color-primary); margin-bottom: 12px; }

/* ==================== КВИЗ И ЭТАПЫ ==================== */
.quiz-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.quiz-progress { height: 6px; background: var(--color-bg-muted); border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.quiz-progress-bar { height: 100%; background: var(--color-accent); width: 33.3%; transition: width 0.25s ease; }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 10px; margin: 18px 0 22px; }
.quiz-input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.18s, background 0.18s;
}
.quiz-opt:hover { border-color: var(--color-primary); background: var(--color-bg-light); }
.quiz-opt input { accent-color: var(--color-accent); }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.step-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* ==================== ГАЛЕРЕЯ СЕРТИФИКАТОВ, БАНКИ, ЭКСПЕРТЫ ==================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
}
.gallery-thumb {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }

.banks-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  align-items: center;
}
.bank-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bank-box img { max-height: 44px; max-width: 130px; object-fit: contain; }

.experts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 26px; }
.expert-card {
  display: flex;
  gap: 20px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.expert-photo { width: 110px; height: 130px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }

/* ==================== СТАТЬИ И НОВОСТИ ==================== */
.article-section { padding: 44px 0 56px; }
.content-article {
  max-width: 860px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.72;
}
.content-article h2 { color: var(--color-primary-dark); font-size: 26px; margin: 32px 0 14px; }
.content-article h3 { color: var(--color-slate); font-size: 20px; margin: 24px 0 10px; }
.content-article ul, .content-article ol { padding-left: 22px; margin: 14px 0; }
.content-article li { margin-bottom: 8px; }
.accent-box {
  background: #eef6f6;
  border-left: 4px solid var(--color-primary);
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
  font-weight: 500;
}
.news-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 13.5px;
}
.news-top-cat { font-weight: 700; color: var(--color-accent); text-transform: uppercase; font-size: 12px; }
.news-top-source { margin-left: auto; }
.news-source-badge {
  margin-top: 28px;
  padding: 16px 20px;
  background: #f4f7f7;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 10px;
  font-size: 14.5px;
}

/* ==================== FAQ И КОНТАКТЫ ==================== */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--color-border); border-radius: 10px; background: #ffffff; overflow: hidden; }
.faq-item summary {
  padding: 16px 20px;
  font-weight: 700;
  color: var(--color-primary-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--color-accent); font-weight: 700; }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 20px 18px; color: var(--color-text-muted); font-size: 15px; }

.badge-link {
  display: inline-block;
  padding: 7px 14px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.badge-link:hover { background: var(--color-primary); color: #ffffff; border-color: var(--color-primary); }

/* ==================== ФУТЕР ==================== */
.site-footer {
  background: #173333;
  color: rgba(255, 255, 255, 0.85);
  padding: 54px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 36px;
}
.footer-grid h4 { color: #ffffff; font-size: 15px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.4px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; font-size: 14px; }
.footer-links a { color: rgba(255, 255, 255, 0.82); }
.footer-links a:hover { color: #ffffff; text-decoration: underline; }
.footer-map-wrap {
  margin-bottom: 28px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}
.footer-map-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-map-head a { color: #ff9c7d; font-weight: 700; }
.footer-map-frame {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* ==================== МОДАЛЬНЫЕ ОКНА И ДРОУЕР ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 35, 35, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.modal-box h3 { padding-right: 32px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text-muted);
}
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 250;
  padding: 24px;
  overflow-y: auto;
}
.mobile-drawer.open { display: block; }

/* ==================== ПЛАВАЮЩАЯ БОКОВАЯ ПАНЕЛЬ КОНТАКТОВ ==================== */
.floating-contact-bar {
  position: fixed;
  bottom: 15%;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(51, 102, 102, 0.14);
  border-radius: 12px;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  z-index: 180;
}
.fcb-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  transition: transform 0.16s ease;
}
.fcb-item:hover { transform: scale(1.1); }
.fcb-item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 7px;
}
.fcb-tooltip {
  position: absolute;
  right: 46px;
  top: 50%;
  transform: translateY(-50%);
  background: #222222;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.fcb-item:hover .fcb-tooltip { opacity: 1; }

/* ==================== НИЖНЯЯ МОБИЛЬНАЯ ПАНЕЛЬ ЗВОНКА ==================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 220;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  gap: 8px;
  align-items: center;
}
.mbb-call-primary {
  flex: 1.5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  background: var(--color-accent);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 800;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(224, 90, 51, 0.3);
  white-space: nowrap;
}
.mbb-sec-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 46px;
  padding: 10px 10px;
  background: var(--color-primary);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.mbb-icon-square {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mbb-icon-square img { width: 26px; height: 26px; object-fit: contain; }

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 1220px) {
  .nav-menu { gap: 11px; }
  .nav-link { font-size: 12px; letter-spacing: 0.2px; }
  .header-contact-stack { display: none; }
}
@media (max-width: 1060px) {
  .nav-menu, .header-right .btn-cta-sm, .header-messengers { display: none; }
  .mobile-call-btn, .mobile-burger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body { padding-bottom: 68px; }
  .mobile-bottom-bar { display: flex; }
  .floating-contact-bar { display: none; }
  .section { padding: 42px 0; }
  .hero-section { padding: 36px 0 42px; }
  .brand-logo { height: 34px; }
  .brand-city-pill { font-size: 10px; padding: 2px 7px; }
}
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .header-inner { min-height: 62px; gap: 8px; }
  .mobile-call-btn { padding: 8px 11px; font-size: 13px; }
  .hero-card, .quiz-box, .modal-box { padding: 18px 14px; }
  .modal-box { max-height: 92vh; overflow-y: auto; }
  .quiz-input-grid { grid-template-columns: 1fr; gap: 8px; }
  .quiz-options { grid-template-columns: 1fr; }
  .form-control { font-size: 16px; padding: 11px 12px; }
  .btn-accent, .btn-outline-white { width: 100%; justify-content: center; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .russia-map-wrap { padding: 12px 8px; }
  .map-pin-label { display: none; }
  .map-pin-dot { width: 13px; height: 13px; border-width: 2px; }
  .expert-card { flex-direction: column; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .banks-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .news-top-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .news-top-source { margin-left: 0; }
}
@media (max-width: 380px) {
  .brand-logo { height: 28px; }
  .brand-city-pill { max-width: 82px; overflow: hidden; text-overflow: ellipsis; font-size: 9px; padding: 2px 5px; }
  .mobile-call-btn { padding: 7px 9px; font-size: 12px; min-height: 36px; }
  .mobile-burger { padding: 6px 9px; min-height: 36px; font-size: 18px; }
  .mbb-call-primary { font-size: 13.5px; padding: 8px 10px; }
}
@media (max-width: 350px) {
  .brand-city-pill { display: none; }
}
