:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --brand: #2546d8;
  --brand-dark: #1a33a6;
  --brand-soft: #eef2ff;
  --accent: #0ea5a4;
  --amber: #b45309;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .08);
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.14rem; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 48px 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 70ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- header ---------- */
.topbar {
  background: var(--ink);
  color: #cbd5e1;
  font-size: .85rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
}
.topbar a { color: #fff; }
.topbar__links { display: flex; gap: 18px; flex-wrap: wrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), #6d28d9);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.03em;
  box-shadow: var(--shadow-sm);
}
.brand__name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; }
.brand__sub { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .94rem;
  padding: 9px 12px;
  border-radius: 9px;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav a.is-active { color: var(--brand); background: var(--brand-soft); }
.nav a.btn--primary { color: #fff; }
.nav a.btn--primary:hover { color: #fff; background: var(--brand-dark); }

.nav-toggle {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px; height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, #f3f6ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero__media img {
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.fact strong { display: block; font-size: 1.3rem; letter-spacing: -.02em; }
.fact span { font-size: .82rem; color: var(--muted); }

/* ---------- page head ---------- */
.page-head {
  background: linear-gradient(135deg, #16205c 0%, #2546d8 65%, #4f46e5 100%);
  color: #fff;
  padding: 56px 0;
}
.page-head h1 { color: #fff; margin-bottom: .35em; }
.page-head p { color: #d6ddff; max-width: 72ch; margin: 0; }
.crumbs { font-size: .85rem; color: #b9c4ff; margin-bottom: 12px; }
.crumbs a { color: #fff; }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }
.card__icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

/* category tiles */
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .14s ease, box-shadow .14s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.tile__img { aspect-ratio: 4 / 3; background: var(--bg-soft); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; }
.tile__body { padding: 16px 18px 20px; }
.tile__body h3 { margin-bottom: .25em; color: var(--ink); }
.tile__body p { color: var(--muted); font-size: .88rem; margin: 0; }
.tile__from { display: block; margin-top: 10px; font-weight: 700; color: var(--brand); font-size: .9rem; }

/* feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split img { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.split--rev .split__media { order: 2; }

.ticks { list-style: none; padding: 0; margin: 0 0 18px; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 9px; color: var(--ink-soft); }
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}

/* ---------- catalogue ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.toolbar__group { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 8px 12px;
}
.field input, .field select {
  border: 0; background: transparent; outline: none;
  font: inherit; font-size: .92rem; color: var(--ink);
  min-width: 170px;
}
.field select { min-width: 150px; cursor: pointer; }
.result-count { font-size: .9rem; color: var(--muted); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .12s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .14s ease, box-shadow .14s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product__img { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--ink); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}
.product__badge--sale { background: #be123c; }
.product__badge--new { background: var(--accent); }
.product__body { padding: 15px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product__cat { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.product__name { font-size: .98rem; font-weight: 700; margin: 5px 0 6px; }
.product__sku { font-size: .76rem; color: var(--muted); margin-bottom: 10px; }
.product__spacer { flex: 1; }
.product__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price { font-size: 1.16rem; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: .72rem; font-weight: 600; color: var(--muted); display: block; }
.price del { font-size: .82rem; font-weight: 600; color: var(--muted); margin-right: 6px; }
.stock { font-size: .78rem; font-weight: 700; color: #15803d; }
.stock--low { color: var(--amber); }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- price tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table.price-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.price-table caption {
  text-align: left;
  font-weight: 800;
  padding: 18px 20px 6px;
  font-size: 1.05rem;
}
.price-table th, .price-table td { padding: 13px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .94rem; }
.price-table thead th {
  background: var(--bg-soft);
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td.num { text-align: right; font-weight: 700; white-space: nowrap; }
.price-table td small { color: var(--muted); font-weight: 500; display: block; font-size: .8rem; }

/* ---------- pricing plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.plan--featured { border-color: var(--brand); box-shadow: var(--shadow-md); position: relative; }
.plan--featured::after {
  content: "Most popular";
  position: absolute; top: -13px; left: 24px;
  background: var(--brand); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.plan__price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; }
.plan__price span { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .ticks { margin: 18px 0 22px; }
.plan .btn { width: 100%; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  font-weight: 800; font-size: .95rem;
  margin-bottom: 14px;
}

/* ---------- quotes ---------- */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.quote p { font-style: italic; color: var(--ink-soft); }
.quote footer { font-size: .88rem; font-weight: 700; }
.quote footer span { display: block; font-weight: 500; color: var(--muted); }

/* ---------- faq ---------- */
details.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq summary::marker { color: var(--brand); }
details.faq p { margin: 12px 0 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- cta ---------- */
.cta {
  background: linear-gradient(135deg, #16205c, #2546d8);
  color: #fff;
  border-radius: 20px;
  padding: 48px 44px;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 30px;
  align-items: center;
}
.cta h2 { color: #fff; }
.cta p { color: #d6ddff; margin: 0; }
.cta__actions { display: grid; gap: 12px; }
.cta__actions .btn { width: 100%; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-block { margin-bottom: 16px; }
.input-block label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
.input-block input, .input-block select, .input-block textarea {
  width: 100%;
  font: inherit;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.input-block textarea { min-height: 130px; resize: vertical; }
.input-block input:focus, .input-block select:focus, .input-block textarea:focus {
  outline: 2px solid var(--brand-soft);
  border-color: var(--brand);
}
.hint { font-size: .82rem; color: var(--muted); }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list span.k { font-weight: 700; min-width: 120px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #94a3b8; padding: 56px 0 26px; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: .85rem;
}
.footer-brand .brand__name, .footer-brand .brand__sub { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid--4, .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px;
    gap: 2px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .hero__grid, .split, .contact-grid, .cta { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .grid--2, .grid--3, .grid--4, .plans { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 34px 26px; }
  .section { padding: 54px 0; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
