:root {
  --bg: #0f1410;
  --bg-2: #171d18;
  --surface: #1d261f;
  --surface-2: #243028;
  --text: #eef3ea;
  --muted: #9aa894;
  --line: rgba(238, 243, 234, 0.12);
  --accent: #c4a35a;
  --accent-2: #8f6b2f;
  --danger: #d45d4a;
  --ok: #6fbf7a;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Oswald", "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(196, 163, 90, 0.12), transparent 28%),
    linear-gradient(180deg, #121812 0%, #0d110e 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(15, 20, 16, 0.88);
  border-bottom: 1px solid var(--line);
}
.topbar { border-bottom: 1px solid var(--line); font-size: 13px; }
.topbar__inner, .header-main {
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
}
.topbar__inner { min-height: 42px; }
.topbar__nav, .topbar__contacts, .header-actions { display: flex; gap: 14px; align-items: center; }
.topbar__nav a { color: var(--muted); }
.topbar__nav a:hover { color: var(--accent); }
.header-main { min-height: 84px; }
.logo { display: flex; gap: 12px; align-items: center; }
.logo__mark {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #111; font-family: var(--display); font-weight: 700;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text small { color: var(--muted); font-size: 12px; }
.search { flex: 1; display: flex; max-width: 520px; }
.search input, .search button, .lead-form input, .lead-form textarea, .modal label input, .modal label textarea, .admin input, .admin textarea, .admin select {
  font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px; padding: 12px 14px;
}
.search input { flex: 1; border-radius: 12px 0 0 12px; }
.search button { border-radius: 0 12px 12px 0; background: var(--accent); color: #111; border: 0; font-weight: 700; cursor: pointer; }
.catalog-nav {
  border-top: 1px solid var(--line);
  background: rgba(15, 20, 16, 0.55);
}
.catalog-nav__scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.catalog-nav__scroll::-webkit-scrollbar { display: none; }
.catalog-nav__inner { padding-block: 12px; }
.catalog-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.catalog-nav__item { flex: 0 0 auto; }
.catalog-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}
.catalog-nav__link:hover {
  color: var(--text);
  background: rgba(196, 163, 90, 0.1);
  border-color: rgba(196, 163, 90, 0.22);
}
.catalog-nav__link.is-active {
  color: #111;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(196, 163, 90, 0.28);
}
.catalog-nav__link.is-active:hover {
  color: #111;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  transform: translateY(-1px);
}
.catalog-nav__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 700; cursor: pointer;
}
.btn--sm { padding: 8px 12px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #111; }
.btn--outline { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }

.flash { padding: 12px 0; }
.flash--success { background: rgba(111, 191, 122, 0.15); color: var(--ok); }
.flash--error { background: rgba(212, 93, 74, 0.15); color: var(--danger); }

.hero { padding: 42px 0 18px; }
.hero__grid, .about-band__grid, .product-page, .catalog-layout, .footer-grid {
  display: grid; gap: 24px;
}
.hero__grid { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; min-height: 520px; }
.hero__content, .hero__visual, .cat-card, .product-card, .review-card, .about-band__stats, .product-page__media, .content-page, .modal__dialog, .admin-card {
  background: linear-gradient(180deg, rgba(36, 48, 40, 0.92), rgba(29, 38, 31, 0.96));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero__content { padding: 36px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 700; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: 0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3vw, 40px); }
.hero__lead { color: var(--muted); font-size: 18px; max-width: 36ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.hero__points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; margin: 0; list-style: none; }
.hero__points li {
  padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); color: var(--muted);
}
.hero__visual {
  background-size: cover; background-position: center;
  min-height: 420px; position: relative; overflow: hidden;
}
.hero__visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(10,12,10,0.55));
}

.section { padding: 42px 0; }
.section--muted { background: rgba(255,255,255,0.02); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.section__head a { color: var(--accent); }

.cats-grid, .products-grid, .reviews-grid {
  display: grid; gap: 16px;
}
.cats-grid { grid-template-columns: repeat(5, 1fr); }
.products-grid { grid-template-columns: repeat(4, 1fr); }
.reviews-grid { grid-template-columns: repeat(3, 1fr); }
.cat-card { overflow: hidden; min-height: 180px; position: relative; }
.cat-card img { width: 100%; height: 180px; object-fit: cover; }
.cat-card span {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 10px 12px; border-radius: 12px; background: rgba(10,12,10,0.78); font-weight: 700;
}
.product-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.product-card__media { position: relative; background: #101510; }
.product-card__media img { width: 100%; height: 240px; object-fit: contain; padding: 16px; }
.product-card__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-card__body > a { font-weight: 650; }
.product-card__price { display: flex; gap: 10px; align-items: baseline; }
.product-card__body .btn { margin-top: auto; }
.product-card__price strong { font-size: 20px; }
.product-card__price s, .product-card__price--lg s { color: var(--muted); }
.product-card__price--lg strong { font-size: 32px; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--accent); color: #111;
}
.badge--new { background: #6fbf7a; }
.badge--sale { left: auto; right: 12px; background: var(--danger); color: #fff; }
.badge--hit + .badge--sale, .badge--new + .badge--sale { top: 44px; }

.about-band__grid { grid-template-columns: 1.3fr 0.7fr; }
.about-band__grid > div:first-child, .about-band__stats { padding: 28px; }
.about-band__stats { display: grid; gap: 14px; }
.about-band__stats div { padding: 16px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.about-band__stats strong { display: block; font-size: 28px; font-family: var(--display); }
.about-band__stats span { color: var(--muted); }

.review-card { padding: 18px; }
.review-card__top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.review-card p { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-card time { color: var(--muted); font-size: 13px; }

.catalog-layout { grid-template-columns: 260px 1fr; }
.catalog-aside { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); height: fit-content; display: grid; gap: 8px; }
.catalog-aside a { padding: 10px 12px; border-radius: 10px; color: var(--muted); }
.catalog-aside a.is-active, .catalog-aside a:hover { background: rgba(196,163,90,0.12); color: var(--text); }

.product-page { grid-template-columns: 0.9fr 1.1fr; }
.product-page__media { padding: 24px; }
.product-page__media img { width: 100%; max-height: 520px; object-fit: contain; }
.product-page__info { padding: 8px 0; }
.stock { color: var(--ok); font-weight: 700; }
.content-page { padding: 28px; }
.content p, .content li { color: var(--muted); line-height: 1.6; }
.catalog-category-desc { margin-bottom: 28px; }
.catalog-category-desc > :last-child { margin-bottom: 0; }
.contacts-map { margin-top: 28px; }
.contacts-map h3 { margin-bottom: 14px; color: var(--text); }
.contacts-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.lead-form { display: grid; gap: 12px; margin-top: 24px; max-width: 480px; }
.lead-form label, .modal label { display: grid; gap: 6px; color: var(--muted); }

.site-footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 42px 0 24px; background: rgba(0,0,0,0.22); }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.site-footer a, .site-footer p { display: block; color: var(--muted); margin: 0 0 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

.breadcrumbs {
  padding: 14px 0 0;
  font-size: 13px;
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.breadcrumbs__item:not(:last-child)::after {
  content: "›";
  color: rgba(154, 168, 148, 0.55);
  font-size: 12px;
}
.breadcrumbs__link {
  color: var(--muted);
  transition: color 0.2s ease;
}
.breadcrumbs__link:hover {
  color: var(--accent);
}
.breadcrumbs__current {
  color: rgba(238, 243, 234, 0.72);
}

.blog-intro { margin: 0 0 24px; max-width: 62ch; }
.blog-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(36, 48, 40, 0.92), rgba(29, 38, 31, 0.96));
  box-shadow: var(--shadow);
  height: 100%;
}
.blog-card__media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #101510;
}
.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  flex: 1;
}
.blog-card__date {
  color: var(--muted);
  font-size: 13px;
}
.blog-card__body h2 {
  font-size: 22px;
  margin: 0;
}
.blog-card__body p {
  color: var(--muted);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__more {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.blog-pagination__info {
  color: var(--muted);
  font-size: 14px;
}
.blog-post__date {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}
.blog-post__hero {
  margin: 18px 0 22px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.blog-post__hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.blog-post__excerpt {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.blog-post__back {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.blog-post__back a {
  color: var(--accent);
  font-weight: 600;
}

.category-faq {
  margin-top: 42px;
  padding: 26px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.category-faq__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.category-faq__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(196, 163, 90, 0.12);
  color: var(--accent);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.category-faq__kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.category-faq__subtitle {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  text-align: right;
}
.category-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.category-faq__item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.category-faq__item:hover {
  border-color: rgba(196, 163, 90, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.category-faq__question {
  list-style: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 66px;
  gap: 16px;
  padding: 18px 66px 18px 22px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.category-faq__question::-webkit-details-marker {
  display: none;
}
.category-faq__question::marker {
  content: "";
}
.category-faq__q-text {
  flex: 1;
}
.category-faq__icon {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background: rgba(196, 163, 90, 0.12);
  color: var(--accent);
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.category-faq__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform 0.2s ease;
}
.category-faq__item[open] .category-faq__icon {
  background: var(--accent);
  color: #111;
  box-shadow: 0 6px 15px rgba(196, 163, 90, 0.28);
}
.category-faq__item[open] .category-faq__icon::before {
  transform: translate(-50%, -35%) rotate(-135deg);
}
.category-faq__question:hover,
.category-faq__item[open] .category-faq__question {
  color: var(--accent);
  background: rgba(196, 163, 90, 0.04);
}
.category-faq__question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.category-faq__answer {
  padding: 0 22px 22px;
  border-top: 1px solid transparent;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
  font-weight: 400;
}
.category-faq__item[open] .category-faq__answer {
  border-top-color: var(--line);
  padding-top: 16px;
}
.category-faq__answer p {
  margin: 0;
}

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); }
.modal__dialog { position: relative; width: min(420px, calc(100% - 24px)); padding: 24px; display: grid; gap: 12px; }
.modal__close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: var(--text); font-size: 28px; cursor: pointer; }

@media (max-width: 980px) {
  .hero__grid, .catalog-layout, .product-page, .about-band__grid, .footer-grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid, .reviews-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar, .search { display: none; }
  .header-main { min-height: 72px; }
  .catalog-nav {
    position: relative;
  }
  .catalog-nav::before,
  .catalog-nav::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    z-index: 1;
  }
  .catalog-nav::before {
    left: 0;
    background: linear-gradient(90deg, rgba(15, 20, 16, 0.95), transparent);
  }
  .catalog-nav::after {
    right: 0;
    background: linear-gradient(270deg, rgba(15, 20, 16, 0.95), transparent);
  }
  .catalog-nav__scroll {
    scroll-snap-type: x proximity;
    scroll-padding-inline: 16px;
  }
  .catalog-nav__inner {
    width: auto;
    margin: 0;
    padding-inline: 16px;
  }
  .catalog-nav__list {
    flex-wrap: nowrap;
    gap: 8px;
    padding-inline: 2px;
  }
  .catalog-nav__item {
    scroll-snap-align: start;
  }
  .catalog-nav__link {
    font-size: 13px;
    padding: 10px 16px;
  }
}
@media (min-width: 981px) {
  .catalog-nav__scroll { overflow: visible; }
}
@media (max-width: 767px) {
  .category-faq {
    margin-top: 30px;
    padding: 18px 14px;
    border-radius: 10px;
  }
  .category-faq__head {
    display: block;
    margin-bottom: 16px;
  }
  .category-faq__kicker {
    font-size: 16px;
    padding: 7px 14px;
  }
  .category-faq__subtitle {
    margin-top: 10px;
    font-size: 14px;
    text-align: left;
    max-width: none;
  }
  .category-faq__question {
    min-height: 60px;
    padding: 16px 56px 16px 16px;
    font-size: 15.5px;
  }
  .category-faq__icon {
    right: 14px;
    width: 32px;
    height: 32px;
    margin-top: -16px;
  }
  .category-faq__answer {
    padding: 0 16px 18px;
    font-size: 15px;
  }
  .category-faq__item[open] .category-faq__answer {
    padding-top: 14px;
  }
}
@media (max-width: 640px) {
  .products-grid, .reviews-grid, .cats-grid, .blog-grid { grid-template-columns: 1fr; }
  .hero__points { grid-template-columns: 1fr; }
  .contacts-map iframe { height: 280px; }
}
