/* ============ БАЗА ============ */
:root {
  --red: #c9372c;
  --red-dark: #a52a21;
  --green: #3d5a3a;
  --green-dark: #2c4229;
  --cream: #faf6ef;
  --cream-dark: #f1e9dc;
  --ink: #26201b;
  --ink-60: rgba(38, 32, 27, 0.62);
  --ink-15: rgba(38, 32, 27, 0.15);
  --radius: 18px;
  --shadow: 0 14px 40px rgba(38, 32, 27, 0.12);
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

section[id], footer[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ============ КНОПКИ ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(201, 55, 44, 0.35);
}
.btn--primary:hover { background: var(--red-dark); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.3); }

.btn--outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 10px 22px;
  font-size: 14px;
}
.btn--outline:hover { background: var(--red); color: #fff; }

.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 16px 34px; }
.btn--block { width: 100%; }

/* ============ ШАПКА ============ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s;
}
.header--scrolled { box-shadow: 0 4px 20px rgba(38, 32, 27, 0.1); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
}
.logo__text strong { color: var(--red); }
.logo--light .logo__text { color: #fff; }
.logo--light .logo__text strong { color: #ffb3aa; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
  font-size: 14.5px;
}
.nav__link { color: var(--ink-60); transition: color 0.2s; }
.nav__link:hover { color: var(--red); }
.nav__phone { font-weight: 800; }
.nav__cta { display: inline-flex; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  height: 2.5px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.burger--open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 70px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 14, 10, 0.78) 0%, rgba(20, 14, 10, 0.45) 55%, rgba(20, 14, 10, 0.2) 100%);
}
.hero__content {
  position: relative;
  max-width: 760px;
  color: #fff;
}
.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.hero__title {
  margin-top: 22px;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1px;
}
.hero__text {
  margin-top: 20px;
  max-width: 540px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255, 255, 255, 0.92);
}
.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__facts {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  list-style: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.hero__facts strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

/* ============ СЕКЦИИ ============ */
.section { padding: 90px 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.eyebrow--light { color: #ffb3aa; }

.section__title {
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.6px;
}
.section__lead {
  margin-top: 16px;
  max-width: 560px;
  color: var(--ink-60);
}
.section__head { max-width: 640px; }
.section__head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

/* ============ О ПРОДУКТЕ ============ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.about__body p { margin-top: 16px; color: var(--ink-60); }
.about__stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--green);
  line-height: 1.2;
}
.stat span { font-size: 13.5px; color: var(--ink-60); }

/* ============ ПОЛЬЗ. СВОЙСТВА ============ */
.benefits {
  background: var(--green);
  color: #fff;
}
.benefits .section__title { color: #fff; }
.benefits .section__lead { color: rgba(255, 255, 255, 0.78); }
.benefits__grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.benefit {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.benefit__icon { font-size: 30px; line-height: 1; }
.benefit h3 { margin-top: 16px; font-size: 19px; font-weight: 800; }
.benefit p { margin-top: 10px; font-size: 14.5px; color: rgba(255, 255, 255, 0.8); }

/* ============ КАТАЛОГ ============ */
.catalog__note {
  max-width: 380px;
  font-size: 14.5px;
  color: var(--ink-60);
}
.catalog__grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(38, 32, 27, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(38, 32, 27, 0.16);
}
.card__media { aspect-ratio: 1 / 1; overflow: hidden; }
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.card:hover .card__media img { transform: scale(1.05); }
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}
.card__body h3 { font-size: 20px; font-weight: 800; }
.card__body > p { margin-top: 8px; font-size: 14px; color: var(--ink-60); flex: 1; }
.card__foot {
  margin: 16px 0 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.card__price {
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.card__price small { font-size: 14px; font-weight: 600; color: var(--ink-60); }
.card__meta { font-size: 12.5px; color: var(--ink-60); text-align: right; }
.catalog__disclaimer {
  margin-top: 30px;
  font-size: 14px;
  color: var(--ink-60);
}

/* ============ КАК МЫ РАБОТАЕМ ============ */
.steps { background: var(--cream-dark); }
.steps__grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  list-style: none;
  counter-reset: step;
}
.step__num {
  display: inline-block;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: rgba(201, 55, 44, 0.28);
}
.step h3 { margin-top: 14px; font-size: 18px; font-weight: 800; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--ink-60); }

/* ============ ФОРМА ЗАКАЗА ============ */
.order {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.order__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.order__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(24, 17, 12, 0.88) 0%, rgba(24, 17, 12, 0.62) 55%, rgba(24, 17, 12, 0.35) 100%);
}
.order__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 60px;
  align-items: center;
  color: #fff;
}
.order__body .section__title { color: #fff; }
.order__text {
  margin-top: 16px;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.85);
}
.order__points {
  margin-top: 26px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}
.order__points li {
  position: relative;
  padding-left: 28px;
  margin-top: 10px;
}
.order__points li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #ff8a7a;
  font-weight: 800;
}

.order__form {
  padding: 34px 30px;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}
.field { display: block; margin-bottom: 18px; }
.field__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--ink-15);
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: rgba(38, 32, 27, 0.35); }
.field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(201, 55, 44, 0.12);
}
.field--invalid input { border-color: var(--red); }
.field__error {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--red);
}
.field--invalid .field__error { display: block; }

.order__agree {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-60);
  text-align: center;
}
.order__policy-link { text-decoration: underline; }

.order__success {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #e8f3e8;
  border: 1px solid #bcd8bc;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14.5px;
}
.order__success[hidden] { display: none; }
.order__success strong { color: var(--green-dark); font-size: 15.5px; }

/* ============ КОНТАКТЫ ============ */
.contacts__grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.contact {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 6px 24px rgba(38, 32, 27, 0.08);
}
.contact__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-60);
}
.contact__value {
  display: block;
  margin-top: 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}
a.contact__value:hover { color: var(--red); }
.contact__hint {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-60);
}

/* ============ ПОДВАЛ ============ */
.footer {
  background: #1d1712;
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer__tagline { margin-top: 14px; font-size: 14px; max-width: 300px; }
.footer__contacts { display: flex; flex-direction: column; gap: 10px; font-weight: 700; }
.footer__contacts a:hover { color: #ff8a7a; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer__nav a:hover { color: #ff8a7a; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ============ АНИМАЦИЯ ПОЯВЛЕНИЯ ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal--visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ АДАПТИВ ============ */
@media (max-width: 1024px) {
  .benefits__grid, .catalog__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { gap: 40px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .burger { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    box-shadow: 0 16px 30px rgba(38, 32, 27, 0.14);
    padding: 10px 20px 22px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .nav--open { transform: none; }
  .nav__link, .nav__phone { padding: 14px 4px; border-bottom: 1px solid var(--ink-15); }
  .nav__phone { display: block; }
  .nav__cta { margin-top: 16px; }

  .section { padding: 64px 0; }

  .about__grid, .order__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; }
  .order__form { max-width: 520px; }
  .section__head--row { align-items: flex-start; flex-direction: column; gap: 14px; }
}

@media (max-width: 560px) {
  .hero { padding-bottom: 56px; }
  .hero__actions .btn { width: 100%; }
  .hero__facts { gap: 14px 24px; }
  .benefits__grid, .catalog__grid, .steps__grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 14px; }
  .contacts__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .footer__bottom { flex-direction: column; }
  .order { padding: 72px 0; }
  .order__form { padding: 26px 20px; }
}

/* ===== ПОПАП: ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ ===== */
.policy { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.policy[hidden] { display: none; }
.policy__backdrop { position: absolute; inset: 0; background: rgba(38, 32, 27, 0.6); }
.policy__window {
  position: relative; width: 100%; max-width: 640px; max-height: min(82vh, 760px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--cream); color: var(--ink);
  border-radius: 14px; padding: 32px 34px 28px;
  box-shadow: 0 24px 60px rgba(38, 32, 27, 0.35);
  animation: policy-in 0.22s ease-out;
}
@keyframes policy-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.policy__close {
  position: sticky; top: 0; float: right; margin: -10px -12px 0 0;
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: var(--cream-dark); color: var(--ink);
  font-size: 24px; line-height: 1; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.policy__close:hover { background: #e8dcc8; transform: rotate(90deg); }
.policy__title { margin: 0 40px 18px 0; font-size: 24px; line-height: 1.25; color: var(--green-dark); }
.policy__body p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.policy__body a { color: var(--red); text-decoration: underline; }
.policy__body a:hover { color: var(--red-dark); }
.policy__note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--cream-dark); font-size: 13px; color: var(--ink-60); }
body.policy-open { overflow: hidden; }

@media (max-width: 560px) {
  .policy { padding: 10px; }
  .policy__window { padding: 24px 20px 20px; max-height: 88vh; }
  .policy__title { font-size: 20px; }
}
