/* Дубрава — dark warm wood. Palette from the design brief. */
:root {
  --accent: #d9a05b;
  --accent-strong: #c88a3e;
  --bg-card: #231c17;
  --bg-page: #171310;
  --bg-page-2: #1c1713;
  --brand: #a3562f;
  --text-muted: #c5b7aa;
  --text-primary: #f5eee6;
  --edge: #4a3d31;
  --font-head: "Prata", "Onest", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .brand-name {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--text-primary);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

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

.ico { width: 20px; height: 20px; flex: none; }

/* Focus visibility (WCAG 2.2 AA) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #171310;
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 19, 16, 0.92);
  border-bottom: 1px solid var(--edge);
  backdrop-filter: none;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-primary); }
.brand:hover { color: var(--text-primary); }
.brand-mark { width: 26px; height: 26px; color: var(--accent); }
.brand-name { font-size: 22px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav-link { color: var(--text-muted); font-weight: 500; font-size: 15px; }
.nav-link:hover { color: var(--text-primary); }
.nav-link.is-active { color: var(--accent); }
.header-cta { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.btn-accent {
  background: var(--accent);
  color: #1c1208;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #1c1208; }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--edge);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 17px 30px; font-size: 17px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--edge);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(23, 19, 16, 0.92) 0%, rgba(23, 19, 16, 0.55) 45%, rgba(23, 19, 16, 0.35) 100%);
}
.hero-inner { position: relative; max-width: 840px; }
.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  font-weight: 600;
}
.hero-title {
  font-size: clamp(36px, 6vw, 60px);
  margin: 0 0 20px;
  max-width: 16ch;
}
.hero-tagline { font-size: 20px; color: var(--text-muted); margin: 0 0 12px; }
.hero-sub { font-size: 17px; color: var(--text-muted); margin: 0 0 32px; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--edge); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-title { font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; }
.section-lead { font-size: 17px; color: var(--text-muted); margin: 0; }
.section-cta { margin-top: 48px; display: flex; justify-content: center; }

.page-hero { padding: 72px 0 0; }
.page-title { font-size: clamp(32px, 5vw, 48px); margin: 0 0 14px; }
.page-lead { font-size: 18px; color: var(--text-muted); margin: 0 0 20px; max-width: 60ch; }

/* ---------- Catalog anchors ---------- */
.anchors { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 48px; }
.anchor {
  padding: 8px 16px;
  border: 1px solid var(--edge);
  border-radius: 2px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
}
.anchor:hover { border-color: var(--accent); color: var(--accent); }

.category { margin-bottom: 56px; }
.category-title { font-size: 24px; margin: 0 0 24px; color: var(--accent); }

/* ---------- Card (signature: furniture front) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.card {
  background: var(--bg-card);
  border: 2px solid var(--edge);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: #2a211a; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 22px 22px 14px; flex: 1; }
.card-cat {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.card-title { font-size: 22px; margin: 0 0 8px; }
.card-desc { color: var(--text-muted); font-size: 15px; margin: 0 0 16px; }
.card-price { font-size: 26px; font-family: var(--font-head); margin: 0; color: var(--text-primary); }
.card-price-note { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
.card-source {
  margin: 0;
  padding: 12px 22px;
  border-top: 1px solid var(--edge);
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Steps timeline ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--edge);
  position: relative;
}
.step:last-child { border-bottom: none; }
.step-num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--edge);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  color: var(--text-muted);
}
.step.is-current .step-num { border-color: var(--accent); color: var(--accent); }
.step-title { font-size: 20px; margin: 0 0 6px; }
.step-desc { color: var(--text-muted); margin: 0; font-size: 15px; }

/* ---------- Lead form ---------- */
.lead-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.lead-narrow { max-width: 620px; }
.lead-copy .section-title { margin-bottom: 18px; }
.lead-points { list-style: none; margin: 24px 0 0; padding: 0; }
.lead-points li {
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.lead-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}
.lead-card {
  background: var(--bg-card);
  border: 2px solid var(--edge);
  border-radius: 2px;
  padding: 32px;
}
.lead-form { display: flex; flex-direction: column; gap: 20px; }
.form-banner {
  background: rgba(163, 86, 47, 0.16);
  border: 1px solid var(--brand);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 2px;
  font-size: 15px;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.field input {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-primary);
  background: #171310;
  border: 1px solid var(--edge);
  border-radius: 2px;
  padding: 16px;
  width: 100%;
}
.field input::placeholder { color: #7a6f64; }
.field input:focus { border-color: var(--accent); outline: none; }
.field input[aria-invalid="true"] { border-color: #d9534f; }
.field-error { color: #e0857f; font-size: 14px; margin: 0; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-free { color: var(--text-muted); font-size: 14px; }
.form-note { color: var(--text-muted); font-size: 14px; margin: 0; }
.form-legal { color: var(--text-muted); font-size: 12px; margin: 0; }

/* ---------- Contacts ---------- */
.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--edge);
  border-radius: 2px;
  padding: 24px;
}
.contact-item .ico { color: var(--accent); width: 24px; height: 24px; margin-top: 2px; }
.contact-label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 6px; font-family: var(--font-body); font-weight: 600; }
.contact-value { font-size: 20px; color: var(--text-primary); font-family: var(--font-head); }
a.contact-value:hover { color: var(--accent); }
.contact-note { display: block; color: var(--text-muted); font-size: 13px; margin-top: 6px; }

/* ---------- Success ---------- */
.success { text-align: center; }
.success-inner { max-width: 640px; }
.success-check {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #1c1208;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-check .ico { width: 40px; height: 40px; }
.success-id { color: var(--accent); font-family: var(--font-head); font-size: 20px; margin: 0 0 12px; }
.success-actions { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--edge); padding: 64px 0 32px; background: #140f0c; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand-name { font-size: 24px; }
.footer-tag { color: var(--text-muted); margin: 12px 0 0; max-width: 32ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-title { font-size: 15px; margin: 0 0 6px; color: var(--text-primary); font-family: var(--font-body); font-weight: 600; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--accent); }
.footer-phone { font-size: 18px; }
.footer-muted { color: var(--text-muted); font-size: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--edge);
  padding-top: 24px;
  color: #8b7f72;
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .lead-layout { grid-template-columns: 1fr; gap: 32px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { gap: 14px; }
  .header-cta { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .hero { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { height: 60px; }
  .nav-link { font-size: 13px; }
  .brand-name { font-size: 18px; }
  .hero-actions .btn { width: 100%; }
  .card-price { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
