/* ============================================================
   СБИС ОНЛАЙН — Main Stylesheet (redesign 2026 v2)
   ============================================================ */

/* Google Fonts Inter загружается через <link rel="preload"> в HTML — @import убран для устранения блокировки рендеринга */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1565c0;
  --blue-dk:     #0d47a1;
  --blue-lt:     #e8f0fe;
  --blue-mid:    #1976d2;
  --accent:      #ff6d00;
  --text:        #2d3354;
  --text-md:     #64748b;
  --text-lt:     #94a3b8;
  --border:      #e2e8f0;
  --border-lt:   #f1f5f9;
  --bg:          #ffffff;
  --bg-alt:      #f8fafc;
  --bg-dark:     #0f172a;
  --success:     #15803d;
  --error:       #dc2626;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.06);
  --shadow:      0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.13);
  --shadow-blue: 0 8px 30px rgba(21,101,192,.25);
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --max-w:       1120px;
  --header-h:    68px;
  --section-py:  88px;
}

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  position: relative;
  touch-action: pan-y;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ---------- Container ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Prevent ANY element from causing horizontal scroll */
.site-header, section, footer, .hero, .cta-banner, .page-hero {
  max-width: 100%;
  overflow-x: clip;
}

/* Grid overflow prevention */
.hero-grid > *,
.services-grid > *,
.features-grid > *,
.tariffs-grid > *,
.advantages-grid > *,
.footer-grid > *,
.section-form-wrap > * { min-width: 0; }

/* ---------- Fade-in scroll animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .22s ease;
  text-decoration: none !important;
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dk);
  border-color: var(--blue-dk);
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue-lt);
  color: var(--blue-dk);
  transform: translateY(-1px);
}
.btn-white {
  background: #fff;
  color: var(--blue);
  border-color: rgba(255,255,255,.8);
}
.btn-white:hover {
  background: var(--blue-lt);
  border-color: var(--blue-lt);
  color: var(--blue-dk);
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: #e65100;
  border-color: #e65100;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,109,0,.3);
}
.btn-sm  { padding: 8px 18px; font-size: 13px; }
.btn-lg  { padding: 16px 38px; font-size: 17px; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none !important;
}
.site-logo img { height: 38px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.site-nav a {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-md);
  transition: background .15s, color .15s;
  white-space: nowrap;
  text-decoration: none !important;
}
.site-nav a:hover { background: var(--blue-lt); color: var(--blue); }
.site-nav a.active {
  background: var(--blue-lt);
  color: var(--blue);
  font-weight: 600;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header-phone {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  text-decoration: none !important;
  letter-spacing: .01em;
}
.header-phone:hover { color: var(--blue); }

/* Burger */
.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

/* ---------- Mobile nav ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45);
  z-index: 800;
}
.mobile-nav.open { display: block; }
.mobile-nav-inner {
  background: #fff;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 300px;
  height: 100%;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-nav a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background .15s;
}
.mobile-nav a:hover { background: var(--bg-alt); }
.mobile-nav .mobile-phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  padding: 12px 14px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
}

/* ---------- Hero (home) ---------- */
.hero {
  background: linear-gradient(135deg, #0a2d6e 0%, #1565c0 40%, #1e88e5 72%, #1255a8 100%);
  color: #fff;
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 90% at 88% 20%, rgba(100,181,246,.22) 0%, transparent 60%),
    radial-gradient(ellipse 45% 60% at 10% 85%, rgba(8,32,100,.55) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 50% 50%, rgba(255,255,255,.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -.02em;
}
.hero p {
  font-size: clamp(15px, 2vw, 18px);
  opacity: .88;
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.65;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

/* Hero form card */
.hero-form-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  color: var(--text);
}
.hero-form-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--blue-dk);
  line-height: 1.35;
}

/* ---------- Sections ---------- */
.section { padding: var(--section-py) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.section-title.center { text-align: center; }
.section-subtitle {
  color: var(--text-md);
  margin-bottom: 48px;
  font-size: 17px;
  line-height: 1.6;
}
.section-subtitle:empty { display: none; }
.section-subtitle.center { text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }

/*
 * UX: Generous whitespace (per ux-design-skill)
 * When section-title is directly followed by a content block (no subtitle between),
 * add breathing room so heading doesn't crowd the cards.
 */
.section-title + .features-grid,
.section-title + .services-grid,
.section-title + .advantages-grid,
.section-title + .tariffs-grid,
.section-title + .steps,
.section-title + .stats-row,
.section-title + .checklist,
.section-title + .g-cols-2,
.section-title + .g-cols-3,
.section-title + .g-cols-4,
.section-title + .news-grid,
.section-title + .ep-grid,
.section-title + .section-form-wrap { margin-top: 40px; }

/* ---------- Feature cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s;
}
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: rgba(21,101,192,.2);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-lt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
  transition: background .2s;
}
.feature-card:hover .feature-icon { background: #d2e3fc; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.feature-card p { font-size: 14px; color: var(--text-md); line-height: 1.65; }
a.feature-card { color: inherit; }
a.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: rgba(21,101,192,.2);
  text-decoration: none;
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  background: linear-gradient(155deg, #f0f6ff 0%, #f8fafc 60%, #ffffff 100%);
  border: 1px solid #dce8fa;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  opacity: 0;
  transition: opacity .25s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: rgba(21,101,192,.15); }
.service-card:hover::after { opacity: 1; }
.service-card .service-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-lt);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 26px;
}
.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; color: var(--blue-dk); }
.service-card p { font-size: 14px; color: var(--text-md); flex: 1; line-height: 1.65; }
.service-card .btn { margin-top: 22px; align-self: flex-start; }

/* ---------- Tariff cards ---------- */
.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.tariff-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.tariff-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.tariff-card.featured {
  border-color: var(--blue);
  background: linear-gradient(160deg, #f0f6ff 0%, #e8f0fe 100%);
  position: relative;
  box-shadow: var(--shadow);
}
.tariff-card.featured::before {
  content: 'Популярный';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--blue-dk), var(--blue));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 12px;
  white-space: nowrap;
  letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(21,101,192,.3);
}
.tariff-name { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-lt); margin-bottom: 6px; }
.tariff-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 8px; letter-spacing: -.01em; }
.tariff-price { font-size: 32px; font-weight: 800; color: var(--blue-dk); margin-bottom: 4px; letter-spacing: -.02em; }
.tariff-period { font-size: 13px; color: var(--text-lt); margin-bottom: 24px; }
.tariff-features { flex: 1; margin-bottom: 28px; }
.tariff-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-md);
  padding: 7px 0;
  border-bottom: 1px solid var(--border-lt);
  line-height: 1.5;
}
.tariff-features li:last-child { border-bottom: none; }
.tariff-features li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 13px;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-md);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=tel],
.form-group input[type=number],
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21,101,192,.1);
}
.form-status {
  display: none;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-top: 10px;
}
.form-status.error { background: #fff1f2; color: var(--error); border: 1px solid #fecdd3; }
.form-status.success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }

/* Consent */
.consent-block {
  margin: 12px 0 14px;
  padding: 10px 12px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border-lt);
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
}
.consent-label input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.consent-label span { font-size: 12px; color: var(--text-md); line-height: 1.55; }
.consent-label a { color: var(--blue); }
.consent-error { display: none; color: var(--error); font-size: 11px; margin-top: 4px; padding-left: 25px; }

/* ---------- Steps ---------- */
.steps { display: flex; gap: 0; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-lt), var(--blue), var(--blue-lt));
  z-index: 0;
  opacity: .5;
}
.step { flex: 1; text-align: center; position: relative; z-index: 1; padding: 0 12px; }
.step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 14px;
  box-shadow: 0 4px 14px rgba(21,101,192,.3);
}
.step h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.step p { font-size: 13px; color: var(--text-md); }
.step-body {}

/* ---------- Advantage cards ---------- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.advantage-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.advantage-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.advantage-card .adv-icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
}
.advantage-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.advantage-card p { font-size: 13px; color: var(--text-md); line-height: 1.6; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #0a2d6e 0%, #1565c0 42%, #1e88e5 75%, #1255a8 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 80% 50%, rgba(100,181,246,.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(8,32,100,.4) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -.02em;
  position: relative;
}
.cta-banner p { font-size: 17px; opacity: .85; margin-bottom: 32px; position: relative; }

/* ---------- Inline section form ---------- */
.section-form-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}
.section-form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.section-form-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-dk);
  margin-bottom: 20px;
  line-height: 1.35;
}

/* ---------- Checklist ---------- */
.checklist { margin: 0; padding: 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-md);
  border-bottom: 1px solid var(--border-lt);
  line-height: 1.55;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- Stats row ---------- */
.stats-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid var(--border);
  transition: background .2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg-alt); }
.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-label { font-size: 13px; color: var(--text-lt); margin-top: 6px; }

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  animation: modalIn .28s cubic-bezier(.34,1.2,.64,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.93) translateY(-12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--bg-alt);
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-lt);
  line-height: 1;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-box h3 { font-size: 21px; font-weight: 800; margin-bottom: 6px; color: var(--blue-dk); letter-spacing: -.01em; }
.modal-box p.modal-sub { font-size: 14px; color: var(--text-md); margin-bottom: 22px; line-height: 1.6; }

/* ---------- Cookie banner ---------- */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-dark);
  color: #fff;
  padding: 16px 20px;
  z-index: 1100;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
}
.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-inner p { font-size: 14px; flex: 1; opacity: .85; line-height: 1.55; }
.cookie-inner a { color: #93c5fd; }
.cookie-accept {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.cookie-accept:hover { background: var(--blue-dk); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .site-logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; opacity: .35; line-height: 1.65; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  opacity: .45;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #0a2d6e 0%, #1565c0 42%, #1e88e5 75%, #1255a8 100%);
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 100% at 90% 30%, rgba(100,181,246,.2) 0%, transparent 60%),
    radial-gradient(ellipse 35% 60% at 5% 80%, rgba(8,32,100,.5) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -.025em;
  position: relative;
  line-height: 1.15;
}
.page-hero h1::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.3));
  border-radius: 2px;
  margin-top: 14px;
}
.page-hero p {
  font-size: 17px;
  opacity: .85;
  max-width: 620px;
  line-height: 1.65;
  position: relative;
}

/* ---------- Logos strip ---------- */
.logos-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: center;
}
.logos-strip img {
  height: 36px;
  width: auto;
  opacity: .6;
  transition: opacity .2s;
  filter: grayscale(1);
}
.logos-strip img:hover { opacity: 1; filter: none; }

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  background: var(--bg);
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card-body { padding: 22px; }
.news-date { font-size: 12px; color: var(--text-lt); margin-bottom: 8px; font-weight: 500; letter-spacing: .02em; }
.news-card h3 { font-size: 16px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; color: var(--text); }
.news-card p { font-size: 14px; color: var(--text-md); line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 24px; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-lt);
}
.contact-row:last-child { border-bottom: none; }
.contact-row-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.contact-row p { font-size: 15px; }
.contact-row strong { display: block; font-size: 12px; color: var(--text-lt); margin-bottom: 2px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Topbar (legacy) ---------- */
.topbar { display: none; }

/* ============================================================
   UTILITY GRID CLASSES  (g-cols-N)
   Used to replace inline style="grid-template-columns:..."
   ============================================================ */
.g-cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.g-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g-cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ============================================================
   RESPONSIVE / MOBILE STYLES
   ============================================================ */

/* ── Tablet ≤ 960px ─────────────────────────────────────── */
@media (max-width: 960px) {
  :root { --section-py: 64px; }

  /* Header */
  .site-nav       { display: none; }
  .header-contacts { display: none; }
  .burger         { display: block; margin-left: auto; }
  .header-inner   { gap: 12px; }

  /* Hero: single column, remove fixed right column */
  .hero           { padding: 48px 0 56px; }
  .hero-grid      { grid-template-columns: 1fr; gap: 28px; }
  .hero-form-card { max-width: 480px; margin: 0 auto; width: 100%; }
  .hero h1        { font-size: clamp(26px, 5vw, 40px); }

  /* Grids → 2 columns */
  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .features-grid   { grid-template-columns: repeat(2, 1fr); }
  .tariffs-grid    { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .g-cols-3, .g-cols-4 { grid-template-columns: repeat(2, 1fr); }

  /* Footer → 2 cols */
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand  { grid-column: 1 / -1; }

  /* Section form → single col */
  .section-form-wrap { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid      { grid-template-columns: 1fr; }

  /* Steps → vertical */
  .steps         { flex-direction: column; gap: 0; }
  .steps::before { display: none; }
  .step {
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-lt);
    margin-bottom: 20px;
  }
  .step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .step-num      { flex-shrink: 0; margin: 0; }

  /* Stats wrap */
  .stats-row { flex-wrap: wrap; border: none; border-radius: 0; gap: 0; background: transparent; }
  .stat-item {
    flex: 0 0 calc(50% - 1px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 4px;
  }

  /* Page hero */
  .page-hero { padding: 44px 0 48px; }
}

/* ── Mobile ≤ 600px ─────────────────────────────────────── */
@media (max-width: 600px) {
  :root { --header-h: 58px; --section-py: 48px; }

  /* Prevent any element from being wider than viewport */
  * { max-width: 100%; }
  img, video, iframe, table { max-width: 100%; }

  /* Grids → 1 column */
  .services-grid    { grid-template-columns: 1fr; }
  .features-grid    { grid-template-columns: 1fr; }
  .tariffs-grid     { grid-template-columns: 1fr; }
  .advantages-grid  { grid-template-columns: 1fr !important; }
  .g-cols-2, .g-cols-3, .g-cols-4 { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand     { grid-column: auto; }
  .ep-grid          { grid-template-columns: 1fr !important; }
  .news-grid        { grid-template-columns: 1fr !important; }

  /* Header */
  .header-phone   { display: none; }
  .header-inner   { gap: 8px; }

  /* Hero */
  .hero           { padding: 36px 0 40px; }
  .hero h1        { font-size: 24px; }
  .hero p         { font-size: 15px; }
  .hero-badge     { font-size: 12px; padding: 4px 10px; }

  /* Hero buttons: stack vertically */
  .hero .btn-group,
  .hero > div > div > div { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
  .hero .btn { width: 100%; }

  /* Section */
  .section-title    { font-size: 22px; }
  .section-subtitle { font-size: 15px; margin-bottom: 28px; }

  /* Stats: 2 per row */
  .stats-row { flex-wrap: wrap; }
  .stat-item  { flex: 0 0 calc(50% - 10px); border-radius: var(--radius); margin: 4px; }
  .stat-value { font-size: 32px; }

  /* Modal */
  .modal-overlay { padding: 12px; }
  .modal-box    { padding: 24px 16px; max-width: 100%; }
  .modal-box h3 { font-size: 18px; }

  /* Tariff */
  .tariff-price { font-size: 26px; }

  /* Page hero */
  .page-hero    { padding: 36px 0 40px; }
  .page-hero h1 { font-size: 22px; }

  /* CTA banner */
  .cta-banner          { text-align: center; padding: 48px 0; }
  .cta-banner h2       { font-size: 22px; }

  /* Buttons: nowrap override on mobile */
  .btn { white-space: normal; word-break: keep-all; }

  /* Forms */
  .section-form-card { padding: 24px 16px; }

  /* Nav active link in mobile-nav */
  .mobile-nav-inner { max-width: 100%; }
}

/* ── Small mobile ≤ 380px ──────────────────────────────── */
@media (max-width: 380px) {
  .hero h1        { font-size: 21px; }
  .section-title  { font-size: 20px; }
  .tariff-price   { font-size: 22px; }
  .stat-item      { flex: 0 0 100%; margin: 4px 0; }
  .container      { padding: 0 16px; }
}

/* ── Burger animation ──────────────────────────────────── */
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   VISUAL ADDITIONS — v2 (минимализм)
   ============================================================ */

/* Точечный паттерн на секциях с серым фоном */
.section-alt {
  background-image: radial-gradient(rgba(21, 101, 192, .07) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ===== FAQ ACCORDION ===== */
.faq-wrap { max-width: 860px; }
.faq-section { margin-bottom: 48px; }
.faq-section-title { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--blue-lt); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: none; text-align: left; padding: 18px 40px 18px 0; font-size: 1rem; font-weight: 500; color: #3d4468; cursor: pointer; position: relative; line-height: 1.45; }
.faq-q::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); font-weight: 300; transition: transform .25s; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 0 18px; font-size: .95rem; color: #4a5270; line-height: 1.7; }
.faq-a-inner p { margin: 0 0 10px; }
.faq-a-inner p:last-child { margin-bottom: 0; }
.faq-a-inner ul { margin: 8px 0 10px 20px; }
.faq-a-inner li { margin-bottom: 4px; }
