:root {
  --ink: #0c0d0f;
  --ink-2: #1c1f24;
  --mute: #5c6570;
  --line: #d5d9df;
  --paper: #eef0f3;
  --surface: #ffffff;
  --accent: #c8102e;
  --accent-hover: #a50d25;
  --rec: #c8102e;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius: 2px;
  --container: 1420px;
  --header-h: 64px;
  --ease: 160ms ease;
  --focus: 0 0 0 3px rgba(200, 16, 46, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-kicker--light {
  color: #f0a8b2;
}

.section-head {
  margin-bottom: 40px;
  max-width: 640px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-desc {
  margin-top: 12px;
  color: var(--mute);
  font-size: 17px;
}

.btn-primary,
.btn-ghost,
.kit-btn-outline,
.cart-btn,
.kit-btn {
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  padding: 14px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  padding: 14px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--radius);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-block {
  width: 100%;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 13, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover {
  color: #ffffff;
  opacity: 0.85;
}

.dropdown {
  position: relative;
}

.dropdown-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 0;
}

.dropdown-btn:hover {
  color: #ffffff;
  opacity: 0.85;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 20;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown.open .dropdown-content {
  display: block;
}

.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.header-phone-btn {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 8px 14px;
  border-radius: var(--radius);
}

.header-phone-btn:hover {
  border-color: #fff;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.mobile-nav-phone {
  display: none;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 13, 15, 0.88) 0%, rgba(12, 13, 15, 0.55) 48%, rgba(12, 13, 15, 0.28) 100%),
    linear-gradient(0deg, rgba(12, 13, 15, 0.75) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 96px 24px 72px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 20px;
}

.hero-brand::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--rec);
  border-radius: 50%;
  margin-left: 12px;
  vertical-align: 0.35em;
  animation: pulse-rec 1.6s ease infinite;
}

@keyframes pulse-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 18ch;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 20px;
  max-width: 720px;
}

.hero-list li {
  position: relative;
  padding-left: 14px;
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

/* Pain — rows, not cards */
.pain-points {
  background: var(--surface);
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.pain-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.pain-row {
  display: grid;
  grid-template-columns: 72px 1fr 1.4fr;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.pain-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 18px;
}

.pain-row h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pain-row p {
  color: var(--mute);
  font-size: 16px;
}

/* Solution */
.solution {
  padding: 88px 0;
  background: var(--paper);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.solution-item {
  background: var(--surface);
  padding: 28px 24px 32px;
}

.solution-index {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}

.solution-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.solution-item p {
  color: var(--mute);
  font-size: 15px;
}

/* Calculator */
.calculator {
  padding: 88px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.calculator-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 32px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}

.slider-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.calc-range {
  width: 100%;
  height: 4px;
  appearance: none;
  background: var(--line);
  outline: none;
}

.calc-range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--ink);
  border: 2px solid var(--accent);
  cursor: pointer;
}

.calc-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--ink);
  border: 2px solid var(--accent);
  cursor: pointer;
}

.calc-options {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.opt-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 10px;
}

.calc-option-row .opt-label {
  margin-bottom: 0;
  margin-right: 12px;
}

.calc-option-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  cursor: pointer;
}

.radio-group input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.calc-kits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.calc-kits .opt-label {
  margin-bottom: 0;
}

.kit-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kit-btn {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
}

.kit-btn:hover,
.kit-btn.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.calc-preview {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px;
  margin-bottom: 24px;
}

.preview-img {
  position: relative;
  width: 160px;
  flex-shrink: 0;
  background: var(--paper);
  padding: 12px;
  border: 1px solid var(--line);
}

.preview-img img {
  width: 100%;
  object-fit: contain;
}

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.preview-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.preview-tags span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--line);
  padding: 3px 8px;
}

.preview-info h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 6px;
}

.preview-info p {
  color: var(--mute);
  font-size: 15px;
}

.calc-total-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  background: var(--ink);
  color: #fff;
  padding: 24px;
}

.total-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.total-price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.calc-form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.calc-form-inline .field {
  min-width: 160px;
}

.calc-form-inline .field-label {
  color: rgba(255, 255, 255, 0.65);
}

.calc-form-inline input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.calc-form-inline input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.calc-form-inline .btn-primary {
  height: 46px;
}

/* Kits */
.kits {
  padding: 88px 0;
  background: var(--paper);
}

.kits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.kit-card.popular {
  border-color: var(--ink);
  outline: 1px solid var(--ink);
}

.kit-badge {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px;
}

.kit-body {
  padding: 24px;
  flex: 1;
}

.kit-body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.kit-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  margin: 10px 0 18px;
}

.kit-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kit-body li {
  font-size: 14px;
  color: var(--mute);
  padding-left: 14px;
  position: relative;
}

.kit-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--ink);
}

.kit-btn-outline,
.kit-card .btn-primary {
  margin: 0 24px 24px;
}

.kit-btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
  padding: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
}

.kit-btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

/* About */
.about {
  padding: 88px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--mute);
  font-size: 17px;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 12px;
  align-items: end;
}

.about-images img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: grayscale(0.15);
}

.about-images img:first-child {
  height: 220px;
}

/* Reviews */
.reviews {
  padding: 88px 0;
  background: var(--paper);
}

.reviews-carousel-wrapper {
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
}

.review-card {
  flex: 0 0 calc((100% - 32px) / 3);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  min-height: 220px;
}

.review-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.avatar {
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.review-header strong {
  display: block;
  font-size: 15px;
}

.review-header span {
  font-size: 13px;
  color: var(--mute);
}

.review-card p {
  font-size: 15px;
  color: var(--mute);
  font-style: italic;
}

.reviews-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.review-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.review-arrow:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.review-dots {
  display: flex;
  gap: 6px;
}

.review-dot {
  width: 8px;
  height: 8px;
  border: none;
  background: #c5cad1;
  cursor: pointer;
  padding: 0;
}

.review-dot.active {
  background: var(--accent);
  width: 24px;
}

/* Catalog */
.product-catalog {
  padding: 88px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--mute);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: var(--radius);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--mute);
  border: 1px dashed var(--line);
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color var(--ease);
}

.product-card.is-visible {
  opacity: 1;
  transform: none;
}

.product-card:hover {
  border-color: var(--ink);
}

.product-image {
  aspect-ratio: 4 / 3;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-info p {
  font-size: 13px;
  color: var(--mute);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.product-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 16px;
}

.cart-btn {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  padding: 8px 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

.cart-btn:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* Request form — split panel */
.final-cta {
  padding: 0;
  background: var(--paper);
}

.request-shell {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 560px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.request-copy {
  background: var(--ink);
  color: #fff;
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.request-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.request-copy > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 32ch;
}

.request-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.request-points li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 16px;
  position: relative;
}

.request-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.final-form {
  background: var(--surface);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 16px;
  align-content: center;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full,
.final-form .btn-block {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
}

.optional {
  font-weight: 400;
  color: #9aa3ad;
}

.field input,
.field select,
.field textarea,
.form-control {
  width: 100%;
  border: 1px solid var(--line);
  background: #fafbfc;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 15px;
  transition: border-color var(--ease), background var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.form-control:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: var(--focus);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 28px;
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 12px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}

.footer-title--sub {
  margin-top: 20px;
}

.footer-text {
  font-size: 14px;
  line-height: 1.6;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link,
.footer-menu-btn {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.footer-link:hover,
.footer-menu-btn:hover {
  color: #fff;
}

.footer-link--phone {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: #fff;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.footer-legal a:hover {
  color: #fff;
}

.modal-wide {
  max-width: 640px;
}

.modal-prose h4 {
  font-family: var(--font-display);
  font-size: 15px;
  margin: 18px 0 8px;
  color: var(--ink);
}

.modal-prose p,
.modal-prose li {
  color: var(--mute);
  font-size: 15px;
  line-height: 1.55;
}

.modal-prose ul {
  margin: 0 0 8px 1.1em;
  padding: 0;
}

.modal-prose li {
  margin-bottom: 6px;
}

.modal-prose a {
  color: var(--accent);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: var(--ink);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner .btn-primary {
  flex: 0 0 auto;
  min-height: 44px;
}

.legal-page .site-header {
  position: sticky;
}

.legal-main {
  background: var(--surface);
  padding: 48px 0 72px;
  min-height: 60vh;
}

.legal-wrap {
  max-width: 820px;
}

.legal-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--mute);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-wrap h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 28px 0 10px;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--mute);
  font-size: 16px;
  line-height: 1.6;
}

.legal-wrap ul {
  margin: 0 0 12px 1.2em;
}

.legal-wrap a {
  color: var(--accent);
}

.legal-back {
  margin-top: 40px;
}

.legal-back a {
  font-weight: 600;
  text-decoration: none;
}

.legal-back a:hover {
  text-decoration: underline;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 13, 15, 0.62);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal {
  background: #fff;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px;
  position: relative;
  border: 1px solid var(--line);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--mute);
  width: 40px;
  height: 40px;
  line-height: 1;
}

.modal h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 10px;
}

.modal p {
  color: var(--mute);
  margin-bottom: 16px;
}

.modal-product {
  max-width: 640px;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-modal-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-modal-layout img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 16px;
}

.product-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-modal-tags span {
  border: 1px solid var(--line);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-specs {
  border: 1px solid var(--line);
  padding: 14px;
  background: var(--paper);
}

.product-specs h4,
.product-specs-title {
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: 8px;
}

.product-specs ul {
  list-style: none;
}

.product-specs li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: #333;
}

.product-specs li:last-child {
  border-bottom: none;
}

.product-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.product-modal-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.product-modal-note {
  font-size: 13px;
  color: var(--mute);
  text-align: center;
}

@media (max-width: 1024px) {
  .solution-grid,
  .kits-grid,
  .product-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pain-row {
    grid-template-columns: 56px 1fr;
  }

  .pain-row p {
    grid-column: 2;
  }

  .calc-grid,
  .about-grid,
  .request-shell {
    grid-template-columns: 1fr;
  }

  .review-card {
    flex-basis: calc((100% - 16px) / 2);
  }

  .calc-preview {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-img {
    width: 140px;
  }

  .calc-total-bar,
  .calc-form-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .calc-form-inline .field,
  .calc-form-inline input,
  .calc-form-inline button {
    width: 100%;
  }

  .hero-brand {
    font-size: clamp(36px, 7vw, 56px);
  }
}

@media (max-width: 768px) {
  .container,
  .header-inner,
  .hero-content,
  .footer-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: var(--ink-2);
    padding: 16px 16px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .main-nav.mobile-open {
    display: flex;
  }

  .main-nav a,
  .main-nav .dropdown-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 16px;
    width: 100%;
  }

  .main-nav .dropdown {
    width: 100%;
  }

  .main-nav .dropdown-content {
    position: static;
    border: none;
    background: transparent;
    display: none;
    padding-left: 8px;
  }

  .main-nav .dropdown.open .dropdown-content {
    display: block;
  }

  .main-nav .dropdown-item {
    min-height: 44px;
    padding: 12px 8px;
  }

  .mobile-nav-phone {
    display: block;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 14px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    margin-top: 12px;
    min-height: 48px;
  }

  .header-phone-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }

  .hero {
    min-height: auto;
    min-height: 100svh;
  }

  .hero-content {
    padding-top: 88px;
    padding-bottom: 40px;
  }

  .hero-brand {
    font-size: clamp(32px, 11vw, 48px);
    margin-bottom: 16px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(20px, 5.5vw, 26px);
  }

  .hero-sub {
    font-size: 16px;
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    min-height: 48px;
  }

  .hero-list {
    flex-direction: column;
    gap: 10px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .pain-points,
  .solution,
  .calculator,
  .kits,
  .about,
  .reviews,
  .product-catalog {
    padding: 56px 0;
  }

  .solution-grid,
  .kits-grid,
  .product-grid,
  .footer-grid,
  .about-images,
  .final-form {
    grid-template-columns: 1fr;
  }

  .review-card {
    flex-basis: 100%;
  }

  .calculator-card {
    padding: 16px;
  }

  .request-copy,
  .final-form {
    padding: 28px 16px;
  }

  .request-shell {
    min-height: 0;
  }

  .pain-row {
    grid-template-columns: 36px 1fr;
    gap: 10px 12px;
    padding: 20px 0;
  }

  .pain-row h3 {
    font-size: 18px;
  }

  .pain-row p {
    grid-column: 1 / -1;
  }

  .calc-kits {
    flex-direction: column;
    align-items: flex-start;
  }

  .kit-buttons {
    width: 100%;
  }

  .kit-btn {
    flex: 1 1 calc(50% - 8px);
    min-height: 44px;
  }

  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 8px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .filter-btn {
    flex: 0 0 auto;
    min-height: 40px;
    white-space: nowrap;
  }

  .kit-btn-outline,
  .kit-card .btn-primary,
  .btn-block,
  .cart-btn {
    min-height: 44px;
  }

  .review-arrow {
    width: 44px;
    height: 44px;
  }

  .total-price {
    font-size: 28px;
  }

  .about-images img,
  .about-images img:first-child {
    height: 200px;
  }

  .field input,
  .field select,
  .field textarea,
  .form-control {
    min-height: 48px;
    font-size: 16px; /* avoid iOS zoom */
  }

  .field textarea {
    min-height: 110px;
  }

  .modal {
    padding: 28px 16px 20px;
    max-height: min(90vh, 100dvh);
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 72px;
  }

  .kits-grid .kit-card.popular {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
