:root {
  --bg: #050709;
  --bg-2: #0a0e14;
  --panel: #0f141b;
  --panel-2: #131a23;
  --panel-line: rgba(255, 255, 255, 0.08);
  --text: #f1f3f6;
  --text-soft: #c2c8d2;
  --text-muted: #8993a3;
  --text-faint: #5b6675;
  --accent: #2196f3;
  --accent-2: #5fb3ff;
  --accent-soft: rgba(33, 150, 243, 0.18);
  --success: #2dd4bf;
  --warn: #f59e0b;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1240px;
  --serif: 'Playfair Display', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(33, 150, 243, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(33, 150, 243, 0.04), transparent 60%),
    var(--bg);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.55;
}

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

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

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  line-height: 1.2;
}

.accent {
  color: var(--accent);
}

.muted {
  color: var(--text-muted);
}

.muted-text {
  color: var(--text-muted);
  font-weight: 400;
}

.link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(33, 150, 243, 0.4);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.link:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

/* ───────────── HEADER ───────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(5, 7, 9, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--panel-line);
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav {
  display: flex;
  gap: clamp(14px, 2.6vw, 32px);
}

.nav a {
  color: var(--text-soft);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav a:hover {
  color: var(--text);
}

.header-cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s;
}

.header-cta:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }
}

/* ───────────── SECTIONS ───────────── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 56px);
  position: relative;
}

.section-divider {
  border-top: 1px solid var(--panel-line);
}

.section-head {
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head.no-pad {
  margin-bottom: clamp(28px, 3.6vw, 44px);
}

.section-head h2 {
  position: relative;
  padding-bottom: 22px;
}

.section-head h2::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--panel-line);
}

.section-sub {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 640px;
}

/* ───────────── HERO ───────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 95vh, 880px);
  background: linear-gradient(180deg, #050709 0%, #0a1018 60%, #050709 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 56px) clamp(60px, 8vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  min-height: inherit;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-copy h1 {
  margin-bottom: 36px;
}

.hero-lead {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  margin-bottom: 16px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-trust {
  list-style: none;
  margin: 32px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--panel-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
  max-width: 560px;
}

.hero-trust li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}

.trust-text strong {
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
}

.trust-text small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.trust-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.18);
}

@media (max-width: 560px) {
  .hero-trust {
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
}

.btn.ghost {
  border: 1px solid var(--panel-line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.hero-earth {
  position: relative;
  justify-self: end;
  align-self: end;
  width: min(42vw, 580px);
  aspect-ratio: 1 / 1;
  z-index: 1;
  pointer-events: none;
  margin: 0 max(-18px, -1.5vw) clamp(14px, 3vw, 44px) 0;
}

.hero-earth img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  filter: brightness(0.82) contrast(1.02) saturate(0.92);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-earth {
    width: min(82vw, 460px);
    margin: 24px auto 0;
  }
}

/* ───────────── PROBLEM ───────────── */
.reason-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  max-width: 980px;
}

.reason {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: flex-start;
}

.reason-icon {
  width: 48px;
  height: 48px;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reason-icon svg {
  width: 36px;
  height: 36px;
}

.reason p {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--text-soft);
  line-height: 1.55;
}

/* ───────────── FLOW ───────────── */
.flow-section .flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 4vw, 56px);
}

.flow-aside {
  background: linear-gradient(180deg, #0d1219 0%, #0a0f15 100%);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 28px 26px;
  align-self: stretch;
}

.flow-aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.flow-aside li {
  position: relative;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.flow-aside li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
}

.flow-diagram {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(150px, auto) auto minmax(140px, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.flow-col-title {
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.flow-stack {
  display: grid;
  gap: 10px;
}

.phone-card,
.subscriber-card {
  background: linear-gradient(180deg, #1a2330 0%, #131a23 100%);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

.phone-card .phone-glyph,
.subscriber-card .user-glyph {
  width: 18px;
  height: 18px;
  color: var(--text);
  flex-shrink: 0;
}

.phone-card strong,
.subscriber-card strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.phone-card small,
.subscriber-card small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.subscriber-card small.muted {
  color: var(--text-muted);
}

.subscriber-card small.ok {
  color: var(--accent-2);
  font-weight: 500;
}

.phone-card.faded,
.subscriber-card.ghost {
  opacity: 0.55;
}

.phone-card.ghost {
  opacity: 0.3;
}

.phone-card.op-blue {
  background: linear-gradient(180deg, #1c3a5f 0%, #143049 100%);
  border-color: rgba(33, 150, 243, 0.4);
}

.phone-card.op-blue small {
  color: var(--accent-2);
}

.phone-card.op-green {
  background: linear-gradient(180deg, #1d4a3a 0%, #143b2e 100%);
  border-color: rgba(45, 212, 191, 0.4);
}

.phone-card.op-green small {
  color: #5eead4;
}

.phone-card.op-purple {
  background: linear-gradient(180deg, #3c2a52 0%, #2b1f3c 100%);
  border-color: rgba(168, 85, 247, 0.4);
}

.phone-card.op-purple small {
  color: #c4a4ee;
}

.phone-card.op-brown {
  background: linear-gradient(180deg, #4a3422 0%, #3a2a1c 100%);
  border-color: rgba(245, 158, 11, 0.45);
}

.phone-card.op-brown small {
  color: #fbbf77;
}

.subscriber-card.success {
  border-color: rgba(33, 150, 243, 0.2);
  background: linear-gradient(180deg, #1a2330 0%, #131a23 100%);
}

.flow-arrow {
  position: relative;
  display: flex;
  align-items: center;
  width: 60px;
  height: 24px;
}

.arrow-line {
  flex: 1;
  height: 1px;
  background: var(--text-faint);
}

.arrow-head {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--text-faint);
  margin-left: -1px;
}

.flow-router {
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.flow-router.manual {
  background: linear-gradient(180deg, #1a2330 0%, #131a23 100%);
  border: 1px solid var(--panel-line);
  color: var(--text);
}

.flow-router.smart {
  position: relative;
  background: linear-gradient(180deg, #2aa3ff 0%, #1473d2 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 28px 22px;
  min-height: 132px;
  box-shadow:
    0 0 0 6px rgba(33, 150, 243, 0.08),
    0 0 60px rgba(33, 150, 243, 0.45),
    0 18px 40px rgba(33, 150, 243, 0.35);
  animation: smart-pulse 2.6s ease-in-out infinite;
}

.flow-router.smart::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.4), transparent 40%, rgba(255, 255, 255, 0.2));
  opacity: 0.55;
  z-index: -1;
  filter: blur(8px);
}

@keyframes smart-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 6px rgba(33, 150, 243, 0.08),
      0 0 60px rgba(33, 150, 243, 0.45),
      0 18px 40px rgba(33, 150, 243, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(33, 150, 243, 0.12),
      0 0 90px rgba(33, 150, 243, 0.7),
      0 18px 40px rgba(33, 150, 243, 0.45);
  }
}

.smart-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.smart-chip svg {
  width: 22px;
  height: 22px;
}

/* boosted arrows on the "success" diagram */
.solution .flow-arrow .arrow-line {
  background: linear-gradient(90deg, rgba(33, 150, 243, 0.4), var(--accent));
  height: 2px;
}

.solution .flow-arrow .arrow-head {
  border-left-color: var(--accent);
  border-width: 6px 0 6px 10px;
}

.flow-result {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--panel-line);
  font-size: 1.02rem;
  color: var(--text-soft);
}

.flow-result .result-label {
  color: var(--accent);
  font-weight: 600;
  margin-right: 6px;
}

.flow-result strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 1100px) {
  .flow-section .flow-layout {
    grid-template-columns: 1fr;
  }
  .flow-aside {
    order: 2;
  }
}

@media (max-width: 720px) {
  .flow-diagram {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .flow-arrow {
    width: 100%;
    height: 28px;
    transform: rotate(90deg);
    margin: -4px auto;
  }
  .flow-router {
    min-height: auto;
    padding: 18px 14px;
  }
}

/* ───────────── VALUE ───────────── */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
}

.value-block {
  display: grid;
  gap: 24px;
}

.value-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.value-icon {
  width: 40px;
  height: 40px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-icon svg {
  width: 32px;
  height: 32px;
}

.value-head h3 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  color: var(--text);
  line-height: 1.2;
}

.value-item h4 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.value-item p {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

.value-item .quiet {
  font-style: italic;
  color: var(--text-muted);
}

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

/* ───────────── CASES ───────────── */
.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 32px;
}

.case-tab {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.case-tab:hover {
  color: var(--text);
}

.case-tab.active {
  background: var(--accent);
  color: #fff;
}

.case-stage {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.case-side {
  display: grid;
  gap: 22px;
}

.case-label {
  display: block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.case-block p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.5;
}

.case-result {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--accent-soft);
}

.case-result strong {
  display: block;
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 700;
}

.case-bars {
  background: linear-gradient(180deg, #0d1219 0%, #0a0f15 100%);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 28px clamp(20px, 3vw, 36px);
}

.bars-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 24px;
}

.bars-icon svg {
  width: 22px;
  height: 22px;
}

.bar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
}

.bar-label {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.bar-track {
  position: relative;
  height: 30px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #1a8fff 0%, #2196f3 100%);
  border-radius: 6px;
  transition: width 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bar-value {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  pointer-events: none;
}

@media (max-width: 900px) {
  .case-stage {
    grid-template-columns: 1fr;
  }
  .bar-row {
    grid-template-columns: 120px 1fr;
  }
}

/* ───────────── TEST STEPS ───────────── */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  top: 22px;
  height: 1px;
  background: var(--panel-line);
  z-index: 0;
}

.step {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.step-bullet {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--panel-line);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step.done .step-bullet {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.step.done .step-bullet svg {
  width: 22px;
  height: 22px;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.step .accent {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 980px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .steps::before {
    display: none;
  }
}

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

/* ───────────── PRICING ───────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.5vw, 32px);
}

.price-card {
  background: linear-gradient(180deg, #0d1219 0%, #0a0f15 100%);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.6vw, 36px);
  text-align: center;
  display: grid;
  gap: 12px;
  align-content: start;
}

.price-card.featured {
  background: linear-gradient(180deg, #112236 0%, #0a1422 100%);
  border-color: rgba(33, 150, 243, 0.4);
  box-shadow: 0 12px 40px rgba(33, 150, 243, 0.12);
}

.price-card h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.price-card .price {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  margin: 4px 0 10px;
  color: var(--text);
}

.price-card .price-desc {
  color: var(--text-soft);
  font-size: 1.02rem;
}

.price-card .price-foot {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 6px;
}

.pricing-note {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--panel-line);
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 680px;
}

@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ───────────── TRUST ───────────── */
/* trust section — reproduces slide 12 zone proportions 1:1 */
.trust-section {
  max-width: none;
  padding-left: clamp(20px, 4vw, 72px);
  padding-right: clamp(20px, 4vw, 72px);
}

/* 5-column grid: cards | gap | letters | gap | logos — fr values = exact slide % */
.trust-grid {
  display: grid;
  grid-template-columns: 27.6fr 1.4fr 23.4fr 6.6fr 41.1fr;
  align-items: start;
  max-width: 1680px;
  margin: 0 auto;
}

.cred-cards {
  grid-column: 1;
  display: grid;
  gap: 5%; /* matches slide: ~106px gap on 2062px-wide cards */
}

.cred-card-img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.letters {
  grid-column: 3;
  position: relative;
  width: 100%;
  padding-bottom: 128%; /* reserve height for the fanned stack */
}

.letter-doc {
  position: absolute;
  width: 70%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.letter-back {
  left: 6%;
  top: 0;
  transform: rotate(-7deg);
  z-index: 1;
}

.letter-mid {
  left: 21%;
  top: 9%;
  transform: rotate(-1deg);
  z-index: 2;
}

.letter-front {
  left: 35%;
  top: 20%;
  transform: rotate(5deg);
  z-index: 3;
}

.client-logos {
  grid-column: 5;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 5%; /* slide: 160px gap on 1458px cards */
  row-gap: 3%; /* slide: 99px gap between rows */
}

.logo-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}

.logo-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

/* tablet: drop the letters column, keep cards + logos */
@media (max-width: 1100px) {
  .trust-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(20px, 3vw, 40px);
  }
  .cred-cards {
    grid-column: 1;
    gap: 16px;
  }
  .letters {
    display: none;
  }
  .client-logos {
    grid-column: 2;
    column-gap: 14px;
    row-gap: 14px;
  }
}

@media (max-width: 620px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .cred-cards,
  .client-logos {
    grid-column: 1;
  }
  .client-logos {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── deprecated stylized markup, kept only for fallback rendering ── */

/* ── credentials cards (Skolkovo / Минцифры) ── */
.cred-cards {
  display: grid;
  gap: 14px;
}

.cred-card {
  position: relative;
  background: linear-gradient(180deg, #0d1219 0%, #0a0f15 100%);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: center;
}

.cred-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text);
}

.sk-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1rem;
}

.cred-logo small {
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.1;
}

.cred-logo.cred-ru small {
  font-size: 0.62rem;
}

.ru-emblem {
  display: inline-flex;
  width: 36px;
  height: 36px;
}

.ru-emblem svg {
  width: 100%;
  height: 100%;
}

.cred-card p {
  font-size: 0.78rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin: 0;
}

.cred-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cred-check svg {
  width: 14px;
  height: 14px;
}

/* ── stacked thank-you letters ── */
.letters {
  position: relative;
  height: 280px;
  perspective: 600px;
}

.letter {
  position: absolute;
  width: 170px;
  height: 240px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.05) inset,
    0 18px 36px rgba(0, 0, 0, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.3);
  padding: 16px 14px 12px;
  color: #1a1f2b;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.letter-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 8px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1;
}

.brand-avito {
  color: #1e1e1e;
  position: relative;
  gap: 5px;
}

.brand-avito em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 800;
}

.brand-avito .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.brand-avito .d1 { background: #97CF26; }
.brand-avito .d2 { background: #2D9CDB; }
.brand-avito .d3 { background: #FF6F00; }
.brand-avito .d4 { background: #9B51E0; }

.brand-skillbox {
  color: #1e1e1e;
}

.brand-skillbox .sb-mark {
  display: inline-block;
  color: #FA653D;
  transform: rotate(45deg);
  font-size: 0.65rem;
  margin-right: 2px;
}

.brand-skillbox em {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 800;
}

.brand-brusnika em {
  font-style: normal;
  color: #D11C2F;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.letter-meta {
  font-size: 0.42rem;
  color: rgba(0, 0, 0, 0.55);
  text-align: right;
  line-height: 1.2;
  font-weight: 500;
}

.letter-title {
  font-family: var(--serif);
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a1f2b;
  text-align: center;
  margin: 6px 0 10px;
  letter-spacing: 0.02em;
}

.letter-body {
  display: grid;
  gap: 5px;
  flex: 1;
}

.letter-body span {
  display: block;
  height: 4px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 1px;
}

.letter-body span:nth-child(2) { width: 92%; }
.letter-body span:nth-child(3) { width: 78%; }
.letter-body span:nth-child(4) { width: 95%; }
.letter-body span:nth-child(5) { width: 85%; }
.letter-body span:nth-child(6) { width: 90%; }
.letter-body span:nth-child(7) { width: 70%; }
.letter-body span:nth-child(8) { width: 50%; }

.letter-foot {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: right;
}

.sign-line {
  display: block;
  width: 60px;
  margin-left: auto;
  height: 14px;
  background:
    radial-gradient(ellipse 26px 8px at 30% 50%, transparent 30%, rgba(0, 0, 0, 0.55) 35%, transparent 50%),
    linear-gradient(120deg, transparent 30%, rgba(0, 0, 0, 0.4) 50%, transparent 70%);
  opacity: 0.55;
}

.sign-text {
  font-size: 0.4rem;
  color: rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.letter-1 {
  top: 6px;
  left: 8px;
  transform: rotate(-7deg);
  z-index: 1;
}

.letter-2 {
  top: 14px;
  left: 40px;
  transform: rotate(-1deg);
  z-index: 2;
}

.letter-3 {
  top: 22px;
  left: 70px;
  transform: rotate(5deg);
  z-index: 3;
}

/* ── client logos grid ── */
.client-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.logo-card {
  background: #fafafa;
  color: #111;
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}

.logo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1;
}

.lg em {
  font-style: normal;
  font-size: 1.02rem;
  letter-spacing: 0.005em;
}

.lg svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* ЦИАН */
.lg-cian em {
  color: #1f8cd8;
  font-size: 1.1rem;
  text-transform: lowercase;
}

.cian-pin {
  width: 14px;
  height: 18px;
  background: #1f8cd8;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
  margin-right: 2px;
  transform: rotate(-45deg);
}

.cian-pin::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}

/* Ростелеком */
.lg-rostelecom em {
  color: #1f1f1f;
  font-size: 0.98rem;
}

.rt-mark svg {
  width: 22px;
  height: 22px;
}

/* Skyeng */
.lg-skyeng em {
  color: #1492FF;
  font-size: 1.05rem;
}

/* Магнит */
.lg-magnit em {
  color: #ED1C24;
  font-size: 1.02rem;
}

/* Skillfactory */
.lg-skillfactory em {
  color: #1a1a1a;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.lg-skillfactory strong {
  color: #1a1a1a;
}

/* Avito */
.lg-avito em {
  color: #1a1a1a;
  font-size: 1.05rem;
  font-weight: 800;
}

.av-mark {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 16px;
  height: 16px;
}

.av-mark .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.av-mark .d1 { background: #97CF26; }
.av-mark .d2 { background: #2D9CDB; }
.av-mark .d3 { background: #FF6F00; }
.av-mark .d4 { background: #9B51E0; }

/* CarMoney */
.lg-carmoney {
  gap: 6px;
}

.lg-carmoney em {
  color: #1a1a1a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: left;
  line-height: 1.05;
}

.cm-mark {
  display: inline-block;
  width: 28px;
  height: 22px;
  background: #FFC72C;
  clip-path: polygon(15% 0, 85% 0, 100% 50%, 85% 100%, 15% 100%, 0 50%);
  position: relative;
}

.cm-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: #0a1018;
  clip-path: polygon(15% 0, 85% 0, 100% 50%, 85% 100%, 15% 100%, 0 50%);
}

/* CarPrice */
.lg-carprice em {
  color: #00B956;
  font-size: 1rem;
}

.cp-mark svg {
  width: 26px;
  height: 18px;
}

/* Купер */
.lg-kuper em {
  color: #0a1018;
  font-size: 1rem;
}

.kp-mark svg {
  width: 16px;
  height: 18px;
}

/* МегаФон */
.lg-megafon em {
  color: #00B956;
  font-size: 0.92rem;
}

.mf-mark svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1000px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  .letters {
    display: none;
  }
}

@media (max-width: 620px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .client-logos {
    grid-template-columns: 1fr 1fr;
  }
}

/* ───────────── FOOTER ───────────── */
/* ───────────── CTA ───────────── */
.cta-section {
  padding-top: clamp(40px, 5vw, 70px);
  padding-bottom: clamp(40px, 5vw, 70px);
}

.cta-card {
  background:
    radial-gradient(900px 400px at 80% -30%, rgba(33, 150, 243, 0.35), transparent 60%),
    linear-gradient(180deg, #112236 0%, #0a1422 100%);
  border: 1px solid rgba(33, 150, 243, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 56px);
  box-shadow: 0 20px 60px rgba(33, 150, 243, 0.12);
}

.cta-copy {
  max-width: 620px;
}

.cta-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta-copy p {
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.cta-btn {
  min-width: 220px;
}

@media (max-width: 720px) {
  .cta-actions {
    width: 100%;
  }
  .cta-btn {
    width: 100%;
  }
}

/* ───────────── FOOTER ───────────── */
.site-footer {
  border-top: 1px solid var(--panel-line);
  background: #070a0f;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) clamp(20px, 5vw, 56px) clamp(28px, 3.5vw, 40px);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.05fr;
  gap: clamp(24px, 2.6vw, 44px);
  align-items: start;
}

.footer-brand {
  max-width: 320px;
  padding-right: 8px;
}

.footer-brand .footer-btn {
  margin-top: 30px;
  display: inline-flex;
  padding: 13px 30px;
  font-size: 0.92rem;
}

.footer-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.footer-tagline {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-reqs {
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-col-title {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--accent-2);
}

.footer-col a.is-missing {
  color: #e8645c;
}

.footer-col a.is-missing:hover {
  color: #f0817a;
}

/* legal / requisites block */
.footer-legal {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--panel-line);
}

.footer-entity {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.footer-entity a {
  color: var(--text-soft);
  transition: color 0.15s;
}

.footer-entity a:hover {
  color: var(--accent-2);
}

.footer-note {
  margin-top: 10px;
  color: var(--text-faint);
  font-size: 0.76rem;
  line-height: 1.5;
}

.footer-licensor {
  margin-top: 10px;
  max-width: 960px;
  color: var(--text-faint);
  font-size: 0.78rem;
  line-height: 1.55;
}

.footer-bottom {
  border-top: 1px solid var(--panel-line);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px clamp(20px, 5vw, 56px);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-faint);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* ───────────── REVEAL ON SCROLL ───────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ───────────── MODAL FORM ───────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 0;
  cursor: pointer;
  padding: 0;
}

.modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(180deg, #0f141b 0%, #0a0f15 100%);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: modal-pop 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--panel-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-body h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin-bottom: 10px;
}

.modal-lead {
  color: var(--text-soft);
  font-size: 0.96rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.lead-form {
  display: grid;
  gap: 12px;
}

.modal [hidden] {
  display: none !important;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-control {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--text-faint);
  pointer-events: none;
  transition: color 0.15s;
}

.field input {
  width: 100%;
  border: 1px solid var(--panel-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 12px;
  padding: 15px 16px 15px 46px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.field input::placeholder {
  color: var(--text-faint);
}

.field input:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(33, 150, 243, 0.05);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.16);
}

.field-control:focus-within .field-icon {
  color: var(--accent);
}

/* validation error state */
.field-error {
  display: none;
  color: #e8645c;
  font-size: 0.78rem;
  padding-left: 4px;
}

.field.invalid .field-error {
  display: block;
}

.field.invalid input {
  border-color: rgba(232, 100, 92, 0.7);
}

.field.invalid input:focus {
  border-color: #e8645c;
  box-shadow: 0 0 0 3px rgba(232, 100, 92, 0.18);
}

.field.invalid .field-icon {
  color: #e8645c;
}

.form-submit {
  margin-top: 8px;
  width: 100%;
  padding: 16px 22px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
}

.form-submit svg {
  width: 18px;
  height: 18px;
  transition: transform 0.18s;
}

.form-submit:hover svg {
  transform: translateX(4px);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-policy {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

.form-thanks {
  text-align: center;
  padding: 18px 4px;
}

.form-thanks h4 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.form-thanks p {
  color: var(--text-soft);
}

body.modal-open {
  overflow: hidden;
}

/* ───────────── METRICS TABLE ───────────── */
.metrics-wrap {
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0d1219 0%, #0a0f15 100%);
  overflow: hidden;
}

.metrics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.metrics-table th,
.metrics-table td {
  text-align: left;
  padding: 18px clamp(16px, 2.4vw, 28px);
  border-bottom: 1px solid var(--panel-line);
}

.metrics-table thead th {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.02);
}

.metrics-table tbody tr {
  transition: background 0.15s;
}

.metrics-table tbody tr:hover {
  background: rgba(33, 150, 243, 0.04);
}

.metrics-table tbody tr.row-highlight {
  background: rgba(33, 150, 243, 0.06);
}

.metrics-table tbody tr:last-child th,
.metrics-table tbody tr:last-child td {
  border-bottom: 0;
}

.metrics-table tbody th {
  font-weight: 700;
  color: var(--text);
  font-family: inherit;
}

.metrics-table tbody td {
  color: var(--text);
  font-weight: 600;
  font-size: 1.08rem;
}

.metrics-table td.diff {
  color: var(--accent);
  font-weight: 700;
}

.growth {
  display: inline-block;
  background: rgba(33, 150, 243, 0.16);
  color: var(--accent-2);
  border: 1px solid rgba(33, 150, 243, 0.3);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 8px;
  min-width: 70px;
  text-align: center;
}

.growth.growth-l {
  background: rgba(33, 150, 243, 0.25);
  border-color: rgba(33, 150, 243, 0.5);
  color: #fff;
}

.growth.growth-xl {
  background: linear-gradient(135deg, #2aa3ff 0%, #1473d2 100%);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.35);
  font-size: 1rem;
}

@media (max-width: 760px) {
  .metrics-table thead {
    display: none;
  }
  .metrics-table,
  .metrics-table tbody,
  .metrics-table tr,
  .metrics-table th,
  .metrics-table td {
    display: block;
  }
  .metrics-table tr {
    padding: 14px 14px;
    border-bottom: 1px solid var(--panel-line);
  }
  .metrics-table tr:last-child {
    border-bottom: 0;
  }
  .metrics-table th,
  .metrics-table td {
    padding: 4px 0;
    border: 0;
    font-size: 0.95rem;
  }
  .metrics-table tbody th {
    font-size: 1.05rem;
    margin-bottom: 4px;
  }
  .metrics-table td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 8px;
  }
  .metrics-table td.diff {
    display: inline-block;
    margin-right: 12px;
  }
}

/* ───────────── FORM CHECKBOX ───────────── */
.field-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin: 6px 2px 2px;
}

/* visually hide native input but keep it focusable */
.field-check input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.checkbox-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
}

.checkbox-box svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s, transform 0.15s;
}

.field-check:hover .checkbox-box {
  border-color: rgba(33, 150, 243, 0.5);
}

.field-check input[type='checkbox']:checked + .checkbox-box {
  background: var(--accent);
  border-color: var(--accent);
}

.field-check input[type='checkbox']:checked + .checkbox-box svg {
  opacity: 1;
  transform: scale(1);
}

.field-check input[type='checkbox']:focus-visible + .checkbox-box {
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
}

.checkbox-text {
  flex: 1;
  min-width: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.field-check .link {
  border-bottom: 0;
  padding-bottom: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ───────────── COOKIE BANNER ───────────── */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: clamp(12px, 2vw, 22px);
  display: flex;
  justify-content: center;
  animation: cookie-rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cookie[hidden] {
  display: none;
}

@keyframes cookie-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-card {
  max-width: 1000px;
  width: 100%;
  background: linear-gradient(180deg, #11161e 0%, #0c1117 100%);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2vw, 26px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  flex-wrap: wrap;
}

.cookie-main {
  flex: 1;
  min-width: 260px;
}

.cookie-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
}

.cookie-text {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.cookie-settings {
  margin-top: 18px;
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--panel-line);
  padding-top: 8px;
}

.cookie-settings[hidden] {
  display: none;
}

.cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--panel-line);
  cursor: pointer;
}

.cookie-row:last-child {
  border-bottom: 0;
}

.cookie-row > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cookie-row strong {
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
}

.cookie-row small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.cookie-check {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.cookie-toggle {
  flex-shrink: 0;
  width: 44px;
  height: 25px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  transition: background 0.18s;
}

.cookie-toggle .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s;
}

.cookie-check:checked + .cookie-toggle {
  background: var(--accent);
}

.cookie-check:checked + .cookie-toggle .knob {
  transform: translateX(19px);
}

.cookie-toggle.is-locked {
  background: rgba(33, 150, 243, 0.5);
  cursor: not-allowed;
}

.cookie-toggle.is-locked .knob {
  transform: translateX(19px);
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  min-width: 180px;
}

.cookie-actions .btn {
  padding: 12px 22px;
  font-size: 0.92rem;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .cookie-card {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions {
    flex-direction: row;
    min-width: 0;
  }
  .cookie-actions .btn {
    flex: 1;
  }
}

/* атрибут hidden должен перебивать inline-flex у кнопок (cookie/форма) */
.cookie-actions .btn[hidden],
.btn[hidden] {
  display: none !important;
}

/* form validation — checkbox & submit error states */
.field-check {
  flex-wrap: wrap;
}
.field-check .field-error {
  flex-basis: 100%;
  padding-left: 34px;
  margin-top: 2px;
}
.field-check.invalid .checkbox-box {
  border-color: rgba(232, 100, 92, 0.85);
}
.form-submit.error,
.form-submit.error:hover {
  background: #e8645c !important;
  transform: none;
}
.form-submit.error:hover svg {
  transform: none;
}

/* ───────────── КЛИЕНТЫ: благодарственные письма + логотипы ───────────── */
.clients-grid {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  max-width: 1240px;
  margin: 0 auto;
}

/* fanned thank-you letters (3 portrait document scans) */
.clients-letters {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 116%; /* reserve height for the absolutely-positioned fan */
}

.clients-doc {
  position: absolute;
  top: 0;
  width: 64%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.doc-back  { left: 0;   transform: rotate(-7deg); z-index: 1; }
.doc-mid   { left: 18%; top: 7%;  transform: rotate(-1deg); z-index: 2; }
.doc-front { left: 36%; top: 16%; transform: rotate(5deg);  z-index: 3; }

/* client logos — each PNG is a pre-rendered white card (1458×457) */
.clients-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
}

.clients-logo {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}

.clients-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
  .clients-grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 7vw, 48px);
  }
  .clients-letters {
    max-width: 420px;
    padding-bottom: 96%;
  }
}

@media (max-width: 480px) {
  .clients-logos {
    gap: 10px;
  }
}
