
:root {
  --bg: #f7f7f7;
  --panel: #ffffff;
  --ink: #1f1f24;
  --muted: #62656f;
  --line: #e2e2e5;
  --accent: #e30613;
  --accent-dark: #b9000b;
  --accent-2: #1f1f24;
  --soft: #fff1f2;
  --shadow: 0 14px 40px rgba(31, 31, 36, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(260px, 520px) auto;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.brand-logo {
  display: block;
  color: var(--accent);
  font-size: 31px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0;
}
.brand-copy { border-left: 1px solid var(--line); padding-left: 12px; }
.brand strong { display: block; font-size: 16px; letter-spacing: 0; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.header-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.header-search label { min-width: 0; }
.header-search input {
  min-height: 40px;
  border-color: #d4d4d8;
}
.header-search button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.header-search button:hover { background: var(--accent-dark); }
.header-contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 300px;
}
.header-contacts span {
  color: #7a5719;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.header-contacts a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 7px 12px;
  color: #050505;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(31,31,36,0.05);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.top-nav {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-left: 62px;
}
.top-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.top-nav a.active, .top-nav a:hover { background: var(--soft); color: var(--accent-dark); }
main { max-width: 1480px; margin: 0 auto; padding: 24px clamp(14px, 3vw, 36px) 48px; }
.breadcrumbs {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); margin-bottom: 18px;
}
.breadcrumbs a::after { content: "/"; margin-left: 8px; color: #9aa5b5; }
.catalog-head {
  display: block;
  padding: 22px 0 26px;
}
.eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 54px); line-height: 1.05; letter-spacing: 0; }
h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.2; }
.catalog-head p:not(.eyebrow), .lead { color: var(--muted); max-width: 880px; font-size: 17px; }
.catalog-panel {
  position: sticky;
  top: 72px;
  z-index: 10;
  background: rgba(244,246,248,0.95);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  backdrop-filter: blur(10px);
}
.entry-points {
  margin: 4px 0 26px;
}
.entry-points h2 {
  font-size: 22px;
}
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.entry-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 18px rgba(24,32,43,0.04);
}
.entry-card:hover {
  border-color: #f0a2a8;
  box-shadow: var(--shadow);
}
.entry-card strong {
  font-size: 17px;
  line-height: 1.25;
}
.entry-card span {
  color: var(--muted);
  font-size: 14px;
}
.collections-preview .entry-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.collections-list .entry-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.collection-showcase {
  margin: 6px 0 30px;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.collection-card {
  display: grid;
  grid-template-rows: 170px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(31,31,36,0.04);
}
.collection-card:hover {
  border-color: #f0a2a8;
  box-shadow: var(--shadow);
}
.collection-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.collection-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.collection-info {
  display: grid;
  gap: 8px;
  padding: 14px;
}
.collection-info strong {
  font-size: 16px;
  line-height: 1.25;
}
.collection-info span {
  color: var(--muted);
  font-size: 13px;
}
.search-row {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(140px, 1fr));
  gap: 12px;
}
label span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 700;
}
input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  font-size: 14px;
}
.grid-section { padding-top: 22px; }
.result-meta { color: var(--muted); margin-bottom: 12px; font-size: 14px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.product-grid.small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(24,32,43,0.04);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.image-link {
  aspect-ratio: 1 / 1;
  background: #f9fbfc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.image-link img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 14px; flex: 1; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; min-height: 24px; }
.badges span {
  font-size: 12px; color: var(--accent-dark); background: var(--soft); border-radius: 999px; padding: 3px 8px; font-weight: 700;
}
.card-title { font-size: 16px; font-weight: 800; line-height: 1.25; }
.card-title:hover { color: var(--accent); }
dl { margin: 0; display: grid; gap: 4px; }
dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed #e4e9ef; padding-bottom: 4px; }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 0; font-size: 12px; font-weight: 700; text-align: right; }
.mini-specs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; }
.mini-specs span { background: #f5f7f9; border-radius: 5px; padding: 3px 6px; }
.card-bottom { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.card-bottom strong { font-size: 18px; }
.card-bottom small { color: var(--muted); text-align: right; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; border-radius: 6px; color: var(--muted); font-weight: 700;
}
.pagination .current { color: #fff; background: var(--accent); border-color: var(--accent); }
.show-more {
  margin: 20px auto 0;
  min-width: 180px;
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}
.catalog-more {
  margin: 18px 0 0;
}
.catalog-more a {
  color: var(--accent);
  font-weight: 800;
}
.seo-text {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 32px);
  margin-top: 30px;
}
.seo-text p { color: var(--muted); max-width: 980px; margin: 0; }
.seo-text.rich {
  display: grid;
  gap: 14px;
}
.seo-text.rich h3 {
  margin: 4px 0 -4px;
  font-size: 18px;
}
.seo-text.rich p {
  margin: 0;
}
.product-page { display: grid; gap: 34px; }
.product-hero {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.gallery, .product-summary, .variants, .similar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.main-image {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fbfc;
  border-radius: 6px;
}
.main-image img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; margin-top: 12px; }
.thumb {
  border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px; cursor: pointer; aspect-ratio: 1 / 1;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-summary h1 { font-size: clamp(28px, 3vw, 44px); }
.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.product-links a {
  background: var(--soft);
  color: var(--accent);
  border: 1px solid #f2b4b9;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}
.product-links span {
  background: var(--soft);
  color: var(--accent-dark);
  border: 1px solid #f2b4b9;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}
.buy-box {
  display: grid;
  gap: 8px;
  background: var(--soft);
  border: 1px solid #f2b4b9;
  border-radius: 8px;
  padding: 18px;
  margin: 20px 0;
}
.buy-box strong { font-size: 30px; }
.buy-box span { color: var(--muted); }
.buy-box a { width: fit-content; background: var(--accent); color: #fff; border-radius: 6px; padding: 10px 14px; font-weight: 800; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 13px; width: 220px; }
.documents {
  margin-top: 18px;
}
.documents div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.documents a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid #f2b4b9;
  border-radius: 6px;
  background: var(--soft);
  color: var(--accent-dark);
  padding: 8px 12px;
  font-weight: 800;
}
.variants { overflow-x: auto; }
.variants th { width: auto; white-space: nowrap; }
.site-footer {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #fff;
}
.site-footer span { display: block; color: var(--muted); }
.site-footer a { color: var(--accent); font-weight: 800; }
.footer-contacts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 900px) {
  .site-header { position: static; grid-template-columns: 1fr; align-items: flex-start; }
  .product-hero { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .catalog-panel { position: static; }
  .header-search { width: 100%; }
  .header-contacts { justify-content: flex-start; min-width: 0; }
  .top-nav { padding-left: 0; }
}
@media (max-width: 560px) {
  main { padding-inline: 12px; }
  .search-row { grid-template-columns: 1fr; }
  .top-nav { width: 100%; justify-content: flex-start; }
  .product-grid { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: 1fr; }
  th, td { padding: 9px 8px; }
}
