*,
*::before,
*::after { box-sizing: border-box; }

:root {
  /* Base palette (dark by default)
     We keep the header “midnight” feel, but make inner surfaces slightly lighter
     so the page doesn’t look like one solid dark slab. */
  --bg-body: #050f28;
  --bg-elevated: #081c3f;
  --accent: #3b82f6;
  --accent-soft: rgba(59,130,246,0.14);
  --accent-soft-strong: rgba(59,130,246,0.22);
  --text-main: #e5e7eb;
  --text-soft: #aab3c2;
  --border-subtle: rgba(148,163,253,0.22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 60px rgba(2,8,23,0.42);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, -system-ui, sans-serif;

  /* Mixed layout helpers: dark header/hero + light content screens */
  --bg-light: #f7f8ff;
  --bg-light-2: #ffffff;
  --text-dark: #0f172a;
  --text-dark-soft: #475569;
  --border-light: rgba(15,23,42,0.12);
  --shadow-light: 0 18px 60px rgba(15,23,42,0.10);

  /* Rhythm / spacing */
  --section-pad-y: 64px;
  --section-pad-y-sm: 46px;
  --card-pad: 16px;
  --card-pad-lg: 18px;
  --heading-gap: 24px;

  /* Header sizing */
  --header-height: 100px;
  --nav-font: 12.5px;
}

/* Light theme */
body[data-theme="light"] {
  --bg-body: #f3f4ff;
  --bg-elevated: #ffffff;
  --accent: #2563eb;
  --accent-soft: rgba(37,99,235,0.06);
  --accent-soft-strong: rgba(37,99,235,0.1);
  --text-main: #0f172a;
  --text-soft: #6b7280;
  --border-subtle: rgba(148,163,253,0.5);
  --shadow-soft: 0 18px 70px rgba(15,23,42,0.14);
}

/* Base */

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-body);
  /* subtle “depth” so the page doesn’t feel overly flat/dark */
  background-image:
    radial-gradient(1200px circle at 20% -10%, rgba(59,130,246,0.14), transparent 48%),
    radial-gradient(900px circle at 85% 10%, rgba(99,102,241,0.12), transparent 52%),
    radial-gradient(700px circle at 50% 120%, rgba(34,197,94,0.08), transparent 60%);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Light theme keeps a clean paper-like background (no gradients) */
body[data-theme="light"] {
  background-image: none;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  /* A bit more "air" near the edges, especially on mobile */
  width: min(1240px, 100% - clamp(56px, 7vw, 132px));
  margin-inline: auto;
}

/* Animated background */

.bg-animated {
  position: relative;
  overflow: hidden;
}
.bg-animated::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(59,130,246,0.14), transparent 70%),
    radial-gradient(circle at 100% 0%, rgba(79,70,229,0.12), transparent 70%),
    radial-gradient(circle at 0% 100%, rgba(14,165,233,0.06), transparent 70%),
    radial-gradient(circle at 100% 100%, rgba(22,163,74,0.05), transparent 70%);
  opacity: 0.65;
  mix-blend-mode: screen;
  animation: float-bg 26s linear infinite alternate;
  pointer-events: none;
  z-index: -1;
}
body[data-theme="light"] .bg-animated::before {
  mix-blend-mode: normal;
  opacity: 0.32;
}

@keyframes float-bg {
  0% { transform: translate3d(-8px, -10px, 0) scale(1); }
  50% { transform: translate3d(12px, 10px, 0) scale(1.05); }
  100% { transform: translate3d(-12px, 4px, 0) scale(1.02); }
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.16), transparent)
    color-mix(in srgb, var(--bg-body) 88%, #020817 12%);
  border-bottom: 1px solid rgba(75,85,99,0.4);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  /* Keep a compact 100px header while allowing a larger logo */
  min-height: var(--header-height);
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo sizing (supports both legacy templates and new pages) */
.logo img,
.brand-logo {
  /* Requested: make the bird mark more “present” while keeping the header height */
  height: 80px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Some pages use <strong>/<em> instead of .brand-name/.brand-tagline.
   Normalize both variants into the same visual system. */
.brand-text strong,
.brand-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-text em,
.brand-tagline {
  font-size: 11px;
  color: var(--text-soft);
  font-style: normal;
}


/* Header actions: theme + burger */

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sales CTA in header (desktop) */
.header-phone {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(148,163,253,0.5);
  border-radius: 999px;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.25s ease;
}

@media (min-width: 980px) {
  .header-phone { display: inline-flex; }
}

body[data-theme="light"] .header-phone {
  color: #111827;
  border-color: rgba(37,99,235,0.5);
}

.header-phone:hover {
  background: rgba(15,23,42,0.9);
}

body[data-theme="light"] .header-phone:hover {
  background: rgba(255,255,255,0.9);
}

/* Theme toggle */

.theme-toggle {
  background: transparent;
  border: 1px solid rgba(148,163,253,0.5);
  border-radius: 999px;
  color: #e5e7eb;
  width: 30px;
  height: 30px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
body[data-theme="light"] .theme-toggle {
  color: #111827;
  border-color: rgba(37,99,235,0.5);
}
.theme-toggle:hover {
  background: rgba(15,23,42,0.9);
}
body[data-theme="light"] .theme-toggle:hover {
  background: rgba(255,255,255,0.9);
}

/* Nav */

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  font-size: var(--nav-font);
  white-space: nowrap;
}

.nav a {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 500;
  transition: all 0.18s ease;
}
.nav a:hover {
  color: var(--text-main);
  background: rgba(15,23,42,0.98);
  text-decoration: none;
}
body[data-theme="light"] .nav a:hover {
  background: rgba(255,255,255,0.96);
}

.nav .btn-outline {
  border: 1px solid rgba(148,163,253,0.75);
  color: #dbeafe;
}
body[data-theme="light"] .nav .btn-outline {
  color: #2563eb;
}

/* Burger */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* Hero */

.hero {
  padding: 38px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,253,0.45);
  color: #a5b4fc;
  margin-bottom: 8px;
}



.lead {
  font-size: 15px;
  color: var(--text-soft);
  margin: 0 0 12px;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-soft);
}
.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}
.hero-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 6px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-media {
  padding: 14px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top, var(--accent-soft-strong), transparent)
              var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 0%, rgba(59,130,246,0.14), transparent),
    radial-gradient(circle at 80% 100%, rgba(14,165,233,0.12), transparent);
  mix-blend-mode: screen;
  opacity: 0;
  animation: hero-glow 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes hero-glow {
  0% { opacity: 0; transform: translate3d(-4px,0,0); }
  100% { opacity: 0.26; transform: translate3d(4px,2px,0); }
}

.hero-note {
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-soft);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(to right, #2563eb, #4f46e5);
  color: #eff6ff;
  box-shadow: 0 10px 26px rgba(37,99,235,0.5);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37,99,235,0.7);
}

.btn-outline {
  background: transparent;
}

.btn-ghost {
  background: rgba(15,23,42,0.98);
  color: #9ca3af;
  border-radius: 999px;
  border: 1px solid rgba(75,85,99,0.9);
}
.btn-ghost:hover {
  color: #e5e7eb;
}

.btn-full {
  width: 100%;
}

/* Small buttons (for card actions / demo links) */
.btn-sm {
  padding: 7px 12px;
  font-size: 12px;
}

.card-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,253,0.35);
  font-size: 11px;
  color: var(--text-soft);
  background: radial-gradient(circle at top, rgba(59,130,246,0.12), transparent);
}


/* Section header */

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: var(--heading-gap);
}
.section-header h2 {
  margin: 0;
  font-size: 24px;
}
.section-header p {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

/* Spacing */

.services,
.metrics,
.cases,
.news,
.cta,
.content-section,
.contact-grid {
  padding: var(--section-pad-y) 0;
}

@media (max-width: 720px) {
  .services,
  .metrics,
  .cases,
  .news,
  .cta,
  .content-section,
  .contact-grid {
    padding: var(--section-pad-y-sm) 0;
  }

}

/* Compact variant for short callouts (e.g., “Отлично, работаем дальше”). */
.content-section.compact-section {
  padding: 12px 0;
}
@media (max-width: 720px) {
  .content-section.compact-section {
    padding: 10px 0;
  }
}

/* Give mid-page blocks a faint “surface” so the design isn’t uniformly dark. */
.services,
.metrics,
.cases,
.news,
.cta {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0) 68%);
  border-top: 1px solid rgba(148,163,253,0.08);
}

body[data-theme="light"] .services,
body[data-theme="light"] .metrics,
body[data-theme="light"] .cases,
body[data-theme="light"] .news,
body[data-theme="light"] .cta {
  background: linear-gradient(180deg, rgba(37,99,235,0.03), rgba(37,99,235,0) 70%);
  border-top: 1px solid rgba(148,163,253,0.25);
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 14px;
}

.card {
  background: radial-gradient(circle at top, var(--accent-soft), transparent)
              var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  color: var(--text-soft);
  position: relative;
  overflow: hidden;
  transition: all 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(15,23,42,0.8);
  border-color: var(--accent);
  background: radial-gradient(circle at top, var(--accent-soft-strong), transparent)
              var(--bg-elevated);
}
.card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(148,163,253,0.14), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.card:hover::after {
  opacity: 0.16;
}

.card h2,
.card h3 {
  margin: 4px 0 6px;
  font-size: 16px;
  color: var(--text-main);
}

.card-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  color: #93c5fd;
  opacity: 0.95;
}

.card:hover .card-icon {
  color: #bfdbfe;
  opacity: 1;
}

body[data-theme="light"] .card-icon {
  color: #2563eb;
  opacity: 0.9;
}

body[data-theme="light"] .card:hover .card-icon {
  color: #1d4ed8;
  opacity: 1;
}

.link-arrow {
  font-size: 11px;
  color: #93c5fd;
}

/* Metrics */

.metrics-grid {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,3fr);
  gap: 20px;
  align-items: center;
}

.metrics-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.metric {
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.metric-value {
  font-size: 20px;
  font-weight: 600;
  color: #bfdbfe;
}

.metric-label {
  font-size: 11px;
  color: var(--text-soft);
}

/* Page hero & breadcrumbs */

.page-hero {
  padding: 26px 0 16px;
  border-bottom: 1px solid rgba(75,85,99,0.6);
  background: radial-gradient(circle at top, var(--accent-soft), transparent)
              var(--bg-body);
}

.page-hero h1 {
  margin: 4px 0 6px;
  font-size: 24px;
}

.page-hero .lead {
  margin: 0;
}

.breadcrumbs {
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.breadcrumbs a {
  color: #9ca3af;
}
.breadcrumbs a:hover {
  color: #bfdbfe;
}

/* Quick nav */

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0 4px;
  font-size: 11px;
  color: var(--text-soft);
}
.quick-nav span {
  font-weight: 500;
  color: #9ca3af;
}
.quick-nav a {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid rgba(75,85,99,0.9);
  transition: all 0.2s ease;
}
.quick-nav a:hover {
  background: rgba(15,23,42,0.98);
  color: #e5e7eb;
  text-decoration: none;
}
body[data-theme="light"] .quick-nav a:hover {
  background: #2563eb;
  color: #eff6ff;
}

/* Content sections */

.content-section {
  font-size: 13px;
  color: var(--text-soft);
}
.content-section h2 {
  font-size: 19px;
  margin-top: 18px;
  color: var(--text-main);
}

/* Team */

.team-grid .card {
  text-align: left;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,3fr);
  gap: 24px;
  padding-bottom: 34px;
}

#contact-form label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--text-soft);
}
#contact-form input,
#contact-form textarea,
.cta-form input,
.cta-form textarea {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(75,85,99,0.9);
  background: var(--bg-elevated);
  color: var(--text-main);
  font-size: 13px;
}
#contact-form textarea,
.cta-form textarea {
  min-height: 100px;
  resize: vertical;
}

.form-note {
  font-size: 10px;
  color: var(--text-soft);
  margin-top: 4px;
}

.form-status {
  /* We show feedback via toasts. Keep this element for screen readers only. */
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Honeypot field (anti-spam). Keep it “visible” for bots, invisible for humans. */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  right: 18px;
  top: calc(var(--header-height) + 14px);
  bottom: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}


.toast {
  pointer-events: auto;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,253,0.22);
  background: color-mix(in srgb, var(--bg-elevated) 92%, #020817 8%);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-hiding {
  opacity: 0;
  transform: translateY(8px);
}

.toast__message {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.4;
}

.toast__message a {
  color: #dbeafe;
  text-decoration: underline;
}

body[data-theme="light"] .toast__message a {
  color: #2563eb;
}

.toast__close {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.toast-success {
  border-color: rgba(34,197,94,0.55);
}

.toast-error {
  border-color: rgba(239,68,68,0.6);
}

@media (max-width: 520px) {
  .toast-container {
    left: 12px;
    right: 12px;
    top: calc(var(--header-height) + 10px);
    bottom: auto;
  }
  .toast {
    max-width: none;
  }
}



/* Hide theme toggle (single dark theme) */
.theme-toggle { display: none !important; }

/* Sticky CTA (call / email always accessible) */
.sticky-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: flex;
  gap: 10px;
  align-items: center;
}

.sticky-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,253,0.28);
  background: color-mix(in srgb, var(--bg-elevated) 94%, #020817 6%);
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.sticky-cta__btn:hover {
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.85);
  background: radial-gradient(circle at top, var(--accent-soft-strong), transparent) var(--bg-elevated);
  text-decoration: none;
}

.sticky-cta__btn--primary {
  border-color: rgba(59,130,246,0.55);
  background: radial-gradient(circle at top, var(--accent-soft-strong), transparent) var(--bg-elevated);
}

.sticky-cta__icon {
  width: 14px;
  height: 14px;
  opacity: 0.92;
}

@media (max-width: 720px) {
  body { padding-bottom: 76px; }

  .sticky-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .sticky-cta__btn {
    flex: 1;
    justify-content: center;
    padding: 12px 12px;
  }
}

/* Chips (compact proof points inside cards) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 8px;
}

.chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,253,0.25);
  background: rgba(59,130,246,0.08);
  color: var(--text-soft);
}

.chip strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Light “screens” (full-width white sections). We keep the header/hero dark,
   but most content becomes light to improve readability and reduce the “too dark” feel. */
.section--light,
.content-section,
.contact-grid.container {
  background: var(--bg-light);
  color: var(--text-dark);
  border-top: none;
  background-image: none;
  position: relative;
  overflow: hidden;
}

/* IMPORTANT: do NOT use the “box-shadow 100vmax” trick for full-bleed light screens.
   It visually overlaps previous/next blocks (hero/footer can look “gone”).
   Instead, we render the full-bleed light background via the divider pseudo-element
   on .container-based sections (see overrides below). */
.content-section.container,
.contact-grid.container {
  overflow: visible;
}

/* Softer transitions + unified “glass wave” dividers between large screens */
.section--light::before,
.content-section::before,
.contact-grid.container::before {
  content: "";
  position: absolute;
  /* Full viewport width divider, even when the section itself is constrained by .container */
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  top: -1px;
  height: 84px;
  /* Wave divider only (no background gradients) */
  background: url("../img/divider-wave.svg") no-repeat center top / 100vw 84px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

/* Full‑bleed light background for .container sections:
   the pseudo element spans 100vw and also paints the light background.
   This keeps the hero/footer intact and gives consistent full-width “screens”. */
.content-section.container::before,
.contact-grid.container::before {
  top: 0;
  bottom: 0;
  height: auto;
  background:
    url("../img/divider-wave.svg") no-repeat center top / 100vw 84px,
    var(--bg-light);
  opacity: 1;
}

/* IMPORTANT: keep dividers clean and not “busy”.
   We draw a single wave divider at the TOP of each large screen.
   (Bottom waves on every section made the page feel “striped”, especially on short blocks.) */
.section--light::after,
.content-section::after,
.contact-grid.container::after {
  content: none;
}

/* Specific exception: the “Когда к нам приходят” block is a key entry point.
   Make it a light screen with BOTH top and bottom wave dividers. */
.when-us-wave.section--light::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%) scaleY(-1);
  bottom: -1px;
  height: 84px;
  background: url("../img/divider-wave.svg") no-repeat center top / 100vw 84px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}


/* Ensure content stays above decorative layers */
.section--light > .container,
.content-section > .container {
  position: relative;
  z-index: 1;
}

.content-section.container > *,
.contact-grid.container > * {
  position: relative;
  z-index: 1;
}

/* Optional illustrative inserts (1–2 sections on key pages)
   — used as light “breathers”. */
.has-illus-1::after {
  /* Illustrative “breather” without adding extra dividers */
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  background: url("../img/illus-glass-1.svg") no-repeat right -90px top -50px / 560px auto;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.has-illus-2::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  background: url("../img/illus-glass-2.svg") no-repeat left -70px top -60px / 600px auto;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

/* Opt-out helper for small one-off blocks that should not introduce additional dividers */
.no-divider::before,
.no-divider::after {
  content: none !important;
}

.section--light .section-header h2,
.content-section .section-header h2,
.contact-grid.container .section-header h2,
.section--light h2,
.content-section h2,
.contact-grid.container h2,
.section--light h3,
.content-section h3,
.contact-grid.container h3 {
  color: var(--text-dark);
  text-shadow: none;
}

.section--light p,
.content-section p,
.contact-grid.container p,
.section--light .lead,
.content-section .lead,
.contact-grid.container .lead,
.section--light .muted,
.content-section .muted,
.contact-grid.container .muted,
.section--light .text-muted,
.content-section .text-muted,
.contact-grid.container .text-muted {
  color: var(--text-dark-soft);
}

.section--light .card,
.content-section .card,
.contact-grid.container .card {
  background: var(--bg-light-2);
  border-color: var(--border-light);
  box-shadow: var(--shadow-light);
  color: var(--text-dark-soft);
}

.section--light .card:hover,
.content-section .card:hover,
.contact-grid.container .card:hover {
  border-color: rgba(37,99,235,0.65);
  box-shadow: 0 22px 70px rgba(15,23,42,0.14);
  background: var(--bg-light-2);
}

.section--light .card-icon,
.content-section .card-icon,
.contact-grid.container .card-icon {
  color: #2563eb;
}

.section--light .link-arrow,
.content-section .link-arrow,
.contact-grid.container .link-arrow {
  color: #2563eb;
}

.section--light .chip,
.content-section .chip,
.contact-grid.container .chip {
  border-color: rgba(15,23,42,0.12);
  background: rgba(37,99,235,0.06);
  color: var(--text-dark-soft);
}

.section--light .chip strong,
.content-section .chip strong,
.contact-grid.container .chip strong {
  color: var(--text-dark);
}

.section--light .callout,
.content-section .callout,
.contact-grid.container .callout {
  border-color: rgba(15,23,42,0.12);
  background: rgba(37,99,235,0.06);
  box-shadow: var(--shadow-light);
}

.section--light .btn-ghost,
.content-section .btn-ghost,
.contact-grid.container .btn-ghost {
  background: rgba(37,99,235,0.06);
  color: #1d4ed8;
  border-color: rgba(37,99,235,0.35);
}

.section--light .btn-outline,
.content-section .btn-outline,
.contact-grid.container .btn-outline {
  color: #1d4ed8;
  border-color: rgba(37,99,235,0.45);
}

.section--light .card-list li,
.content-section .card-list li,
.contact-grid.container .card-list li {
  color: var(--text-dark-soft);
}

.section--light .badge,
.content-section .badge,
.contact-grid.container .badge {
  color: #334155;
  border-color: rgba(15,23,42,0.12);
  background: rgba(37,99,235,0.06);
}

/* Dark “band” that can sit between light screens (e.g., testimonials)
   — add soft fades so transitions are not harsh. */
.testimonials {
  padding: var(--section-pad-y) 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px circle at 18% -10%, rgba(59,130,246,0.18), transparent 52%),
    radial-gradient(720px circle at 85% 10%, rgba(99,102,241,0.14), transparent 54%),
    var(--bg-body);
}

/* Wave separator for dark accent bands: keep it minimal (top only)
   to avoid “too many lines” when alternating light/dark screens. */
.testimonials::before,
.testimonials::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  height: 96px;
  pointer-events: none;
  z-index: 0;
}

.testimonials::before {
  top: 0;
  background: url("../img/divider-wave.svg") no-repeat center top / 100vw 84px;
  opacity: 0.85;
}

.testimonials::after { content: none; }

.testimonials > .container {
  position: relative;
  z-index: 1;
}


/* Generic dark accent screen (use when you want a single dark “break” between light screens) */
.section--accent {
  padding: var(--section-pad-y) 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px circle at 18% -10%, rgba(59,130,246,0.18), transparent 52%),
    radial-gradient(720px circle at 85% 10%, rgba(99,102,241,0.14), transparent 54%),
    var(--bg-body);
}

.section--accent::before,
.section--accent::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  height: 96px;
  pointer-events: none;
  z-index: 0;
}

.section--accent::before {
  top: 0;
  background: url("../img/divider-wave.svg") no-repeat center top / 100vw 84px;
  opacity: 0.85;
}

.section--accent::after { content: none; }

.section--accent > .container {
  position: relative;
  z-index: 1;
}

/* Tender block */
.tender {
  padding: var(--section-pad-y) 0;
}

.tender-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px) {
  .tender-grid {
    grid-template-columns: 1fr;
  }
}

.tender-card {
  height: 100%;
}

.tender-note {
  font-size: 12px;
  color: var(--text-soft);
}

.section--light .tender-note {
  color: #475569;
}

/* CTA */

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0,3fr) minmax(260px,2fr);
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(75,85,99,0.85);
  background: radial-gradient(circle at top right, var(--accent-soft), transparent)
              var(--bg-body);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}


/* Contact page: make the form column wider (matches the original 2fr / 3fr layout). */
.cta-grid.contact-layout {
  grid-template-columns: minmax(0,2fr) minmax(0,3fr);
}
.cta-grid::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 10% 0%, rgba(59,130,246,0.12), transparent);
  opacity: 0;
  animation: cta-glow 7s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes cta-glow {
  0% { opacity: 0; }
  100% { opacity: 0.18; }
}

/* Footer */

.footer {
  margin-top: 24px;
  padding: 20px 0 14px;
  background: var(--bg-body);
  border-top: 1px solid rgba(75,85,99,0.85);
  font-size: 11px;
  color: var(--text-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 14px;
  margin-bottom: 10px;
}

.footer h3,
.footer h4 {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 60;
}

.modal-dialog {
  position: relative;
  background: var(--bg-elevated);
  color: var(--text-main);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(148,163,253,0.4);
  max-width: 520px;
  width: 100%;
  font-size: 12px;
  box-shadow: var(--shadow-soft);
}

.modal-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid,
  .metrics-grid,
  .contact-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Collapse navigation earlier to keep the top menu in a single row */
@media (max-width: 1040px) {
  .nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(var(--header-height) - 6px);
    flex-direction: column;
    padding: 12px;
    background: var(--bg-body);
    border-radius: 18px;
    border: 1px solid rgba(75,85,99,0.9);
    box-shadow: 0 18px 80px rgba(0,0,0,0.9);
  }
  .nav.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 72px;
    --nav-font: 13px;
  }
  .logo img,
  .brand-logo {
    height: 42px;
  }
  .brand-text strong,
  .brand-name {
    font-size: 13px;
  }
  .brand-text em,
  .brand-tagline {
    font-size: 10px;
  }
}

/* ==== TUNED: Larger metrics for better visual weight ==== */
.metrics {
  padding-top: 34px;
  padding-bottom: 34px;
}
.metrics-grid {
  gap: 26px;
}
.metrics-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.metric {
  padding: 16px 16px 14px;
  border-radius: 20px;
  transform-origin: center;
}
.metric-value {
  font-size: 28px;
}
.metric-label {
  font-size: 13px;
}

/* --- Hero typing effect --- */
.hero-typing {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-soft);
  min-height: 18px;
  font-family: var(--font-main);
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid rgba(148,163,253,0.8);
  box-sizing: content-box;
}

/* --- Background canvas for subtle tech grid --- */
.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

/* Ensure hero is positioned for bg effects */
.hero.bg-animated {
  position: relative;
  z-index: 1;
}

/* Different reveal directions */
.reveal-left {
  transform: translateX(-24px);
}
.reveal-right {
  transform: translateX(24px);
}
.reveal-up {
  transform: translateY(24px);
}
.reveal.in-view {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* === Scroll progress bar === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(to right, #3b82f6, #22c55e);
  z-index: 80;
  transition: width 0.12s ease-out;
}

/* === Layered hero title animation === */
.hero-title-layer {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.6s cubic-bezier(.23,1.2,.32,1);
}
.hero.in-view .hero-title-layer-1 { opacity:1; transform:translateY(0); transition-delay:0.05s;}
.hero.in-view .hero-title-layer-2 { opacity:1; transform:translateY(0); transition-delay:0.12s;}
.hero.in-view .hero-title-layer-3 { opacity:1; transform:translateY(0); transition-delay:0.18s;}
.hero.in-view .hero-title-layer-4 { opacity:1; transform:translateY(0); transition-delay:0.24s;}
.hero.in-view .hero-title-layer-5 { opacity:1; transform:translateY(0); transition-delay:0.30s;}

/* === Typing effect base === */
.hero-typing {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-soft);
  min-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid rgba(148,163,253,0.8);
}

/* === Tech ribbon === */
.tech-ribbon {
  padding: 10px 0 18px;
  overflow: hidden;
}
.tech-ribbon-track {
  display: flex;
  gap: 18px;
  white-space: nowrap;
  animation: tech-marquee 32s linear infinite;
}
.tech-item {
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,253,0.32);
  font-size: 11px;
  color: #9ca3af;
  backdrop-filter: blur(6px);
  background: radial-gradient(circle at top, rgba(59,130,246,0.1), transparent);
}
.tech-item:hover {
  color: #e5e7eb;
  border-color: #3b82f6;
  box-shadow: 0 0 18px rgba(59,130,246,0.35);
}
@keyframes tech-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Process timeline === */
.process {
  padding: 26px 0 24px;
}
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px,1fr));
  gap: 16px;
  margin-top: 10px;
}
.process-step {
  padding: var(--card-pad);
  border-radius: 16px;
  border: 1px solid rgba(75,85,99,0.9);
  background: radial-gradient(circle at top, rgba(59,130,246,0.12), transparent)
              var(--bg-elevated);
  font-size: 11px;
  color: var(--text-soft);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}
.process-step::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #3b82f6;
}
.process-step h3 {
  font-size: 13px;
  margin: 0 0 4px;
  color: var(--text-main);
}
.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.7);
  border-color: #3b82f6;
}

/* Timeline steps should match light screens (readability) */
.section--light .process-step,
.content-section .process-step {
  background: var(--bg-light-2);
  border-color: var(--border-light);
  color: var(--text-dark-soft);
  box-shadow: var(--shadow-light);
}

.section--light .process-step h3,
.content-section .process-step h3 {
  color: var(--text-dark);
}

.section--light .process-step:hover,
.content-section .process-step:hover {
  box-shadow: 0 22px 70px rgba(15,23,42,0.14);
  border-color: rgba(37,99,235,0.65);
}

/* Mobile layout for process timeline */
@media (max-width: 900px) {
  .process-timeline {
    grid-template-columns: 1fr;
  }
}

/* === Updated reveal variants === */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-left {
  transform: translateX(-24px);
}
.reveal-right {
  transform: translateX(24px);
}
.reveal-up {
  transform: translateY(24px);
}
.reveal.in-view {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Ensure hero is treated as reveal container for title layers */
.hero {
  position: relative;
}

/* v13 hero tuning */

.hero-subtitle {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-soft);
}





/* v17 hero refinements: порядок и акцент */
.hero {
  padding-top: 52px;
  padding-bottom: 34px;
}
.hero-main-title {
  margin: 6px 0 8px;
  font-size: clamp(26px, 3.1vw, 34px);
  line-height: 1.3;
  font-weight: 600;
  color: #f9fafb;
  text-shadow: 0 6px 20px rgba(15,23,42,0.9);
}
.hero-typing {
  margin-top: 4px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #9ca3af;
  border-right: 2px solid rgba(148,163,253,0.5);
}

/* === Added for v2025-12: facts, lists, callouts === */

.advantages,
.segments,
.quality,
.ops-guarantees {
  padding: var(--section-pad-y) 0;
}

@media (max-width: 720px) {
  .advantages,
  .segments,
  .quality,
  .ops-guarantees {
    padding: var(--section-pad-y-sm) 0;
  }
}

/* Facts row (homepage proof points) */
.facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 14px;
}
.fact-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  font-size: 12px;
  color: var(--text-soft);
}
.fact-pill strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Lists inside cards and content */
.card-list {
  margin: 8px 0 0;
  padding-left: 18px;
}
.card-list li {
  margin-bottom: 6px;
}

/* Muted helper */
.muted {
  color: var(--text-soft);
}

/* Callout block */
.callout {
  margin-top: 18px;
  padding: var(--card-pad-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(75,85,99,0.9);
  background: radial-gradient(circle at top, var(--accent-soft-strong), transparent)
              var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}
.callout p {
  margin: 0 0 8px;
}

/* Compact callout variant (less vertical height) */
.callout--compact {
  margin-top: 0;
  padding: 18px 20px;
}
@media (max-width: 720px) {
  .callout--compact {
    padding: 16px 16px;
  }
}


/* Callout with side media (e.g., partner logo) */
.callout--media .callout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 18px;
  align-items: center;
}

.callout--media .callout-media {
  display: flex;
  justify-content: flex-end;
}

.partner-logo-card {
  width: 100%;
  max-width: 300px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(75,85,99,0.55);
  background: rgba(15,23,42,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.section--light .partner-logo-card,
.content-section .partner-logo-card,
.contact-grid.container .partner-logo-card {
  background: rgba(255,255,255,0.86);
  border-color: rgba(15,23,42,0.12);
}

.partner-logo-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.10);
  background: #ffffff;
}

.partner-logo-caption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.25;
  color: var(--text-soft);
}

.section--light .partner-logo-caption,
.content-section .partner-logo-caption,
.contact-grid.container .partner-logo-caption {
  color: rgba(15,23,42,0.72);
}

@media (max-width: 860px) {
  .callout--media .callout-grid {
    grid-template-columns: 1fr;
  }
  .callout--media .callout-media {
    justify-content: flex-start;
  }
  .partner-logo-card {
    max-width: 360px;
  }
}

/* Service hero image spacing */
.service-hero-img {
  width: 100%;
  max-width: 560px;
  margin: 8px 0 12px;
}

/* Tech ribbon track should not overflow on small screens too aggressively */
@media (max-width: 720px) {
  .tech-ribbon-track {
    animation-duration: 42s;
  }
}


/* Page hero with media */

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px;
  align-items: center;
}

.page-hero-media {
  justify-self: end;
}

/* Contact page: logo should not stick to the edge */
.page-hero-media.is-logo {
  padding-right: clamp(24px, 6vw, 90px);
}

/* Add inner padding so SVG logos don’t visually “touch” the frame border. */
.page-hero-media.is-logo img {
  padding: 26px;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .page-hero-media.is-logo img {
    padding: 18px;
  }
}

.page-hero-media img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(75,85,99,0.6);
  background: var(--bg-elevated);
}

.page-hero-media img.hero-photo {
  border: 1px solid rgba(15,23,42,0.14);
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  background: #0b1220;
}

@media (max-width: 860px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
  }
  .page-hero-media {
    justify-self: start;
  }
  .page-hero-media img {
    max-width: 420px;
  }

  .page-hero-media.is-logo {
    padding-right: 0;
  }
}

/* Team photos */

.team-grid picture {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(75,85,99,0.6);
  margin-bottom: 10px;
  background: var(--bg-elevated);
}

.section--light .team-grid picture,
.content-section .team-grid picture {
  border-color: var(--border-light);
  background: var(--bg-light-2);
  box-shadow: var(--shadow-light);
}

.team-grid .team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-meta {
  margin: -4px 0 8px;
  font-size: 12px;
  color: var(--text-soft);
}

/* Partners / research block */
.partner-block {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.partner-logo {
  width: 280px;
  max-width: 100%;
}

.partner-logo img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(75,85,99,0.6);
  background: var(--bg-elevated);
}

.partner-bullets {
  flex: 1;
  min-width: 260px;
}

.partner-logos {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.partner-logos img {
  height: 52px;
  width: auto;
}




/* Case/Portfolio cards */
.card-cover{
  width:100%;
  aspect-ratio:16 / 9;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(75,85,99,0.6);
  background:#0b1224;
  margin-bottom:12px;
}

.testimonial{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.testimonial .avatar{
  width:52px;
  height:52px;
  border-radius:16px;
  object-fit:cover;
  border:1px solid rgba(75,85,99,0.6);
  background:#0b1224;
  flex:0 0 auto;
}

.testimonial .avatar.avatar-initials{
  display:grid;
  place-items:center;
  font-weight:700;
  font-size:14px;
  letter-spacing:0.06em;
  color: var(--text-main);
  background:
    radial-gradient(circle at 30% 30%, rgba(59,130,246,0.35), rgba(99,102,241,0.18) 45%, rgba(11,18,36,0.85) 80%),
    linear-gradient(180deg, rgba(59,130,246,0.12), rgba(2,8,23,0.6));
}

.testimonial-title-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.testimonial-meta h3{
  margin:0 0 4px;
  font-size:16px;
}

.testimonial-meta .muted{
  margin:0;
}

.badge.badge-nda{
  border-color: rgba(148,163,253,0.5);
  color: rgba(147,197,253,0.95);
  background: radial-gradient(circle at top, rgba(59,130,246,0.22), transparent);
}


.image-grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:14px;
}
.image-grid img{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(75,85,99,0.6);
  background:#0b1224;
}
.image-grid .span-6{ grid-column: span 6; }
.image-grid .span-12{ grid-column: span 12; }
@media (max-width: 720px){
  .image-grid{ grid-template-columns:repeat(6,1fr); }
  .image-grid .span-6{ grid-column: span 6; }
  .image-grid .span-12{ grid-column: span 6; }
}


/* v7: icon bullets for card-list */
.card-list {
  list-style: none;
  padding-left: 0;
}
.card-list li {
  position: relative;
  padding-left: 18px;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.95;
}

/* ===== Mixed layout: светлый контент + тёмная шапка/hero ===== */

[data-theme="light"] .header {
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.16), transparent)
    color-mix(in srgb, #020817 92%, #0b1220 8%);
  border-bottom: 1px solid rgba(75,85,99,0.55);
}
[data-theme="light"] .header .brand-name,
[data-theme="light"] .header .nav a,
[data-theme="light"] .header .btn,
[data-theme="light"] .header .theme-toggle,
[data-theme="light"] .header .nav-toggle {
  color: #e5e7eb;
}
[data-theme="light"] .header .brand-tagline {
  color: rgba(229,231,235,0.7);
}
[data-theme="light"] .header .btn-outline {
  border-color: rgba(148,163,184,0.45);
}
[data-theme="light"] .header .btn-outline:hover {
  border-color: rgba(229,231,235,0.65);
}

[data-theme="light"] .page-hero {
  background: radial-gradient(circle at top, rgba(37,99,235,0.14), transparent) #020817;
  border-bottom: 1px solid rgba(75,85,99,0.6);
}
[data-theme="light"] .page-hero,
[data-theme="light"] .page-hero .breadcrumbs,
[data-theme="light"] .page-hero .breadcrumbs a,
[data-theme="light"] .page-hero h1,
[data-theme="light"] .page-hero .lead {
  color: #e5e7eb;
}
[data-theme="light"] .page-hero .lead {
  color: rgba(229,231,235,0.78);
}

/* Небольшая подложка под большие контентные секции на светлой теме */
[data-theme="light"] .content-section.container {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: var(--radius-lg);
  padding: 18px;
}
@media (max-width: 720px) {
  [data-theme="light"] .content-section.container { padding: 14px; }
}

/* v7: icon-list for procurement artifacts and bullets */
.icon-list{display:grid;gap:10px;margin-top:10px}
.icon-list-item{display:flex;gap:10px;align-items:flex-start}
.icon-bullet{width:18px;height:18px;border-radius:999px;background:rgba(110,168,255,.18);position:relative;flex:0 0 18px;margin-top:2px}
.icon-bullet:after{content:"";position:absolute;left:6px;top:4px;width:6px;height:10px;border-right:2px solid rgba(110,168,255,.9);border-bottom:2px solid rgba(110,168,255,.9);transform:rotate(35deg)}


/* v7: мягкая панель для блоков "Артефакты" на кейсах */
.card--soft{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px;
}
body[data-theme="light"] .card--soft{
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(16,24,40,0.10);
}
