:root {
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-soft: #e0f2fe;
  --promo-gold: #b45309;
  --promo-gold-bg: #fef3c7;
  --promo-gold-border: #fde68a;
  --text-main: #0f172a;
  --text-muted: #475569;
  --status-live: #16a34a;
  --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 20px 35px rgba(2, 132, 199, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 50px;
  animation: fadeIn 0.6s ease-out;
  overflow-x: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Шапка сайта */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 14px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  margin-bottom: 30px;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo span:first-child {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.logo span:last-child {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-home:hover {
  background-color: #e2e8f0;
  transform: translateY(-1px);
}

.header-email {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #bae6fd;
  transition: background 0.2s ease;
}

.header-email:hover {
  background: #bae6fd;
}

/* --- Баннер (banner-card) --- */
.banner-card {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0284c7 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  padding: 55px 40px;
  margin-bottom: 30px;
  box-shadow: 0 20px 45px -15px rgba(2, 132, 199, 0.3);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-card:hover {
  box-shadow: 0 25px 55px -15px rgba(2, 132, 199, 0.45);
}

.banner-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(2, 132, 199, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.banner-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, rgba(15, 23, 42, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.banner-card h1 {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #ffffff;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.banner-card p {
  font-size: 1.05rem;
  color: #e2e8f0;
  margin-bottom: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.banner-features {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  margin-bottom: 30px;
}

.feature-chip {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.feature-chip:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-banner-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #0284c7;
  padding: 15px 34px;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-banner-action:hover {
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* --- Преимущества (Bento Grid) --- */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.benefit-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefit-card:hover {
  border-color: #bae6fd;
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.benefit-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(2, 132, 199, 0.2);
  transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1);
}

.benefit-card h3 {
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 800;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* --- Секция коммерческих талонов и формы --- */
.b2b-commercial-section {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}

/* Карточка стоимости */
.price-box-compact {
  background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #7dd3fc;
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.price-box-compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -10px rgba(2, 132, 199, 0.25);
}

.price-box-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.price-top h2 {
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.price-tag-label {
  display: inline-block;
  background: #ffffff;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid #bae6fd;
}

.price-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.price-details {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 800;
  margin-bottom: 14px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  text-align: left;
  border-top: 1px solid rgba(2, 132, 199, 0.15);
  padding-top: 12px;
}

.price-list li {
  font-size: 0.83rem;
  color: #334155;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.price-list li::before {
  content: '✓';
  color: var(--status-live);
  font-weight: 900;
}

.badges-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
}

/* --- СУПЕР-ЗАМЕТНЫЙ БЛОК ФОРМЫ СВЯЗИ --- */
.form-section {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  padding: 36px 40px;
  border-radius: 28px;
  box-shadow: 0 20px 45px -10px rgba(2, 132, 199, 0.2);
  border: 2px solid #38bdf8;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-section::before {
  content: '⚡ Быстрая связь';
  position: absolute;
  top: -14px;
  right: 30px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.form-header {
  margin-bottom: 20px;
  text-align: left;
}

.form-section h2 {
  color: var(--text-main);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.form-section p.subtitle {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 15px;
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--text-main);
  transition: all 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.18);
}

.form-footer-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.captcha-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.smart-captcha {
  width: 100% !important;
}

.smart-captcha iframe {
  width: 100% !important;
}

.btn-submit {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 900;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.5);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.privacy-notice {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: left;
}

.privacy-notice-link {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

.form-response {
  display: none;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.form-response.success {
  display: block;
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.form-response.error {
  display: block;
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

/* --- Модальное окно --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--bg-card);
  width: 100%;
  max-width: 750px;
  max-height: 85vh;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 22px 26px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  font-weight: 800;
}

.modal-close {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--text-main);
  transform: rotate(90deg);
}

.modal-body {
  padding: 26px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.modal-body h4 {
  margin-top: 16px;
  margin-bottom: 6px;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
}

.modal-body p, .modal-body ul {
  margin-bottom: 12px;
}

.modal-body ul {
  padding-left: 20px;
}

.modal-body a {
  color: var(--accent);
  text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 960px) {
  .b2b-commercial-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  /* Компактная шапка */
  header {
    padding: 8px 0;
    margin-bottom: 20px;
  }

  .nav-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .header-left {
    gap: 8px;
  }

  .logo span:first-child {
    font-size: 1rem;
  }

  .logo span:last-child {
    font-size: 0.65rem;
  }

  .btn-home {
    padding: 5px 10px;
    font-size: 0.78rem;
    border-radius: 8px;
  }

  .banner-card {
    padding: 32px 16px;
  }
  
  .banner-card h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .form-section {
    padding: 24px 16px;
  }

  .form-grid-2col {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .captcha-wrapper {
    width: 100%;
    overflow: hidden;
  }

  .price-section { padding: 30px 16px; }
  .price-box { padding: 20px 24px; }
  .price-value { font-size: 2.8rem; }
}