/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}

body {
  background: #f8fafc;
  color: #0b1a33;
  line-height: 1.6;
  transition: background 0.2s, color 0.2s;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ПАНЕЛЬ «ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ» ===== */
#a11y-bar {
  display: none;
  background: #0b1a33;
  border-bottom: 3px solid #facc15;
  padding: 10px 20px;
}

html.a11y-panel-open #a11y-bar {
  display: block;
}

#a11y-bar .a11y-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

#a11y-bar .a11y-label {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  margin-right: 2px;
}

#a11y-bar .a11y-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 32px;
  min-height: 32px;
  padding: 4px 10px;
  line-height: 1.1;
  background: #16264a;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
  cursor: pointer;
  transition: 0.2s;
}

#a11y-bar .a11y-btn:hover {
  background: #1e3766;
}

#a11y-bar .a11y-btn.active {
  outline: 2px solid #facc15;
  outline-offset: -2px;
}

#a11y-extra {
  display: none;
  max-width: 1200px;
  margin: 10px auto 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

#a11y-extra .a11y-row {
  margin-bottom: 8px;
}

@media (max-width: 850px) {
  #a11y-bar .a11y-label {
    display: none;
  }
  #a11y-bar .a11y-btn {
    padding: 4px 8px;
    font-size: 12px;
  }
}

/* ===== НАСТРОЙКИ ВЕРСИИ ДЛЯ СЛАБОВИДЯЩИХ (ПРИМЕНЯЮТСЯ К КОНТЕНТУ САЙТА) ===== */
/* Масштабируем через font-size корневого html — весь сайт в rem, поэтому
   все размеры (включая заголовки) растут пропорционально, без выравнивания
   в один плоский размер. Панель #a11y-bar задана в px, поэтому не зависит от html
   и не меняется вместе с контентом. */
html.a11y-font-1 { font-size: 100%; }
html.a11y-font-2 { font-size: 140%; }
html.a11y-font-3 { font-size: 200%; }

html.a11y-fontfamily-1 #site-content, html.a11y-fontfamily-1 #site-content * { font-family: Arial, sans-serif !important; }
html.a11y-fontfamily-2 #site-content, html.a11y-fontfamily-2 #site-content * { font-family: 'Times New Roman', Times, serif !important; }

html.a11y-spacing-1 #site-content, html.a11y-spacing-1 #site-content * { letter-spacing: normal !important; }
html.a11y-spacing-2 #site-content, html.a11y-spacing-2 #site-content * { letter-spacing: 1.5px !important; }
html.a11y-spacing-3 #site-content, html.a11y-spacing-3 #site-content * { letter-spacing: 3px !important; }

html.a11y-lineheight-1 #site-content, html.a11y-lineheight-1 #site-content * { line-height: 1.3 !important; }
html.a11y-lineheight-2 #site-content, html.a11y-lineheight-2 #site-content * { line-height: 1.6 !important; }
html.a11y-lineheight-3 #site-content, html.a11y-lineheight-3 #site-content * { line-height: 2 !important; }

html.a11y-no-images #site-content i,
html.a11y-no-images #site-content .map-container {
  display: none !important;
}

/* Цветовые схемы — перекрашивают контент сайта. Саму панель не трогаем,
   иначе цветные образцы схем (кнопки «Ц») перестанут отличаться друг от друга */
html.a11y-color-1 #site-content, html.a11y-color-1 #site-content * {
  background-color: #fff !important;
  background-image: none !important;
  color: #000 !important;
  border-color: #000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.a11y-color-2 #site-content, html.a11y-color-2 #site-content * {
  background-color: #000 !important;
  background-image: none !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.a11y-color-3 #site-content, html.a11y-color-3 #site-content * {
  background-color: #e6f3ff !important;
  background-image: none !important;
  color: #063462 !important;
  border-color: #063462 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.a11y-color-4 #site-content, html.a11y-color-4 #site-content * {
  background-color: #fffcf0 !important;
  background-image: none !important;
  color: #59422e !important;
  border-color: #59422e !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.a11y-color-5 #site-content, html.a11y-color-5 #site-content * {
  background-color: #2a1d10 !important;
  background-image: none !important;
  color: #a9dd38 !important;
  border-color: #a9dd38 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[class*="a11y-color-"] #site-content a {
  text-decoration: underline !important;
}

/* ===== ШАПКА ===== */
header {
  background: #0b1a33;
  color: white;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: background 0.2s;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo i {
  color: #facc15;
  font-size: 32px;
}

.nav-menu {
  display: flex;
  gap: 28px;
  font-weight: 500;
  align-items: center;
  flex-wrap: wrap;
}

.nav-menu a {
  color: #e2e8f0;
  text-decoration: none;
  transition: 0.2s;
  font-size: 1.0625rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.nav-menu a:hover {
  color: #facc15;
  border-bottom-color: #facc15;
}

/* ===== КНОПКА ДЛЯ СЛАБОВИДЯЩИХ ===== */
.vision-toggle {
  background: #facc15;
  color: #0b1a33;
  border: none;
  padding: 8px 18px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.3);
  white-space: nowrap;
}

.vision-toggle:hover {
  background: #fde047;
  transform: scale(1.04);
}

.vision-toggle i {
  font-size: 20px;
}

.phone-header {
  background: #facc15;
  color: #0b1a33;
  padding: 8px 18px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: 0.2s;
  text-decoration: none;
}

.phone-header:hover {
  background: #fde047;
  transform: scale(1.02);
}

/* ===== ГЕРОЙ ===== */
.hero {
  background: linear-gradient(135deg, #0b1a33 0%, #1a2f4f 100%);
  color: white;
  padding: 70px 0 80px;
  border-bottom: 6px solid #facc15;
  transition: background 0.2s;
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-text h1 span {
  color: #facc15;
  background: rgba(250, 204, 21, 0.15);
  padding: 0.05em 0.25em 0.18em;
  border-radius: 12px;
  display: inline-block;
  line-height: 1.3;
  vertical-align: middle;
}

.hero-text p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 500px;
  margin-bottom: 30px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.hero-stats div {
  text-align: center;
}

.hero-stats .number {
  font-size: 2.125rem;
  font-weight: 800;
  color: #facc15;
  display: block;
}

.hero-stats .label {
  font-size: 0.9375rem;
  opacity: 0.7;
}

.hero-image {
  flex: 1 1 300px;
  background: rgba(255, 255, 255, 0.04);
  padding: 20px;
  border-radius: 40px 40px 40px 4px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(250, 204, 21, 0.2);
  text-align: center;
}

.hero-features {
  list-style: none;
  width: 100%;
  text-align: left;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 6px;
  font-size: 1.125rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-features li:last-child {
  border-bottom: none;
}

.hero-features i {
  color: #facc15;
  font-size: 22px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #facc15;
  color: #0b1a33;
  padding: 16px 44px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  transition: 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.3);
}

.btn:hover {
  background: #fde047;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(250, 204, 21, 0.4);
}

/* ===== ОБЩИЕ СЕКЦИИ ===== */
section {
  padding: 70px 0;
}

.section-title {
  font-size: 2.375rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  transition: font-size 0.2s;
}

.section-sub {
  text-align: center;
  font-size: 1.125rem;
  color: #475569;
  max-width: 600px;
  margin: 0 auto 50px;
}

.subsection-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #0b1a33;
  margin: 0 0 24px;
}

.subsection-title:not(:first-of-type) {
  margin-top: 50px;
}

/* ===== ИСПРАВЛЕННАЯ ОБВОДКА ДЛЯ ВСЕХ .SECTION-TITLE SPAN ===== */
.section-title span {
  color: #facc15;
  background: #0b1a33;
  padding: 0.05em 0.4em 0.18em;
  border-radius: 30px;
  display: inline-block;
  line-height: 1.4;
  vertical-align: middle;
}

/* ===== УСЛУГИ ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: white;
  padding: 35px 25px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: 0.25s;
  border: 1px solid #e9edf3;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #facc15;
}

.service-card > i {
  font-size: 48px;
  color: #facc15;
  background: #0b1a33;
  padding: 18px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.service-card p {
  color: #475569;
}

.doc-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 16px;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.benefits {
  background: #0b1a33;
  color: white;
  border-top: 4px solid #facc15;
  border-bottom: 4px solid #facc15;
  transition: background 0.2s;
}

/* Специальный стиль для обводки в секции преимуществ (светлый текст) */
.benefits .section-title span {
  background: #facc15;
  color: #0b1a33;
  padding: 0.05em 0.4em 0.18em;
  border-radius: 30px;
  display: inline-block;
  line-height: 1.4;
  vertical-align: middle;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.benefit-item i {
  font-size: 44px;
  color: #facc15;
  margin-bottom: 15px;
}

.benefit-item h4 {
  font-size: 1.375rem;
  margin-bottom: 6px;
}

.benefit-item p {
  opacity: 0.7;
  font-size: 0.9375rem;
}

/* ===== ОТЗЫВЫ ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.review-card {
  background: white;
  padding: 28px 22px;
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #eef2f6;
  transition: background 0.2s, border-color 0.2s;
}

.review-card .stars {
  color: #facc15;
  margin-bottom: 12px;
  font-size: 20px;
}

.review-card p {
  font-style: italic;
  color: #1e293b;
  margin-bottom: 14px;
}

.review-card .author {
  font-weight: 600;
  color: #0b1a33;
}

/* ===== ФОРМА + КОНТАКТЫ + КАРТА ===== */
.contact-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  background: white;
  border-radius: 40px 40px 0 0;
  padding: 45px 40px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9edf3;
  border-bottom: none;
  transition: background 0.2s, border-color 0.2s;
}

.contact-form {
  flex: 2 1 350px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 30px;
  font-size: 1rem;
  margin-bottom: 18px;
  transition: 0.2s;
  background: #f8fafc;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #facc15;
  background: white;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.15);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  text-align: center;
  font-size: 1.25rem;
  padding: 16px;
}

.contact-info {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 8px;
}

.contact-info .info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.125rem;
}

.contact-info .info-item i {
  width: 44px;
  height: 44px;
  background: #0b1a33;
  color: #facc15;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info .info-item a {
  color: #0b1a33;
  text-decoration: none;
  font-weight: 500;
}

.contact-info .info-item a:hover {
  color: #facc15;
}

/* ===== СОГЛАСИЕ НА ОБРАБОТКУ ПЕРСОНАЛЬНЫХ ДАННЫХ (ФОРМА) ===== */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #475569;
}

.consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #facc15;
}

.consent-check a {
  color: #0b1a33;
  font-weight: 600;
}

.consent-check a:hover {
  color: #facc15;
}

/* ===== СТРАНИЦА ПОЛИТИКИ ОБРАБОТКИ ПЕРСОНАЛЬНЫХ ДАННЫХ ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #0b1a33;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  color: #facc15;
}

.policy-card {
  max-width: 860px;
  margin: 0 auto;
  background: white;
  border: 1px solid #e9edf3;
  border-radius: 28px;
  padding: 45px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: background 0.2s, border-color 0.2s;
}

.policy-card .policy-meta {
  color: #64748b;
  font-size: 0.9375rem;
  margin-bottom: 30px;
}

.policy-card h2 {
  font-size: 1.375rem;
  margin: 28px 0 12px;
}

.policy-card h2:first-of-type {
  margin-top: 0;
}

.policy-card p,
.policy-card li {
  color: #334155;
  margin-bottom: 12px;
}

.policy-card ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

/* ===== БЛОК С КАРТОЙ ===== */
.map-container {
  background: white;
  border-radius: 0 0 40px 40px;
  border: 1px solid #e9edf3;
  border-top: none;
  padding: 0 5px 5px 5px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  transition: background 0.2s, border-color 0.2s;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 0 0 36px 36px;
}

/* ===== ПОДВАЛ ===== */
footer {
  background: #0b1a33;
  color: #94a3b8;
  padding: 40px 0;
  border-top: 2px solid #1e2f4a;
  text-align: center;
  transition: background 0.2s;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 18px 0;
}

footer .footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: 0.2s;
}

footer .footer-links a:hover {
  color: #facc15;
}

.footer-copy {
  font-size: 0.875rem;
  opacity: 0.6;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 850px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .nav-menu {
    justify-content: center;
    gap: 14px 22px;
  }
  .vision-toggle {
    font-size: 0.875rem;
    padding: 6px 14px;
  }
  .phone-header {
    align-self: center;
    width: fit-content;
  }
  .hero-text h1 {
    font-size: 2.125rem;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  .section-title {
    font-size: 1.875rem;
  }
  .contact-wrap {
    padding: 30px 20px 20px;
  }
  .map-container iframe {
    height: 250px;
  }
}

@media (max-width: 500px) {
  .hero-text h1 {
    font-size: 1.75rem;
  }
  .btn {
    padding: 14px 30px;
    font-size: 1.0625rem;
    width: 100%;
    text-align: center;
  }
  .nav-menu a {
    font-size: 0.9375rem;
  }
  .logo {
    font-size: 1.375rem;
  }
  .vision-toggle {
    font-size: 0.8125rem;
    padding: 6px 12px;
  }
  .vision-toggle i {
    font-size: 16px;
  }
  .map-container iframe {
    height: 200px;
  }
}
