:root {
  --ink: #20211d;
  --muted: #6e7169;
  --line: #dedbd2;
  --paper: #f7f5ef;
  --white: #fffdfa;
  --accent: #436457;
  --accent-2: #b26b4d;
  --radius: 8px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; object-fit: cover; }
main { min-height: 70vh; }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(18px, 4vw, 52px); background: rgba(247,245,239,.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; background: var(--ink); color: var(--white); border-radius: 50%; font-size: 13px; }
.nav { display: flex; gap: 22px; align-items: center; color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--ink); }
.icon-btn { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; min-width: 38px; height: 38px; cursor: pointer; }

.hero { position: relative; min-height: 78vh; display: grid; align-items: end; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; filter: brightness(.72); }
.hero-copy { position: relative; max-width: 760px; padding: 10vh clamp(20px, 6vw, 78px); color: var(--white); }
.hero h1 { margin: 8px 0 18px; font-size: clamp(42px, 7vw, 88px); line-height: .98; letter-spacing: 0; }
.hero p { font-size: 19px; max-width: 620px; line-height: 1.6; }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--accent-2); font-weight: 800; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button, button.primary, a.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--ink); font-weight: 700; cursor: pointer; }
.button.primary, button.primary, a.primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.button.ghost { background: rgba(255,255,255,.14); color: inherit; border-color: currentColor; }
.button.small { min-height: 36px; padding: 0 12px; font-size: 14px; }

.section { padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 52px); max-width: 1280px; margin: 0 auto; }
.intro-grid, .lead-section, .product-detail { display: grid; grid-template-columns: .85fr 1.4fr; gap: clamp(28px, 6vw, 74px); align-items: start; }
.section h2, .band h2 { margin: 0; font-size: clamp(30px, 4vw, 54px); line-height: 1.04; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.cards { display: grid; gap: 22px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.image-card img, .product-card img { width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; margin-bottom: 16px; }
.card h3 { margin: 0 0 10px; font-size: 22px; }
.card p { color: var(--muted); line-height: 1.55; }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.product-row strong, .price { font-size: 24px; }

.band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; padding: clamp(48px, 7vw, 88px) clamp(18px, 4vw, 52px); background: #e8ece6; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features p { margin: 0; padding: 22px; background: rgba(255,255,255,.55); border-radius: var(--radius); line-height: 1.55; }
.page-title { padding: clamp(52px, 8vw, 110px) clamp(18px, 4vw, 52px) 34px; max-width: 980px; }
.page-title h1 { margin: 0 0 18px; font-size: clamp(40px, 6vw, 76px); line-height: 1; }
.page-title p { color: var(--muted); line-height: 1.65; font-size: 18px; }
.catalog-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.filters { display: grid; gap: 8px; align-content: start; }
.filters a { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.filters a.active { background: var(--ink); color: var(--white); }
.product-detail { padding: clamp(42px, 7vw, 82px) clamp(18px, 4vw, 52px); max-width: 1180px; margin: 0 auto; }
.product-detail > img { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius); }
.product-detail h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1; margin: 0 0 18px; }
.product-detail p { color: var(--muted); line-height: 1.65; font-size: 18px; }
.article-view { max-width: 860px; margin: 0 auto; padding: 48px 18px 90px; }
.article-view > img { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); margin-bottom: 28px; }
.article-view h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; }
.lead, .content { color: var(--muted); font-size: 19px; line-height: 1.75; }

.form { display: grid; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.form label { display: grid; gap: 7px; color: var(--muted); font-size: 14px; }
.form input, .form textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; min-height: 42px; padding: 10px; font: inherit; background: #fff; }
.cart-panel { position: fixed; top: 0; right: 0; width: min(420px, 100vw); height: 100vh; z-index: 20; padding: 20px; background: var(--white); border-left: 1px solid var(--line); transform: translateX(100%); transition: .22s ease; overflow: auto; }
.cart-panel.open { transform: translateX(0); }
.cart-head, .cart-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cart-line { border-bottom: 1px solid var(--line); padding: 12px 0; }
.cart-line span { display: grid; }
.cart-line small, .muted { color: var(--muted); }
.footer { display: flex; justify-content: space-between; gap: 30px; padding: 38px clamp(18px, 4vw, 52px); border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 860px) {
  .topbar, .footer, .section-head { align-items: flex-start; flex-direction: column; }
  .nav { flex-wrap: wrap; gap: 12px; }
  .hero { min-height: 72vh; }
  .intro-grid, .lead-section, .product-detail, .band, .catalog-layout { grid-template-columns: 1fr; }
  .cards.three, .cards.two, .features { grid-template-columns: 1fr; }
}
