:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --surface: #0b1220;
  --card: #111827;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.28);
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --accent: #38bdf8;
  --pill-bg: #f8fafc;
  --pill-text: #0f172a;
  --shadow: 0 14px 36px rgba(2, 6, 23, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 20% 0%, #14213d 0%, var(--bg) 45%) fixed;
  color: var(--text);
  font-family: "Segoe UI", "Inter", "Arial", sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
}

.section-lead {
  margin: 0;
  color: var(--muted);
}

.badge-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  box-shadow: var(--shadow);
}

.btn-secondary {
  color: #0f172a;
  border-color: transparent;
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  box-shadow: var(--shadow);
}

.btn-ghost {
  color: var(--text);
  background: rgba(15, 23, 42, 0.3);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 15, 30, 0.92);
  backdrop-filter: blur(8px);
}

.header-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.2);
  background: linear-gradient(180deg, #1f2937, #0f172a);
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-title strong {
  font-size: 20px;
  line-height: 1;
  color: #f8fafc;
}

.brand-title span {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.86);
  margin-top: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: rgba(226, 232, 240, 0.86);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: var(--pill-bg);
  color: var(--pill-text);
  min-height: 50px;
}

.phone-pill .icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  font-size: 12px;
  font-weight: 800;
}

.phone-pill strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.phone-pill small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #475569;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(226, 232, 240, 0.28);
  background: rgba(15, 23, 42, 0.46);
  color: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(8, 15, 30, 0.97);
}

.mobile-menu-inner {
  padding: 14px 0 18px;
  display: grid;
  gap: 10px;
}

.mobile-menu a {
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, 0.2);
  border-radius: 10px;
  color: rgba(226, 232, 240, 0.92);
}

.mobile-menu .phone-pill {
  width: 100%;
  justify-content: flex-start;
}

body.menu-open .mobile-menu {
  display: block;
}

.hero {
  padding: 62px 0 52px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 420px);
  gap: 26px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.7vw, 54px);
  line-height: 1.06;
}

.hero p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
}

.hero-badges {
  margin: 22px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badges span {
  border: 1px dashed rgba(148, 163, 184, 0.55);
  color: rgba(226, 232, 240, 0.92);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.96));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.grid.cols-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-price {
  margin: 0 0 10px;
  font-weight: 700;
  color: #f8fafc;
}

.product-points {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.product-points li + li {
  margin-top: 6px;
}

.product-card .card-action {
  margin-top: auto;
  padding-top: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.7);
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.9);
}

.form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.field,
textarea,
select,
input {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  padding: 12px 14px;
}

textarea {
  resize: vertical;
}

.form-note,
.note {
  color: var(--muted);
  font-size: 13px;
}

.calc-result {
  margin-top: 10px;
  font-weight: 700;
  color: #bae6fd;
}

.map {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  background: rgba(2, 6, 23, 0.45);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.62);
}

details + details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

summary + p {
  margin: 10px 0 0;
  color: var(--muted);
}

.cta-strip {
  position: sticky;
  bottom: 16px;
  z-index: 120;
  padding: 10px 0;
}

.cta-strip-inner {
  display: flex;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 15, 30, 0.9);
  padding: 10px;
  box-shadow: var(--shadow);
}

body.form-focus .cta-strip {
  display: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs a {
  color: #bae6fd;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.2fr 1fr 1fr;
}

.footer-brand p {
  margin: 10px 0 0;
  color: var(--muted);
}

.footer-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-columns a {
  color: #cbd5e1;
}

.footer-contact {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .header-row {
    grid-template-columns: auto 1fr;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-actions {
    width: 100%;
    grid-column: 1 / -1;
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .grid.cols-6,
  .footer-grid,
  .footer-columns,
  .form-grid,
  .form-grid.triple {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .phone-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .cta-strip {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    padding: 0;
  }

  .cta-strip-inner {
    width: 100%;
    border-radius: 14px;
  }

  .cta-strip-inner .btn {
    flex: 1;
  }

  body {
    padding-bottom: 96px;
  }
}
