:root {
  --ink: #202426;
  --muted: #69706d;
  --paper: #faf8f4;
  --panel: #ffffff;
  --line: #ded9cf;
  --accent: #2f6f62;
  --accent-dark: #1f4d44;
  --clay: #bd7654;
  --gold: #b08b32;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(250, 248, 244, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { font-size: 1.35rem; font-weight: 800; letter-spacing: 0; }
nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--muted); }
nav a:hover { color: var(--ink); }
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.cart-link.has-items::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -9px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d72626;
  box-shadow: 0 0 0 2px var(--paper);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.button.secondary { background: var(--clay); }
.button.small { min-height: 36px; padding: 0 14px; font-size: .92rem; }
.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
  padding: 54px clamp(18px, 5vw, 72px) 44px;
  background: linear-gradient(180deg, #f5f0e8, #faf8f4);
}
.hero h1 {
  max-width: 780px;
  margin: 0 0 20px;
  font-size: clamp(2.6rem, 6vw, 6.7rem);
  line-height: .96;
  letter-spacing: 0;
}
.hero p { max-width: 620px; color: var(--muted); font-size: 1.12rem; }
.eyebrow { text-transform: uppercase; font-weight: 800; color: var(--accent-dark); font-size: .78rem; letter-spacing: .08em; }
.hero-scene {
  position: relative;
  min-height: 480px;
  border: 1px solid #d6cec0;
  background:
    linear-gradient(90deg, transparent 49%, rgba(32,36,38,.05) 50%, transparent 51%),
    linear-gradient(180deg, #eee4d6 0 58%, #d9c6a5 58% 100%);
  overflow: hidden;
}
.show-sofa {
  position: absolute; left: 12%; bottom: 72px; width: 58%; height: 118px;
  background: var(--accent); border-radius: 14px 14px 8px 8px;
  box-shadow: 0 28px 0 #224f48;
}
.show-sofa:before, .show-sofa:after {
  content: ""; position: absolute; top: -44px; width: 42%; height: 64px; background: #438879; border-radius: 12px 12px 0 0;
}
.show-sofa:before { left: 5%; }
.show-sofa:after { right: 5%; }
.show-table {
  position: absolute; right: 9%; bottom: 82px; width: 180px; height: 24px; background: var(--clay);
}
.show-table:before, .show-table:after { content: ""; position: absolute; top: 24px; width: 14px; height: 90px; background: #7e4c32; }
.show-table:before { left: 18px; }
.show-table:after { right: 18px; }
.lamp { position: absolute; right: 17%; top: 48px; width: 94px; height: 62px; background: var(--gold); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.lamp:after { content: ""; position: absolute; left: 45px; top: 62px; width: 5px; height: 142px; background: #655241; }
.wall-art { position: absolute; left: 11%; top: 58px; width: 138px; height: 104px; border: 10px solid #33413d; background: #d8b18f; }
.plant { position: absolute; right: 8%; bottom: 48px; width: 70px; height: 90px; background: #264c3b; clip-path: polygon(45% 100%, 15% 20%, 38% 48%, 50% 0, 62% 48%, 86% 20%, 58% 100%); }
.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.intro-band div { background: #fff; padding: 24px clamp(18px, 5vw, 72px); }
.intro-band strong { display: block; }
.intro-band span { color: var(--muted); }
.shop, .content, .cart-page, .auth-page { padding: 58px clamp(18px, 5vw, 72px); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.section-title h1, .section-title h2, .content h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  font: inherit;
  background: white;
  color: var(--ink);
}
.filters input { width: min(320px, 100%); }
.filters select { width: 190px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}
.product-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; background: #eee7dc; }
.product-card div { padding: 20px; }
.product-card h3 { margin: 0 0 10px; font-size: 1.32rem; line-height: 1.15; }
.product-card p { color: var(--muted); margin: 0 0 18px; font-size: 1.02rem; }
.product-card h3 a:hover { color: var(--accent-dark); }
.product-link { display: block; }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; }
.price { color: var(--ink); font-size: 1.34rem; font-weight: 800; }
.product-actions { display: grid; gap: 10px; align-items: start; justify-items: start; margin-top: 4px; }
.product-actions .button { width: 100%; max-width: 190px; }
.product-page { padding: 42px clamp(18px, 5vw, 72px) 70px; }
.back-link { display: inline-flex; margin-bottom: 22px; color: var(--muted); font-weight: 700; }
.back-link:hover { color: var(--ink); }
.product-detail {
  display: grid;
  grid-template-columns: minmax(360px, 1.2fr) minmax(300px, .8fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}
.product-media {
  background: #eee7dc;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.product-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; display: block; }
.product-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px; background: white; border: 1px solid var(--line); border-top: 0; }
.product-gallery a { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.product-gallery img { aspect-ratio: 1 / 1; }
.product-info {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
}
.product-info h1 { margin: 0 0 14px; font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: 1; }
.lead { color: var(--muted); font-size: 1.16rem; margin: 0 0 24px; }
.spec-list { display: grid; gap: 1px; margin: 0 0 26px; background: var(--line); border: 1px solid var(--line); }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; background: white; padding: 14px 0; }
.spec-list dt { padding-left: 16px; color: var(--muted); font-weight: 700; }
.spec-list dd { margin: 0; padding-right: 16px; text-align: right; font-weight: 800; }
.fineprint { color: var(--muted); font-size: .94rem; }
.content { max-width: 880px; }
.content p { font-size: 1.08rem; color: var(--muted); }
.notice { padding: 14px 16px; background: #f2ead8; border: 1px solid #dfcda5; border-radius: 6px; color: #5d4a22; }
.notice.error { background: #fff1f1; border-color: #c82d2d; color: #9f1d1d; font-weight: 800; }
.notice:empty { display: none; }
.checkbox-row { display: flex; grid-template-columns: none; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; }
.prices-page { max-width: 1120px; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0 24px;
}
.price-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  padding: 22px;
}
.price-card-image {
  display: block;
  width: calc(100% + 44px);
  max-width: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: -22px -22px 20px;
  background: #eee7dc;
  border-bottom: 1px solid var(--line);
}
.price-card span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .74rem;
  letter-spacing: .08em;
}
.price-card strong {
  display: block;
  margin: 8px 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}
.price-card h2, .price-note h2 { margin: 0 0 10px; }
.price-card p, .price-note p { margin: 0; }
.price-note {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.auth-grid, .cart-layout { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 22px; align-items: start; }
.auth-panel { max-width: 520px; }
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
label { display: grid; gap: 7px; margin: 0 0 14px; font-weight: 700; }
.cart-message-column, .cart-items { display: grid; gap: 14px; }
.cart-item {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 16px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.cart-item img { width: 108px; aspect-ratio: 4 / 3; object-fit: cover; background: #eee7dc; border-radius: 6px; }
.qty { display: flex; gap: 8px; align-items: center; }
.qty input { width: 74px; }
.total { display: flex; justify-content: space-between; align-items: center; margin: 18px 0; font-size: 1.2rem; }
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
@media (max-width: 820px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero, .auth-grid, .cart-layout { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .hero-scene { min-height: 360px; }
  .intro-band { grid-template-columns: 1fr; }
  .price-grid, .price-note { grid-template-columns: 1fr; }
  .section-title { align-items: stretch; flex-direction: column; }
  .cart-item { grid-template-columns: 86px 1fr; }
  .cart-item .qty { grid-column: 1 / -1; }
}
