:root {
  --bg: #f9f7f4;
  --bg-soft: #fffdf9;
  --text: #2b2b2b;
  --muted: #6d665e;
  --accent: #d66f6f;
  --accent-hover: #bc5959;
  --line: #ece5dc;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(26, 23, 19, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 90% -10%, #f3cfa570, transparent 70%),
    radial-gradient(900px 450px at -10% 10%, #d66f6f1f, transparent 60%),
    var(--bg);
}

h1, h2, h3 {
  font-family: Prata, Georgia, serif;
  line-height: 1.2;
  margin: 0 0 16px;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(860px, calc(100% - 32px)); }
.section { padding: 64px 0; }
.soft { background: linear-gradient(180deg, #fffaf1 0%, #fffefb 100%); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  background: rgba(249, 247, 244, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.brand span {
  max-width: 260px;
  line-height: 1.2;
  font-size: 14px;
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
}
.main-nav a:hover {
  background: #fff;
  color: var(--text);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: #fff;
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: #dbcfc1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 18px;
  color: var(--muted);
}

.hero-card {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.section-head a { color: var(--accent); font-weight: 700; }

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

.product-card,
.news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-card img,
.news-card img,
.cover-image,
.product-main-image {
  width: 100%;
  height: auto;
  display: block;
}

.product-card-body,
.news-card-body {
  padding: 16px;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.badge-stock {
  background: #e7f7ea;
  color: #1c7b36;
}

.badge-order {
  background: #fff1e6;
  color: #a55d1a;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

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

.filters {
  margin: 18px 0 26px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

label { display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
input, textarea, select {
  width: 100%;
  border: 1px solid #ddd3c6;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #c69c8f;
  box-shadow: 0 0 0 3px #d66f6f22;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
}

.price { font-size: 24px; font-weight: 800; margin: 12px 0; }
.info-list p { margin: 8px 0; }

.thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.thumbs img {
  border-radius: 10px;
  border: 1px solid var(--line);
}

.rich-text { line-height: 1.65; }
.rich-text p { margin: 0 0 14px; }
.rich-text ul, .rich-text ol { margin: 0 0 16px 20px; }

.cta-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed #deccc3;
  background: #fffbf5;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-contacts {
  display: grid;
  gap: 8px;
  justify-items: end;
}
.footer-contacts a { color: var(--accent); font-weight: 700; }

.footer-legal {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.footer-legal a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.5s ease forwards;
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    backdrop-filter: none;
    background: #f9f7f4;
  }
  .header-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 0;
  }
  .brand span {
    max-width: none;
  }
  .main-nav a {
    padding: 8px 10px;
    font-size: 14px;
  }
  .main-nav { justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .header-actions {
    gap: 8px;
    flex-wrap: wrap;
  }
  .header-actions .btn {
    width: 100%;
  }
  .cards-grid, .news-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-contacts { justify-items: start; }
  .footer-legal a { font-size: 13px; }
}
