/* Порядок дома — mobile-first, warm home, no marketplace chrome */

:root {
  --bg: #F4EFE6;
  --card: #FFFDF8;
  --text: #2B2723;
  --muted: #6E675E;
  --line: #E3D8C8;
  --sage: #3D6B58;
  --sage-soft: #4A7D68;
  --paper: #EDE6D8;
  --header-h: 3.4rem;
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-h) + 0.6rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--sage);
}

img {
  max-width: 100%;
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(640px, calc(100% - 2rem));
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 239, 230, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0 0.65rem;
}

.wordmark {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--sage);
  border-bottom-color: var(--sage);
}

/* Hero */

.hero {
  padding: 2.4rem 0 1.4rem;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--sage);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(1.7rem, 6vw, 2.55rem);
  font-weight: 600;
  line-height: 1.2;
  max-width: 18ch;
}

.lead {
  margin: 0 0 1.1rem;
  font-size: 1.12rem;
  color: var(--text);
  max-width: 38ch;
}

.hero-note {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
}

/* Intro */

.intro {
  padding: 0.2rem 0 1.8rem;
}

.intro p {
  margin: 0 0 0.85rem;
}

.intro p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

/* Zones */

.zone {
  padding: 2.2rem 0 2.6rem;
  border-top: 1px solid var(--line);
}

.zone.alt {
  background: #efe8db;
}

.zone-label {
  margin: 0 0 0.4rem;
  color: var(--sage);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zone h2 {
  margin: 0 0 0.85rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 22ch;
}

.zone > .wrap > p {
  margin: 0 0 1rem;
  max-width: 58ch;
}

.scheme {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 1.3rem;
}

.scheme-row {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.scheme-row p {
  margin: 0;
}

.scheme-n {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: #f7f3ea;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Cards */

.cards {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.cards-inline {
  grid-template-columns: 1fr;
}

.cards-grid {
  grid-template-columns: 1fr;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-ph {
  min-height: 9.2rem;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #f7f3ea;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.05rem;
  text-align: center;
  letter-spacing: 0.01em;
}

.ph-linen { background: #6b7d6a; }
.ph-box { background: #8a6f4e; }
.ph-small { background: #6e7c8a; }
.ph-shelf { background: #5d6e5c; }
.ph-hooks { background: #7a5d4a; }
.ph-vac { background: #4f6a62; }
.ph-sink { background: #5a6f78; }
.ph-drawer { background: #7a6a4e; }

.card-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.card h3 {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.why {
  margin: 0;
  color: var(--muted);
}

.zone-tag {
  margin: 0.15rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.55rem 0.9rem;
  background: var(--sage);
  color: #f7f3ea;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
}

.btn:hover,
.btn:focus-visible {
  background: var(--sage-soft);
}

.pick-lead {
  max-width: 52ch;
}

.pick {
  background: #ebe3d4;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.8rem 0 2.4rem;
}

.disclosure {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Wider screens */

@media (min-width: 640px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0;
  }

  .hero {
    padding: 3.2rem 0 1.8rem;
  }

  .cards-inline,
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards-inline {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-inline .card:only-child,
  .cards-inline .card:first-child:nth-last-child(2),
  .cards-inline .card:first-child:nth-last-child(2) ~ .card {
    max-width: none;
  }

  .scheme {
    grid-template-columns: repeat(3, 1fr);
  }

  .scheme-row {
    grid-template-columns: 1fr;
    min-height: 100%;
  }
}

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