:root {
  --ink: #17324d;
  --muted: #64748b;
  --paper: #fffdf8;
  --cream: #f7f1e5;
  --gold: #e5a62f;
  --gold-dark: #b87312;
  --green: #187b5b;
  --line: #e4dac7;
  --shadow: 0 16px 45px rgba(64, 45, 22, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  background: #17324d;
  color: white;
  border-bottom: 4px solid var(--gold);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.brand small { display: block; font-size: 12px; font-weight: 600; opacity: 0.78; letter-spacing: 0.03em; }
.nav-link { text-decoration: none; font-weight: 700; font-size: 14px; opacity: 0.92; }

.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(circle at 85% 20%, rgba(229, 166, 47, 0.32), transparent 28%),
    linear-gradient(135deg, #fff8e8, #f7f1e5 48%, #edf5f1);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  color: #81500a;
  background: #ffe8b5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2 { line-height: 1.12; letter-spacing: -0.035em; margin: 0; }
.hero h1 { max-width: 780px; margin-top: 18px; font-size: clamp(38px, 7vw, 68px); }
.hero p { max-width: 680px; margin: 18px 0 0; color: #4d6071; font-size: clamp(17px, 2.4vw, 21px); }

.catalog { padding: 54px 0 80px; }
.catalog-top { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.catalog-top h2 { font-size: clamp(28px, 4vw, 40px); }
.catalog-top p { margin: 8px 0 0; color: var(--muted); }
.search {
  width: min(350px, 100%);
  padding: 13px 16px;
  border: 1px solid #cfc4b3;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font: inherit;
  box-shadow: 0 5px 18px rgba(64, 45, 22, 0.06);
}
.search:focus { outline: 3px solid rgba(229, 166, 47, 0.25); border-color: var(--gold-dark); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}
.filter[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(64, 45, 22, 0.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--cream); }
.card-body { padding: 18px; }
.category { margin: 0 0 7px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.product-card h3 { margin: 0; font-size: 23px; line-height: 1.22; }
.price { margin: 9px 0 16px; color: var(--gold-dark); font-size: 17px; font-weight: 800; }
.card-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 800; text-decoration: none; }
.card-link::after { content: "→"; transition: transform .18s ease; }
.card-link:hover::after { transform: translateX(4px); }
.empty { display: none; padding: 28px; background: var(--cream); border-radius: 16px; text-align: center; color: var(--muted); }

.product-main { padding: 46px 0 78px; }
.back { display: inline-flex; margin-bottom: 22px; color: var(--muted); font-weight: 700; text-decoration: none; }
.back:hover { color: var(--ink); }
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.product-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.product-info { padding-top: 12px; }
.product-info h1 { margin-top: 14px; font-size: clamp(38px, 6vw, 62px); }
.product-code { margin: 10px 0 0; color: var(--muted); font-weight: 700; }
.product-price { margin: 24px 0; color: var(--gold-dark); font-size: clamp(23px, 3vw, 30px); font-weight: 850; }
.description { color: #455a6e; font-size: 17px; }
.seller { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.seller span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.seller strong { font-size: 20px; }
.wa-button {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding: 15px 20px;
  border-radius: 13px;
  background: #1eaa61;
  color: white;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(30, 170, 97, .24);
}
.wa-button:hover { background: #16864b; }

.footer { padding: 28px 0; background: #11283c; color: rgba(255,255,255,.78); text-align: center; font-size: 14px; }
.footer strong { color: white; }

@media (max-width: 820px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-layout { grid-template-columns: 1fr; }
  .product-info { padding-top: 0; }
}
@media (max-width: 580px) {
  .header-inner { min-height: 64px; }
  .brand { font-size: 15px; }
  .nav-link { display: none; }
  .hero { padding: 52px 0 46px; }
  .catalog { padding-top: 40px; }
  .catalog-top { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: 118px 1fr; border-radius: 16px; }
  .product-card img { height: 100%; min-height: 170px; }
  .card-body { padding: 16px; }
  .product-card h3 { font-size: 20px; }
  .product-main { padding-top: 26px; }
  .product-photo { border-radius: 18px; }
}
