/* ============================================================
   Babylon Soft — современный светлый дизайн
   ============================================================ */

:root {
  /* Цвета */
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-softer: #fbfcfe;
  --text: #0f172a;
  --text-muted: #55627a;
  --text-faint: #8a94a8;
  --border: #e6e9f0;
  --border-strong: #d5dae6;

  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef2ff;
  --accent: #7c3aed;
  --accent-soft: #f3eefe;

  --success: #059669;
  --success-soft: #ecfdf5;
  --warning: #b45309;
  --warning-soft: #fffbeb;

  /* Градиенты */
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --grad-soft: linear-gradient(135deg, #eef2ff 0%, #f3eefe 100%);

  /* Геометрия */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Тени */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 3px rgba(15, 23, 42, .05), 0 10px 30px rgba(15, 23, 42, .07);
  --shadow-lg: 0 8px 20px rgba(15, 23, 42, .08), 0 24px 60px rgba(79, 70, 229, .12);
  --shadow-primary: 0 10px 30px rgba(79, 70, 229, .28);

  /* Типографика */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  --fs-hero: clamp(2.4rem, 6vw, 4rem);
  --fs-h2: clamp(1.8rem, 3.6vw, 2.6rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.4rem);

  /* Прочее */
  --container: 1160px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font: inherit; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--soft { background: var(--bg-soft); }
.section--grad { background: var(--grad-soft); }

.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px; border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.section-head h1, .section-head h2 { font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.section-head p { margin-top: 16px; color: var(--text-muted); font-size: 1.08rem; }

.lead { font-size: 1.12rem; color: var(--text-muted); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--text); }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { color: var(--text-muted); }
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--radius-pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-primary); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(79, 70, 229, .36); }
.btn--ghost { background: #fff; color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); }
.btn--soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn--soft:hover { background: #e0e7ff; transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.nav.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); background: rgba(255,255,255,.92); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad);
  display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow-primary);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--text-faint); letter-spacing: .04em; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 9px 14px; border-radius: var(--radius-pill);
  font-weight: 500; font-size: .98rem; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: var(--bg-soft); }
.nav__links a.is-active { color: var(--primary-dark); background: var(--primary-soft); font-weight: 600; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__cta .btn { padding: 11px 20px; font-size: .95rem; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  align-items: center; justify-content: center; color: var(--text);
  border: 1px solid var(--border); background: #fff;
}
.nav__toggle svg { width: 22px; height: 22px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15, 23, 42, .4);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(340px, 86vw);
  background: #fff; box-shadow: var(--shadow-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
  transform: translateX(100%); transition: transform .35s var(--ease);
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mobile-menu__close { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); }
.mobile-menu__panel a { padding: 13px 14px; border-radius: 12px; font-weight: 500; color: var(--text); }
.mobile-menu__panel a:hover, .mobile-menu__panel a.is-active { background: var(--primary-soft); color: var(--primary-dark); }
.mobile-menu__panel .btn { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 120%;
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(79, 70, 229, .14), transparent 60%),
    radial-gradient(700px 500px at 85% 10%, rgba(124, 58, 237, .12), transparent 60%);
  z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border);
  padding: 7px 14px 7px 8px; border-radius: var(--radius-pill);
  font-size: .86rem; font-weight: 600; color: var(--text-muted);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.hero h1 { margin-bottom: 20px; }
.hero__sub { font-size: 1.16rem; color: var(--text-muted); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta b { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.hero__meta span { font-size: .86rem; color: var(--text-faint); }

/* Hero visual card */
.hero__visual { position: relative; }
.hero-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px;
}
.hero-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hero-card__top .tag { font-size: .8rem; font-weight: 700; color: var(--primary-dark); background: var(--primary-soft); padding: 5px 12px; border-radius: var(--radius-pill); }
.hero-card__rows { display: flex; flex-direction: column; gap: 12px; }
.hero-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius); background: var(--bg-softer); border: 1px solid var(--border); }
.hero-row__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.hero-row__ico svg { width: 22px; height: 22px; }
.hero-row b { display: block; font-size: .98rem; }
.hero-row span { font-size: .85rem; color: var(--text-faint); }
.hero-row .val { margin-left: auto; font-weight: 800; font-size: .95rem; }
.hero-row .val.ok { color: var(--success); }
.float-chip {
  position: absolute; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  font-size: .88rem; font-weight: 600;
}
.float-chip svg { width: 20px; height: 20px; color: var(--success); }
.float-chip--1 { top: -18px; right: -10px; }
.float-chip--2 { bottom: -16px; left: -14px; }
.float-chip--2 svg { color: var(--primary); }

/* ---------- Product cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card__ico {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--primary); margin-bottom: 20px;
}
.card__ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; margin-bottom: 18px; flex: 1; }
.card__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary); }
.card__link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }
.card__price { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); display: flex; align-items: baseline; gap: 8px; }
.card__price b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.card__price span { color: var(--text-faint); font-size: .9rem; }
.card__badge { position: absolute; }
.card--featured { position: relative; border-color: var(--primary); box-shadow: var(--shadow-primary); }
.card--featured::before {
  content: "Популярный выбор для UA"; position: absolute; top: -13px; left: 24px;
  background: var(--grad); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 14px; border-radius: var(--radius-pill);
}

/* ---------- Feature list ---------- */
.feature { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.feature:last-child { border-bottom: none; }
.feature__ico { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.feature__ico svg { width: 22px; height: 22px; }
.feature b { display: block; font-size: 1.02rem; margin-bottom: 3px; }
.feature span { font-size: .95rem; color: var(--text-muted); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.step__num {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 18px;
  box-shadow: var(--shadow-primary);
}
.step b { display: block; font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .96rem; }

/* ---------- Pricing table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; }
table.compare th, table.compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--border); font-size: .96rem; }
table.compare thead th { background: var(--bg-softer); font-weight: 700; }
table.compare thead th:first-child, table.compare td:first-child { text-align: left; font-weight: 600; color: var(--text); }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare .price-cell { font-weight: 800; font-size: 1.05rem; }
table.compare .price-cell small { display: block; font-weight: 500; color: var(--text-faint); font-size: .8rem; }
table.compare .yes { color: var(--success); font-weight: 700; }
table.compare .no { color: var(--text-faint); }
table.compare .col-hl { background: var(--primary-soft); }
table.compare thead .col-hl { background: var(--primary); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--grad); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px); text-align: center; box-shadow: var(--shadow-primary);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 80% 0%, rgba(255,255,255,.18), transparent 60%);
}
.cta-band h2 { color: #fff; margin-bottom: 14px; position: relative; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 28px; position: relative; }
.cta-band .btn { position: relative; }
.cta-band .btn--white { background: #fff; color: var(--primary-dark); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.cta-band .btn--white:hover { transform: translateY(-2px); }

/* ---------- Product page hero ---------- */
.phero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 84px) 0; }
.phero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 130%; z-index: -1;
  background: radial-gradient(600px 400px at 15% 10%, rgba(79,70,229,.12), transparent 60%),
             radial-gradient(500px 400px at 90% 20%, rgba(124,58,237,.1), transparent 60%);
}
.phero__grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.crumbs { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-faint); margin-bottom: 20px; }
.crumbs a:hover { color: var(--primary); }
.crumbs svg { width: 15px; height: 15px; }
.phero h1 { margin-bottom: 16px; }
.phero__sub { font-size: 1.14rem; color: var(--text-muted); max-width: 620px; margin-bottom: 28px; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.phero__price { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 30px; box-shadow: var(--shadow); }
.phero__price .lbl { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.phero__price .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; }
.phero__price .alt { color: var(--text-faint); font-size: .95rem; }
.phero__price .note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-muted); }

/* ---------- Info blocks ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.info-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.info-box h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 1.12rem; }
.info-box h3 .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.info-box h3 .ic svg { width: 21px; height: 21px; }
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; color: var(--text-muted); }
.check-list li svg { width: 20px; height: 20px; color: var(--success); flex: none; margin-top: 2px; }

/* ---------- Callout ---------- */
.callout { display: flex; gap: 16px; align-items: flex-start; background: var(--warning-soft); border: 1px solid #fde68a; border-radius: var(--radius); padding: 18px 20px; }
.callout svg { width: 24px; height: 24px; color: var(--warning); flex: none; }
.callout b { color: #92400e; }
.callout p { color: #92400e; font-size: .95rem; }
.callout--info { background: var(--primary-soft); border-color: #c7d2fe; }
.callout--info svg { color: var(--primary); }
.callout--info b, .callout--info p { color: var(--primary-dark); }

/* ---------- Contact ---------- */
.contact-card { max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(28px, 5vw, 48px); text-align: center; }
.contact-card .big-ico { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 22px; display: grid; place-items: center; background: var(--grad-soft); color: var(--primary); }
.contact-card .big-ico svg { width: 36px; height: 36px; }
.contact-card h1, .contact-card h2 { font-size: var(--fs-h2); margin-bottom: 12px; }
.contact-card p { margin-bottom: 26px; }
.mail-link { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 800; color: var(--primary-dark); letter-spacing: -.01em; }
.mail-link svg { width: 26px; height: 26px; color: var(--primary); }
.mail-link:hover { color: var(--primary); }
.contact-note { margin-top: 22px; font-size: .9rem; color: var(--text-faint); }

/* ---------- Footer ---------- */
.footer { background: #0f172a; color: #cbd5e1; padding: 56px 0 30px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand small { color: #94a3b8; }
.footer p { color: #94a3b8; font-size: .95rem; max-width: 320px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: #cbd5e1; font-size: .96rem; transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: .88rem; color: #94a3b8; }
.footer__bottom a { color: #cbd5e1; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.center { text-align: center; }
.flex { display: flex; } .wrap { flex-wrap: wrap; } .gap-2 { gap: 16px; } .aic { align-items: center; } .jcb { justify-content: space-between; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 520px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .phero__grid { grid-template-columns: 1fr; }
  .phero__price { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__meta { gap: 16px; }
  .float-chip--1 { right: 0; }
  .float-chip--2 { left: 0; }
  .btn-group .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
