:root {
  --bg: #f7f5f2;
  --card: #fff;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e4e0da;
  --accent: #1f1f1f;
  --btn: #1f1f1f;
  --btn-text: #fff;
  --radius: 12px;
  --max: 1100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { opacity: 0.85; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem 0; flex-wrap: wrap;
}
.logo {
  font-weight: 800; letter-spacing: .08em; font-size: 1.25rem;
  color: var(--text); text-decoration: none;
}
.nav { display: flex; flex-wrap: wrap; gap: .75rem 1rem; font-size: .95rem; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.hero {
  padding: 2rem 0 1.5rem;
}
.hero h1 { font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.25; margin: 0 0 .75rem; }
.lead { color: var(--muted); margin: 0 0 1rem; max-width: 40rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1rem; border-radius: 999px; background: var(--btn);
  color: var(--btn-text); text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--btn);
}
.btn--ghost {
  background: transparent; color: var(--text); border-color: var(--line);
}
.section { padding: 1.75rem 0; }
.section h2 { font-size: 1.25rem; margin: 0 0 1rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
}
.grid--products {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.tile, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.tile { padding: 1rem; min-height: 5.5rem; }
.tile strong { display: block; margin-bottom: .25rem; }
.tile span { color: var(--muted); font-size: .85rem; }
.card .thumb {
  aspect-ratio: 3/4; background: #ebe7e1; display: grid; place-items: center;
  overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: .75rem; }
.card .body h3 { font-size: .95rem; margin: 0 0 .35rem; font-weight: 600; }
.price { font-weight: 700; }
.muted { color: var(--muted); font-size: .85rem; }
.hall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .5rem;
}
.hall-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hall-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
}
.panel p:first-child { margin-top: 0; }
.site-footer {
  margin-top: 2rem; padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem;
}
.site-footer a { color: var(--text); }
.crumbs { font-size: .85rem; color: var(--muted); margin: 1rem 0; }
.crumbs a { color: var(--muted); }
.product {
  display: grid; gap: 1.25rem;
}
@media (min-width: 720px) {
  .product { grid-template-columns: 1fr 1fr; align-items: start; }
}
.gallery { display: grid; gap: .5rem; }
.gallery .main {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #ebe7e1; aspect-ratio: 3/4;
}
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: .4rem; flex-wrap: wrap; }
.gallery .thumbs img {
  width: 64px; height: 80px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line);
}
.table-wrap { overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
th, td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .95rem; }
th { background: #f0ece6; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .85rem 1rem; margin-bottom: .5rem;
}
.faq summary { cursor: pointer; font-weight: 600; }
.placeholder {
  width: 64px; height: 64px; opacity: .35;
}
.badge {
  display: inline-block; font-size: .75rem; padding: .2rem .5rem;
  border-radius: 999px; background: #eeeae3; color: var(--muted);
}
.todo {
  border: 1px dashed #b0a89c; background: #faf8f5; color: var(--muted);
  padding: 1rem; border-radius: var(--radius); font-size: .9rem;
}
ul.clean { padding-left: 1.1rem; }

/* Заглушка без сгенерированного фото */
.card .thumb--empty,
.gallery .main--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.card .thumb--empty img,
.gallery .main--empty img {
  width: 72px;
  height: auto;
  object-fit: contain;
}
.ph-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 100%;
  padding: 1rem;
  text-align: center;
}
.ph-label {
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
  padding: 0 .4rem;
}

/* Статьи */
.stati-list { display: grid; gap: 1rem; margin: 1.25rem 0 2rem; }
.stati-item {
  display: grid;
  gap: .85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  padding: 0;
}
@media (min-width: 640px) {
  .stati-item { grid-template-columns: 180px 1fr; }
}
.stati-item__cover img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.stati-item__body { padding: 1rem 1.1rem 1.15rem; }
.stati-item__body time,
.article__head time {
  display: block;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: .35rem;
}
.stati-item__body h2 {
  font-size: 1.1rem;
  margin: 0 0 .4rem;
}
.stati-item__body p { margin: 0; color: var(--muted); }
.article { margin-bottom: 2rem; }
.article__head h1 { margin: 0 0 .75rem; }
.article__cover {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.article__cover img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.article__body { max-width: 40rem; }
.article__body h2 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; }
.article__body h3 { font-size: 1.05rem; margin: 1.25rem 0 .4rem; }
.article__body p { margin: 0 0 1rem; }
.article__body ul, .article__body ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.article__body a { color: var(--accent); }
