/* ==========================================================================
   Империя Дверей — лендинг
   Палитра: тёплое дерево + графит, премиальный минимализм
   ========================================================================== */

:root {
  --bg: #0f0f12;
  --bg-soft: #16161b;
  --surface: #1c1c22;
  --line: #2a2a32;
  --text: #ececf0;
  --muted: #a3a3ad;
  --wood: #c69a5b;
  --wood-dark: #a67c3c;
  --wa: #25d366;
  --radius: 16px;
  --max: 1160px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  color: var(--wood);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 8px; }

.lead { color: var(--muted); font-size: 18px; max-width: 620px; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--wood { background: linear-gradient(135deg, var(--wood), var(--wood-dark)); color: #1a1204; }
.btn--wa { background: var(--wa); color: #04310f; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }

/* Header ------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 15, 18, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--wood), var(--wood-dark));
  display: grid; place-items: center; color: #1a1204; font-weight: 900;
}
.nav { display: flex; gap: 28px; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { font-weight: 700; white-space: nowrap; }
.burger { display: none; }

/* Hero --------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(198, 154, 91, .22), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(198, 154, 91, .10), transparent 60%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); margin-bottom: 20px; }
.hero h1 span { color: var(--wood); }
.hero .lead { margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 34px; margin-top: 40px; }
.stat b { display: block; font-size: 28px; color: var(--wood); }
.stat span { color: var(--muted); font-size: 14px; }

.hero__art {
  aspect-ratio: 4/5; border-radius: 22px; border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent),
    repeating-linear-gradient(90deg, #241a10, #241a10 46px, #2c2013 46px, #2c2013 92px);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero__art::after {
  content: ""; position: absolute; top: 50%; right: 20px; width: 12px; height: 46px;
  transform: translateY(-50%); border-radius: 6px;
  background: linear-gradient(135deg, var(--wood), var(--wood-dark));
  box-shadow: 0 0 0 4px rgba(0,0,0,.25);
}

/* Advantages --------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card__ico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  background: rgba(198, 154, 91, .14); color: var(--wood);
  display: grid; place-items: center; font-size: 22px;
}
.card p { color: var(--muted); font-size: 15px; }

/* Catalog ------------------------------------------------------------------ */
.cat {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 240px; border: 1px solid var(--line);
  display: flex; align-items: flex-end; padding: 24px;
  background: linear-gradient(180deg, rgba(15,15,18,.1), rgba(15,15,18,.86)),
              repeating-linear-gradient(0deg, #2a1f12, #2a1f12 30px, #33260f 30px, #33260f 60px);
}
.cat:nth-child(2) { background: linear-gradient(180deg, rgba(15,15,18,.1), rgba(15,15,18,.86)), repeating-linear-gradient(0deg, #222a2e, #222a2e 30px, #2b353a 30px, #2b353a 60px); }
.cat:nth-child(3) { background: linear-gradient(180deg, rgba(15,15,18,.1), rgba(15,15,18,.86)), repeating-linear-gradient(90deg, #2e2417, #2e2417 40px, #392c17 40px, #392c17 80px); }
.cat:nth-child(4) { background: linear-gradient(180deg, rgba(15,15,18,.1), rgba(15,15,18,.86)), radial-gradient(circle at 30% 20%, #3a2c16, #221a10); }
.cat h3 { margin-bottom: 4px; }
.cat span { color: var(--muted); font-size: 14px; }

/* Steps -------------------------------------------------------------------- */
.step { position: relative; padding-left: 60px; }
.step__num {
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--wood), var(--wood-dark)); color: #1a1204;
  display: grid; place-items: center; font-weight: 900; font-size: 18px;
}
.step p { color: var(--muted); font-size: 15px; }

/* Contact ------------------------------------------------------------------ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact__list { list-style: none; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list .ico { color: var(--wood); font-size: 20px; }
.contact__list b { display: block; }
.contact__list span { color: var(--muted); font-size: 14px; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.form input, .form textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; color: var(--text); font-size: 15px; font-family: inherit;
}
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--wood); }
.form .consent { font-size: 12px; color: var(--muted); }
.form .consent a { color: var(--wood); }

/* Footer ------------------------------------------------------------------- */
.footer { background: #0b0b0e; border-top: 1px solid var(--line); padding: 56px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; margin-bottom: 32px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 16px; }
.footer a { color: var(--muted); display: block; margin-bottom: 10px; font-size: 15px; }
.footer a:hover { color: var(--text); }
.footer__legal { border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.footer__legal b { color: var(--text); }

/* Legal pages -------------------------------------------------------------- */
.legal { max-width: 820px; margin: 0 auto; padding: 60px 20px 90px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 34px; }
.legal h2 { font-size: 22px; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--wood); }
.legal .back { display: inline-block; margin-bottom: 30px; color: var(--wood); font-weight: 700; }

/* WhatsApp float ----------------------------------------------------------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; color: #04310f; box-shadow: 0 10px 30px rgba(37,211,102,.4);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav, .header__phone { display: none; }
  .hero__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; aspect-ratio: 16/10; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .hero__stats { flex-wrap: wrap; gap: 20px; }
  .section { padding: 60px 0; }
}
