:root {
  --brand: #3456d1;
  --brand-dark: #2440a8;
  --brand-soft: #eef2ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --dark: #0b1330;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(52, 86, 209, .3); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { color: var(--brand-dark); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.topbar { background: var(--dark); color: #cbd5e1; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; }
.topbar__items { display: flex; gap: 28px; }
.topbar__items span { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; opacity: .7; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 23, 42, .05); }
.header .container { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo img { height: 42px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 15px;
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav a.is-active { color: var(--brand); background: var(--brand-soft); }
.header__phone { font-weight: 800; color: var(--ink); font-size: 17px; white-space: nowrap; }
.header__cta { padding: 12px 20px; font-size: 15px; }
.burger {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; background:
  radial-gradient(900px 500px at 85% -10%, #dfe7ff 0%, transparent 60%),
  radial-gradient(700px 400px at -10% 110%, #f1f4ff 0%, transparent 60%), #fff; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__lead { font-size: 20px; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.hero__stats b { display: block; font-size: 30px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.hero__stats span { font-size: 14px; color: var(--muted); }
.hero__media { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; gap: 16px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero__media img:first-child { grid-column: 1 / 3; }
.hero__badge {
  position: absolute; left: -24px; bottom: 32px; background: #fff; border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); font-size: 15px;
}
.hero__badge i { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.hero__badge svg { width: 22px; height: 22px; }
.hero__badge small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }

.swatches { display: flex; gap: 8px; margin-bottom: 22px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6), 0 2px 6px rgba(0,0,0,.12); }

/* Page head */
.page-head { padding: 64px 0 56px; background:
  radial-gradient(800px 400px at 90% -20%, #dfe7ff 0%, transparent 60%), var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 12px; }
.page-head p { color: var(--muted); font-size: 18px; margin: 0; max-width: 680px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-hidden] { opacity: .5; }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: inherit;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }
.product__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product:hover .product__img img { transform: scale(1.05); }
.product__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product__body h3 { margin: 0; }
.product__body p { margin: 0; color: var(--muted); font-size: 15px; }
.product__foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; }
.product__price { font-size: 14px; color: var(--muted); }
.product__price b { display: block; color: var(--ink); font-size: 16px; }
.product__go {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.product:hover .product__go { background: var(--brand); color: #fff; }
.product__go svg { width: 20px; height: 20px; }

.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.feature__icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 20px;
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.steps { counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 15px; font-weight: 800; color: var(--brand); margin-bottom: 36px; letter-spacing: .05em;
}
.step__icon { position: absolute; top: 22px; right: 22px; color: #c7d2fe; }
.step__icon svg { width: 32px; height: 32px; }
.step h3 { font-size: 18px; margin: 0; line-height: 1.35; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; box-shadow: var(--shadow-lg); }
.split__media .tag {
  position: absolute; right: -16px; bottom: -16px; background: var(--brand); color: #fff;
  border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow-lg);
}
.split__media .tag b { display: block; font-size: 32px; line-height: 1; font-weight: 800; }
.split__media .tag span { font-size: 14px; opacity: .85; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233456d1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.05); }

.cert { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.cert button { padding: 0; border: 0; background: #fff; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-lg); }

/* Product page */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pdp__img { border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); position: sticky; top: 100px; }
.pdp__img button { padding: 0; border: 0; display: block; width: 100%; cursor: zoom-in; }
.pdp__img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pdp h1 { font-size: clamp(30px, 3.6vw, 44px); }
.pdp__price { display: inline-flex; align-items: center; gap: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 700; padding: 8px 14px; border-radius: 999px; font-size: 15px; margin-bottom: 28px; }
.specs { width: 100%; border-collapse: collapse; margin-bottom: 32px; font-size: 16px; }
.specs th, .specs td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 40%; color: var(--muted); font-weight: 500; padding-right: 16px; }
.specs td { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.chip i { width: 10px; height: 10px; border-radius: 50%; }
.pdp__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Prose */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.note { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px;
  background: linear-gradient(135deg, #2440a8 0%, #3456d1 55%, #5b7cf0 100%); color: #dbe4ff;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta h2 { color: #fff; }
.cta p { margin: 0; font-size: 18px; }
.cta__contacts { position: relative; z-index: 1; display: grid; gap: 14px; }
.cta__contacts a, .cta__contacts div {
  display: flex; align-items: center; gap: 14px; color: #fff; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18); padding: 16px 20px; border-radius: 16px; font-weight: 700;
}
.cta__contacts a:hover { background: rgba(255,255,255,.18); color: #fff; }
.cta__contacts small { display: block; font-weight: 500; opacity: .75; font-size: 13px; }
.cta__contacts svg { width: 22px; height: 22px; flex: none; }

/* Contacts page */
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; gap: 18px; align-items: flex-start; color: inherit; }
a.contact-card:hover { border-color: var(--brand); color: inherit; }
.contact-card .feature__icon { margin: 0; flex: none; }
.contact-card small { display: block; color: var(--muted); font-size: 14px; }
.contact-card b { color: var(--ink); font-size: 19px; }

/* Forms */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form input, .form textarea, .form select {
  font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(52, 86, 209, .12); }
.form small { color: var(--muted); font-size: 13px; }
.form-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }

/* Modal & lightbox */
dialog { border: 0; padding: 0; border-radius: 24px; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }
dialog::backdrop { background: rgba(11, 19, 48, .55); backdrop-filter: blur(4px); }
.modal { width: 460px; padding: 36px; position: relative; }
.modal h3 { font-size: 26px; }
.modal p { color: var(--muted); }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--bg-alt); cursor: pointer; font-size: 22px; line-height: 1; color: var(--ink);
}
.lightbox { background: transparent; box-shadow: none; max-height: 92vh; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 12px; }
.lightbox .modal__close { background: #fff; top: 10px; right: 10px; }

/* Footer */
.footer { background: var(--dark); color: #94a3b8; padding: 72px 0 32px; margin-top: 96px; font-size: 15px; }
.footer .container > .grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; letter-spacing: 0; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 12px; margin-bottom: 18px; }
.footer__logo img { height: 34px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.no-footer-gap .footer { margin-top: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1080px) {
  .header__phone { display: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .topbar__items span:not(:first-child) { display: none; }
  .burger { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column; gap: 0;
    padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .nav a { padding: 14px 12px; font-size: 17px; }
  .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .hero { padding: 48px 0 72px; }
  .hero .container, .split, .pdp, .cta, .cert { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { grid-template-rows: 200px 160px; }
  .hero__badge { left: 12px; bottom: 12px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .pdp__img { position: static; }
  .cta { padding: 40px 28px; }
  .cert { max-width: 560px; }
  .cert button { max-width: 280px; }
  .footer .container > .grid { grid-template-columns: 1fr 1fr; }
  .footer .container > .grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .hero__stats b { font-size: 24px; }
  .hero__lead { font-size: 18px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery button:first-child { grid-column: 1 / -1; }
  .split__media .tag { right: 12px; bottom: 12px; }
  .topbar { display: none; }
  .header .container { height: 66px; }
  .nav { inset: 66px 0 auto 0; }
  .logo img { height: 36px; }
  .form-box, .modal { padding: 28px 20px; }
  .footer .container > .grid { grid-template-columns: 1fr; }
  .specs th { width: 45%; }
}
