/* ==========================================================================
   Переменные и базовые настройки (One365Hub - Tech B2B Style)
   ========================================================================== */
:root {
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* B2B Палитра */
  --color-primary: #2563eb;       /* Электрический синий */
  --color-primary-dark: #1d4ed8;
  --color-dark: #0f172a;          /* Глубокий графит */
  --color-text-muted: #64748b;
  --color-bg-light: #f8fafc;
  --color-white: #ffffff;
  --color-border: #e2e8f0;

  /* Классические стандарты шрифтов */
  --fz-h1: clamp(2.2rem, 3.6vw, 3.4rem);
  --fz-h3: 1.4rem;
  --fz-body: 1rem;
  --fz-small: 0.875rem;
  --fz-nav: 0.875rem;

  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-white) !important;
  color: var(--color-dark);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Шапка
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background-color: var(--color-white);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo__img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 600;
  font-size: var(--fz-nav);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-smooth);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background-color: var(--color-primary);
  transition: width var(--transition-smooth);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn--header {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  font-size: var(--fz-small);
}

.btn--header:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.btn--hero {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 18px 36px;
  font-size: var(--fz-body);
  border-radius: 50px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

.btn--hero:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.3);
}

.btn--hero:hover .btn__arrow {
  transform: translateY(3px);
}

.btn__arrow {
  transition: transform var(--transition-smooth);
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-dark);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

/* ==========================================================================
   Блок 1 (Hero Section B2B)
   ========================================================================== */
.hero-section {
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  box-sizing: border-box;
}

.hero-section__container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 40px;
}

.hero-section__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 30px;
  font-size: var(--fz-small);
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-primary);
}

.hero-section__title {
  font-size: var(--fz-h1);
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.text-accent {
  color: var(--color-primary);
}

.hero-section__subtitle {
  font-size: var(--fz-body);
  font-weight: 500;
  color: var(--color-text-muted);
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Теги преимуществ */
.hero-tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.tag-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-dark);
}

.tag-icon {
  font-size: 1.1rem;
}

/* ==========================================================================
   Виджет тарифов (Интерактивная карточка справа)
   ========================================================================== */
.hero-section__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-glow {
  position: absolute;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(234, 179, 8, 0.1) 60%, rgba(255, 255, 255, 0) 100%);
  filter: blur(50px);
  border-radius: 50%;
  z-index: 1;
}

.b2b-tiers-widget {
  position: relative;
  z-index: 2;
  width: 100%;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.widget-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-dark);
}

.widget-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Сетка колонок 3 тарифов */
.tiers-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tier-box {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
}

.tier-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  background-color: var(--color-white);
}

/* Стили отдельных тарифов по карточке из презентации */
.tier-box--bronze {
  border-top: 4px solid #d97706;
}
.tier-box--silver {
  border-top: 4px solid #64748b;
}
.tier-box--gold {
  border-top: 4px solid #eab308;
}

.tier-box__head {
  margin-bottom: 14px;
}

.tier-box__name {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.tier-box__price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1.1;
}

.tier-box__price .currency {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.tier-box__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.775rem;
  color: var(--color-dark);
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.35;
}

.tier-box__features li {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.tier-box__features li span {
  color: var(--color-primary);
  font-weight: 800;
}

.btn-tier-select {
  width: 100%;
  background-color: var(--color-dark);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.tier-box:hover .btn-tier-select {
  background-color: var(--color-primary);
}

/* Парение */
.visual-float {
  animation: floatImage 5s ease-in-out infinite alternate;
}

@keyframes floatImage {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* ==========================================================================
   Анимация появления
   ========================================================================== */
.animate-item {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-section__badge.animate-item { animation-delay: 0.05s; }
.hero-section__title.animate-item { animation-delay: 0.15s; }
.hero-section__subtitle.animate-item { animation-delay: 0.25s; }
.hero-tags.animate-item { animation-delay: 0.30s; }
.hero-section__actions.animate-item { animation-delay: 0.40s; }
.hero-section__visual.animate-item { animation-delay: 0.20s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Модальное окно
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background-color: var(--color-white);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
  transform: scale(0.92) translateY(15px);
  transition: all var(--transition-smooth);
  z-index: 10;
}

.modal.active .modal__card {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal__close:hover { color: var(--color-primary); }

.modal__header { margin-bottom: 24px; }
.modal__title { font-size: var(--fz-h3); font-weight: 800; color: var(--color-dark); margin-bottom: 6px; }
.modal__subtitle { font-size: var(--fz-small); color: var(--color-text-muted); }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: var(--fz-small); font-weight: 600; margin-bottom: 6px; color: var(--color-dark); }

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: var(--fz-body);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  outline: none;
  transition: border-color var(--transition-smooth);
}

.form-input:focus { border-color: var(--color-primary); }

.btn--submit {
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 14px;
  font-size: var(--fz-body);
  border-radius: 10px;
  margin-top: 10px;
}

.btn--submit:hover { background-color: var(--color-primary-dark); }

.form-response { margin-top: 14px; font-size: var(--fz-small); text-align: center; font-weight: 600; }
.form-response.success { color: #15803d; }
.form-response.error { color: #b91c1c; }

/* ==========================================================================
   Адаптивность
   ========================================================================== */
@media (max-width: 1024px) {
  .tiers-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .hero-section__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 868px) {
  .burger { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    padding: 100px 32px 32px;
    transition: right var(--transition-smooth);
    z-index: 999;
  }

  .nav.active { right: 0; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 24px; }
  .nav__link { font-size: 1.1rem; }

  .visual-float { animation: none; }
}

@media (max-width: 576px) {
  .header { height: 76px; }
  .logo__img { height: 44px; }
  .btn--header span { display: none; }
  .btn--header { padding: 10px; border-radius: 50%; }
  .btn--hero { width: 100%; }
  .modal__card { padding: 28px 20px; }
}

/* ==========================================================================
   Секция: Почему One365 уникален
   ========================================================================== */
.uniqueness-section {
  width: 100%;
  padding: 90px 0;
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.text-center {
  text-align: center;
}

.section-header {
  margin-bottom: 56px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 30px;
  font-size: var(--fz-small);
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: var(--fz-body);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Сетка преимуществ 2х2 */
.uniqueness-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.uniqueness-card {
  position: relative;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.uniqueness-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08);
}

.uniqueness-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  transition: all var(--transition-smooth);
}

.uniqueness-card:hover .uniqueness-card__icon {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.uniqueness-card__content {
  flex-grow: 1;
  z-index: 2;
}

.uniqueness-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.uniqueness-card__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.uniqueness-card__number {
  position: absolute;
  right: 20px;
  bottom: 10px;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.04);
  line-height: 1;
  user-select: none;
  transition: color var(--transition-smooth);
}

.uniqueness-card:hover .uniqueness-card__number {
  color: rgba(37, 99, 235, 0.08);
}

/* Scroll Observer для красивого появления */
.animate-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-card.animate-item {
  opacity: 1;
  transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 868px) {
  .uniqueness-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .uniqueness-card {
    padding: 28px 20px;
  }

  .uniqueness-section {
    padding: 60px 0;
  }
}

/* ==========================================================================
   Секция "Тарифы и Семейная подписка"
   ========================================================================== */
.pricing-section {
  width: 100%;
  padding: 90px 0;
  background-color: var(--color-white);
}

/* Баннер-провокация сверху */
.pricing-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  padding: 40px 48px;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 60px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-banner__content {
  max-width: 650px;
}

.pricing-banner__title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 14px 0;
}

.highlight-wine {
  color: #f43f5e;
}

.pricing-banner__text {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
}

.pricing-banner__highlight {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px 28px;
  text-align: center;
  flex-shrink: 0;
}

.highlight-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.highlight-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #38bdf8;
}

/* Сетка карточек тарифов (4 элемента) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 60px;
}

.price-card {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-smooth);
}

.price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border-color: var(--color-primary);
  background-color: var(--color-white);
}

.price-card__header {
  margin-bottom: 24px;
}

.price-card__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.price-card__badge--bronze { background-color: #fef3c7; color: #b45309; }
.price-card__badge--silver { background-color: #f1f5f9; color: #475569; }
.price-card__badge--gold { background-color: #fef9c3; color: #a16207; }
.price-card__badge--family { background-color: #ffe4e6; color: #be123c; }

.price-card__amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1;
}

.price-card__amount .currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.price-card__period {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.price-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--color-dark);
  margin-bottom: 28px;
}

.price-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.check-icon { color: #16a34a; font-weight: 900; }
.cross-icon { color: #94a3b8; }
.muted-item { color: #94a3b8; font-size: 0.8rem; }

.btn--price-card {
  width: 100%;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 12px;
  font-size: 0.875rem;
  border-radius: 12px;
}

.price-card:hover .btn--price-card {
  background-color: var(--color-primary);
}

/* Флагманская семейная карточка */
.price-card--featured {
  background-color: #fff;
  border: 2px solid #2563eb;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.12);
  transform: scale(1.02);
}

.featured-ribbon {
  position: absolute;
  top: -14px;
  right: 20px;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.featured-bonus-box {
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 14px;
  border: 1px dashed #cbd5e1;
  margin-bottom: 20px;
}

.bonus-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: #2563eb;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.btn--featured {
  width: 100%;
  background-color: #2563eb;
  padding: 14px;
  font-size: 0.875rem;
}

.btn--featured:hover {
  background-color: #1d4ed8;
}

/* Блок "Кому точно нужно" */
.target-audience {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 32px 40px;
}

.target-audience__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 24px;
  text-align: center;
}

.target-audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.target-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.target-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.target-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.target-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Адаптивность для тарифного блока */
@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .price-card--featured {
    transform: scale(1);
  }
}

@media (max-width: 868px) {
  .pricing-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .target-audience__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   Секция: B2B Форма обратной связи
   ========================================================================== */
.lead-section {
  width: 100%;
  padding: 80px 0;
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
}

.lead-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 28px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.badge--light {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.15);
}

.lead-card__title {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.25;
  margin: 16px 0;
}

.text-accent-light {
  color: #38bdf8;
}

.lead-card__text {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 32px;
}

.lead-guarantees {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.guarantee-icon {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.guarantee-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-white);
}

.guarantee-text span {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Форма справа */
.lead-card__form-wrapper {
  background-color: var(--color-white);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.form-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.btn--submit-main {
  width: 100%;
  background-color: #2563eb;
  color: var(--color-white);
  padding: 16px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-smooth);
  margin-top: 10px;
}

.btn--submit-main:hover {
  background-color: #1d4ed8;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   Секция: Подвал (Footer)
   ========================================================================== */
.footer-section {
  width: 100%;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 80px 0 30px;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo__img {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.footer-about-text {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-copyright-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.775rem;
  color: #cbd5e1;
  font-weight: 600;
}

.footer-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-smooth);
}

.footer-links a:hover {
  color: #38bdf8;
}

.link-download {
  color: #38bdf8 !important;
  font-weight: 700;
}

.footer-contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-val,
.contact-phone,
.contact-social {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e2e8f0;
  text-decoration: none;
  transition: color var(--transition-smooth);
}

.contact-phone:hover,
.contact-social:hover {
  color: #38bdf8;
}

/* Нижний колонтитул */
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  font-size: 0.8rem;
  color: #64748b;
}

.footer-sublinks {
  display: flex;
  gap: 20px;
}

.footer-sublinks a {
  font-size: 0.8rem;
  color: #64748b;
  text-decoration: none;
  transition: color var(--transition-smooth);
}

.footer-sublinks a:hover {
  color: #94a3b8;
}

/* Адаптивность для формы и подвала */
@media (max-width: 992px) {
  .lead-card {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Модальное окно юридических документов
   ========================================================================== */
.modal__card--legal {
  max-width: 680px;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow: hidden;
}

.modal__legal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-white);
  z-index: 2;
}

.modal__legal-header .modal__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 0;
}

.modal__legal-header .modal__close {
  position: static;
  top: auto;
  right: auto;
}

/* Прокручиваемый контент */
.modal__legal-content {
  padding: 28px;
  overflow-y: auto;
  max-height: calc(85vh - 80px);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Стилизация скроллбара */
.modal__legal-content::-webkit-scrollbar {
  width: 6px;
}
.modal__legal-content::-webkit-scrollbar-track {
  background: var(--color-bg-light);
}
.modal__legal-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.modal__legal-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.legal-lead {
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.legal-section {
  margin-bottom: 20px;
}

.legal-section h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.legal-section p {
  margin-bottom: 8px;
}

.legal-section ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-section ul li {
  margin-bottom: 4px;
}

.legal-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.legal-link:hover {
  text-decoration: underline;
}

/* Блок реквизитов */
.legal-requisites {
  margin-top: 28px;
  padding: 20px 24px;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  font-size: 0.85rem;
}

.requisites-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.legal-requisites p {
  margin-bottom: 4px;
  color: var(--color-dark);
}

.legal-requisites a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.director-sign {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
}

@media (max-width: 576px) {
  .modal__legal-header {
    padding: 20px;
  }
  .modal__legal-content {
    padding: 20px;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

/* Обязательное правило для открытия */
.modal.active {
  opacity: 1 !important;
  visibility: visible !important;
}