/* Ретромебель — ретромебель.рф. Plain CSS, no build step, no JS. */

/* Comfortaa (OFL) 700 — self-hosted, same files as newmood/static/fonts. */
@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/comfortaa-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/comfortaa-700-latin.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 {
  --bg: #f5ecdd;
  --bg-alt: #ede0cb;
  --surface: #fbf6ee;
  --ink: #2b1f17;
  --ink-soft: #5c4a3c;
  --line: #d8c7ad;
  --mustard: #d49a2a;
  --teal: #2f6f6a;
  --terracotta: #c0603c;
  --terracotta-deep: #9c4a2c;
  --wood: #8a5a36;
  --olive: #7b7a3a;
  --sun: #e8b44c;
  --rug: #e3d3b8;
  --on-accent: #fbf6ee;
  --radius: 22px;
  --shadow: 0 1px 0 rgba(43, 31, 23, 0.06), 0 12px 32px -18px rgba(43, 31, 23, 0.35);
  --display: "Comfortaa", "Trebuchet MS", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1611;
    --bg-alt: #261d16;
    --surface: #2a2019;
    --ink: #f2e7d6;
    --ink-soft: #c9b8a2;
    --line: #45372b;
    --mustard: #e4ad45;
    --teal: #5aa39c;
    --terracotta: #d9774f;
    --terracotta-deep: #b25d3a;
    --wood: #b07a4c;
    --olive: #a5a35a;
    --sun: #b98a33;
    --rug: #33281f;
    --on-accent: #1d1611;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 14px 34px -18px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 10px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand small {
  font-size: 14px;
  color: var(--terracotta);
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--ink);
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 56px 0 72px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mustard);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(40px, 6.4vw, 72px);
}

h1 .accent {
  color: var(--terracotta);
}

.lead {
  margin: 22px 0 30px;
  max-width: 34em;
  font-size: 19px;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal);
  color: var(--on-accent);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}

.hero-art {
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 860px) {
  .hero {
    padding: 36px 0 56px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-art {
    max-width: 420px;
    justify-self: center;
    order: -1;
  }
}

/* Illustration palette (classes so dark mode follows the tokens) */
.i-sun { fill: var(--sun); opacity: 0.55; }
.i-rug { fill: var(--rug); }
.i-floor { stroke: var(--line); }
.i-back { fill: var(--terracotta); }
.i-seat { fill: var(--terracotta-deep); }
.i-wood { fill: var(--wood); }
.i-lamp-pole { stroke: var(--ink); }
.i-lamp-shade { fill: var(--mustard); }
.i-teal { fill: var(--teal); }
.i-olive { fill: var(--olive); }
.i-ink { fill: var(--ink); }
.i-surface { fill: var(--surface); }

/* Sections */
section {
  scroll-margin-top: 16px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 40em;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 42px);
}

.section-head p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card svg {
  width: 56px;
  height: 56px;
  display: block;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 20px;
}

.card p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.pill {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--bg-alt);
  color: var(--ink-soft);
}

.reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 860px) {
  .reasons {
    grid-template-columns: 1fr;
  }
}

.reasons li {
  border-top: 4px solid var(--mustard);
  padding-top: 18px;
}

.reasons li:nth-child(2) {
  border-top-color: var(--teal);
}

.reasons li:nth-child(3) {
  border-top-color: var(--terracotta);
}

.reasons h3 {
  font-size: 22px;
}

.reasons p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.opening {
  padding: 72px 0 80px;
}

.opening-box {
  border-radius: calc(var(--radius) + 8px);
  background: var(--teal);
  color: var(--on-accent);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.opening-box h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}

.opening-box p {
  margin: 12px 0 0;
  max-width: 36em;
  opacity: 0.9;
}

.opening-box svg {
  width: 120px;
  height: 120px;
}

@media (max-width: 640px) {
  .opening-box {
    grid-template-columns: 1fr;
  }
  .opening-box svg {
    display: none;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  font-size: 14px;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* 404 */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.notfound .code {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(72px, 16vw, 140px);
  line-height: 1;
  color: var(--terracotta);
}

.notfound p {
  color: var(--ink-soft);
  margin: 16px 0 28px;
}
