﻿@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
html {
  overflow-x: hidden;
}

body {
  --hero-hide: 0;
  --hero-show: 1;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: #ff4500;
  background: #000;
  overflow-x: hidden;
}


/* Видео background */
#bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;      /* фон заполняет весь экран без искажений */
  z-index: 0;
  pointer-events: none;   /* клики «сквозь» видео */
}
.floating-highlights {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: none;
}

.floating-dot {
  position: absolute;
  width: 30vw;
  height: 30vw;
  min-width: 280px;
  min-height: 280px;
  background: radial-gradient(circle, rgba(33,102,214,0.18) 0%, rgba(255,255,255,0) 65%);
  filter: blur(35px);
  opacity: 0.55;
  animation: floatDot 26s ease-in-out infinite alternate;
}

.floating-dot--1 { top: -12vh; left: -8vw; animation-duration: 28s; }
.floating-dot--2 { top: 38vh; right: -10vw; animation-duration: 22s; }
.floating-dot--3 { bottom: -14vh; left: 18vw; animation-duration: 32s; }

@keyframes floatDot {
  0%   { transform: translate3d(-6%, -4%, 0) scale(0.85); opacity: 0.4; }
  50%  { transform: translate3d(10%, 8%, 0) scale(1.05); opacity: 0.68; }
  100% { transform: translate3d(4%, 16%, 0) scale(0.9); opacity: 0.5; }
}

header, .section, .glow-line, footer { position: relative; background: rgba(0,0,0,0.6); }
.section, .glow-line, footer { z-index: 1; }
header {
  padding: 0;
  margin: 0;
  background: none;
  text-align: center;
  z-index: auto;
  transition: transform 0.6s ease, opacity 0.6s ease;
  transform: translateY(calc(var(--hero-hide) * -60px));
  opacity: calc(1 - (var(--hero-hide) * 0.85));
  min-height: clamp(520px, 62vw, 820px);
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  max-width: none;
  margin: clamp(-72px, -10vw, -40px) 0 0;
  padding: 0 clamp(6vw, 9vw, 160px);
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
  pointer-events: none;
  opacity: calc(1 - var(--hero-hide));
  transition: opacity 0.6s ease;
  z-index: 3;
}

.hero-slider__track {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2.8vw, 32px);
  padding: clamp(12px, 2vw, 20px) clamp(32px, 5.6vw, 72px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(11, 61, 145, 0.18);
  color: #0b3d91;
  font-family: 'Orbitron', 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2.8vw, 1.6rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  box-shadow: 0 22px 55px rgba(11, 61, 145, 0.18);
  white-space: nowrap;
  min-width: clamp(420px, 78vw, 1320px);
  animation: hero-flyby 11s linear infinite;
  will-change: transform;
}

.hero-slider__track span {
  white-space: nowrap;
}

@keyframes hero-flyby {
  0% {
    transform: translateX(120%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(-120%);
    opacity: 0;
  }
}

body.theme-dark .hero-slider__track {
  background: rgba(18, 24, 36, 0.8);
  border-color: rgba(255, 112, 64, 0.28);
  color: #ff7040;
  box-shadow: 0 22px 55px rgba(255, 112, 64, 0.22);
}

@media (max-width: 640px) {
  .hero-slider {
    margin: clamp(-48px, -12vw, -28px) 0 0;
    padding: 0 clamp(4vw, 8vw, 36px);
  }
  .hero-slider__track {
    padding: clamp(10px, 4vw, 16px) clamp(20px, 8vw, 40px);
    letter-spacing: 0.16em;
    font-size: clamp(0.88rem, 4.8vw, 1.12rem);
  }
  header {
    min-height: clamp(360px, 90vw, 520px);
  }
  body.theme-light header::after {
    background-size: contain;
    background-position: top center;
  }
}
header,
.section {
  scroll-margin-top: 120px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
h1 { font-size: 4rem; color: #ff4500; text-shadow: 0 0 20px #ffddc1; animation: flicker 3s infinite; }
@keyframes flicker { 0%,100% { opacity: 1 } 50% { opacity: 0.7 } 80% { opacity: 0.9 } }

.start-btn { margin-top: 40px; padding: 16px 40px; font-size: 1.2rem; color: #ff4500; background: transparent; border: 2px solid #ff4500; border-radius: 12px; cursor: pointer; box-shadow: 0 0 15px #ff450088; transition: 0.3s; animation: flicker 4s infinite; }
.start-btn:hover { background: #ff4500; color: #fff; box-shadow: 0 0 30px #ff4500; }

.section { padding: 80px 20px; max-width: 1100px; margin: auto; }


.hero-title,
.hero-subtitle {
  display: none;
}
.card { background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(15px); border-left: 6px solid #ff4500; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 0 30px rgba(255,69,0,0.2); border-radius: 10px; margin-bottom: 40px; padding: 30px; transition: transform 0.3s ease-out; position: relative; }
.card::after { content: url('data:image/svg+xml;utf8,<svg fill=\"%23ff4500\" height=\"24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"12\" cy=\"12\" r=\"6\"/></svg>'); position: absolute; top: 20px; right: 20px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.3); opacity: 0.6 } }
.card:hover { transform: translateY(-5px); box-shadow: 0 0 40px rgba(255,69,0,0.5); }
.card h2 { font-size: 2rem; margin-bottom: 15px; color: #ff4500; }
.card p { font-size: 1rem; line-height: 1.6; color: #f5f5f5; }

.glow-line {
  display: none;
}

.price-table, .form, .reviews { background: rgba(0,0,0,0.6); border: 1px solid #ff450044; border-radius: 12px; padding: 40px; margin-top: 40px; box-shadow: 0 0 30px rgba(255,69,0,0.2); }
.price-table table { width: 100%; border-collapse: collapse; color: #f5f5f5; }
.price-table th, .price-table td { padding: 15px; border: 1px solid #ff450022; text-align: center; }
.price-table th { background: rgba(255,69,0,0.1); color: #ff4500; }

.form input, .form textarea { width: 100%; padding: 12px; margin: 10px 0; background: #111; border: 1px solid #ff4500; border-radius: 8px; color: #ff4500; }
.form button { padding: 12px 30px; background: #ff4500; color: #fff; border: 1px solid #ff4500; border-radius: 8px; cursor: pointer; }
.form button:hover { background: #fff; color: #ff4500; border: 2px solid #ff4500; }

.section.feature-icons {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: clamp(48px, 8vw, 96px) clamp(6vw, 10vw, 160px) clamp(32px, 6vw, 72px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

body.theme-dark .section.feature-icons {
  background: rgba(12, 18, 28, 0.9);
  box-shadow: none;
}

.feature-icons__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 32px);
  justify-content: space-between;
}

.feature-card {
  flex: 1 1 clamp(220px, 28vw, 320px);
  min-height: 200px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: clamp(18px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #f0f0f0;
  box-shadow: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: none;
  box-shadow: none;
}

.feature-card__icon {
  width: clamp(56px, 6vw, 72px);
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.4));
  
}

.feature-card h3 {
  font-size: 1.1rem;
  color: #ffd1bd;
  letter-spacing: 0.01em;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

body.theme-light .feature-card {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #1b2942;
}

body.theme-light .feature-card h3 {
  color: #0b3d91;
}

body.theme-light .feature-card p {
  color: rgba(0, 0, 0, 0.82);
}

body.theme-light .feature-card__icon {
  filter: drop-shadow(0 12px 24px rgba(11, 61, 145, 0.18));
}

@media (max-width: 900px) {
  .feature-icons__grid {
    justify-content: center;
  }

  .feature-card {
    flex: 1 1 clamp(240px, 60vw, 360px);
  }
}

.review { margin-bottom: 30px; border-left: 4px solid #ff4500; padding-left: 20px; color: #f5f5f5; }
footer { text-align: center; padding: 30px; color: #999; font-size: 0.9rem; }
/* Стили для кнопки входа клиентов (теперь часть навигации) */
.login-btn {
  /* Мы убрали position: absolute, top и right, так как за позицию теперь отвечает контейнер .header-nav-buttons */
  padding: 10px 20px;
  color: #ff4500; 
  border: 1px solid #ff4500; 
  border-radius: 5px; 
  text-decoration: none; 
  font-weight: bold; 
  transition: background-color 0.3s, color 0.3s; 
}

.login-btn:hover {
  background-color: #ff4500; 
  color: #fefefe; 
}

body {
  font-family: 'Segoe UI','Roboto','Helvetica Neue',Arial,sans-serif;
  transition: background 0.4s ease, color 0.4s ease;
}

body.theme-dark {
  color: #ff4500;
  background: #000;
}

body.modal-open {
  overflow: hidden;
}

body.theme-light {
  color: #ff4500;
  background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 70%);
}
body.theme-light::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 20% 20%, rgba(11,61,145,0.08), transparent 45%),
              radial-gradient(circle at 80% 30%, rgba(33,102,214,0.07), transparent 40%);
  pointer-events: none;
}

body.theme-light .floating-highlights {
  display: block;
}



body.theme-light .section,
body.theme-light .glow-line,
body.theme-light footer {
  background: rgba(255, 255, 255, 0.92);
  color: #0f2345;
  box-shadow: 0 18px 40px rgba(11, 61, 145, 0.08);
}

body.theme-light header {
  background: transparent;
  color: #0f2345;
  box-shadow: none;
  border-radius: 0;
  position: relative;
  padding-bottom: 0;
}

.hero-title,
.hero-subtitle {
  display: none;
}

body.theme-dark header {
  background: rgba(0, 0, 0, 0.6);
  color: #ff4500;
  padding: 30px 20px 50px;
  border-radius: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.theme-dark .hero-title,
body.theme-dark .hero-subtitle {
  display: block;
}

body.theme-dark .hero-title {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 700;
  text-shadow: 0 0 28px rgba(255, 69, 0, 0.45);
}

body.theme-dark .hero-subtitle {
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 0 18px rgba(255, 69, 0, 0.35);
}


body.theme-light header::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateY(calc(var(--hero-hide) * -100px));
  background: url("../static/img/hero.png") center top/cover no-repeat;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.65s ease;
  opacity: calc(1 - var(--hero-hide));
}

body.theme-light .glow-line {
  height: calc(28px * (1 - var(--hero-hide)));
  opacity: calc(1 - var(--hero-hide));
  background: linear-gradient(to bottom, rgba(11,61,145,0.06), rgba(255,255,255,0));
  box-shadow: none;
  transition: height 0.55s ease, opacity 0.55s ease, margin 0.55s ease;
}

body.theme-light .card {
  background: rgba(255,255,255,0.95);
  border-left: 6px solid #0b3d91;
  border: 1px solid rgba(11,61,145,0.12);
  box-shadow: 0 22px 44px rgba(11,61,145,0.12);
}
body.theme-light .card::after {
  content: url('data:image/svg+xml;utf8,<svg fill="#0b3d91" height="24" width="24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="6"/></svg>');
}
body.theme-light .card h2 { color: #0b3d91; }
body.theme-light .card p { color: #1a2f4d; }

body.theme-light .price-table,
body.theme-light .form,
body.theme-light .reviews {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(11,61,145,0.12);
  box-shadow: 0 18px 35px rgba(11,61,145,0.08);
}
body.theme-light .price-table th {
  background: rgba(11,61,145,0.08);
  color: #0b3d91;
}
body.theme-light .price-table td {
  border-color: rgba(11,61,145,0.08);
  color: #10294b;
}

body.theme-light .section.price-table > h2,
body.theme-light .section.calculator-section > h2,
body.theme-light .section.form > h2 {
  color: #111;
}

body.theme-light .glow-line + .section.price-table {
  margin-top: 12px;
  padding-top: 48px;
}

body.theme-light .form input,
body.theme-light .form textarea {
  background: #fff;
  border: 1px solid rgba(11,61,145,0.25);
  color: #0b3d91;
}
body.theme-light .form button {
  background: linear-gradient(135deg, #0b3d91 0%, #1e58c7 100%);
  border: none;
  color: #fff;
  box-shadow: 0 14px 28px rgba(11, 61, 145, 0.22);
}
body.theme-light .form button:hover {
  background: linear-gradient(135deg, #094280 0%, #134fad 100%);
  box-shadow: 0 18px 34px rgba(11, 61, 145, 0.25);
}

body.theme-light footer {
  color: #5a6f92;
  background: transparent;
}


body.theme-light .nav-btn,
body.theme-light .login-btn {
  color: #0b3d91;
  border-color: #0b3d91;
  background: transparent;
}
body.theme-light .nav-btn:hover,
body.theme-light .login-btn:hover {
  background: #0b3d91;
  color: #fff;
}


body.theme-light #yt-bg { display: none; }
body.theme-dark  #yt-bg { display: block; }
#yt-bg {
  transition: opacity 0.6s ease;
  opacity: calc(1 - var(--hero-hide));
}



body.theme-light h1 {
  color: transparent;
  background: linear-gradient(135deg, #0b3d91 0%, #1e58c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

body.theme-light header p {
  color: #1450b6;
}


/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .login-btn {
    top: 10px;
    right: 10px;
    padding: 8px 15px;
    font-size: 14px;
  }
}

/* --- Стили для кастомного уведомления --- */

.custom-alert {
  position: fixed; /* Фиксируем относительно окна браузера */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Полупрозрачный темный фон */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Убедимся, что оно поверх всего */
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Класс для скрытия уведомления */
.custom-alert.hidden {
  opacity: 0;
  pointer-events: none; /* Нельзя кликнуть на невидимый элемент */
}

.custom-alert-box {
  background-color: #000000;
  padding: 30px 40px;
  border-radius: 10px;
  border: 1px solid #ff4500;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  text-align: center;
  color: #ecf0f1;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.custom-alert.hidden .custom-alert-box {
  transform: scale(0.7);
}

.custom-alert-box p {
  margin: 0 0 20px 0;
  font-size: 18px;
}

.custom-alert-box button {
  background-color: #000000;
  color: #fff;
  border: 1px solid #ff4500;
  border-radius: 5px;
  padding: 10px 25px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.custom-alert-box button:hover {
  background-color: #ff4400;
}

body.theme-light .custom-alert {
  background-color: rgba(8, 26, 54, 0.42);
}

body.theme-light .custom-alert-box {
  background: #ffffff;
  color: #0f2345;
  border: 1px solid rgba(11, 61, 145, 0.16);
  box-shadow: 0 28px 60px rgba(11, 61, 145, 0.18);
}

body.theme-light .custom-alert-box button {
  background: linear-gradient(135deg, #0b3d91 0%, #1e58c7 100%);
  border: none;
  color: #ffffff;
}

body.theme-light .custom-alert-box button:hover {
  background: linear-gradient(135deg, #094280 0%, #134fad 100%);
}

/* --- Стили для калькулятора, адаптированные под дизайн сайта --- */

.calculator-section {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: clamp(56px, 9vw, 110px) clamp(6vw, 10vw, 160px);
  background: rgba(255, 255, 255, 0.98);
  box-sizing: border-box;
}

body.theme-dark .calculator-section {
  background: rgba(12, 18, 28, 0.92);
}

.calculator-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

.calculator-heading {
  max-width: 760px;
  display: grid;
  gap: 12px;
}

.calculator-kicker {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-weight: 600;
  color: rgba(11, 61, 145, 0.55);
}

.calculator-heading h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: #0b3d91;
}

.calculator-heading p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(17, 35, 69, 0.82);
}

body.theme-dark .calculator-kicker {
  color: rgba(255, 112, 64, 0.65);
}

body.theme-dark .calculator-heading h2 {
  color: #ff7040;
}

body.theme-dark .calculator-heading p {
  color: rgba(255, 255, 255, 0.78);
}

#calculator-form {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 40px);
  margin-top: 10px;
  padding: clamp(28px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(11, 61, 145, 0.12);
  border-radius: 32px;
  box-shadow: 0 18px 45px rgba(11, 61, 145, 0.08);
}

body.theme-dark #calculator-form {
  background: rgba(18, 24, 36, 0.9);
  border-color: rgba(255, 112, 64, 0.25);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.calculator-column {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.calculator-column h4 {
  color: #0b3d91;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(11, 61, 145, 0.18);
  padding-bottom: 10px;
  margin-bottom: 5px;
}

.calculator-column label {
  font-size: 1rem;
  color: rgba(17, 35, 69, 0.9);
}

body.theme-dark .calculator-column h4 {
  color: #ff7040;
  border-bottom-color: rgba(255, 112, 64, 0.25);
}

body.theme-dark .calculator-column label {
  color: rgba(255, 255, 255, 0.78);
}
.packaging-multiselect {
  position: relative;
  display: block;
  margin-top: 6px;
  z-index: 400;
}

.multi-dropdown {
  /* предыдущие свойства */
  z-index: 1200;
}

body.theme-light .multi-dropdown {
  /* предыдущие свойства */
  z-index: 1200;
}

.multi-trigger {
  width: 100%;
  height: 50px;
  padding: 0 48px 0 18px;
  display: flex;
  align-items: center;
  border-radius: 14px;
  border: 1px solid rgba(11,61,145,0.2);
  background: #ffffff;
  color: #0b3d91;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  position: relative;
}



.multi-trigger::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 18px;
  width: 0;
  height: 0;
  transform: translateY(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid currentColor;
  opacity: .65;
}

.multi-trigger.open {
  border-color: #0b3d91;
  box-shadow: 0 18px 46px rgba(11,61,145,0.16);
}

.multi-trigger.empty {
  color: rgba(17,35,69,0.55);
}

.multi-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,61,145,0.15);
  background: #ffffff;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 28px 55px rgba(11,61,145,0.1);
  z-index: 1000;
}

body.theme-dark .multi-trigger {
  border-color: rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  color: inherit;
}

body.theme-dark .multi-trigger.open {
  border-color: #ff7040;
  box-shadow: 0 18px 46px rgba(255,112,64,0.35);
  background: rgba(0,0,0,0.55);
}

body.theme-dark .multi-dropdown {
  border-color: rgba(255,255,255,0.22);
  background: rgba(10,10,10,0.96);
  box-shadow: 0 28px 55px rgba(0,0,0,0.55);
}

.multi-dropdown.open {
  display: flex;
}

.multi-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .18s ease;
  cursor: pointer;
  color: rgba(255,255,255,0.88);
}

.multi-option:hover {
  background: rgba(255,255,255,0.08);
}

.multi-option input[type="checkbox"] {
  accent-color: currentColor;
}

body.theme-light .multi-trigger {
  background: linear-gradient(180deg,#ffffff 0%,#f5f7ff 98%);
  border: 1px solid rgba(11,61,145,0.18);
  box-shadow: 0 12px 36px rgba(11,61,145,0.12);
  color: #0b3d91;
}

body.theme-light .multi-trigger.open {
  border-color: #0b3d91;
  box-shadow: 0 20px 46px rgba(11,61,145,0.18);
  background: linear-gradient(180deg,#ffffff 0%,#edf2ff 100%);
}

body.theme-light .multi-trigger.empty {
  color: #7b8fb8;
}

body.theme-light .multi-trigger::after {
  border-top-color: rgba(11,61,145,0.65);
}

body.theme-light .multi-dropdown {
  background: #ffffff; max-height: 260px; overflow-y: auto;
  border: 1px solid rgba(11,61,145,0.12);
  box-shadow: 0 26px 52px rgba(11,61,145,0.16);
}

body.theme-light .multi-option {
  color: #102d65;
}

body.theme-light .multi-option:hover {
  background: rgba(11,61,145,0.08);
}




/* Стилизуем новые инпуты так же, как в форме обратной связи */
.calculator-column input[type="number"],
.calculator-column select {
  width: 100%;
  padding: 12px;
  background: #111;
  border: 1px solid #ff4500;
  border-radius: 8px;
  color: #ff4500;
  font-family: 'Segoe UI','Roboto','Helvetica Neue',Arial,sans-serif;
  font-size: 1rem;
}

.calculator-column input[type="number"]:focus,
.calculator-column select:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  border-left: 3px solid #ff450044;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #ff4500; /* Окрашиваем галочку в фирменный цвет */
}

.checkbox-group label {
  cursor: pointer;
  flex-grow: 1;
}

.results-column {
  background: rgba(0, 0, 0, 0.3);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #ff450022;
}

#calculator-results {
  min-height: 150px;
  font-size: 1rem;
  line-height: 1.7;
  color: #f5f5f5;
}

#calculator-results p {
  margin: 0 0 8px 0;
}

.total-cost {
  margin-top: auto;
  border-top: 2px solid #ff4500;
  padding-top: 15px;
}

.total-cost h3 {
  font-size: 2rem;
  text-align: right;
  color: #ff4500;
   text-shadow: 
    -1px -1px 0 #fff,  
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff,
     0 0 10px #ffddc1;
}

/* Стилизуем кнопку сброса */
#reset-calculator {
  padding: 12px 30px;
  background: #ff4500; /* Нейтральный серый фон */
  color: #fff;
  border: 1px solid #ff4500;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 15px;
}
#reset-calculator:hover {
  background: #ffffff; max-height: 260px; overflow-y: auto;
  color: #ff4500;
  border: 1px solid #ff4500;
}

/* Стиль для отображения цены за единицу в калькуляторе */
.total-cost h3 small {
  font-size: 1rem; /* Уменьшаем размер шрифта */
  font-weight: normal; /* Убираем жирность */
  color: #ccc; /* Делаем текст светлее */
  margin-left: 15px; /* Добавляем небольшой отступ слева */
  text-shadow: none;
}

/* --- Стили для всплывающих подсказок (тултипов) v2 --- */

.checkbox-group {
  /* Добавляем это свойство, чтобы иконка позиционировалась правильно */
  position: relative; 
}

.tooltip-container {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.tooltip-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  background-color: #555;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.tooltip-icon:hover {
  background-color: #FFBF00;
}

.tooltip-text {
  /* Стили самой подсказки */
  position: absolute;
  bottom: 140%; 
  right: -10px;
  
  background-color: #1a1a1a;
  color: #f5f5f5;
  border: 1px solid #FFBF00;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  padding: 10px 15px;
  border-radius: 8px;
  
  width: 280px;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.5;
  
  /* По умолчанию подсказка скрыта */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
  pointer-events: none;
  transform: translateY(10px); /* Начальное положение для анимации */
}

/* Показываем подсказку при НАВЕДЕНИИ на иконку на ДЕСКТОПЕ */
.tooltip-container:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Показываем подсказку по КЛИКУ на иконку (для МОБИЛЬНЫХ) */
.tooltip-container.active .tooltip-text {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* ======================= СТИЛИ ДЛЯ КНОПОК НАВИГАЦИИ В ШАПКЕ ======================= */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 6vw, 40px);
  padding: 18px clamp(32px, 12vw, 160px);
  margin: 0;
  width: 100%;
  z-index: 5000;
  isolation: isolate;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.main-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 44px rgba(11, 61, 145, 0.16);
  z-index: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body.theme-dark .main-nav::before {
  background: rgba(7, 7, 10, 0.9);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(255, 69, 0, 0.42);
}

.nav-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.nav-left {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  z-index: 1;
  margin-left: clamp(-92px, -8.5vw, -64px);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 16px;
  position: relative;
  z-index: 1;
}

.nav-logo img {
  display: block;
  height: clamp(20px, 2.5vw, 24px);
  width: auto;
  
}

.nav-clock {
  height: clamp(32px, 3vw, 38px);
  width: auto;
  margin-left: clamp(10px, 2vw, 20px);
  filter: drop-shadow(0 6px 16px rgba(30, 88, 199, 0.22));
}

body.theme-light .nav-clock {
  color: #1e58c7;
}

body.theme-dark .nav-clock {
  color: #6ca9ff;
  filter: drop-shadow(0 6px 16px rgba(14, 120, 255, 0.35));
}

.nav-clock use {
  display: block;
}

.nav-clock .clock-minute,
.nav-clock .clock-hour,
.nav-clock .clock-second {
  transform-box: view-box;
  transform-origin: 24px 24px;
}



.nav-cluster {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 3.5vw, 28px);
  flex-wrap: nowrap;
  margin-left: clamp(18px, 6vw, 64px);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
}

body.theme-dark .nav-left {
  width: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;  /* чтобы не торчали исчезающие элементы */
}
body.theme-dark .nav-logo,
body.theme-dark .nav-clock {
  visibility: hidden;        /* элемент остаётся в потоке, но не видно */
}

body.theme-dark .nav-btn.theme-btn {
  margin-top: 0px;          /* опусти кнопку */
  margin-left: 30px;       /* сдвинь вправо/влево, если нужно убрать зазор */
}
body.theme-dark .nav-cluster {
  margin-left: auto;
  justify-content: flex-end;
  gap: 30px;
  transform: translateX(50px);
}
@media (min-width: 1024px) {
  body.theme-dark .nav-cluster {
    justify-content: flex-end;
    gap: 30px;
    transform: translateX(-105px);
  }
}


body.theme-dark .nav-links {
  justify-content: flex-end;   /* или flex-start, если нужно иное */
  gap: 28px;                   /* если хочешь поджать/раздвинуть сами ссылки */
  transform: translateX(20px); /* сдвигай текст, ± значение под себя */
}


body.theme-dark .nav-actions {
  margin-left: clamp(16px, 4vw, 48px);
}

body.theme-light .nav-cluster {
  justify-content: flex-start;
  margin-left: clamp(-180px, -12vw, -60px);
}

body.theme-light .nav-actions {
  margin-left: clamp(-12px, -2vw, 12px);
}

body.theme-light .main-nav {
  justify-content: flex-start;  /* можешь заменить на space-around или center */
}

body.theme-light .nav-cluster {
  flex: 0 1 auto;
  margin-left: clamp(80px, 4vw, 10px);
}




.nav-call {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

body.theme-light .nav-call {
  color: #0b3d91;
  border-color: rgba(11, 61, 145, 0.45);
}

body.theme-light .nav-call:hover,
body.theme-light .nav-call:focus-visible {
  color: #113d7a;
  border-color: currentColor;
}

body.theme-dark .nav-call {
  color: #ff4500;
  border-color: #ff4500;
}
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}


body.theme-dark .nav-call:hover,
body.theme-dark .nav-call:focus-visible {
  color: #fbfafa;
  border-color: #f6f4f4;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 4vw, 36px);
  margin-left: clamp(18px, 6vw, 48px);
}

@keyframes clock-minute-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes clock-hour-spin {
  to {
    transform: rotate(180deg);
  }
}

@keyframes clock-second-spin {
  to {
    transform: rotate(360deg);
  }
}

.callback-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #0b3d91 0%, #1e58c7 100%);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(11, 61, 145, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.callback-btn:hover,
.callback-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(11, 61, 145, 0.28);
}

body.theme-dark .callback-btn {
  background: linear-gradient(135deg, #ff4500 0%, #ff7040 100%);
  box-shadow: 0 8px 18px rgba(255, 69, 0, 0.22);
}

body.theme-dark .callback-btn:hover,
body.theme-dark .callback-btn:focus-visible {
  box-shadow: 0 12px 28px rgba(255, 69, 0, 0.3);
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 16px;
    padding: 16px clamp(20px, 8vw, 48px);
  }

  .nav-left {
    margin: 0 auto;
  }

  .nav-cluster {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    gap: 16px;
  }

  .nav-call,
  .callback-btn {
    font-size: 0.9rem;
  }
}
.main-nav > * {
  position: relative;
  z-index: 1;
}

.nav-btn {
  padding: 10px 20px;
  color: #ff4500;
  border: 1px solid #ff4500;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
  background-color: rgba(0, 0, 0, 0.2); /* Легкий фон для читаемости */
}

.nav-btn:hover {
  background-color: #ff4500;
  color: #fefefe;
}

.main-nav .nav-btn {
  padding: 10px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #0b3d91;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  line-height: 1.1;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
  appearance: none;
  position: relative;
  overflow: hidden;
}

.main-nav .nav-btn:focus {
  outline: none;
}

.main-nav .nav-btn:hover,
.main-nav .nav-btn:focus-visible {
  color: #1e58c7;
  background-color: transparent;
  box-shadow: none;
}

body.theme-light .main-nav .nav-btn {
  color: #0b3d91;
}

body.theme-light .main-nav .nav-btn:hover,
body.theme-light .main-nav .nav-btn:focus-visible {
  color: #113d7a;
  background-color: transparent;
  transform: translateY(-1px);
}

.main-nav .nav-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

body.theme-light .main-nav .nav-btn::after {
  background: linear-gradient(90deg, rgba(11,61,145,0), rgba(11,61,145,0.6), rgba(11,61,145,0));
}

.main-nav .nav-btn:hover::after,
.main-nav .nav-btn:focus-visible::after {
  transform: scaleX(1);
}

body.theme-light .main-nav .nav-btn:hover::after,
body.theme-light .main-nav .nav-btn:focus-visible::after {
  background: linear-gradient(90deg, rgba(17,61,122,0), rgba(17,61,122,0.75), rgba(17,61,122,0));
}

body.theme-dark .main-nav .nav-btn {
  color: #ff4500;
}

body.theme-dark .main-nav .nav-btn:hover,
body.theme-dark .main-nav .nav-btn:focus-visible {
  color: #ffffff;
  background-color: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}

.main-nav .nav-btn.theme-btn {
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  gap: 0;
  color: inherit;
  transform: none;
  justify-content: center;
  align-items: center;
}

.main-nav .nav-btn.theme-btn:hover,
.main-nav .nav-btn.theme-btn:focus-visible {
  transform: none;
  color: inherit;
}

.main-nav .theme-btn::after {
  display: none;
}

.main-nav .theme-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.main-nav .theme-btn .icon-sun,
.main-nav .theme-btn .icon-moon {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
}

body.theme-light .main-nav .theme-btn .icon-sun {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

body.theme-light .main-nav .theme-btn .icon-moon {
  opacity: 0;
}

body.theme-dark .main-nav .theme-btn .icon-sun {
  opacity: 0;
}

body.theme-dark .main-nav .theme-btn .icon-moon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Адаптация кнопок для мобильных */
@media (max-width: 768px) {
  .main-nav {
    position: sticky;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px 16px 18px;
  }
  
  .header-nav-buttons {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 8px;
    transform: none;
  }
  .menu-title {
    align-self: flex-start;
    margin-right: 0;
  }
  .main-nav .nav-btn {
    padding: 8px 12px;
    font-size: 13px;
    justify-content: center;
  }
  .main-nav .nav-btn:not(.theme-btn) {
    width: 100%;
  }
  .nav-left {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }
  .nav-clock {
    
    margin-right: 0;

    
  }


  
  .nav-cluster {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-left: 0;
  }
  .nav-cluster > * {
    width: 100%;
  }
   .nav-links .nav-btn:first-child {
    left: 30px;
    top: 15px;
    justify-content: flex-start;
    text-align: left;
  }
  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
    padding-right: 130px;
  }
  .nav-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding-right: 130px;
  }
  .nav-call,
  .callback-btn {
    width: 100%;
    text-align: center;
  }
  .nav-btn.theme-btn {
    position: absolute;
    align-self: center;
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    left: 230px;
    top: -90px;
   }
  .nav-links .nav-btn {
    width: 100%;
    background: none;
    border: none;
    
    border-radius: 0;
    box-shadow: none;
    color: #0b3d91;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 10px 0;
  }
  .nav-links .nav-btn:last-child {
    border-bottom: none;
  }
  .nav-links .nav-btn::after {
    display: none;
  }
  .nav-actions .nav-call {
    border: 1px solid rgba(11,61,145,0.25);
    background: #fff;
    color: #0b3d91;
  }
  .nav-actions .callback-btn {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
  }
}


/* ======================= НОВЫЕ СТИЛИ ДЛЯ СЕКЦИИ AI-АССИСТЕНТА (v2) ======================= */
/* Мы используем существующий .card, поэтому стилей нужно меньше */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Адаптивная сетка */
  gap: 30px; /* Пространство между элементами */
  margin-bottom: 30px;
}

.ai-feature-item {
  text-align: center;
}

.feature-icon {
  font-size: 3em;
  margin-bottom: 10px;
  line-height: 1;
  display: inline-block;
}

.ai-feature-item h3 {
  color: #ff4500;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.ai-feature-item p {
  color: #f5f5f5; /* Используем основной цвет текста с карточек */
  font-size: 0.95em;
  line-height: 1.5;
}

.ai-call-to-action {
  text-align: center;
  margin-top: 20px;
}

.ai-call-to-action p {
  font-size: 1.1em;
  color: #fff;
  margin-bottom: 20px;
}

/* Кнопке "Узнать больше" мы в HTML задали класс .start-btn, 
   поэтому она автоматически получит правильные стили и нам не нужно писать их заново! */
/* ======================= ФИНАЛЬНАЯ КОРРЕКЦИЯ ДЛЯ AI-БЛОКА ======================= */

/* ======================= СТИЛИ ДЛЯ КНОПКИ "НАВЕРХ" ======================= */
.back-to-top-btn {
  position: fixed; /* Фиксируем относительно окна браузера */
  bottom: 30px;
  right: 30px;
  z-index: 999; /* Убедимся, что она поверх других элементов */

  /* Внешний вид в стиле сайта */
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #ff4500;
  border: 2px solid #ff4500;
  border-radius: 50%; /* Делаем ее круглой */
  box-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
  
  /* Центрируем иконку внутри круга */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Плавные переходы и анимация */
  transition: all 0.3s ease-in-out;
  
  /* По умолчанию кнопка скрыта и немного смещена вниз */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top-btn:hover {
  background-color: #ff4500;
  color: #fff;
  transform: scale(1.1); /* Немного увеличиваем при наведении */
}

/* Класс, который будет добавляться через JS для отображения кнопки */
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* Возвращаем на исходную позицию */
}

/* ======================= АДАПТАЦИЯ КНОПКИ "НАВЕРХ" ДЛЯ МОБИЛЬНЫХ ======================= */
@media (max-width: 768px) {
  .back-to-top-btn {
    width: 40px;          /* Уменьшаем ширину */
    height: 40px;         /* Уменьшаем высоту */
    bottom: 20px;         /* Уменьшаем отступ снизу */
    right: 20px;          /* Уменьшаем отступ справа */
  }

  /* Делаем иконку-стрелку внутри чуть меньше */
  .back-to-top-btn svg {
    width: 20px;
    height: 20px;
  }
}
/* ======================= СТИЛИ ДЛЯ AI CHAT WIDGET ======================= */

#ai-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px; /* Позиционируем в том же углу, что и кнопка "Наверх" */
  z-index: 1000; /* Поверх всех элементов */
}

/* Кнопка для открытия/закрытия чата */
#chat-toggle-btn {
  width: 60px;
  height: 60px;
  background-color: #ff4500;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 69, 0, 0.6);
  transition: transform 0.3s ease;
}

#chat-toggle-btn:hover {
  transform: scale(1.1);
}

/* Основное окно чата */
#chat-window {
  position: absolute;
  bottom: 80px; /* Располагаем над кнопкой */
  right: 0;
  width: 350px;
  height: 500px;
  background: rgba(10, 15, 25, 0.85); /* Темный полупрозрачный фон */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 69, 0, 0.5);
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Чтобы скругленные углы работали */
  
  /* Анимация появления/скрытия */
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform-origin: bottom right;
}

/* Класс для скрытия окна */
#chat-window.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5);
  pointer-events: none;
}

/* Шапка чата */
.chat-header {
  padding: 15px 20px;
  background-color: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 69, 0, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  color: #ff4500;
  margin: 0;
  font-size: 1.2em;
}

#chat-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Область для сообщений */
.chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto; /* Добавляем скролл, если сообщений много */
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Стили для скроллбара */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}
.chat-messages::-webkit-scrollbar-thumb {
  background-color: #ff4500;
  border-radius: 6px;
}

/* Общий стиль для всех сообщений */
.message {
  padding: 10px 15px;
  border-radius: 18px;
  max-width: 80%;
  line-height: 1.5;
  word-wrap: break-word;
}

/* Сообщение от AI */
.message.ai {
  background-color: #2c3e50; /* Темно-синий */
  color: #ecf0f1;
  border-bottom-left-radius: 4px;
  align-self: flex-start; /* Прижимаем к левому краю */
}

/* Сообщение от пользователя */
.message.user {
  background-color: #ff4500;
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end; /* Прижимаем к правому краю */
}

/* Область для ввода текста */
.chat-input-area {
  display: flex;
  padding: 15px;
  border-top: 1px solid rgba(255, 69, 0, 0.5);
  background-color: rgba(0, 0, 0, 0.3);
}

#chat-input {
  flex-grow: 1;
  background: #111;
  border: 1px solid #ff4500;
  border-radius: 20px;
  padding: 10px 15px;
  color: #f5f5f5;
  font-size: 1em;
  outline: none;
}

#chat-send-btn {
  background: #ff4500;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
}

#chat-send-btn:hover {
  background-color: #ff7040;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  #chat-window {
    width: 100vw;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
  #chat-toggle-btn {
    bottom: 20px;
    right: 20px;
    /* Уменьшаем саму кнопку */
    width: 50px;
    height: 50px;
  }
  /* Уменьшаем иконку внутри кнопки */
  #chat-toggle-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* ======================= КОРРЕКЦИЯ ПОЛОЖЕНИЯ КНОПОК ======================= */

/* Смещаем кнопку "Наверх" ВЫШЕ кнопки чата на десктопе */
.back-to-top-btn {
  /* Новый отступ снизу = 30px (отступ чата) + 60px (высота кнопки чата) + 20px (зазор) */
  bottom: 110px; 
}

/* Коррекция для мобильных устройств */
@media (max-width: 768px) {
  /* Сначала прижимаем виджет чата к углу */
  #ai-chat-widget {
    bottom: 20px;
    right: 20px;
  }

  /* Теперь смещаем кнопку "Наверх" относительно кнопки чата */
  .back-to-top-btn {
    /* Новый отступ = 20px (отступ чата) + 60px (высота кнопки чата) + 15px (зазор) */
    bottom: 85px;
    right: 20px; /* Синхронизируем отступ справа с кнопкой чата */
  }
}
/* ======================= СТИЛИ ДЛЯ ГЕНЕРАТОРА КАРТОЧЕК ======================= */

.card-generator-section .card {
  /* Убираем параллакс-эффект для этой конкретной карточки, чтобы было удобнее пользоваться */
  transform: none !important; 
}

.generator-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 20px;
}

.generator-column {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

.generator-column h4 {
  color: #ff4500;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Стилизуем поля ввода как в других формах */
.generator-column input,
.generator-column textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  background: #111;
  border: 1px solid #ff4500;
  border-radius: 8px;
  color: #f5f5f5;
  font-family: 'Segoe UI','Roboto','Helvetica Neue',Arial,sans-serif;
  font-size: 1rem;
}

.generator-column textarea {
  min-height: 120px;
  resize: vertical;
}

/* Стили для блока с результатами */
#generator-results-container {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #ff450022;
  border-radius: 8px;
  padding: 20px;
  flex-grow: 1;
  color: #f5f5f5;
}

#generator-results-container .placeholder-text {
  color: #888;
  text-align: center;
  margin-top: 50px;
}

#generator-results-container h5 {
  color: #ff4500;
  font-size: 1.2em;
  margin-top: 15px;
  margin-bottom: 8px;
}
#generator-results-container h5:first-child {
  margin-top: 0;
}

#generator-results-container p {
  line-height: 1.6;
  margin-bottom: 10px;
  white-space: pre-wrap; /* Сохраняем переносы строк в описании */
}
/* ======================= СТИЛИ ДЛЯ AI-ИНФОГРАФИКИ ======================= */

.infographic-generator-section .card {
  transform: none !important; /* Отключаем параллакс для удобства */
}

.infographic-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 20px;
}

.infographic-column {
  flex: 1;
  min-width: 300px;
}

.infographic-column h4 {
  color: #ff4500;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Скрываем стандартную, некрасивую кнопку загрузки */
#infographic-file-input {
  display: none;
}

/* Стилизуем нашу кастомную кнопку */
.custom-file-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  background: #ff4500;
  color: #fff;
  border: 1px solid #ff4500;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.custom-file-upload:hover {
  background: #ff7040;
}

.custom-file-upload svg {
  margin-right: 10px;
}

/* Стили для отображения имени выбранного файла */
.file-name-display {
  margin-top: 15px;
  color: #ccc;
  font-style: italic;
  font-size: 0.9em;
}

/* Контейнер для результата */
#infographic-result-container {
  width: 100%;
  min-height: 300px; /* Минимальная высота, чтобы было видно */
  background: rgba(0, 0, 0, 0.3);
  border: 2px dashed #ff450088; /* Пунктирная рамка */
  border-radius: 8px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#infographic-result-container .placeholder-text {
  color: #888;
  text-align: center;
}


body.theme-light .calculator-section {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(11,61,145,0.12);
  box-shadow: 0 18px 40px rgba(11,61,145,0.08);
}

body.theme-light .calculator-column h4 {
  color: #0b3d91;
  border-bottom: 1px solid rgba(11,61,145,0.18);
}

body.theme-light .calculator-column label {
  color: #122d63;
}

body.theme-light .calculator-column input[type="number"],
body.theme-light .calculator-column select {
  background: #ffffff;
  border: 1px solid rgba(11,61,145,0.28);
  color: #0b3d91;
}

body.theme-light .calculator-column input[type="number"]:focus,
body.theme-light .calculator-column select:focus {
  box-shadow: 0 0 12px rgba(11,61,145,0.35);
}

body.theme-light .checkbox-group {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(11,61,145,0.12);
}

body.theme-light .checkbox-group label {
  color: #17356a;
}

body.theme-light #calculator-results {
  color: #122d63;
}

body.theme-light #calculator-results h4,
body.theme-light .total-cost span {
  color: #0b3d91;
}

body.theme-light #reset-calculator {
  background: linear-gradient(135deg, #0b3d91 0%, #1e58c7 100%);
  border: none;
  color: #fff;
  box-shadow: 0 14px 28px rgba(11, 61, 145, 0.22);
}

body.theme-light #reset-calculator:hover {
  background: linear-gradient(135deg, #094280 0%, #134fad 100%);
  box-shadow: 0 18px 34px rgba(11, 61, 145, 0.25);
}
body.theme-light .checkbox-group input[type="checkbox"] {
  accent-color: #0b3d91;
}
body.theme-light .total-cost {
  border-top: 2px solid rgba(11,61,145,0.25);
}

body.theme-light .total-cost h3 {
  color: #0b3d91;
  text-shadow: none;
}

body.theme-light .total-cost h3 small {
  color: #50648a;
}
body.theme-light .results-column {
  background: linear-gradient(180deg, #fafcff 0%, #f0f4ff 100%);
  border: 1px solid rgba(11,61,145,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

body.theme-light .results-column h4 {
  color: #0b3d91;
  border-bottom: 1px solid rgba(11,61,145,0.2);
}
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-hint {
  font-size: 0.95rem;
  color: rgba(11, 61, 145, 0.75);
}

.call-us-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #0b3d91 0%, #1e58c7 100%);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.call-us-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 61, 145, 0.25);
}

body.theme-dark .contact-hint {
  color: rgba(255, 255, 255, 0.72);
}

body.theme-dark .call-us-btn {
  background: linear-gradient(135deg, #ff4500 0%, #ff7040 100%);
  box-shadow: none;
}

body.theme-dark .call-us-btn:hover {
  box-shadow: 0 12px 28px rgba(255, 69, 0, 0.35);
}

body.theme-light .back-to-top-btn {
  background-color: rgba(11,61,145,0.1);
  color: #0b3d91;
  border: 2px solid rgba(11,61,145,0.35);
  box-shadow: 0 0 18px rgba(11,61,145,0.16);
}

body.theme-light .back-to-top-btn:hover {
  background-color: #0b3d91;
  border-color: #0b3d91;
  color: #fff;
}

#ai-chat-widget {
  display: none !important;
}











.callback-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 17, 34, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  z-index: 6000;
}

.callback-modal.hidden {
  display: none;
}

.callback-modal__dialog {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 30px 70px rgba(11, 61, 145, 0.15);
}


.callback-modal__dialog h3 {
  color: #0b3d91;
  margin-bottom: 8px;
}

body.theme-dark .callback-modal__dialog h3 {
  color: #ff7040;
}

.callback-modal__close {
  color: rgba(15, 35, 69, 0.5);
  transition: color 0.2s ease;
}

body.theme-dark .callback-modal__close {
  color: rgba(255, 255, 255, 0.65);
}

.callback-modal__close:hover,
.callback-modal__close:focus-visible {
  color: #0b3d91;
}

body.theme-dark .callback-modal__close:hover,
body.theme-dark .callback-modal__close:focus-visible {
  color: #ff7040;
}

body.theme-dark .callback-modal__dialog {
  background: #0f111a;
  color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

.callback-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}

.callback-modal__subtitle {
  margin: 12px 0 24px;
  color: rgba(15, 35, 69, 0.75);
}

body.theme-dark .callback-modal__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.callback-form input,
.callback-form textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(11, 61, 145, 0.22);
  font-size: 0.95rem;
}

.callback-form textarea {
  min-height: 110px;
  resize: vertical;
}

body.theme-dark .callback-form input,
body.theme-dark .callback-form textarea {
  background: rgba(9, 12, 20, 0.85);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.callback-form__submit {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, #0b3d91 0%, #1e58c7 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(11, 61, 145, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.callback-form__submit:hover,
.callback-form__submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(11, 61, 145, 0.26);
}

body.theme-dark .callback-form__submit {
  background: linear-gradient(135deg, #ff4500 0%, #ff7040 100%);
  box-shadow: 0 14px 28px rgba(255, 69, 0, 0.28);
}

@media (max-width: 540px) {
  .callback-modal__dialog {
    padding: 26px 20px;
  }
}
.about-section {
  max-width: none;
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(32px, 6vw, 72px) clamp(6vw, 10vw, 160px) clamp(48px, 8vw, 96px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

.about-inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  width: 100%;
  max-width: 1200px;
}
.about-text { flex: 1 1 360px; color: #0b3d91; }
.about-kicker { text-transform: uppercase; letter-spacing: 0.3em; font-weight: 600; color: rgba(11,61,145,0.6); display:block; margin-bottom: 14px; }
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; color: #0b3d91; }
.about-text p { font-size: 1rem; line-height: 1.7; color: rgba(15,35,69,0.78); }

.about-visual { flex: 0 0 auto; position: relative; width: clamp(200px, 28vw, 280px); height: clamp(200px, 28vw, 280px); display: grid; place-items: center; }

.text-ring { position: relative; width: 100%; height: 100%; }
.text-ring svg { width: 100%; height: 100%; animation: text-ring-spin 18s linear infinite; transform-origin: 50% 50%; }
.text-ring__text { font: 600 clamp(0.85rem, 1.2vw, 1rem) 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 0.28em; fill: #0b3d91; }
.text-ring__center { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; color: rgba(11,61,145,0.78); letter-spacing: 0.16em; }

@keyframes text-ring-spin { to { transform: rotate(360deg); } }

body.theme-dark .about-section {
  background: rgba(12, 18, 28, 0.9);
  color: #fff;
  box-shadow: none;
}
body.theme-dark .about-text h2 { color: #ff7040; }
body.theme-dark .about-text p { color: rgba(255,255,255,0.75); }
body.theme-dark .text-ring__text { fill: #ff7040; }
body.theme-dark .text-ring__center { color: #ff7040; }

.advantages-section {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: clamp(52px, 8vw, 104px) clamp(6vw, 10vw, 160px);
  background: #fff;
}

body.theme-dark .advantages-section {
  background: rgba(12, 18, 28, 0.94);
}

.advantages__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: clamp(24px, 4vw, 36px);
}

.advantages__header {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.advantages__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  color: #b02cff;
}

.advantages__dash {
  flex: 1;
  height: 2px;
  background: rgba(176, 44, 255, 0.4);
}

.advantages__header h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  color: #0b3d91;
}

.advantages__header p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(17, 35, 69, 0.8);
}

body.theme-dark .advantages__eyebrow {
  color: #ff8cfa;
}

body.theme-dark .advantages__dash {
  background: rgba(255, 140, 250, 0.5);
}

body.theme-dark .advantages__header h2 {
  color: #ff8cfa;
}

body.theme-dark .advantages__header p {
  color: rgba(255, 255, 255, 0.78);
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 3.2vw, 32px);
}

.adv-card {
  display: flex;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 20px;
  background: #f8fbff;
  box-shadow: 0 14px 32px rgba(10, 25, 68, 0.08);
  min-height: 150px;
}

.adv-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #e7fff2;
  color: #0f9d58;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.adv-card h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
  color: #0b3d91;
}

.adv-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(17, 35, 69, 0.8);
}

body.theme-dark .adv-card {
  background: rgba(15, 20, 32, 0.88);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

body.theme-dark .adv-card__icon {
  background: rgba(17, 215, 148, 0.15);
  color: #8afcd3;
}

body.theme-dark .adv-card h3 {
  color: #ff8cfa;
}

body.theme-dark .adv-card p {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 640px) {
  .advantages__eyebrow {
    letter-spacing: 0.2em;
  }

  .adv-card {
    flex-direction: column;
  }
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(11, 61, 145, 0.55);
}

.section-eyebrow__dash {
  flex: 1;
  height: 2px;
  background: rgba(11, 61, 145, 0.2);
}

body.theme-dark .section-eyebrow {
  color: rgba(255, 112, 64, 0.65);
}

body.theme-dark .section-eyebrow__dash {
  background: rgba(255, 112, 64, 0.35);
}

.offer-section {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: clamp(48px, 8vw, 110px) clamp(6vw, 10vw, 160px);
  background: #fdfdfd;
}

body.theme-dark .offer-section {
  background: rgba(12, 18, 26, 0.9);
}

.offer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.offer-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: #0b3d91;
  text-transform: uppercase;
  margin: 12px 0 16px;
}

.offer-content h2 span {
  color: #0f9d58;
}

.offer-content .offer-kicker,
.offer-content .offer-note {
  font-size: 1rem;
  color: rgba(17, 35, 69, 0.8);
}

.offer-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(6, 9, 21, 0.08);
}

.offer-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 6px;
  color: rgba(17, 35, 69, 0.85);
}

.offer-form input[type="text"],
.offer-form input[type="tel"] {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(11, 61, 145, 0.2);
  background: #f4f7ff;
  font-size: 1rem;
  color: #0b3d91;
}

.offer-form input:focus {
  outline: none;
  border-color: #0f9d58;
  box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.15);
}

.offer-form .checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.offer-form button {
  padding: 16px;
  border: none;
  border-radius: 18px;
  background: #0f9d58;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 157, 88, 0.3);
}

body.theme-dark .offer-form {
  background: rgba(16, 22, 36, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.theme-dark .offer-form label {
  color: rgba(255, 255, 255, 0.75);
}

body.theme-dark .offer-form input[type="text"],
body.theme-dark .offer-form input[type="tel"] {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.contacts-section {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: clamp(24px, 5vw, 72px) clamp(6vw, 10vw, 160px);
  background: #f7f9ff;
}

body.theme-dark .contacts-section {
  background: rgba(8, 12, 22, 0.9);
}

.contacts-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.contacts-details {
  display: grid;
  gap: 50px;
  font-size: 2rem;
  color: rgba(17, 35, 69, 0.85);
}

.contacts-illustration {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.contacts-illustration img {
  position: absolute;
  inset: 0;
  margin: auto 0 auto auto;
  width: min(520px, 100%);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 35px rgba(11, 61, 145, 0.18));
  border-radius: 28px;
}

@media (max-width: 640px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .contacts-illustration {
    min-height: unset;
    justify-content: center;
    padding-top: 8px;
  }

  .contacts-illustration img {
    position: static;
    width: min(360px, 90vw);
  }
}

.contacts-details h3 {
  margin-bottom: 4px;
  color: #0b3d91;
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .about-visual {
    width: 220px;
    height: 220px;
    justify-content: flex-end;      /* сдвигаем вправо */
  }

  .text-ring {
    margin-right: -50px;            /* подстрой смещение */
  }


}


.contacts-phone {
  
  font-size: 1.8rem;
  font-weight: 600;
  color: #0f9d58;
  text-decoration: none;

  top: 0px; 
}

.contacts-mail {
  color: #0b3d91;
  text-decoration: underline;
}

.contacts-note {
  padding: clamp(20px, 3vw, 32px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(10, 25, 68, 0.08);
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(17, 35, 69, 0.85);
  display: grid;
  gap: 18px;
}

.contacts-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contacts-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e7fff2;
  color: #0f9d58;
  font-size: 1.1rem;
  font-weight: 700;
}

.contacts-badge p {
  margin: 0;
}

body.theme-dark .contacts-details {
  color: rgba(255, 255, 255, 0.78);
}

body.theme-dark .contacts-details h3,
body.theme-dark .contacts-mail {
  color: #ff8cfa;
}

body.theme-dark .contacts-note {
  background: rgba(16, 22, 36, 0.92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.75);
}

body.theme-dark .contacts-badge span {
  background: rgba(17, 215, 148, 0.15);
  color: #8afcd3;
}

.map-section {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: clamp(40px, 6vw, 90px) clamp(6vw, 10vw, 160px);
  background: #fff;
}

body.theme-dark .map-section {
  background: rgba(4, 6, 12, 0.95);
}

.map-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.map-embed {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(9, 16, 32, 0.12);
}

.map-embed iframe {
  display: block;
  width: 100%;
  border: none;
}

.map-hint {
  font-size: 0.95rem;
  color: rgba(17, 35, 69, 0.75);
}

body.theme-dark .map-hint {
  color: rgba(255, 255, 255, 0.68);
}
body.theme-light h2 {
  color: #114cb1;  /* твой цвет */
}
body.theme-light p {
  color: #010101;  /* твой цвет */
}
body.theme-light li {
  color: #040404;  /* твой цвет */
}
.how-works-section {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: clamp(56px, 9vw, 110px) clamp(6vw, 10vw, 160px);
  background: #f7f8ff;
}

body.theme-dark .how-works-section {
  background: rgba(8, 12, 22, 0.92);
}



.how-works__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

body.theme-dark .how-works__header h3 {
  color: #ff7040;          /* если нужен другой оттенок в тёмной теме */
}

.how-works__header {
  display: grid;
  gap: 14px;
  max-width: 780px;
}

.how-works__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(11, 61, 145, 0.55);
}

.how-works__dash {
  flex: 1;
  height: 2px;
  background: rgba(11, 61, 145, 0.2);
}

.how-works__header h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: #0b3d91;
}
.how-works__header h3 {
  color: #0b3d91;          /* нужный цвет */
}

.how-works__header p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(17, 35, 69, 0.82);
}

body.theme-dark .how-works__eyebrow {
  color: rgba(255, 112, 64, 0.65);
}

body.theme-dark .how-works__dash {
  background: rgba(255, 112, 64, 0.35);
}

body.theme-dark .how-works__header h2 {
  color: #ff8cfa;
}

body.theme-dark .how-works__header p {
  color: rgba(255, 255, 255, 0.78);
}

.how-works__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.how-works__step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(10, 25, 68, 0.08);
  min-height: 120px;
}

.how-works__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #e9f9ef;
  color: #0f9d58;
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.how-works__step p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(17, 35, 69, 0.86);
}

body.theme-dark .how-works__step {
  background: rgba(15, 20, 32, 0.85);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

body.theme-dark .how-works__number {
  background: rgba(17, 215, 148, 0.16);
  color: #8afcd3;
}

body.theme-dark .how-works__step p {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 640px) {
  .how-works__eyebrow {
    letter-spacing: 0.2em;
  }

  .how-works__grid {
    grid-template-columns: 1fr;
  }
}

.schemes-section {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: clamp(56px, 9vw, 110px) clamp(6vw, 10vw, 160px);
  background: rgba(255, 255, 255, 0.98);
}

body.theme-dark .schemes-section {
  background: rgba(12, 18, 28, 0.9);
  color: #fff;
}

.schemes-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 5vw, 48px);
}

.schemes-header {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.schemes-kicker {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-weight: 600;
  color: rgba(11, 61, 145, 0.55);
}

body.theme-dark .schemes-kicker {
  color: rgba(255, 112, 64, 0.65);
}

.schemes-header h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  color: #0b3d91;
}

.schemes-header p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(17, 35, 69, 0.8);
}

body.theme-dark .schemes-header h2 {
  color: #ff7040;
}

body.theme-dark .schemes-header p {
  color: rgba(255, 255, 255, 0.78);
}

.scheme-card {
  display: grid;
  grid-template-columns: minmax(240px, 1fr);
  gap: clamp(24px, 4vw, 40px);
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 32px;
  box-shadow: none;
}

.scheme-card--fbs {
  justify-self: start;
}

.scheme-card--fbo {
  grid-auto-flow: row;
  justify-self: end;
}

body.theme-dark .scheme-card {
  background: rgba(18, 24, 36, 0.85);
  box-shadow: none;
  border: none;
}

.scheme-card__label {
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.2;
  color: #0b3d91;
  margin-bottom: 12px;
}

body.theme-dark .scheme-card__label {
  color: #ff7040;
}

.scheme-card__media,
.scheme-card__body,
.scheme-card__label {
  opacity: 0;
  transform: translateX(0);
  transition: transform 1.35s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.85s ease-out;
  will-change: transform, opacity;
}

.scheme-card--fbs .scheme-card__media,
.scheme-card--fbs .scheme-card__body {
  transform: translateX(-80px);
}

.scheme-card--fbs .scheme-card__body {
  transition-delay: 0.12s;
}

.scheme-card--fbo .scheme-card__label,
.scheme-card--fbo .scheme-card__media,
.scheme-card--fbo .scheme-card__body {
  transform: translateX(80px);
}

.scheme-card--fbo .scheme-card__media {
  transition-delay: 0.08s;
}

.scheme-card--fbo .scheme-card__body {
  transition-delay: 0.16s;
}

.scheme-card.is-visible .scheme-card__label,
.scheme-card.is-visible .scheme-card__media,
.scheme-card.is-visible .scheme-card__body {
  opacity: 1;
  transform: translateX(0);
}

.scheme-card__media img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(11, 61, 145, 0.12);
}

.scheme-card__body {
  display: grid;
  gap: 16px;
  font-size: 1.02rem;
  color: rgba(17, 35, 69, 0.85);
}

body.theme-dark .scheme-card__body {
  color: rgba(255, 255, 255, 0.76);
}

.scheme-card__list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.scheme-card__list li {
  position: relative;
  padding-left: 26px;
}

.scheme-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0b3d91;
  box-shadow: 0 0 12px rgba(11, 61, 145, 0.35);
}

body.theme-dark .scheme-card__list li::before {
  background: #ff7040;
  box-shadow: 0 0 12px rgba(255, 112, 64, 0.4);
}

.scheme-card__note {
  font-size: 0.95rem;
  color: rgba(17, 35, 69, 0.7);
}

body.theme-dark .scheme-card__note {
  color: rgba(255, 255, 255, 0.62);
}

@media (min-width: 860px) {
  .scheme-card {
    grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 1fr);
    align-items: center;
  }

  .scheme-card--fbo .scheme-card__media {
    order: 2;
  }

  .scheme-card--fbo .scheme-card__body {
    order: 1;
    justify-self: end;
  }

  .scheme-card--fbo .scheme-card__label {
    order: 0;
    grid-column: 2 / 3;
    margin-left: 120px; 
  }
}

@media (max-width: 640px) {
  .scheme-card__media img {
    border-radius: 20px;
  }
}

@media (min-width: 1024px) {
  .scheme-card--fbs {
    margin-left: clamp(-240px, -12vw, -140px);
    margin-right: auto;
  }

  .scheme-card--fbo {
    margin-right: clamp(-240px, -12vw, -140px);
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scheme-card__media,
  .scheme-card__body,
  .scheme-card__label {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
