:root {
  --bg: #e6e3de;
  --bg-deep: #ddd9d3;
  --card: #fff;
  --ink: #1c1c1c;
  --muted: #6d6964;
  --line: rgba(28, 28, 28, 0.1);
  --accent: #e30613;
  --black: #171717;
  --sans: Inter, "Segoe UI", sans-serif;
  --radius: 22px;
  --shadow: 0 16px 40px rgba(40, 36, 30, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font-family: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, .logo, .stats b, .prod-stats b {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-line { background: #fff; color: var(--ink); border-color: rgba(28, 28, 28, 0.14); }
.btn-line:hover { border-color: var(--ink); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(230, 227, 222, 0.92);
  backdrop-filter: blur(12px);
}
.top.scrolled { box-shadow: 0 1px 0 var(--line); }
.top-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
  gap: 16px;
}
.nav { display: flex; gap: 22px; justify-self: center; }
a.logo { justify-self: start; }
.nav a { text-decoration: none; font-size: 15px; color: #3a3835; }
.nav a:hover { color: var(--ink); }
a.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.34em;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  color: var(--ink);
}
a.logo i {
  width: 5px;
  height: 5px;
  margin: 0 0.06em;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}
.top-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.phone { text-decoration: none; font-weight: 600; font-size: 15px; }
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 28px;
  background: var(--bg);
}
.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(54vw, 860px);
  z-index: 0;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% 42%;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(230, 227, 222, 0) 64px);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 16px 0 28px;
}
.hero h1 {
  max-width: 560px;
  font-size: clamp(36px, 3.3vw, 52px);
  line-height: 1.05;
}
.hero h1 strong { font-weight: 700; }
.hero .lead { margin-top: 18px; max-width: 560px; color: #2c2a28; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.stats-wrap { position: relative; z-index: 2; margin-top: 8px; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.stats div { padding: 18px 20px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stats b { font-size: 18px; letter-spacing: -0.03em; }

.marquee {
  overflow: hidden;
  margin-top: 28px;
  background: var(--bg-deep);
  border-top: 1px solid rgba(28, 28, 28, 0.06);
  border-bottom: 1px solid rgba(28, 28, 28, 0.06);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.marquee-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
}
.marquee-group span {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding: 14px 0;
  color: #3a3835;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.marquee-group span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.section { padding: 84px 0 8px; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  max-width: 16ch;
}
.section-head p { color: var(--muted); margin: 0; }

.mat-photo {
  margin: 0 0 16px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mat-photo img { width: 100%; height: 380px; object-fit: cover; object-position: center 40%; }
.mat-photo figcaption { padding: 22px 28px 26px; }
.mat-photo small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mat-photo strong { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  text-align: left;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.card:hover, .card.active { border-color: rgba(227, 6, 19, 0.35); }
.card .num, .row .num, .steps .num {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.card b, .steps b { display: block; font-size: 20px; letter-spacing: -0.03em; margin-bottom: 6px; }
.card p, .steps p { color: var(--muted); font-size: 15px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pills i {
  font-style: normal;
  background: #f3f1ee;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #4e4a46;
}

.rows {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.row {
  display: grid;
  grid-template-columns: 64px 1.1fr 1.3fr auto;
  gap: 12px;
  align-items: center;
  padding: 20px 22px;
  text-decoration: none;
  border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.row:hover { background: #faf9f7; }
.row .num { margin: 0; }
.row b { font-size: 18px; letter-spacing: -0.02em; }
.row span { color: var(--muted); }
.row em { font-style: normal; color: var(--accent); font-weight: 600; white-space: nowrap; }

.prod-photo {
  position: relative;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  min-height: 460px;
  background: #d9d6d1;
  box-shadow: var(--shadow);
}
.prod-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center 45%;
}
.prod-stats {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}
.prod-stats div { padding: 10px 12px; }
.prod-stats div + div { border-left: 1px solid var(--line); }
.prod-stats b { font-size: 32px; line-height: 1; }
.prod-stats small {
  margin-left: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.prod-stats span { display: block; margin-top: 4px; color: #4c4945; font-size: 13px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps article {
  background: var(--card);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  min-height: 210px;
}
.steps article .num { padding-bottom: 14px; border-bottom: 1px solid var(--line); }

.faq { display: grid; gap: 10px; }
.faq-item { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); }
.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-item p { display: none; margin: 0; padding: 0 20px 18px; color: #3f3c38; }
.faq-item.open p { display: block; }
.faq-item.open button span { transform: rotate(45deg); }

.cta { margin-top: 72px; padding: 72px 0 64px; background: #f4f2ef; }
.cta-inner { text-align: center; }
.cta .kicker { justify-content: center; }
.cta h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; }
.cta .lead { margin: 12px 0 26px; color: var(--muted); }
.cta form {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(150px, 1fr) minmax(190px, 1.3fr) auto;
  align-items: center;
  gap: 10px;
  max-width: 920px;
  margin: 0 auto;
}
.cta input {
  min-width: 0;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(28, 28, 28, 0.08);
  font-size: 15px;
}
.cta .fine, .form-ok { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.form-ok { display: none; font-size: 16px; color: var(--ink); font-weight: 600; }

.footer { padding: 28px 0 22px; }
.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-bottom: 18px;
}
.foot-grid small, .foot-bottom {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.foot-grid a, .foot-grid span { display: block; margin-top: 6px; text-decoration: none; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
}
.foot-bottom a { color: var(--ink); }

#back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s linear;
}
#back-top.show { opacity: 1; pointer-events: auto; }

@media (max-width: 980px) {
  .wrap { width: min(1160px, calc(100% - 32px)); }
  .menu-btn { display: inline-flex; justify-self: end; }
  .top-row { grid-template-columns: 1fr auto; }
  .top-actions, .nav { display: none; }
  .top.open .nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-column: 1 / -1;
    padding: 4px 0 14px;
  }
  .top.open .top-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-self: start;
    padding-bottom: 14px;
  }
  a.logo { grid-column: 1; grid-row: 1; justify-self: start; }
  .menu-btn { grid-column: 2; grid-row: 1; }
  .top.open .nav { grid-row: 2; justify-self: start; align-items: flex-start; }
  .top.open .top-actions { grid-row: 3; }
  .hero { padding: 20px 0 16px; }
  .hero-copy { max-width: none; padding: 4px 0 0; }
  .hero h1, .hero .lead { max-width: none; }
  .hero h1 { font-size: 34px; }
  .hero-visual {
    position: relative;
    width: auto;
    height: 240px;
    margin: 16px 16px;
    right: auto;
    border-radius: 20px;
    overflow: hidden;
  }
  .hero-visual::after { display: none; }
  .stats-wrap { margin-top: 0; }
  .cta form { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
  .stats, .prod-stats, .cards, .steps, .foot-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .row {
    grid-template-columns: 36px 1fr;
    row-gap: 2px;
    align-items: start;
  }
  .row .num { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  .row b { grid-column: 2; grid-row: 1; }
  .row > span { grid-column: 2; grid-row: 2; }
  .row em { grid-column: 2; grid-row: 3; padding-bottom: 6px; }
  .prod-photo, .prod-photo img { height: auto; min-height: 0; }
  .prod-photo img { height: 240px; }
  .prod-stats { position: static; margin: 10px; width: auto; }
  .mat-photo img { height: 220px; }
}

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .stats, .cards, .steps, .foot-grid, .prod-stats { grid-template-columns: 1fr; }
  .stats div + div, .prod-stats div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cta form { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
  .foot-bottom { flex-direction: column; }
  #back-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-group + .marquee-group { display: none; }
  #back-top { transition: none; }
}
