/* ===== FONTS ===== */
@font-face {
  font-family: 'HeliosExt';
  src: url('fonts/heliosext.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HeliosExt';
  src: url('fonts/heliosext_italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'HeliosExt';
  src: url('fonts/heliosext_bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HeliosExt';
  src: url('fonts/heliosext_bold_italic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #0a0f1e; color: #e2e8f0; line-height: 1.6; font-size: 16px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* HeliosExt for headings and UI labels */
h1, h2, h3, h4, h5, h6,
.section-title, .section-label,
.hero__title, .hero__stat-val,
.nav a, .btn,
.logo__name, .footer__col h5,
.svc-card h3, .why-item h4,
.channel__val, .cdrop-val,
.hx-phases { font-family: 'HeliosExt', sans-serif; }

/* ===== TOKENS ===== */
:root {
  --bg:       #0a0f1e;
  --bg-2:     #0e1628;
  --bg-card:  #131d35;
  --border:   rgba(255,255,255,.08);
  --blue:     #38bdf8;
  --blue-d:   #0284c7;
  --indigo:   #818cf8;
  --cyan:     #22d3ee;
  --teal:     #2dd4bf;
  --green:    #4ade80;
  --orange:   #fb923c;
  --purple:   #c084fc;
  --text:     #e2e8f0;
  --muted:    #94a3b8;
  --radius:   16px;
  --radius-sm:10px;
}

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 10px; font-weight: 600; cursor: pointer;
  border: none; font-size: 15px; padding: 10px 22px;
  transition: all .2s; font-family: inherit;
}
.btn--primary { background: linear-gradient(135deg, #0284c7, #0369a1); color: #fff; box-shadow: 0 4px 20px rgba(2,132,199,.35); }
.btn--primary:hover { background: linear-gradient(135deg, #0369a1, #075985); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(2,132,199,.45); }
.btn--wa { background: #25d366; color: #fff; box-shadow: 0 4px 16px rgba(37,211,102,.3); }
.btn--wa:hover { background: #1db954; transform: translateY(-1px); }
.btn--tg { background: #229ED9; color: #fff; box-shadow: 0 4px 16px rgba(34,158,217,.3); }
.btn--tg:hover { background: #1a8dbf; transform: translateY(-1px); }
/* ===== CONTACT POPUP ===== */
.contact-trigger { position: relative; }
.contact-drop {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #111827; border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 8px; min-width: 252px; z-index: 500;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  display: none; flex-direction: column; gap: 2px;
  animation: dropIn .15s ease;
}
.contact-drop.open { display: flex; }
@keyframes dropIn { from{opacity:0;transform:translateY(-6px);} to{opacity:1;transform:translateY(0);} }
.cdrop-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 10px; color: #e2e8f0;
  transition: background .15s;
}
.cdrop-item:hover { background: rgba(255,255,255,.07); }
.cdrop-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: #7dd3fc;
}
.cdrop-label { font-size: 10px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.cdrop-val { font-size: 14px; font-weight: 600; color: #fff; margin-top: 2px; }
.pop-chevron { transition: transform .2s; vertical-align: middle; margin-left: 2px; }
.pop-chevron.rotated { transform: rotate(180deg); }

.btn--hero-primary { background: linear-gradient(135deg, #38bdf8, #0284c7); color: #fff; padding: 14px 32px; font-size: 16px; box-shadow: 0 6px 28px rgba(56,189,248,.35); }
.btn--hero-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(56,189,248,.45); }
.btn--hero-secondary { background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.18); padding: 14px 32px; font-size: 16px; backdrop-filter: blur(8px); }
.btn--hero-secondary:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn--lg { padding: 14px 32px; font-size: 16px; }
.btn--full { width: 100%; justify-content: center; }
.btn--sm { padding: 8px 16px; font-size: 14px; }

/* ===== SECTION HEADS ===== */
.section-label {
  display: inline-block; font-size: 12px; font-weight: 400; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
  padding: 4px 12px; background: rgba(56,189,248,.1); border-radius: 100px;
}
.section-label--light { color: #7dd3fc; background: rgba(56,189,248,.15); }
.section-head { text-align: center; margin-bottom: 60px; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.15; margin-bottom: 14px; color: #fff; }
.section-title--light { color: #fff; }
.section-sub { font-size: 17px; color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10,15,30,.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 70px; }

/* LOGO */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark { width: 46px; height: 23px; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; }
.logo__name { font-size: 17px; font-weight: 400; color: #fff; line-height: 1.1; font-family: 'HeliosExt', sans-serif; letter-spacing: .02em; }
.logo__tagline { display: none; }
.logo__mark-img {
  height: 96px; width: auto; display: block; flex-shrink: 0;
  mix-blend-mode: screen; filter: brightness(1.15);
}
.logo__mark-img--footer { height: 56px; opacity: .8; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover { color: #fff; }
.header__cta { display: flex; gap: 10px; align-items: center; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; padding: 16px 24px 24px;
  border-top: 1px solid var(--border); background: rgba(10,15,30,.97);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 0; font-size: 16px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { color: #fff; }
.mobile-menu__btns { display: flex; gap: 10px; margin-top: 20px; }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden; min-height: 680px;
  display: flex; align-items: center;
  background: var(--bg);
}
.hero__grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(56,189,248,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none;
}
.hero__glow--1 { width: 560px; height: 560px; background: rgba(2,132,199,.18); top: -100px; right: -100px; }
.hero__glow--2 { width: 400px; height: 400px; background: rgba(129,140,248,.12); bottom: -80px; left: 10%; }

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding: 80px 24px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.25);
  color: var(--blue); border-radius: 100px; padding: 6px 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 24px;
}
.badge-dot { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.hero__title { font-size: clamp(34px, 5vw, 56px); font-weight: 900; color: #fff; line-height: 1.12; margin-bottom: 20px; }
.hero__title--accent { background: linear-gradient(90deg, #38bdf8, #818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero__desc { font-size: 18px; color: var(--muted); margin-bottom: 36px; max-width: 500px; line-height: 1.7; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero__stats { display: flex; align-items: center; gap: 0; }
.hero__stat { text-align: center; padding: 0 24px; }
.hero__stat:first-child { padding-left: 0; }
.hero__stat-val { display: block; font-size: 28px; font-weight: 900; color: #fff; line-height: 1; }
.hero__stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; display: block; }
.hero__stat-divider { width: 1px; height: 40px; background: var(--border); }

/* HERO VISUAL */
.hero__visual { display: flex; justify-content: center; align-items: center; }
.hero__card-3d {
  position: relative; width: 380px; height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.mol-bg {
  width: 300px; height: 300px; position: relative;
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mol-svg { width: 100%; height: 100%; }

.hero__feature-pills {
  position: absolute; inset: 0;
  pointer-events: none;
}
.pill {
  position: absolute; background: rgba(14,22,40,.85); border: 1px solid var(--border);
  backdrop-filter: blur(12px); border-radius: 100px;
  padding: 8px 16px; font-size: 13px; font-weight: 600; color: #fff;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.pill--1 { top: 20px; left: 0; border-color: rgba(56,189,248,.3); }
.pill--2 { top: 100px; right: -10px; border-color: rgba(129,140,248,.3); }
.pill--3 { bottom: 100px; right: 0; border-color: rgba(34,211,238,.3); }
.pill--4 { bottom: 20px; left: 10px; border-color: rgba(251,146,60,.3); }

/* ===== SERVICES ===== */
.services { padding: 100px 0; background: var(--bg-2); }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.svc-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px;
  cursor: pointer; transition: all .25s; position: relative; overflow: hidden;
}
.svc-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(135deg, rgba(56,189,248,.05), transparent);
  transition: opacity .3s;
}
.svc-card:hover { border-color: rgba(56,189,248,.35); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.svc-card:hover::before { opacity: 1; }

.svc-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.svc-card__tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--blue); background: rgba(56,189,248,.12); padding: 4px 10px; border-radius: 100px;
}

.svc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-icon--lg { width: 64px; height: 64px; margin-bottom: 20px; }
.svc-icon--lg svg { width: 32px; height: 32px; }
.svc-icon--blue { background: rgba(56,189,248,.12); color: var(--blue); }
.svc-icon--cyan { background: rgba(34,211,238,.12); color: var(--cyan); }
.svc-icon--indigo { background: rgba(129,140,248,.12); color: var(--indigo); }
.svc-icon--teal { background: rgba(45,212,191,.12); color: var(--teal); }

.svc-card h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.svc-card p { font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 24px; }
.svc-more { background: none; border: none; color: var(--blue); font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; font-family: inherit; transition: gap .2s; }
.svc-more:hover { text-decoration: underline; }

/* ===== PRODUCTS ===== */
.products { padding: 100px 0; background: var(--bg); }
.products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.prod-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px;
  display: flex; flex-direction: column; gap: 14px; position: relative;
  transition: all .25s;
}
.prod-card:hover { border-color: rgba(255,255,255,.15); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.4); }
.prod-card--cta {
  background: linear-gradient(135deg, rgba(2,132,199,.2), rgba(56,189,248,.1));
  border-color: rgba(56,189,248,.25); justify-content: center; align-items: center; text-align: center;
}
.prod-card--cta h4 { font-size: 18px; color: #fff; }
.prod-card--cta p { font-size: 14px; color: var(--muted); }
.prod-cta__icon { font-size: 36px; margin-bottom: 8px; }

.prod-card__badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 100px;
}
.prod-card__badge--hot { background: rgba(251,146,60,.15); color: var(--orange); border: 1px solid rgba(251,146,60,.25); }
.prod-card__badge--food { background: rgba(74,222,128,.12); color: var(--green); border: 1px solid rgba(74,222,128,.25); }

.prod-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.prod-icon svg { width: 24px; height: 24px; }
.prod-icon--orange { background: rgba(251,146,60,.12); color: var(--orange); }
.prod-icon--blue { background: rgba(56,189,248,.12); color: var(--blue); }
.prod-icon--green { background: rgba(74,222,128,.12); color: var(--green); }
.prod-icon--purple { background: rgba(192,132,252,.12); color: var(--purple); }
.prod-icon--cyan { background: rgba(34,211,238,.12); color: var(--cyan); }
.prod-icon--teal { background: rgba(45,212,191,.12); color: var(--teal); }
.prod-icon--indigo { background: rgba(129,140,248,.12); color: var(--indigo); }

.prod-info h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.prod-info p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.prod-price { font-size: 18px; font-weight: 800; color: var(--blue); }
.prod-btn {
  display: block; text-align: center; padding: 9px 0;
  background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.2);
  border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--blue);
  transition: all .2s; margin-top: auto;
}
.prod-btn:hover { background: rgba(56,189,248,.18); border-color: rgba(56,189,248,.4); }

/* ===== WHY ===== */
.why { padding: 100px 0; position: relative; overflow: hidden; background: var(--bg-2); }
.why__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 20% 50%, rgba(56,189,248,.07) 0%, transparent 70%);
}
.why__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.why__left { position: sticky; top: 100px; }
.why__desc { font-size: 16px; color: var(--muted); line-height: 1.75; margin: 20px 0 32px; }
.why__right { display: flex; flex-direction: column; gap: 0; }

.why-item {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 24px 0; border-bottom: 1px solid var(--border);
  transition: all .2s;
}
.why-item:last-child { border-bottom: none; }
.why-item:hover { padding-left: 6px; }
.why-item__icon { flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(56,189,248,.08); border-radius: 12px; border: 1px solid rgba(56,189,248,.18); color: var(--blue); }
.why-item__icon svg { width: 20px; height: 20px; }
.why-item h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.why-item p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ===== HEAT EXCHANGER ANIMATION ===== */
.hx-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 100%; max-width: 460px;
}
.hx-svg { width: 100%; height: auto; overflow: visible; }
.hx-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; align-self: flex-start;
}
.hx-label--out { align-self: flex-end; }
.hx-label__dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.hx-label__dot--dirty { background: #b45309; box-shadow: 0 0 6px #b45309; }
.hx-label__dot--clean { background: #22d3ee; box-shadow: 0 0 6px #22d3ee; animation: cleanPulse 2s infinite; }
@keyframes cleanPulse { 0%,100%{box-shadow:0 0 6px #22d3ee;} 50%{box-shadow:0 0 14px #22d3ee;} }

.hx-phases {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 6px 14px; background: rgba(255,255,255,.04); border-radius: 100px;
  border: 1px solid var(--border);
}
.hx-phase { opacity: .5; transition: opacity .3s; }
.hx-phase--dirty  { color: #d97706; }
.hx-phase--reagent{ color: #38bdf8; }
.hx-phase--clean  { color: #4ade80; }
.hx-phase-arrow   { color: var(--muted); font-size: 10px; opacity: .4; }

/* Active phase cycling animation */
.hx-phase--dirty  { animation: phaseD 9s infinite; }
.hx-phase--reagent{ animation: phaseR 9s infinite; }
.hx-phase--clean  { animation: phaseC 9s infinite; }
@keyframes phaseD  { 0%,30%{opacity:1;} 35%,100%{opacity:.35;} }
@keyframes phaseR  { 0%,30%{opacity:.35;} 35%,65%{opacity:1;} 70%,100%{opacity:.35;} }
@keyframes phaseC  { 0%,65%{opacity:.35;} 70%,95%{opacity:1;} 100%{opacity:.35;} }

/* Scale deposits dissolve */
.scale { animation: scaleDissolve 9s infinite ease-in-out; }
@keyframes scaleDissolve {
  0%,28%  { opacity: .7; fill: #92400e; }
  45%     { opacity: .4; fill: #0c4a6e; }
  65%,90% { opacity: 0; fill: #0369a1; }
  95%,100%{ opacity: .7; fill: #92400e; }
}

/* Channel fill colour cycle */
.ch-fill {
  animation: chColour 9s infinite ease-in-out;
}
@keyframes chColour {
  0%,30%  { fill: #d97706; }
  50%,85% { fill: #38bdf8; }
  95%,100%{ fill: #d97706; }
}

/* Dirty particles — flow right */
.pt-r { animation: flowR 2.2s linear infinite; }
.pt-l { animation: flowL 2.2s linear infinite; }
.d1  { animation-delay: .44s; }
.d2  { animation-delay: .88s; }
.d3  { animation-delay: 1.32s; }
.d4  { animation-delay: 1.76s; }

@keyframes flowR {
  0%   { transform: translateX(0);   opacity: 0; }
  5%   { opacity: .9; }
  95%  { opacity: .9; }
  100% { transform: translateX(380px); opacity: 0; }
}
@keyframes flowL {
  0%   { transform: translateX(0);    opacity: 0; }
  5%   { opacity: .9; }
  95%  { opacity: .9; }
  100% { transform: translateX(-380px); opacity: 0; }
}

/* Dirty particles: amber, then fade as clean phase starts */
.pt-d { fill: #d97706; animation-name: flowR, ptDirtyFade; animation-duration: 2.2s, 9s; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite, infinite; }
.pt-l.pt-d { animation-name: flowL, ptDirtyFade; }
@keyframes ptDirtyFade { 0%,30%{opacity:1;} 50%,90%{opacity:0;} 95%,100%{opacity:1;} }

/* Clean particles: cyan, appear when clean phase starts */
.pt-c { fill: #22d3ee; animation-name: flowR, ptCleanFade; animation-duration: 2.2s, 9s; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite, infinite; }
.pt-l.pt-c { animation-name: flowL, ptCleanFade; }
@keyframes ptCleanFade { 0%,45%{opacity:0;} 65%,88%{opacity:1;} 95%,100%{opacity:0;} }

/* Reagent bar sweep */
.reagent-bar { animation: reagentSweep 9s infinite ease-in-out; }
@keyframes reagentSweep {
  0%,28% { opacity:0; transform: scaleX(1); }
  32%    { opacity:1; transform: scaleX(1); }
  42%    { opacity:0; transform: scaleX(65); transform-origin: left; }
  43%,100%{ opacity:0; }
}

/* Sparkles */
.spark { animation: sparkle 9s infinite ease-in-out; }
.s1 { animation-delay: .1s; }
.s2 { animation-delay: .3s; }
.s3 { animation-delay: .5s; }
.s4 { animation-delay: .2s; }
.s5 { animation-delay: .4s; }
.s6 { animation-delay: .15s; }
.s7 { animation-delay: .35s; }
.s8 { animation-delay: .25s; }
@keyframes sparkle {
  0%,62% { opacity:0; r: 2; }
  72%    { opacity:1; r: 4; }
  80%    { opacity:.6; r: 3; }
  88%,100%{ opacity:0; r: 2; }
}

/* Region dot pulses */
.region-dot { animation: regionPop .8s ease-out both; }
.region-pulse { animation: regionRipple 2.5s ease-out infinite; }
@keyframes regionPop { from{r:0;opacity:0;} to{opacity:1;} }
@keyframes regionRipple {
  0%   { r: 6; opacity: .4; }
  100% { r: 28; opacity: 0; }
}

/* ===== GEO ===== */
.geo {
  padding: 140px 0; min-height: 640px;
  background: var(--bg-2); position: relative; overflow: hidden;
  display: flex; align-items: center;
}
/* Контент поверх карты */
.geo .container { position: relative; z-index: 2; width: 100%; }
/* Плавное затухание — переходы между блоками и по краям */
.geo::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg-2) 0%, transparent 18%),
    linear-gradient(to top,    var(--bg-2) 0%, transparent 18%),
    radial-gradient(ellipse 130% 100% at 50% 50%, transparent 55%, var(--bg-2) 90%);
}
.geo__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.geo-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  transition: all .25s;
}
.geo-card:hover { border-color: rgba(56,189,248,.3); transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,0,0,.35); }
.geo-card__icon { font-size: 36px; margin-bottom: 14px; }
.geo-card h4 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.geo-card p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ===== RUSSIA MAP ===== */
.russia-map-wrap {
  position: absolute; left: 0; right: 0;
  top: 50%; transform: translateY(-50%);
  z-index: 0; pointer-events: none;
  will-change: transform;
}
.russia-svg { width: 100%; height: auto; display: block; }

.russia-fill {
  fill: url(#russiaFill);
}
.russia-glow {
  fill: rgba(2,132,199,.12);
  filter: blur(8px);
}
.russia-stroke {
  fill: none;
  stroke: rgba(56,189,248,.55);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: drawRussia 2.8s ease-out forwards;
}
.russia-map-wrap.visible .russia-stroke { animation: drawRussia 2.8s ease-out forwards; }
@keyframes drawRussia {
  from { stroke-dashoffset: 3000; }
  to   { stroke-dashoffset: 0; }
}

.map-legend {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.map-legend__item { display: flex; align-items: center; gap: 6px; }
.map-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.map-dot--blue   { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
.map-dot--indigo { background: #818cf8; box-shadow: 0 0 6px #818cf8; }
.map-legend__note { margin-left: auto; font-weight: 600; color: rgba(56,189,248,.7); }
.geo__sub {
  color: var(--muted); font-size: 1rem; margin-top: .5rem; margin-bottom: 1.5rem;
}
.geo__cities {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem;
}
.geo__city {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(56,189,248,.07); border: 1px solid rgba(56,189,248,.18);
  border-radius: 20px; padding: .45rem 1rem;
  font-size: .9rem; color: #7dd3fc; text-decoration: none;
  transition: all .2s;
}
.geo__city:hover {
  background: rgba(56,189,248,.15); border-color: rgba(56,189,248,.4);
  color: #fff; transform: translateY(-2px);
}
.geo__stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
}
.geo__stat {
  display: flex; flex-direction: column;
}
.geo__stat-num {
  font-size: 2rem; font-weight: 800; color: #38bdf8; line-height: 1;
}
.geo__stat-label {
  font-size: .8rem; color: var(--muted); margin-top: .2rem; text-transform: uppercase; letter-spacing: .05em;
}
.map-img-wrap {
  position: relative; overflow: hidden; border-radius: 0;
}
.map-img {
  width: 100%; height: auto; display: block;
  filter: invert(1) hue-rotate(185deg) saturate(5) brightness(0.42);
  mix-blend-mode: screen;
  opacity: 0.7;
}
/* Подпись поверх карты */
.map-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 28px 22px;
  background: linear-gradient(to top, rgba(3,6,15,.9) 0%, transparent 100%);
  z-index: 3; pointer-events: none;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(56,189,248,.45); text-align: center;
  font-family: 'HeliosExt', sans-serif; font-weight: 400;
}
/* City dot pulse animation */
.city-ripple {
  animation: cityRipple 2.8s ease-out infinite;
  transform-origin: center;
}
.city-dot { animation: cityPop .6s ease-out both; }
@keyframes cityRipple {
  0%   { r: 1.5; opacity: .5; }
  100% { r: 5;   opacity: 0; }
}
@keyframes cityPop { from{opacity:0;} to{opacity:1;} }
/* stagger ripples */
.city-ripple:nth-child(5)  { animation-delay: .4s; }
.city-ripple:nth-child(9)  { animation-delay: .8s; }
.city-ripple:nth-child(13) { animation-delay: 1.2s; }
.city-ripple:nth-child(17) { animation-delay: 1.6s; }
.city-ripple:nth-child(21) { animation-delay: 2.0s; }
.city-ripple:nth-child(25) { animation-delay: 2.4s; }

/* ===== CONTACT ===== */
.contact { padding: 100px 0; background: var(--bg-2); }
.contact__wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }

.contact__desc { font-size: 16px; color: var(--muted); line-height: 1.7; margin: 16px 0 36px; }
.contact__channels { display: flex; flex-direction: column; gap: 16px; }
.channel {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: all .2s;
}
.channel:hover { border-color: rgba(56,189,248,.3); transform: translateX(4px); }
.channel__icon { font-size: 22px; width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.channel__icon--blue { background: rgba(56,189,248,.1); }
.channel__icon--purple { background: rgba(129,140,248,.1); }
.channel__icon--green { background: rgba(74,222,128,.1); }
.channel__icon--tg  { background: rgba(34,158,217,.12); color: #229ED9; }
.channel__icon--max { background: rgba(129,140,248,.12); color: #818cf8; }
.channel__label { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.channel__val { font-size: 15px; font-weight: 600; color: #fff; margin-top: 2px; }

/* FORM */
.contact__form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card); border: 1px solid var(--border);
  color: #fff; border-radius: 10px; padding: 12px 16px;
  font-size: 15px; font-family: inherit; outline: none; transition: border-color .2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #475569; }
.form-group select option { background: #1e293b; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(56,189,248,.5); }

.form__note { font-size: 12px; color: #475569; text-align: center; }
.form__success {
  display: none; background: rgba(74,222,128,.1); color: var(--green);
  border: 1px solid rgba(74,222,128,.25); border-radius: 10px;
  padding: 14px 18px; font-size: 15px; font-weight: 500; text-align: center;
}
.form__success.show { display: block; }

/* ===== FOOTER ===== */
.footer { background: #060a14; border-top: 1px solid var(--border); padding: 64px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 2fr; gap: 60px; padding-bottom: 48px; }
.footer__brand .logo { margin-bottom: 16px; }
.footer__desc { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 320px; margin-bottom: 12px; }
.footer__inn { font-size: 13px; color: #475569; }

.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h5 { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.footer__col a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer__col a:hover { color: var(--blue); }

.footer__bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; font-size: 13px; color: #475569; }

/* ===== MODALS ===== */
.overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 24px;
}
.overlay.open { display: flex; }
.modal {
  display: none; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0; max-width: 860px;
  width: 100%; position: relative; overflow: hidden;
}
.modal.active { display: block; }
.modal__body { padding: 24px 32px 28px; }
.modal__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  align-items: start; margin-bottom: 18px;
}
.modal__info { display: flex; flex-direction: column; gap: 0; }
.modal h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.modal p { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; line-height: 1.6; }
.modal ul { margin-bottom: 0; display: flex; flex-direction: column; gap: 5px; }
.modal ul li {
  font-size: 13px; color: var(--muted); padding: 7px 10px 7px 26px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: 8px; position: relative;
}
.modal ul li::before { content: '✓'; position: absolute; left: 9px; color: var(--blue); font-weight: 700; }
.modal__cta {
  width: 100%; justify-content: center; margin-top: 6px;
  font-size: 15px; padding: 13px 24px;
}
.modal__close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--muted); width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; transition: background .2s;
}
.modal__close:hover { background: rgba(255,255,255,.12); color: #fff; }
.modal__head { margin-bottom: 8px; }

/* Modal illustration */
.modal-illo-wrap {
  width: 100%;
  height: 190px;
  border-radius: 0;
  overflow: hidden;
  background: rgba(8,14,28,.6);
  border-bottom: 1px solid rgba(56,189,248,.12);
  position: relative;
}
.modal-illo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; padding: 0; margin: 0;
  background: none; border: none; border-radius: 0;
}


/* ===== CAPTCHA ===== */
.captcha-wrap { display: flex; align-items: center; gap: 12px; }
.captcha-q {
  font-size: 16px; font-weight: 700; color: var(--blue);
  background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.2);
  padding: 11px 16px; border-radius: 10px; white-space: nowrap;
  font-family: 'HeliosExt', sans-serif; flex-shrink: 0;
}
.captcha-wrap input { width: 90px !important; }
.captcha-err { font-size: 12px; color: #f87171; margin-top: 4px; display: none; }
.captcha-err.show { display: block; }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .geo__grid { grid-template-columns: repeat(2, 1fr); }
  .geo__stats { gap: 1.5rem; }
  .why__inner { grid-template-columns: 1fr; gap: 48px; }
  .why__left { position: static; }
}

@media (max-width: 768px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
  .hero__visual { display: none; }
  .hero__grid-bg {
    background-image:
      linear-gradient(to bottom, rgba(5,10,24,0.88) 0%, rgba(5,10,24,0.94) 70%, rgba(5,10,24,1) 100%),
      url('img/hero-bg-mobile.jpg');
    background-size: auto, cover;
    background-position: 0 0, center;
  }
  .hero { padding-bottom: 0; }
  .hero__inner { padding-top: 24px !important; }
  .services { margin-top: 0; padding-top: 48px !important; }
  .hero__stats { gap: 0; }
  .hero__stat { padding: 0 16px; }
  .hero__stat:first-child { padding-left: 0; }
  .services__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: 1fr; }
  .contact__wrap { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom-inner { flex-direction: column; gap: 8px; }
  section { padding-top: 72px !important; padding-bottom: 72px !important; }
}

@media (max-width: 480px) {
  .geo__grid { grid-template-columns: 1fr; }
  .geo {
    min-height: 100svh;
    display: flex; align-items: center;
    padding: 0 !important;
  }
  .russia-map-wrap {
    position: absolute; left: -30%; right: -30%;
    top: 50%; transform: translateY(-50%) translateX(0%) scale(1.4);
    transform-origin: center center;
    will-change: transform;
  }
  .map-img {
    opacity: 0.9;
    filter: invert(1) hue-rotate(185deg) saturate(5) brightness(0.55);
  }
  .geo .container { padding-top: 0; }
  .hero__stats { flex-wrap: wrap; }
  .footer__cols { grid-template-columns: 1fr; }
  .overlay { padding: 0; align-items: flex-end; }
  .modal { max-height: 85vh; overflow-y: auto; border-radius: 20px 20px 0 0; width: 100%; }
  .modal-illo-wrap { display: none; }
  .modal__info p:last-of-type { display: none; }
  .modal__body { padding: 20px 18px 24px; }
  .modal__cols { grid-template-columns: 1fr; gap: 12px; }
  .modal__close { top: 14px; right: 14px; }
  .modal h3 { font-size: 18px; padding-right: 36px; }
  .modal p { font-size: 13px; }
  .modal ul li { font-size: 12px; padding: 6px 10px 6px 24px; }
  .pill { display: none; }
}
