/* ============================================================
   Прайм Паркет — фирменная стилистика
   Основа — дизайн-система primeparket.com:
   Lora (заголовки) + Outfit (текст) + Caveat (рукописный акцент),
   brown-dark #2C211B, warm-grey #F3EFE6, kraft #B0996F, sale #B4442F
   ============================================================ */

:root {
  --bg: #F3EFE6;
  --dark: #2C211B;
  --ink: #2C211B;
  --accent: #B4442F;
  --accent-hover: #933520;
  --muted: #6B6157;
  --line: #E2DCCE;
  --card: #FFFFFF;
  --radius: 12px;
  --radius-s: 4px;
  --maxw: 1200px;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", Roboto, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Типографика ─────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 720px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--dark); color: #F3EEE6; }
.section--dark .lead { color: #B9B0A2; }
.section--dark h2, .section--dark h3 { color: #F3EEE6; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 16px; }

/* ── Кнопки ──────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn--primary { background: var(--dark); color: #fff; }
.btn--primary:hover { background: #4A382C; }

.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.btn--light { border-color: rgba(255,255,255,0.5); color: #F3EEE6; }
.btn--light:hover { background: #F3EEE6; color: var(--dark); }

/* ── Шапка ───────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

.header__phone {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header__phone:hover { color: var(--accent); }

.burger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
}

/* ── Hero ────────────────────────────────────── */

.hero {
  background: var(--dark);
  color: #F3EEE6;
  padding: 120px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* тёплая «деревянная» фактура справа */
  content: "";
  position: absolute;
  inset: 0 0 0 55%;
  background:
    repeating-linear-gradient(100deg, rgba(176,153,111,0.15) 0 3px, transparent 3px 26px),
    repeating-linear-gradient(87deg, rgba(176,153,111,0.12) 0 2px, transparent 2px 34px),
    linear-gradient(120deg, transparent, rgba(176,153,111,0.22));
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 { color: #fff; max-width: 760px; margin-bottom: 24px; }
.hero .lead { color: #C9C0B1; margin-bottom: 40px; }

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Полоса доверия ─────────────────────────── */

.trust {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #F3EEE6;
  padding: 32px 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust__num {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.trust__label { font-size: 14px; color: #B9B0A2; margin-top: 4px; }

/* ── Карточки категорий ─────────────────────── */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.cat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-s);
  background: linear-gradient(135deg, #EFE3D2, #E2C9A6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.cat-card h3 { font-size: 21px; }
.cat-card p { font-size: 15px; color: var(--muted); }
.cat-card__link {
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

/* ── Выгоды ──────────────────────────────────── */

.benefit {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.benefit__num {
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--accent);
  font-weight: 700;
}
.benefit h3 { font-size: 20px; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: 16px; }

/* ── Шаги ────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
}
.step__num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  padding: 6px 12px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; color: #B9B0A2; }

/* ── Оффер-блок ─────────────────────────────── */

.offer {
  background: linear-gradient(120deg, #EFE3D2, #E8D3B4);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.offer h2 { margin-bottom: 16px; }
.offer p { color: #5C5142; max-width: 520px; }
.offer__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* ── Акции ───────────────────────────────────── */

.promo-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
}
.promo-card__img {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(100deg, rgba(176,153,111,0.18) 0 4px, transparent 4px 30px),
    linear-gradient(135deg, #2A2622, #4A3A28);
}
.promo-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.promo-card__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.promo-card h3 { font-size: 19px; }
.promo-card p { font-size: 15px; color: var(--muted); }
.promo-card a { margin-top: auto; font-weight: 600; color: var(--accent); text-decoration: none; font-size: 15px; }

/* ── Отзывы ──────────────────────────────────── */

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.review__stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 16px; }
.review p { font-size: 16px; margin-bottom: 20px; }
.review__author { font-size: 14px; color: var(--muted); }

/* ── Статьи ──────────────────────────────────── */

.article-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.article-card:hover { border-color: var(--accent); }
.article-card__tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.article-card h3 { font-size: 19px; margin: 10px 0; }
.article-card p { font-size: 15px; color: var(--muted); }

/* ── Формы и CTA ─────────────────────────────── */

.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 640px;
}
.cta-form input, .cta-form textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  font: inherit;
  background: var(--card);
  color: var(--ink);
}
.cta-form input:focus, .cta-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.cta-form textarea { grid-column: 1 / -1; resize: vertical; min-height: 110px; }
.cta-form .btn { grid-column: 1 / -1; border: 0; }
.cta-form__note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }

/* ── Футер ───────────────────────────────────── */

.footer {
  background: var(--dark);
  color: #B9B0A2;
  padding: 64px 0 32px;
  font-size: 15px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 { color: #F3EEE6; font-size: 15px; margin-bottom: 16px; font-family: var(--font-body); }
.footer a { color: #B9B0A2; text-decoration: none; display: block; margin-bottom: 8px; }
.footer a:hover { color: var(--accent); }
.footer__bottom { padding-top: 24px; font-size: 13px; color: #7C7468; }
.footer .logo { color: #F3EEE6; margin-bottom: 12px; display: block; }

/* ── Хлебные крошки и hero внутренних страниц ── */

.page-hero {
  background: var(--dark);
  color: #F3EEE6;
  padding: 72px 0 56px;
}
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero .lead { color: #C9C0B1; }

.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.page-hero .breadcrumbs { color: #8F8778; }
.page-hero .breadcrumbs a { color: #8F8778; }

/* ── Контакты ────────────────────────────────── */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-block { border-top: 1px solid var(--line); padding: 24px 0; }
.contact-block h3 { font-size: 17px; margin-bottom: 8px; font-family: var(--font-body); font-weight: 700; }
.contact-block p, .contact-block a { color: var(--muted); font-size: 16px; }
.contact-block a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-block a:hover { color: var(--accent); }

.map-placeholder {
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, rgba(176,153,111,0.10) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(176,153,111,0.10) 0 1px, transparent 1px 40px),
    linear-gradient(135deg, #EFE7DA, #E3D5BE);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #7A6A50;
  font-weight: 600;
  padding: 24px;
}

/* ── О нас ───────────────────────────────────── */

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 14px; color: var(--muted); margin-top: 6px; }

.prose { max-width: 760px; }
.prose p { margin-bottom: 20px; color: #3D3831; }
.prose h2 { margin: 48px 0 20px; }
.prose ul { margin: 0 0 20px 22px; }
.prose li { margin-bottom: 10px; color: #3D3831; }

.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.brand-chip {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  background: var(--card);
}

/* ── Адаптив ─────────────────────────────────── */

@media (max-width: 960px) {
  .grid-3, .reviews { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .offer { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 64px; }

  .nav, .header__phone { display: none; }
  .burger { display: block; }

  .nav--open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav--open a { padding: 12px 0; border-bottom: 1px solid var(--line); }

  .trust__grid, .stats-band { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grid-3, .reviews, .steps { grid-template-columns: 1fr; }
  .cta-form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .benefit { grid-template-columns: 44px 1fr; }
}
