/* ============================================================
   Дубрава — мебельная фабрика. Тёплая витрина, массив дуба.
   ============================================================ */

/* Manrope — основной текст (кириллица + латиница) */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/static/fonts/manrope-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/static/fonts/manrope-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/static/fonts/manrope-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/static/fonts/manrope-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/static/fonts/manrope-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/static/fonts/manrope-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("/static/fonts/manrope-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("/static/fonts/manrope-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2205, U+FEFF, U+FFFD;
}

/* Playfair Display — заголовки (кириллица + латиница) */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/static/fonts/playfair-display-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/static/fonts/playfair-display-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/static/fonts/playfair-display-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/static/fonts/playfair-display-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2205, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("/static/fonts/playfair-display-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("/static/fonts/playfair-display-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #e8a13c;
  --accent-hover: #f4b45c;
  --brand: #c77b4d;
  --bg-page: #191411;
  --bg-card: #241c16;
  --bg-elevated: #2b211a;
  --text-primary: #f5ede2;
  --text-muted: #c8b6a4;
  --line: rgba(232, 161, 60, 0.16);
  --line-strong: rgba(232, 161, 60, 0.42);
  --radius: 0.7rem;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 72rem;
}

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

html { scroll-behavior: smooth; }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

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

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(25, 20, 17, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
}
.nav__mark {
  display: inline-flex;
  color: var(--accent);
}
.nav__links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a { color: var(--text-muted); transition: color 0.2s ease; }
.nav__links a:hover { color: var(--text-primary); }
.nav__phone {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.nav__phone:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(25,20,17,0.55) 0%, rgba(25,20,17,0.35) 45%, rgba(25,20,17,0.92) 100%),
    linear-gradient(100deg, rgba(25,20,17,0.72) 0%, rgba(25,20,17,0.15) 55%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 7rem;
  padding-bottom: 4.5rem;
  width: 100%;
}
.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 16ch;
  margin-bottom: 1.5rem;
}
.hero__tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 2.25rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn--accent {
  background: var(--accent);
  color: #241c16;
}
.btn--accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(232, 161, 60, 0.28);
}
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--wide { width: 100%; }

/* ---------- Facts ---------- */
.facts {
  padding: 2.5rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.fact { display: flex; flex-direction: column; gap: 0.25rem; }
.fact__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.fact__label { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Section head ---------- */
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head--left { margin-bottom: 2rem; }
.section-head__kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-head__title { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 0.75rem; }
.section-head__lead { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Catalog ---------- */
.catalog { padding: 5rem 1.5rem; }
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.card__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(232, 161, 60, 0.16), transparent 55%),
    linear-gradient(160deg, #2f241b 0%, #221a13 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.18' numOctaves='3' seed='7'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23w)'/%3E%3C/svg%3E");
}
.card__icon {
  width: 52px;
  height: 52px;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  position: relative;
  z-index: 1;
}
.card__index {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.6;
}
.card__body { padding: 1.5rem; }
.card__name {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.card__price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.card__from {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
}
.card__desc { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- About ---------- */
.about {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5rem 0;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about__figure {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.about__figure:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.about__figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about__caption {
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
}
.about__text { color: var(--text-muted); margin-bottom: 1.5rem; }
.about__facts {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-left: 0;
}
.about__facts li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-primary);
}
.about__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.about__facts strong { color: var(--accent); font-weight: 600; }
.about__sizes {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg-elevated);
}
.about__sizes-title { font-weight: 600; margin-bottom: 0.75rem; }
.about__sizes-scheme {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.about__sizes-scheme span:nth-child(odd) {
  padding: 0.35rem 0.6rem;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  color: var(--accent);
}
.about__sizes-note { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Lead form ---------- */
.lead { padding: 5rem 1.5rem; }
.lead__card {
  max-width: 44rem;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.lead__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lead__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(200, 182, 164, 0.55); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 161, 60, 0.2);
}
.field--invalid input { border-color: #d9804a; }
.field__error {
  font-size: 0.82rem;
  color: #e8a56a;
}
.lead__submit { grid-column: 1 / -1; }
.lead__submit-hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
.lead__status {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.lead__status-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #241c16;
  font-size: 1.5rem;
  font-weight: 700;
}
.lead__status h3 { margin-bottom: 0.5rem; }
.lead__status p { color: var(--text-muted); }

/* ---------- Contacts ---------- */
.contacts {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  padding: 5rem 0;
}
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contacts__list { list-style: none; display: grid; gap: 1.25rem; }
.contacts__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  margin-top: 0.2rem;
}
.contacts__item strong { color: var(--text-primary); }
.contacts__item span { color: var(--text-muted); }
.contacts__item a:hover { color: var(--accent); }
.contacts__route {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contacts__route h3 { margin-bottom: 1rem; font-size: 1.4rem; }
.contacts__route p { color: var(--text-muted); }
.contacts__route p + p { margin-top: 1rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}
.footer__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.footer__note { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .catalog__grid { grid-template-columns: 1fr 1fr; }
  .about__grid,
  .contacts__grid { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .catalog__grid { grid-template-columns: 1fr; }
  .lead__form { grid-template-columns: 1fr; }
  .lead__card { padding: 1.5rem; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 78vh; }
  .nav__phone { display: none; }
  .footer__grid { flex-direction: column; text-align: center; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
