/* ==========================================================
   LEKKO — shared stylesheet
   Tokens via [data-theme="dark"] / [data-theme="light"]
   ========================================================== */

:root,
[data-theme="dark"] {
  --bg: #0B1220;
  --bg-2: #0F1B2D;
  --bg-3: #142340;
  --surface: #16223B;
  --surface-2: #1B2A47;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --text: #E7EEFB;
  --text-dim: #9AAAC4;
  --text-mute: #6B7B95;
  --brand: #10B981;
  --brand-2: #34D399;
  --brand-deep: #047857;
  --orange: #F97316;
  --red: #EF4444;
  --blue: #3B82F6;
  --tg: #2AABEE;
  --shadow-1: 0 30px 80px -30px rgba(0,0,0,0.6);
  --shadow-card: 0 14px 30px -12px rgba(16,185,129,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
  --grid-line: rgba(255,255,255,0.04);
  --hero-veil: linear-gradient(180deg, rgba(11,18,32,0.55) 0%, rgba(11,18,32,0.80) 60%, rgba(11,18,32,0.98) 100%);
  --hero-veil-side: linear-gradient(90deg, rgba(11,18,32,0.85) 0%, rgba(11,18,32,0.5) 50%, rgba(11,18,32,0.3) 100%);
  --logo-tint: invert(0);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #F6F8FB;
  --bg-2: #FFFFFF;
  --bg-3: #EEF2F8;
  --surface: #FFFFFF;
  --surface-2: #F9FAFC;
  --line: rgba(15,27,45,0.08);
  --line-2: rgba(15,27,45,0.14);
  --text: #0F1B2D;
  --text-dim: #4B5B75;
  --text-mute: #7B8AA3;
  --brand: #059669;
  --brand-2: #10B981;
  --brand-deep: #047857;
  --orange: #EA580C;
  --red: #DC2626;
  --blue: #2563EB;
  --tg: #2AABEE;
  --shadow-1: 0 30px 60px -30px rgba(15,27,45,0.18);
  --shadow-card: 0 14px 30px -12px rgba(5,150,105,0.4), inset 0 1px 0 rgba(255,255,255,0.6);
  --grid-line: rgba(15,27,45,0.05);
  --hero-veil: linear-gradient(180deg, rgba(246,248,251,0.55) 0%, rgba(246,248,251,0.85) 60%, rgba(246,248,251,1) 100%);
  --hero-veil-side: linear-gradient(90deg, rgba(246,248,251,0.92) 0%, rgba(246,248,251,0.6) 50%, rgba(246,248,251,0.35) 100%);
  --logo-tint: invert(0);
  color-scheme: light;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
/* instant theme switch: kill all transitions during the swap */
html.theme-switching, html.theme-switching *,
html.theme-switching *::before, html.theme-switching *::after {
  transition: none !important;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }

/* ============ LAYOUT ============ */
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.25);
  color: var(--brand);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
[data-theme="light"] .eyebrow { background: rgba(5,150,105,0.10); border-color: rgba(5,150,105,0.25); }
.eyebrow::before {
  content: ""; width: 6px; height: 6px; background: var(--brand-2); border-radius: 50%;
  box-shadow: 0 0 12px var(--brand-2);
}
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; margin: 0; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(40px, 5.8vw, 76px); line-height: 1.04; font-weight: 800; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; }
p  { margin: 0; color: var(--text-dim); text-wrap: pretty; }
.section { padding: 120px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.section-head p { font-size: 17px; }

/* ============ HEADER ============ */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 0;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s, padding .3s;
}
header.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  padding: 10px 0;
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav-inner .brand { justify-self: start; }
.nav-inner .nav-right {
  justify-self: end;
  display: flex; align-items: center; gap: 10px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--text); }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-deep));
  display: grid; place-items: center;
  box-shadow: 0 8px 24px -8px rgba(16,185,129,.6);
}
.brand-mark svg { width: 18px; height: 18px; color: #fff; }

/* theme-aware logo */
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; width: auto; }
.logo .logo-l { display: none; }
[data-theme="light"] .logo .logo-d { display: none; }
[data-theme="light"] .logo .logo-l { display: block; }
.brand .logo { gap: 0; }
.product-logo { margin-bottom: 4px; }
.prod-logo-chip {
  display: inline-flex; align-items: center;
  background: #fff; border-radius: 14px;
  padding: 12px 18px; margin-bottom: 18px;
  box-shadow: 0 10px 28px -12px rgba(0,0,0,.45);
  position: relative; z-index: 1;
}
.nav-links { display: flex; gap: 4px; justify-self: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.nav-links a.active { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.nav-spacer { flex: 1; }

.lang-toggle {
  display: flex; padding: 3px;
  background: color-mix(in srgb, var(--text) 5%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.lang-toggle button {
  padding: 5px 11px; border-radius: 999px; color: var(--text-dim);
  transition: background .2s, color .2s;
}
.lang-toggle button.active { background: var(--brand); color: #fff; }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  background: color-mix(in srgb, var(--text) 5%, transparent);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: color .2s, border-color .2s, background .2s, transform .25s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-2); transform: rotate(15deg); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun, .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: block; }

.burger { display: none; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 86vw; max-width: 340px; z-index: 110;
  background: var(--bg-2); border-left: 1px solid var(--line);
  padding: 84px 22px 26px;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -24px 0 50px -12px rgba(0,0,0,.45);
  display: flex; flex-direction: column; gap: 2px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 12px; border-radius: 12px;
  color: var(--text); font-size: 16px; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:not(.btn)::after {
  content: ""; width: 8px; height: 8px; margin-right: 4px;
  border-right: 2px solid var(--text-mute); border-top: 2px solid var(--text-mute);
  transform: rotate(45deg); opacity: .55;
}
.mobile-menu a:not(.btn).active { color: var(--brand); }
.mobile-menu a:not(.btn).active::after { border-color: var(--brand); opacity: 1; }
.mobile-menu .lang-toggle { margin-top: 20px; width: 100%; }
.mobile-menu .lang-toggle button { flex: 1; padding: 8px 0; }
.mobile-menu .btn { margin-top: auto; width: 100%; justify-content: center; padding: 15px; font-size: 15px; }
.mobile-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 105;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-backdrop.open { opacity: 1; pointer-events: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 26px -10px rgba(16,185,129,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover { background: var(--brand-2); transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(16,185,129,0.8); }
.btn-ghost {
  background: color-mix(in srgb, var(--text) 4%, transparent);
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: color-mix(in srgb, var(--text) 7%, transparent); border-color: var(--text-mute); }
.btn-tg { background: var(--tg); color: #fff; box-shadow: 0 10px 26px -10px rgba(42,171,238,0.6); }
.btn-tg:hover { background: #1d99dc; transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* ============ HERO ============ */
.hero {
  position: relative; padding: 180px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("/images/pharmacy.png");
  background-size: cover; background-position: center;
  filter: saturate(1.05);
}
[data-theme="light"] .hero-photo { filter: brightness(1.08) saturate(1.05); }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-veil);
}
.hero-veil-side { position: absolute; inset: 0; z-index: -1; background: var(--hero-veil-side); }
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  opacity: .6;
}
.hero-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 400px at 12% 8%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
    radial-gradient(600px 360px at 90% 30%, color-mix(in srgb, var(--blue) 18%, transparent), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
/* keep grid tracks honoring the fr ratio: long RU words must not blow out a column */
.hero-inner > * { min-width: 0; }
.hero h1 { overflow-wrap: break-word; }
.mini-stat { min-width: 0; }
.mini-stat .l { overflow-wrap: break-word; hyphens: auto; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--brand-2), #22D3EE);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 22px; font-size: 19px; max-width: 560px; color: var(--text-dim); }
[data-theme="dark"] .hero-sub { color: #C7D2E5; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 28px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--text-mute); font-size: 13px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--brand-2); }

/* ====== Floating dashboard card ====== */
.hero-card {
  position: relative; padding: 22px; border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.hero-card-head h4 { font-size: 14px; }
.hero-card-head .dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); display: inline-block; }
.dots i:nth-child(1) { background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; }
.dots i:nth-child(3) { background: #28C840; }

.mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.mini-stat { padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--text) 4%, transparent); border: 1px solid var(--line); }
.mini-stat .v { font-size: 22px; font-weight: 700; color: var(--text); }
.mini-stat .v.up { color: var(--brand-2); }
.mini-stat .l { font-size: 11px; color: var(--text-mute); margin-top: 2px; }

.chart { height: 130px; position: relative; padding: 8px 4px 0; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart-line { fill: none; stroke: url(#chartG); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: url(#chartA); opacity: .85; }

.ticker { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(16,185,129,0.10); border: 1px solid rgba(16,185,129,0.22); }
.ticker .label { font-size: 12px; color: var(--text-dim); }
.ticker .name { font-weight: 600; font-size: 13px; color: var(--text); }
.ticker .price { font-family: "JetBrains Mono", monospace; font-weight: 600; color: var(--brand); font-size: 13px; }

.floating-pill {
  position: absolute; padding: 8px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.4);
  animation: pillFloat 5s ease-in-out infinite;
}
.floating-pill .dot { width: 8px; height: 8px; background: var(--brand); border-radius: 50%; box-shadow: 0 0 12px var(--brand); }
.pill-1 { top: -14px; left: -30px; animation-delay: -1s; }
.pill-2 { bottom: 36px; right: -34px; animation-delay: -3s; }
.pill-3 { top: 38%; left: -56px; animation-delay: -2s; }
@keyframes pillFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============ STATS ============ */
.stats-strip {
  position: relative; z-index: 2;
  margin-top: -20px;
  padding: 28px 36px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  box-shadow: var(--shadow-1);
}
.stat { text-align: center; padding: 8px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .v { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.stat .v .plus { color: var(--brand); }
.stat .l { color: var(--text-mute); font-size: 13px; margin-top: 4px; }

/* ============ PRODUCTS ============ */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod {
  position: relative; padding: 32px 28px;
  border-radius: 22px; color: #fff;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  min-height: 380px;
  display: flex; flex-direction: column;
}
.prod:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); }
.prod-apteka { background: linear-gradient(155deg, #FB923C 0%, #EA580C 70%, #C2410C 100%); }
.prod-mega   { background: linear-gradient(155deg, #F87171 0%, #DC2626 70%, #991B1B 100%); }
.prod-anal   { background: linear-gradient(155deg, #60A5FA 0%, #2563EB 70%, #1D4ED8 100%); }
.prod::after {
  content: ""; position: absolute; right: -50px; top: -50px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: transform .5s;
}
.prod:hover::after { transform: scale(1.3); }
.prod-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(255,255,255,0.18);
  display: grid; place-items: center; position: relative; z-index: 1;
  margin-bottom: 18px;
}
.prod-icon svg { width: 28px; height: 28px; color: #fff; }
.prod-title { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.prod-tag { font-size: 12px; font-weight: 700; opacity: .8; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 2px; }
.prod-desc { margin-top: 12px; color: rgba(255,255,255,0.9); font-size: 14px; }
.prod ul { margin: 18px 0 0; padding: 0; list-style: none; position: relative; z-index: 1; flex: 1; }
.prod li { padding: 8px 0; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid rgba(255,255,255,0.18); color: #fff; }
.prod li:first-child { border-top: 0; }
.prod li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 1px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'><path d='M5 12l4 4 10-10' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: 10px;
}
.prod-cta { margin-top: 22px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: #fff; }
.prod-cta svg { width: 14px; height: 14px; transition: transform .25s; }
.prod:hover .prod-cta svg { transform: translateX(4px); }

/* ============ FEATURES ============ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .25s, transform .25s, background .25s;
  position: relative; overflow: hidden;
}
.feat:hover { border-color: color-mix(in srgb, var(--brand) 35%, transparent); transform: translateY(-3px); }
.feat::before {
  content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 0;
  background: linear-gradient(180deg, var(--brand-2), var(--brand-deep));
  transition: height .35s;
}
.feat:hover::before { height: 100%; }
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 18px;
}
.feat-icon svg { width: 22px; height: 22px; }
.feat h3 { font-size: 17px; margin-bottom: 8px; }
.feat p { font-size: 14px; }

/* ============ HOW IT WORKS ============ */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps::before {
  content: ""; position: absolute; top: 30px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--line-2) 8%, var(--line-2) 92%, transparent);
  z-index: 0;
}
.step { position: relative; z-index: 1; padding: 20px; text-align: center; }
.step-num {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-2), var(--brand-deep));
  color: #fff; font-weight: 800; font-size: 22px;
  display: grid; place-items: center;
  margin: 0 auto 22px;
  box-shadow: 0 14px 30px -12px rgba(16,185,129,0.7), 0 0 0 6px color-mix(in srgb, var(--brand) 10%, transparent);
  position: relative;
}
.step-num::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--brand) 35%, transparent);
  animation: rotate 18s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 14px; max-width: 280px; margin: 0 auto; }

/* ============ INTEGRATIONS ============ */
.integrations { background: var(--bg-2); border-block: 1px solid var(--line); }
.logos-row { margin-top: 36px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logo-card {
  aspect-ratio: 2/1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 700; color: var(--text-dim); font-size: 14px;
  letter-spacing: 0.02em;
  transition: color .2s, border-color .2s, background .2s;
}
.logo-card:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }

/* ============ TELEGRAM CTA ============ */
.tg-card {
  max-width: 920px; margin: 0 auto; padding: 56px 48px;
  border-radius: 28px; text-align: center;
  background:
    radial-gradient(600px 280px at 50% -10%, color-mix(in srgb, var(--tg) 30%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--tg) 30%, transparent);
  position: relative; overflow: hidden;
}
.tg-icon {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 22px;
  background: var(--tg);
  display: grid; place-items: center;
  box-shadow: 0 20px 40px -10px rgba(42,171,238,0.6), inset 0 1px 0 rgba(255,255,255,0.3);
  animation: pulse 2.6s ease-in-out infinite;
  position: relative; z-index: 1;
}
.tg-icon svg { width: 36px; height: 36px; color: #fff; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 20px 40px -10px rgba(42,171,238,0.6), 0 0 0 0 rgba(42,171,238,0.4); }
  50%      { box-shadow: 0 20px 40px -10px rgba(42,171,238,0.6), 0 0 0 18px rgba(42,171,238,0); }
}
.tg-card h2 { position: relative; z-index: 1; max-width: 640px; margin: 0 auto 16px; }
.tg-card p  { position: relative; z-index: 1; max-width: 520px; margin: 0 auto 30px; font-size: 16px; }
.tg-mockup {
  position: relative; z-index: 1;
  max-width: 360px; margin: 36px auto 0;
  padding: 14px; border-radius: 18px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  text-align: left;
  font-size: 13px;
}
.tg-msg { padding: 9px 12px; border-radius: 12px; margin-bottom: 8px; max-width: 80%; color: var(--text); }
.tg-msg.bot { background: var(--surface-2); border-bottom-left-radius: 4px; }
.tg-msg.user { background: var(--tg); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.tg-msg b { display: block; font-weight: 700; margin-bottom: 2px; }

/* ============ TEAM ============ */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.team-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-1); }
.team-avatar {
  aspect-ratio: 1/1;
  display: grid; place-items: center;
  font-size: 64px; font-weight: 800; color: #fff;
  letter-spacing: -0.02em;
  position: relative;
}
.team-avatar::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,0.18), transparent 50%);
}
.team-body { padding: 18px 18px 22px; }
.team-body .name { font-weight: 700; font-size: 16px; color: var(--text); }
.team-body .role { font-size: 13px; color: var(--text-mute); margin-top: 2px; }
.team-bio { font-size: 13px; color: var(--text-dim); margin-top: 10px; line-height: 1.5; }
.team-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.team-tag {
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  font-weight: 600;
}
.team-social { display: flex; gap: 8px; margin-top: 14px; }
.team-social a {
  width: 28px; height: 28px; border-radius: 8px;
  background: color-mix(in srgb, var(--text) 5%, transparent);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: color .2s, border-color .2s;
}
.team-social a:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.team-social svg { width: 13px; height: 13px; }

/* ============ TESTIMONIALS ============ */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex; flex-direction: column; gap: 18px;
}
.quote-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand);
  display: grid; place-items: center;
  font-family: Georgia, serif; font-size: 30px; line-height: 0; padding-bottom: 8px; font-weight: 700;
}
.tcard blockquote { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); flex: 1; }
.tperson { display: flex; gap: 12px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.tav {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: #fff;
}
.tperson .name { font-weight: 600; font-size: 14px; color: var(--text); }
.tperson .role { font-size: 12px; color: var(--text-mute); }

/* ============ FAQ ============ */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left;
  padding: 22px 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 17px; font-weight: 600; color: var(--text);
  transition: color .2s;
}
.faq-q:hover { color: var(--brand); }
.faq-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: color-mix(in srgb, var(--text) 5%, transparent); border: 1px solid var(--line);
  display: grid; place-items: center; flex: 0 0 32px;
  transition: transform .3s, background .25s, border-color .25s;
}
.faq-icon svg { width: 14px; height: 14px; color: var(--text-dim); transition: color .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: color-mix(in srgb, var(--brand) 15%, transparent); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.faq-item.open .faq-icon svg { color: var(--brand); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
  color: var(--text-dim); font-size: 15px;
}
.faq-a-inner { padding: 0 8px 22px; }

/* ============ FORM ============ */
.form-section {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.form-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.form-side h2 { margin-bottom: 18px; }
.form-side ul { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 16px; }
.form-side li { display: flex; gap: 14px; align-items: flex-start; }
.form-side li svg { width: 22px; height: 22px; color: var(--brand); flex: 0 0 22px; margin-top: 1px; }
.form-side li b { display: block; font-weight: 600; color: var(--text); margin-bottom: 2px; font-size: 15px; }
.form-side li span { color: var(--text-dim); font-size: 14px; }
.form-side .contact-info { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-dim); }
.form-side .contact-info a { color: var(--text); }

.form-card {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  box-shadow: var(--shadow-1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; position: relative; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-dim); margin-bottom: 6px; }
.field label .req { color: var(--red); margin-left: 2px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; font-size: 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--text);
  border-radius: 10px;
  font-family: inherit;
  transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: var(--text-mute); }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239AAAC4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.field option { background: var(--surface); color: var(--text); }

.phone-field { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; }
.phone-prefix {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 12px 10px; background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.phone-prefix .flag {
  width: 18px; height: 12px;
  background: linear-gradient(180deg, #1EB53A 0 33.3%, #0099B5 33.3% 41.6%, #fff 41.6% 58.3%, #CE1126 58.3% 66.6%, #1EB53A 66.6%);
  border-radius: 1px;
}
/* 404 page */
.notfound {
  position: relative; overflow: hidden;
  min-height: 72vh; display: grid; place-items: center;
  text-align: center; padding: 140px 0 90px;
}
.notfound-inner { position: relative; z-index: 1; max-width: 580px; }
.nf-code {
  font-size: clamp(96px, 19vw, 190px); font-weight: 800; line-height: .9;
  letter-spacing: -0.04em; margin-bottom: 6px;
  background: linear-gradient(120deg, var(--brand-2), #22D3EE);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound h1 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; }
.notfound p { color: var(--text-dim); font-size: 17px; margin-bottom: 30px; }

/* keep anchored sections clear of the sticky header */
section[id], [id="contact"], [id="products"], [id="features"], [id="how"] { scroll-margin-top: 96px; }

/* privacy modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: color-mix(in srgb, #000 55%, transparent);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal-backdrop.open { display: flex; animation: ddIn .16s ease; }
.modal {
  position: relative; width: 100%; max-width: 560px;
  max-height: 86vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 20px; padding: 32px;
  box-shadow: var(--shadow-1);
}
.modal h3 { font-size: 22px; margin-bottom: 16px; padding-right: 32px; }
.modal-body { display: flex; flex-direction: column; gap: 12px; }
.modal-body p { font-size: 14px; line-height: 1.6; color: var(--text-dim); }
.foot-contacts { display: flex; flex-direction: column; gap: 14px; }
.foot-contacts .fc-item { display: flex; flex-direction: column; gap: 2px; }
.foot-contacts .fc-item span { font-size: 12px; color: var(--text-mute); }
.foot-contacts .fc-item a { font-size: 15px; color: var(--text); transition: color .2s; }
.foot-contacts .fc-item a:hover { color: var(--brand); }
.modal .btn { margin-top: 22px; }
.modal-x {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-dim); background: color-mix(in srgb, var(--text) 6%, transparent);
  transition: background .2s, color .2s;
}
.modal-x:hover { background: color-mix(in srgb, var(--text) 12%, transparent); color: var(--text); }

/* custom dropdown (country / phone code / product) */
.dd { position: relative; }
.dd-trigger {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; font-size: 14px; text-align: left;
  background: var(--bg); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 10px; font-family: inherit;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.dd-trigger:hover:not(:disabled) { border-color: color-mix(in srgb, var(--brand) 45%, var(--line-2)); }
.dd-trigger:disabled { opacity: .5; cursor: not-allowed; }
.dd-trigger[aria-expanded="true"] {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.dd-value { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-chevron { color: var(--text-mute); flex: none; transition: transform .2s; }
.dd-trigger[aria-expanded="true"] .dd-chevron { transform: rotate(180deg); }
.dd-flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.10); }
.dd-flag-globe { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 16px; font-size: 14px; box-shadow: none; }
.dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 12px; box-shadow: var(--shadow-1);
  max-height: 280px; overflow: auto;
  animation: ddIn .14s ease;
}
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dd-option { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text); }
.dd-option:hover { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.dd-option.sel { background: color-mix(in srgb, var(--brand) 16%, transparent); }
.dd-opt-label { flex: 1 1 auto; }
.dd-dial-code { color: var(--text-mute); font-variant-numeric: tabular-nums; }
/* compact dial trigger inside the phone field */
.dd-dial .dd-trigger { width: auto; gap: 7px; padding-right: 10px; }
.dd-dial .dd-menu { right: auto; left: 0; min-width: 252px; }

.form-side .contact-info a { transition: color .2s; text-underline-offset: 3px; }
.form-side .contact-info a:hover { color: var(--brand); text-decoration: underline; }

.field-help { font-size: 12px; color: var(--text-mute); margin-top: 6px; }

/* красная валидация — невалидное поле (рамка + сообщение под полем) */
.field.invalid input,
.field.invalid select,
.field.invalid .dd-trigger { border-color: var(--red); }
.field.invalid input:focus,
.field.invalid select:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 18%, transparent); }
.field-err { font-size: 12px; color: var(--red); font-weight: 500; margin-top: 6px; display: none; }
.field.invalid .field-err { display: block; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; }
.check-row input { margin-top: 3px; accent-color: var(--brand); }
.check-row label { font-size: 13px; color: var(--text-dim); }
.check-row a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.submit-btn {
  width: 100%; padding: 14px; font-size: 15px; font-weight: 700;
  background: var(--brand); color: #fff;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: var(--shadow-card);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.submit-btn:hover { background: var(--brand-2); transform: translateY(-1px); }
.submit-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.form-error {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--red) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 35%, transparent);
  color: var(--red); font-size: 14px; text-align: center;
}

.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.show { display: block; animation: fadeUp .5s; }
.success-check {
  width: 72px; height: 72px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand);
  display: grid; place-items: center; margin: 0 auto 18px;
  animation: popIn .5s cubic-bezier(.2,1.4,.4,1);
}
.success-check svg { width: 36px; height: 36px; }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ============ SUB-PAGE HERO (about / team / products) ============ */
.subhero {
  position: relative; padding: 180px 0 80px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.subhero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 320px at 12% 8%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%),
    radial-gradient(500px 300px at 90% 30%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 60%);
}
.subhero-inner { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 760px; }
.subhero h1 { font-size: clamp(36px, 4.6vw, 60px); }
.subhero p  { font-size: 18px; max-width: 620px; }
.crumbs { font-size: 13px; color: var(--text-mute); display: flex; gap: 8px; align-items: center; }
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 10px; height: 10px; opacity: .6; }

/* ============ VALUES (about) ============ */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.value-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; color: var(--brand);
  font-weight: 600;
}
.value-card h3 { font-size: 20px; }
.value-card p { font-size: 14px; }

/* ============ TIMELINE (about) ============ */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 40px; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 20%, transparent));
}
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item::before {
  content: ""; position: absolute; left: -33px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}
.tl-year { font-family: "JetBrains Mono", monospace; color: var(--brand); font-weight: 600; font-size: 13px; }
.tl-item h3 { font-size: 18px; margin: 4px 0 6px; }
.tl-item p { font-size: 14px; }

/* ============ PRODUCT DETAIL ============ */
.product-hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
  padding: 60px 0;
}
/* MegaPrice etc.: visual on the left only on desktop; mobile stays text-first */
@media (min-width: 1025px) {
  .product-hero.is-reverse { grid-template-columns: 0.9fr 1.1fr; }
  .product-hero.is-reverse .product-visual { order: -1; }
}
.product-hero h2 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 16px; }
.product-hero p { font-size: 17px; max-width: 540px; }
.product-features { margin-top: 28px; display: grid; gap: 12px; }
.pf-item { display: flex; gap: 12px; align-items: flex-start; }
.pf-item svg { width: 22px; height: 22px; color: var(--brand); flex: 0 0 22px; margin-top: 1px; }
.pf-item b { display: block; font-weight: 600; color: var(--text); font-size: 15px; margin-bottom: 2px; }
.pf-item span { font-size: 14px; color: var(--text-dim); }
.product-visual {
  border-radius: 22px;
  aspect-ratio: 4/3;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.product-visual.va { background: linear-gradient(155deg, #FB923C, #C2410C); }
.product-visual.vm { background: linear-gradient(155deg, #F87171, #991B1B); }
.product-visual.vn { background: linear-gradient(155deg, #60A5FA, #1D4ED8); }
.product-visual svg.bg-icon { width: 60%; height: 60%; color: rgba(255,255,255,0.25); }
.product-visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 50%);
}
.product-divider { height: 1px; background: var(--line); margin: 40px 0; }

/* ============ PRICING ============ */
.pricing-block { margin-bottom: 60px; }
.pricing-block:last-of-type { margin-bottom: 0; }
.pricing-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px 24px; flex-wrap: wrap; margin-bottom: 22px;
  padding-left: 16px; position: relative;
}
.pricing-head::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px;
  border-radius: 4px; background: var(--pp, var(--brand));
}
.pricing-head .ph-main { display: flex; align-items: baseline; gap: 8px 14px; flex-wrap: wrap; min-width: 0; }
.pricing-head .ph-name { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.pricing-head .ph-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pp, var(--brand)); align-self: center; }
.pricing-head .ph-desc { font-size: 15px; color: var(--text-dim); flex-basis: 100%; }
.pricing-audience {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
  color: var(--pp, var(--brand));
  background: color-mix(in srgb, var(--pp, var(--brand)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--pp, var(--brand)) 28%, transparent);
}

.pricing-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.ptier {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 26px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
}
.ptier:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
.ptier.is-popular {
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  box-shadow: 0 24px 60px -28px rgba(16,185,129,0.5);
}
.ptier-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  box-shadow: 0 10px 24px -10px rgba(16,185,129,0.7);
}
.ptier-tag svg { width: 12px; height: 12px; }
.ptier-tag.is-free {
  background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--line-2); box-shadow: none;
}
.ptier-name { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }
.ptier-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.ptier-price .amount { font-size: clamp(28px, 3vw, 36px); font-weight: 800; letter-spacing: -0.02em; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; }
.ptier.is-popular .ptier-price .amount { color: var(--brand); }
.ptier-price .per { font-size: 13px; color: var(--text-mute); font-weight: 500; }
.ptier-note { font-size: 12px; color: var(--text-mute); margin-top: 6px; }
.ptier-features { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ptier.is-popular .ptier-features { border-top-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.ptier-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); }
.ptier-features .pmark {
  flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px;
  border-radius: 50%; display: grid; place-items: center;
}
.ptier-features .pmark svg { width: 11px; height: 11px; }
.ptier-features .pmark.yes { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.ptier-features .pmark.add { background: color-mix(in srgb, var(--blue) 16%, transparent); color: var(--blue); }
.ptier-features li.is-add { color: var(--text-dim); }

/* extra strip — additional locations / research */
.pricing-extra {
  margin-top: 16px; display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap;
  padding: 16px 22px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.pricing-extra .pe-label { font-weight: 700; font-size: 14px; color: var(--text); }
.pricing-extra .pe-desc { font-size: 14px; color: var(--text-dim); flex: 1 1 220px; }
.pe-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pe-chip {
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand);
  white-space: nowrap;
}
.pe-value { font-weight: 700; font-size: 15px; color: var(--brand); white-space: nowrap; }

/* prepayment banner */
.pricing-banner {
  margin-top: 44px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px 24px; flex-wrap: wrap; padding: 22px 28px; border-radius: 18px;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.pricing-banner .pb-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--text); }
.pricing-banner .pb-title svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.pb-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.pb-chip {
  font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
}
.pricing-note { margin-top: 22px; font-size: 13px; color: var(--text-mute); line-height: 1.6; }

/* closing CTA */
.pricing-cta {
  margin-top: 32px; text-align: center;
  padding: 52px 40px; border-radius: 24px;
  background:
    radial-gradient(620px 280px at 50% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
}
.pricing-cta h2 { margin-bottom: 12px; }
.pricing-cta p { max-width: 560px; margin: 0 auto 26px; font-size: 16px; }
.pricing-cta .pc-actions { display: flex; gap: 14px 22px; justify-content: center; flex-wrap: wrap; align-items: center; }
.pricing-cta .pc-phone { font-weight: 800; font-size: 19px; color: var(--text); }

/* ============ FOOTER ============ */
footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 44px;
}
.foot-grid > div { min-width: 0; }
.foot-grid h5 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); margin: 0 0 16px; font-weight: 600; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-grid li a { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.foot-grid li a:hover { color: var(--text); }
.foot-brand p { font-size: 14px; margin-top: 14px; max-width: 320px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.soc {
  width: 36px; height: 36px; border-radius: 10px;
  background: color-mix(in srgb, var(--text) 5%, transparent);
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--text-dim);
  transition: color .2s, border-color .2s, background .2s;
}
.soc:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 30%, transparent); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.soc svg { width: 16px; height: 16px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-mute); flex-wrap: wrap; gap: 12px; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ============ SCROLL TO TOP ============ */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 80;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -8px rgba(16,185,129,0.6);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s;
}
.scroll-top.show { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top:hover { background: var(--brand-2); }
.scroll-top svg { width: 18px; height: 18px; }

/* ============ MOBILE ============ */
@media (max-width: 1024px) {
  .hero-inner, .product-hero { grid-template-columns: 1fr; gap: 40px; }
  .product-visual { aspect-ratio: 16 / 9; }
  .pill-1, .pill-2, .pill-3 { display: none; }
  .stats-strip { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 4px; }
  .products, .features-grid, .steps, .testimonials, .values { grid-template-columns: 1fr 1fr; }
  .pricing-tiers { grid-template-columns: 1fr; gap: 28px; }
  .team { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .logos-row { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-inner .nav-right { gap: 8px; }
  .burger {
    display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 10px;
    background: color-mix(in srgb, var(--text) 5%, transparent);
    border: 1px solid var(--line);
    color: var(--text-dim);
  }
  .burger svg { width: 18px; height: 18px; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .hero { padding: 130px 0 60px; }
  .subhero { padding: 130px 0 60px; }
  .stats-strip { grid-template-columns: 1fr 1fr; padding: 22px; }
  .stat { border-right: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .stat:nth-child(-n+2) { border-top: 0; padding-top: 8px; }
  .products, .features-grid, .steps, .testimonials, .values, .form-row, .team { grid-template-columns: 1fr; }
  .tg-card { padding: 36px 20px; }
  .form-card { padding: 24px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .logos-row { grid-template-columns: repeat(2, 1fr); }
  .foot-bottom { flex-direction: column; text-align: center; }
  .nav-inner { gap: 12px; }
  .nav-right > .btn-primary { display: none; }
  .lang-toggle { display: none; }
  .mobile-menu .lang-toggle { display: flex; }
}

/* ============ PAGE TRANSITIONS ============ */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: ptOut .22s ease both; }
::view-transition-new(root) { animation: ptIn .34s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ptOut { to { opacity: 0; } }
@keyframes ptIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* fallback (Firefox/Safari): opacity-only so fixed/sticky header isn't broken */
.pt-in  { animation: ptFade .38s ease both; }
.pt-out { opacity: 0 !important; transition: opacity .17s ease; }
@keyframes ptFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root), .pt-in { animation: none; }
  .pt-out { transition: none; }
}
