:root {
  --color-bg: #ffffff;
  --color-text: #32312e;
  --color-muted: #6f6b64;
  --color-border: #e8e3dc;
  --color-accent: #b84436;
  --color-accent-soft: #f4ded8;
  --color-dark: #32312e;
  --shadow: 0 20px 60px rgba(50, 49, 46, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 86px 0; scroll-margin-top: 92px; }
.section-soft { background: #fbf8f5; }
.section-dark { background: var(--color-dark); color: #fff; }
.section-heading { max-width: 690px; margin-bottom: 34px; }
.section-heading h2, .split-grid h2, .contact-grid h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
}
.lead { margin-top: 22px; font-size: 20px; color: var(--color-muted); max-width: 650px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 14px max(20px, calc((100vw - 1160px) / 2));
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
}
.brand img { width: 170px; height: auto; }
.main-nav { grid-column: 2; grid-row: 1; display: flex; justify-content: center; gap: 28px; color: var(--color-muted); font-size: 17px; font-weight: 700; }
.main-nav a, .header-phone, .email-link { transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible, .header-phone:hover, .email-link:hover { color: var(--color-accent); }
.header-phone { grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; white-space: nowrap; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 8px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 0; background: var(--color-text); }
.menu-toggle span + span { margin-top: 5px; }

.hero { padding-top: 58px; }
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 0.98; letter-spacing: 0; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
.btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-primary:hover, .btn-primary:focus-visible { background: #993629; border-color: #993629; }
.btn-secondary { background: #fff; color: var(--color-text); border-color: var(--color-border); }
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--color-accent); color: var(--color-accent); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }
.hero-note {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.93);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-weight: 700;
}

.benefits-grid, .products-grid, .kit-grid, .reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.benefits-grid article, .product-card, .reviews-grid article, .info-list article, .contact-form, .faq-list details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.benefits-grid article { padding: 24px; }
.benefits-grid span, .kit-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 800;
  white-space: nowrap;
  font-size: 14px;
}
h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.2; }
p { margin: 0 0 14px; }
.benefits-grid p, .product-card p, .reviews-grid p, .split-grid p, .contact-grid p { color: var(--color-muted); }

.product-card { position: relative; overflow: hidden; box-shadow: 0 12px 38px rgba(50,49,46,.08); }
.product-card-featured { border-color: rgba(184,68,54,.45); }
.product-card img { width: 100%; aspect-ratio: 1.25 / 1; object-fit: cover; background: #eee; }
.product-body { padding: 24px; }
.price { color: var(--color-accent) !important; font-size: 28px; font-weight: 800; }
.meta { font-weight: 700; color: var(--color-text) !important; }
.product-card ul { padding-left: 18px; color: var(--color-muted); min-height: 86px; }
.product-card .btn { width: 100%; margin-top: 8px; }
.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 8px 12px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td { padding: 18px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
thead th { background: var(--color-dark); color: #fff; }
tbody th { width: 210px; color: var(--color-text); }
tr:last-child th, tr:last-child td { border-bottom: 0; }

.kit-grid article {
  padding: 26px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}
.kit-grid span { background: rgba(244,222,216,.16); color: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
}
.gallery-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .25s ease; }
.gallery-grid button:hover img { transform: scale(1.04); }

.split-grid, .contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 42px; align-items: start; }
.info-list { display: grid; gap: 16px; }
.info-list article, .reviews-grid article { padding: 24px; }
.info-list h3 { display: inline-flex; align-items: center; gap: 9px; }
.avatar {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
  border: 2px solid var(--color-accent-soft);
}
.faq-list { display: grid; gap: 12px; }
.faq-list details { padding: 18px 22px; }
.faq-list summary { cursor: pointer; font-weight: 800; }
.faq-list p { margin-top: 12px; color: var(--color-muted); }

.contact-section { background: var(--color-dark); color: #fff; }
.contact-section .eyebrow, .section-dark .eyebrow { color: #f2b0a4; }
.contact-grid p { color: rgba(255,255,255,.76); }
.contact-form { padding: 26px; color: var(--color-text); }
.contact-form label { display: grid; gap: 8px; margin-bottom: 14px; font-weight: 700; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); }
.contact-form .btn { width: 100%; }
.contact-form .btn:disabled { cursor: wait; opacity: .72; transform: none; }
.form-status { min-height: 22px; margin: 12px 0 0; color: var(--color-muted); font-size: 14px; }
.form-status.is-success { color: #247447; }
.form-status.is-error { color: var(--color-accent); }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.email-link { display: inline-block; margin-top: 16px; color: var(--color-accent); font-weight: 700; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--color-border); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; color: var(--color-muted); }
.footer-grid img { width: 150px; }
.footer-grid a { display: block; font-weight: 700; color: var(--color-text); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(20,20,18,.86);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow); }
.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 30px;
}
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: 12px; justify-content: stretch; }
  .brand img { width: 132px; }
  .menu-toggle { grid-column: 3; display: inline-flex; }
  .header-phone { grid-column: 2; justify-self: end; font-size: 15px; }
  .header-phone .icon { display: none; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 0; }
  .hero-grid, .split-grid, .contact-grid { grid-template-columns: 1fr; }
  .benefits-grid, .products-grid, .kit-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 58px 0; }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: 42px; }
  .lead { font-size: 17px; }
  .brand img { width: 108px; }
  .site-header { padding-inline: 14px; }
  .header-phone { font-size: 13px; letter-spacing: 0; }
  .menu-toggle { width: 40px; height: 40px; }
  .hero-actions, .contact-actions { display: grid; grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 1 / 1; }
  .hero-note { position: static; margin-top: 12px; }
  .benefits-grid, .products-grid, .kit-grid, .reviews-grid { grid-template-columns: 1fr; }
  .product-card ul { min-height: 0; }
  .gallery-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }
  .gallery-grid button { min-width: 78%; scroll-snap-align: start; }
  .contact-actions .btn { min-height: 54px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid img { width: 130px; }
}
