:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #182230;
  --muted: #5f6b7a;
  --line: #dbe2ea;
  --primary: #0d63f3;
  --primary-dark: #0b4fc0;
  --accent: #0f172a;
  --accent-soft: #e9f1ff;
  --success: #0f9d58;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }
h1, h2, h3 { margin: 0 0 16px; line-height: 1.15; }
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(18px);
}

.header--compact { position: static; }

.header__inner,
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
}

.nav {
  display: flex;
  gap: 22px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
}

.hero {
  padding: 78px 0 52px;
  background: linear-gradient(180deg, #0f172a 0%, #13213d 58%, #f5f7fb 58%);
}

.hero__grid,
.cta,
.product-layout {
  display: grid;
  gap: 28px;
}

.hero__grid { grid-template-columns: 1.35fr 0.8fr; align-items: start; }
.product-layout { grid-template-columns: minmax(0, 2fr) 360px; align-items: start; }
.cta { grid-template-columns: 1fr; }

.badge,
.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 99, 243, 0.12);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.eyebrow--light {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.lead {
  font-size: 20px;
  color: rgba(255,255,255,0.84);
  max-width: 760px;
}

.hero .lead {
  display: inline-block;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.38);
}

.lead--small { color: var(--muted); font-size: 18px; }

.hero__grid > div h1,
.hero__grid > div p,
.hero__grid > div li { color: #fff; }

.hero-card h2,
.hero-card p,
.hero-card li,
.hero-card label {
  color: var(--text);
}

.hero__actions,
.product-card__actions,
.sidebar-box__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.hero-card,
.card,
.product-card,
.sidebar-box,
.filters,
.seo-copy,
.gallery-placeholder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card,
.sidebar-box,
.product-card,
.card,
.seo-copy,
.filters {
  padding: 24px;
}

.gallery-placeholder {
  min-height: 300px;
  display: grid;
  place-items: center;
  color: var(--muted);
  margin: 26px 0;
}

.gallery-placeholder--filled {
  padding: 24px;
}

.gallery-placeholder--filled img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.form {
  display: grid;
  gap: 12px;
}

.form--inline { grid-template-columns: repeat(4, minmax(0, 1fr)); }

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover { background: var(--primary-dark); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--dark { background: var(--accent); }

.section { padding: 68px 0; }
.section--muted { background: #eef3fb; }
.section--accent { background: linear-gradient(135deg, #0d63f3 0%, #0f172a 100%); color: #fff; }

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section__head--tight {
  margin-top: 34px;
}

.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.lead-form__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #e5eefb;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}

.lead-form__note {
  margin: 0;
  font-size: 14px;
  color: #93a4bd;
}

.check-list {
  margin: 18px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.cards {
  display: grid;
  gap: 18px;
}

.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card--small p { color: var(--muted); }
.stat-box strong { display: block; font-size: 30px; line-height: 1; margin-bottom: 10px; color: var(--accent); }
.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}
.mini-meta span,
.muted-text {
  color: var(--muted);
}
.mini-meta span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  font-size: 13px;
}
.section--tight { padding-top: 0; }
.section-block { margin-top: 42px; }
.catalog-top-stats { margin-bottom: 24px; }

.text-link { color: var(--primary); font-weight: 700; }

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 24px;
}

.catalog-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.product-card__price,
.sidebar-box__price {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.product-card__tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 157, 88, 0.12);
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table th { width: 42%; color: var(--muted); font-weight: 600; }
.product-section { margin-bottom: 36px; }
.breadcrumbs { display: flex; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.faq-item { padding: 18px 0; border-bottom: 1px solid var(--line); }

.product-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}

.product-meta span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  font-size: 14px;
}

.footer {
  padding: 28px 0;
  background: #0f172a;
  color: rgba(255,255,255,0.8);
}

.footer__links { display: flex; gap: 18px; }

@media (max-width: 1024px) {
  .hero {
    background: linear-gradient(180deg, #0f172a 0%, #13213d 72%, #f5f7fb 72%);
  }

  .hero__grid,
  .product-layout,
  .cards--4,
  .cards--3,
  .cards--2,
  .form--inline,
  .filters {
    grid-template-columns: 1fr;
  }

  .header__inner,
  .section__head,
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav { flex-wrap: wrap; }
}
