:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --line: #e7e4dd;
  --accent: #b0341e;
  --accent-dark: #8f2816;
  --gold: #b98a2f;
  --ok: #2f7d43;
  --warn: #a06a1a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

main.container { width: 100%; flex: 1 0 auto; }

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

/* ---------- header ---------- */
.site-header { background: var(--surface); color: var(--ink); flex-shrink: 0; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 10px 20px; }
.brand { display: inline-flex; }
.brand-logo { height: 46px; width: auto; object-fit: contain; }

.search { flex: 1; display: flex; gap: 8px; max-width: 520px; }
.search input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 14px;
}
.search input:focus { outline: none; border-color: var(--accent); }
.btn--search { background: var(--accent); color: #fff; }

.contacts { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.contacts__phone { color: var(--ink); font-weight: 600; font-size: 15px; }
.contacts__phone:hover { color: var(--accent); }

/* ---------- nav ---------- */
.site-nav { background: var(--ink); border-bottom: 1px solid var(--ink); flex-shrink: 0; }
.nav-inner { display: flex; gap: 8px; padding: 0 20px; }
.nav-link { padding: 14px 16px; font-weight: 500; color: #fff; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--gold); }
.nav-link.is-active { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 30px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 46px; line-height: 1.12; margin: 0 0 12px; font-weight: 700; }
.hero h1 span { color: var(--accent); }
.hero__sub { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 0 26px; }
.hero--notes {
  background: linear-gradient(rgba(94,84,84,.55), rgba(0,0,0,.75)),
              url('assets/notes_1600.jpg') center/cover no-repeat;
  display: flex; align-items: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 110px 0 100px;
}
.hero--notes .hero__content { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.hero--notes h1 { color: #fff; }
.hero--notes h1 span { color: #e0b35a; }
.hero--notes .hero__sub { color: rgba(255,255,255,.92); }
.hero--notes .btn--hero { background: var(--gold); color: #14161b; }
.hero--notes .btn--hero:hover { background: #ffe23d; color: #14161b; }
.btn--hero { background: var(--accent); color: #fff; padding: 13px 26px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer;
  border-color: var(--line); transition: .18s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--hero { padding: 13px 28px; font-size: 15px; }

/* ---------- sections ---------- */
.section { padding: 26px 0 10px; }
.section__title { font-family: 'Playfair Display', serif; font-size: 26px; margin: 0 0 18px; }

.page-title { font-family: 'Playfair Display', serif; font-size: 28px; margin: 4px 0 12px; }
.page-title small { font-family: 'Inter', sans-serif; color: var(--muted); font-size: 14px; font-weight: 500; }

.breadcrumbs { color: var(--muted); font-size: 13px; margin: 18px 0 6px; }
.breadcrumbs a:hover { color: var(--accent); }

.note { color: var(--muted); font-size: 13px; }

/* ---------- load more / infinite scroll ---------- */
[hidden] { display: none !important; }
.load-wrap { display: flex; justify-content: center; margin: 18px 0 6px; }
.btn--more {
  background: var(--surface); border: 1px solid var(--accent); color: var(--accent);
  padding: 13px 34px; border-radius: 30px; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: .18s; box-shadow: var(--shadow);
}
.btn--more:hover { background: var(--accent); color: #fff; }
.cat-progress { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* ---------- categories grid ---------- */
.grid-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.catalog-wrap { display: flex; flex-direction: column; gap: 26px; }
.catalog-block { display: flex; flex-direction: row; align-items: flex-start; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.catalog-block__thumb { width: 220px; aspect-ratio: 16/9; flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.catalog-block__thumb img { width: 100%; height: 100%; object-fit: cover; }
.catalog-block__main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.catalog-block__title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--ink); }
.catalog-block__title:hover { color: var(--accent); }
.catalog-block__count { color: var(--muted); font-size: 13px; font-weight: 500; margin-left: 8px; }
.catalog-block .subcats { margin: 0; gap: 8px; }
.catalog-block:hover { border-color: var(--accent); }
.cat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px;
  transition: .18s; min-height: 110px; justify-content: space-between;
}
.cat-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.cat-card__thumb { width: 100%; aspect-ratio: 16/9; background: #fff; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.cat-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; }
.cat-card__count { color: var(--muted); font-size: 13px; }

.subcats { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.rubrika {
  display: flex; align-items: center; gap: 10px; min-width: 200px; max-width: 260px; flex: 1 1 200px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 12px 8px 8px; box-shadow: var(--shadow); transition: .18s;
}
.rubrika:hover { border-color: var(--accent); transform: translateY(-2px); }
.rubrika__thumb { width: 52px; height: 52px; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.rubrika__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rubrika__name { display: flex; flex-direction: column; gap: 2px; font-weight: 600; font-size: 14px; line-height: 1.25; }
.rubrika__count { color: var(--muted); font-size: 12.5px; font-weight: 500; }

/* ---------- catalog sections ---------- */
.cat-list { display: grid; gap: 14px; }
.cat-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.cat-section__head { display: flex; align-items: flex-start; gap: 16px; }
.cat-section__thumb { width: 92px; height: 92px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cat-section__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-section__title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; }
.cat-section__title:hover { color: var(--accent); }
.cat-section__count { color: var(--muted); font-size: 13px; font-weight: 500; margin-left: 8px; }
.cat-section__kids { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cat-section__kids a { font-size: 13px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); padding: 6px 11px; border-radius: 8px; }
.cat-section__kids a:hover { border-color: var(--accent); color: var(--accent); }
.cat-section__kids a i { color: var(--muted); font-style: normal; margin-left: 4px; }

/* ---------- product grid ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: .18s;
}
.product-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.product-card__img { background: #fff; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.product-card:hover .product-card__img img { transform: scale(1.04); }
.product-card__body { padding: 9px 11px 12px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.product-card__title { font-size: 12.5px; font-weight: 500; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__price { font-weight: 700; font-size: 15px; margin-top: auto; }

/* ---------- badges ---------- */
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 4px 9px; border-radius: 999px; width: fit-content; }
.badge--in { background: #e6f2e9; color: var(--ok); }
.badge--out { background: #f6eede; color: var(--warn); }

/* ---------- product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-top: 12px; }
.product-detail__img { background: #fff; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; min-height: 320px; }
.product-detail__img img { max-width: 100%; max-height: 420px; object-fit: contain; }
.product-detail__info { display: flex; flex-direction: column; gap: 12px; }
.product-detail__title { font-family: 'Playfair Display', serif; font-size: 27px; margin: 4px 0 0; line-height: 1.2; }
.product-detail__brand, .product-detail__article, .product-detail__cat { color: var(--muted); font-size: 13.5px; margin: 0; }
.product-detail__price { font-size: 30px; font-weight: 800; color: var(--accent); }
.product-detail__stock { font-size: 14px; color: var(--ink); }
.product-detail__actions { display: flex; gap: 10px; margin-top: 6px; }

/* ---------- home: преимущества / о нас / отзывы ---------- */
.grid-adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.adv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; text-align: center; }
.adv-card__icon { width: 72px; height: 72px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; }
.adv-card__icon img { width: 72px; height: 72px; object-fit: contain; }
.adv-card__title { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.adv-card__text { margin: 0; color: var(--muted); }

.grid-rev { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.rev-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); position: relative; }
.rev-card__text { margin: 0 0 14px; font-style: normal; font-size: 15px; line-height: 1.55; color: var(--ink); }
.rev-card__author { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.rev-card__author b { color: var(--ink); font-weight: 700; }

/* ---------- rich / footer ---------- */
.rich { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.rich p { margin: 0 0 10px; }
.contacts-block a { color: var(--accent); }

.site-footer { margin-top: 48px; background: var(--ink); color: #cfcfcf; flex-shrink: 0; }
.footer-inner { padding: 30px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.footer__brand { font-family: 'Playfair Display', serif; font-size: 20px; color: #fff; font-weight: 700; margin: 0 0 6px; }
.footer__addr, .footer__contacts p { margin: 0 0 4px; font-size: 14px; }
.footer__contacts a { color: var(--gold); }
.footer__demo { grid-column: 1 / -1; color: #8a8a8a; font-size: 12px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; }
  .contacts { margin-left: 0; align-items: flex-start; width: 100%; }
  .nav-inner { flex-wrap: wrap; }
  .product-detail { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .catalog-block { flex-direction: column; }
  .catalog-block__thumb { width: 100%; aspect-ratio: 16/9; }
}