/* ============================================================================
   Jewelry by AK — стили
   1. Токены и база        6. Каталог и карточки
   2. Утилиты              7. Аренда
   3. Шапка и меню         8. Этапы и уход
   4. Hero                 9. Контакты и форма
   5. О бренде            10. Подвал, модальное окно, анимации
   ========================================================================== */

/* ── 1. ТОКЕНЫ ────────────────────────────────────────────────────────────── */
:root {
  /* Тёмная «драгоценная» база */
  --ink-900: #100F0D;
  --ink-800: #14110E;
  --ink-700: #1D1A16;
  --ink-600: #262219;
  --ink-500: #332E24;

  /* Светлые поверхности */
  --cream-100: #FBF8F3;
  --cream-200: #F5F0E7;
  --cream-300: #EAE3D6;
  --cream-400: #D9CFBC;

  /* Металлы и акценты */
  --gold: #C9A227;
  --gold-light: #E4C87A;
  --gold-deep: #9C7C16;
  --olive: #7C7F52;
  --olive-light: #A3A67A;
  --blush: #C89A88;

  --text-dark: #24211C;
  --text-muted: #6E6656;
  --text-light: #F1EBE0;
  --text-light-muted: #B9AF9C;

  --line-dark: rgba(36, 33, 28, 0.12);
  --line-light: rgba(241, 235, 224, 0.16);

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(24, 20, 14, 0.06);
  --shadow: 0 18px 44px -22px rgba(24, 20, 14, 0.34);
  --shadow-lg: 0 42px 90px -40px rgba(16, 15, 13, 0.6);

  --shell: 1240px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  /* высота шапки: по ней центрируется меню.
     Важно: position: sticky не создаёт контекст для absolute-потомков,
     поэтому меню (оно лежит рядом с шапкой) выравнивается явной высотой,
     а не через top: 50% (тот считался бы от высоты окна). */
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream-100);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.35vw + 0.88rem, 1.05rem);
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Горизонтальную прокрутку убираем точечно у «вылезающих» декоративных
   блоков (бегущая строка, свечение в hero), а не через overflow-x: hidden
   у body: он превращал body в containing block для position: fixed
   и ломал позиционирование меню и модальных окон. */

body.is-locked { overflow: hidden; }

img, picture, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.25; }

h1 em, h2 em {
  font-style: italic;
  color: var(--gold-deep);
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

button { font: inherit; color: inherit; }

::selection { background: var(--gold-light); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: 0.7rem 1.2rem;
  background: var(--ink-900);
  color: var(--text-light);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── 2. УТИЛИТЫ ───────────────────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 38rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1rem;
}
.eyebrow-line {
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow-light { color: var(--gold-light); }

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text-dark);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.92rem 1.65rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.35s;
  white-space: nowrap;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid {
  --btn-bg: var(--ink-900);
  --btn-fg: var(--cream-100);
  box-shadow: 0 14px 30px -18px rgba(16, 15, 13, 0.8);
}
.btn-solid:hover { --btn-bg: var(--ink-700); box-shadow: 0 20px 38px -18px rgba(16, 15, 13, 0.75); }

.btn-gold {
  --btn-bg: linear-gradient(120deg, var(--gold-light), var(--gold) 45%, var(--gold-deep));
  --btn-fg: var(--ink-900);
  border: none;
  box-shadow: 0 16px 34px -18px rgba(201, 162, 39, 0.85);
}
.btn-gold:hover { filter: brightness(1.06); }

.btn-outline { --btn-bd: var(--line-dark); --btn-fg: var(--text-dark); }
.btn-outline:hover { --btn-bd: var(--ink-900); --btn-bg: var(--ink-900); --btn-fg: var(--cream-100); }

.btn-outline-light { --btn-bd: var(--line-light); --btn-fg: var(--text-light); }
.btn-outline-light:hover { --btn-bd: var(--gold-light); --btn-fg: var(--gold-light); }

.btn-ghost { --btn-fg: var(--text-dark); padding-inline: 1.2rem; }

.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.78rem; }
.btn-full { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 0.2rem;
  transition: gap 0.3s var(--ease), border-color 0.3s, color 0.3s;
}
.link-arrow:hover { gap: 0.95rem; border-color: var(--gold); color: var(--gold-deep); }

/* ── 3. ШАПКА ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  padding-block: 0.85rem;
  background: rgba(251, 248, 243, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: padding 0.35s var(--ease), background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.site-header.is-stuck {
  padding-block: 0.5rem;
  background: rgba(251, 248, 243, 0.94);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 12px 34px -26px rgba(24, 20, 14, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  width: 100%;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
/* Логотип — круглая нашивка с прозрачным фоном: свой фон и рамку не рисуем,
   иначе вокруг картинки появится квадрат */
.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  letter-spacing: 0.01em;
}
.brand-name em { font-style: italic; color: var(--gold-deep); }
.brand-tag {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Меню: на десктопе стоит справа от логотипа, на мобильных — выезжающая панель.
   Позиционируется от окна (position: fixed) и лежит рядом с шапкой.
   Внутри шапки держать нельзя: её backdrop-filter создаёт и контекст
   наложения, и containing block — меню обрезалось бы шапкой и уезжало
   при прокрутке (position: sticky не создаёт containing block,
   а overflow/filter у предков — создаёт).

   Меню прижато к правому краю и не наезжает на логотип с надписью
   «украшения ручной работы»: справа оставлено место под кнопки шапки
   (--nav-reserve), а ширина берётся по содержимому. */
.nav {
  /* левый край контента шапки — та же формула, что у .shell внутри шапки */
  --content-left: max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter)));
  --nav-reserve: 15rem;   /* место под «Избранное» и кнопку «Смотреть каталог» */

  position: fixed;
  top: 0;
  left: auto;
  right: calc(var(--content-left) + var(--nav-reserve));
  transform: none;
  width: auto;
  height: var(--header-h);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.7rem;
}
.nav-close { display: none; }
.nav-cta { display: none; }
.nav a {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  padding-block: 0.3rem;
  white-space: nowrap;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.icon-btn:hover { border-color: var(--ink-900); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn path, .icon-btn rect, .icon-btn circle { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.saved-btn:hover { color: #B4462F; border-color: #B4462F; }
.saved-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink-900);
  font-size: 0.68rem;
  font-weight: 700;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  /* Важно: у базового класса .icon-btn стоит place-items: center, а он
     выравнивает и по поперечной оси. Из-за этого пустые полоски сжимались
     в нулевую ширину, и кнопка выглядела пустым квадратом. */
  align-items: stretch;
}
.burger span {
  display: block;
  width: 100%;
  height: 1.6px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.burger.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── 4. HERO ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(2.4rem, 6vw, 5rem) 0;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 80%;
  background:
    radial-gradient(48% 52% at 22% 30%, rgba(201, 162, 39, 0.16), transparent 70%),
    radial-gradient(42% 46% at 82% 18%, rgba(124, 127, 82, 0.18), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.6rem);
  align-items: center;
  position: relative;
}

.hero-copy { max-width: 34rem; }

.hero-lead {
  font-size: clamp(1rem, 0.5vw + 0.92rem, 1.13rem);
  color: var(--text-muted);
  max-width: 30rem;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.6rem; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  margin: 0;
  padding: 1.4rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}
.hero-facts li { display: flex; flex-direction: column; gap: 0.1rem; }
.hero-facts b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink-900);
}
.hero-facts span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 4px 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cream-300);
}
.hero-media picture, .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(16, 15, 13, 0.5));
  pointer-events: none;
}

.hero-card {
  position: absolute;
  left: clamp(0.9rem, 2vw, 1.5rem);
  right: clamp(0.9rem, 2vw, 1.5rem);
  bottom: clamp(0.9rem, 2vw, 1.5rem);
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.2rem 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(251, 248, 243, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.hero-card-label {
  grid-column: 1;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.hero-card-title {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.hero-card-price {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--ink-900);
}

.marquee {
  margin-top: clamp(2.4rem, 5vw, 4rem);
  padding-block: 1.1rem;
  border-block: 1px solid var(--line-dark);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-style: italic;
  color: var(--text-muted);
  white-space: nowrap;
}
.marquee-track span[aria-hidden] { color: var(--gold); font-size: 0.6rem; font-style: normal; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 108;
  background: rgba(16, 15, 13, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.nav-backdrop.is-open { opacity: 1; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── 5. О БРЕНДЕ ──────────────────────────────────────────────────────────── */
.about { background: var(--cream-100); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-badge {
  position: absolute;
  right: -0.5rem;
  bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  padding: 0.9rem 1.3rem;
  border-radius: var(--radius) 4px 4px var(--radius);
  background: var(--ink-900);
  color: var(--text-light);
  box-shadow: var(--shadow);
}
.about-badge b { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-light); }
.about-badge span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }

.about-copy p { color: var(--text-muted); max-width: 34rem; }
.about-copy h2 { max-width: 22ch; }

.values {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.values li { display: flex; gap: 0.9rem; align-items: flex-start; }
.value-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--cream-300), var(--cream-200));
  color: var(--gold-deep);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.28);
}
.value-ico svg { width: 20px; height: 20px; }
.value-ico path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.values b { display: block; font-size: 0.95rem; }
.values span { color: var(--text-muted); font-size: 0.9rem; }

/* ── 6. КАТАЛОГ ───────────────────────────────────────────────────────────── */
.catalog {
  background:
    linear-gradient(180deg, var(--cream-200), var(--cream-100) 40%);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.chip:hover { transform: translateY(-1px); border-color: var(--ink-900); }
.chip.is-active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--cream-100);
}
.chip-count {
  font-size: 0.7rem;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.9rem);
}

@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(36, 33, 28, 0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out), border-color 0.4s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 162, 39, 0.4);
}

.card-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--cream-200);
  cursor: pointer;
  overflow: hidden;
}
.card-media picture, .card-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.6s;
}
.card:hover .card-media img { transform: scale(1.045); }
.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(16, 15, 13, 0.22));
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.card:hover .card-media::after { opacity: 1; }

.card-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(251, 248, 243, 0.94);
  color: var(--gold-deep);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.card-fav {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 248, 243, 0.9);
  color: var(--text-dark);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.card-fav:hover { transform: scale(1.08); color: #B4462F; }
.card-fav svg { width: 18px; height: 18px; }
.card-fav svg path { fill: none; stroke: currentColor; stroke-width: 1.7; }
.card-fav.is-active { color: #B4462F; }
.card-fav.is-active svg path { fill: currentColor; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
}

.card-status {
  align-self: flex-start;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
}
.status-stock { background: rgba(124, 127, 82, 0.14); color: #5E6139; }
.status-rent { background: rgba(201, 162, 39, 0.16); color: var(--gold-deep); }
.status-order { background: rgba(36, 33, 28, 0.08); color: var(--text-muted); }

.card-title { margin: 0.1rem 0 0; font-size: 1.28rem; }
.card-title button,
.card-title a {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}
.card-title button:hover, .card-title a:hover { color: var(--gold-deep); }

.card-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Аренда в карточке: украшение продаётся, но его можно взять на выход */
.card-rent {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--gold-deep);
}
.card-tagline {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--text-dark);
  opacity: 0.82;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
}
.card-price {
  font-family: var(--font-display);
  font-size: 1.42rem;
  color: var(--ink-900);
  white-space: nowrap;
}
.card-price.is-rent { color: var(--gold-deep); }
.card-price i { font-style: normal; font-size: 0.9rem; font-family: var(--font-body); }

/* Широкая карточка: горизонтальный формат, чтобы при нечётном количестве
   украшений последняя карточка не оставляла дыру в сетке.
   Класс ставит js/app.js. Идёт после .card, чтобы перебить .card{display:flex}. */
.card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
}
.card--wide .card-media picture,
.card--wide .card-media img { height: 100%; aspect-ratio: auto; }
.card--wide .card-title { font-size: 1.65rem; }
.card--wide .card-sub { font-size: 0.9rem; }
.card--wide .card-tagline { font-size: 1rem; }
.card--wide .card-body {
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
  gap: 0.6rem;
  justify-content: center;
}
.card--wide .card-foot { margin-top: 1.1rem; padding-top: 1.1rem; }

.empty-state {
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
}

.bundle-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: clamp(2rem, 4vw, 3.4rem);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--ink-800), var(--ink-600));
  color: var(--text-light);
}
.bundle-note b { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-light); font-weight: 500; }
.bundle-note span { color: var(--text-light-muted); font-size: 0.92rem; }
.bundle-note .btn-outline { --btn-bd: var(--line-light); --btn-fg: var(--text-light); }
.bundle-note .btn-outline:hover { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: var(--ink-900); }

/* ── 7. АРЕНДА ────────────────────────────────────────────────────────────── */
.rental {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8rem);
  color: var(--text-light);
  overflow: hidden;
}
.rental-bg { position: absolute; inset: 0; z-index: 0; }
.rental-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.rental-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(16, 15, 13, 0.94) 12%, rgba(16, 15, 13, 0.78) 46%, rgba(16, 15, 13, 0.55)),
    radial-gradient(70% 100% at 85% 20%, rgba(201, 162, 39, 0.22), transparent 70%);
}

.rental-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.rental-copy { max-width: 33rem; }
.rental-copy h2 { color: var(--text-light); }
.rental-copy p { color: var(--text-light-muted); }
.rental-terms {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-light);
  color: var(--gold-light) !important;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}
.rental-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.rental-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  counter-reset: step;
}
.rental-steps li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(251, 248, 243, 0.06);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.4s, transform 0.4s var(--ease);
}
.rental-steps li:hover { background: rgba(251, 248, 243, 0.11); transform: translateX(5px); }
.step-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-light);
  opacity: 0.85;
  line-height: 1.3;
}
.rental-steps b { display: block; font-size: 0.98rem; }
.rental-steps span { color: var(--text-light-muted); font-size: 0.88rem; }

/* ── 8. ЭТАПЫ И УХОД ──────────────────────────────────────────────────────── */
.process { background: var(--cream-100); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.process-card {
  position: relative;
  padding: 1.9rem 1.5rem 1.7rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(36, 33, 28, 0.07);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.process-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.process-card:hover::before { transform: scaleX(1); }
.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--cream-400);
  line-height: 1;
  margin-bottom: 0.7rem;
}
.process-card h3 { font-size: 1.22rem; }
.process-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

.care {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--cream-200), var(--cream-100));
  border: 1px solid var(--line-dark);
}
.care-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  color: var(--gold-deep);
  box-shadow: var(--shadow-sm);
}
.care-ico svg { width: 22px; height: 22px; }
.care-ico path { fill: none; stroke: currentColor; stroke-width: 1.5; }
.care b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.care p { color: var(--text-muted); font-size: 0.92rem; margin: 0.3rem 0 0; }

/* ── 9. КОНТАКТЫ ──────────────────────────────────────────────────────────── */
.contact { background: var(--cream-200); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-copy p { color: var(--text-muted); max-width: 32rem; }

.contact-list {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.contact-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 33, 28, 0.08);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s, background 0.4s;
}
.contact-item:hover {
  transform: translateX(5px);
  background: #fff;
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: var(--shadow);
}
.contact-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--ink-800), var(--ink-600));
  color: var(--gold-light);
}
.contact-ico svg { width: 20px; height: 20px; }
.contact-ico path, .contact-ico rect, .contact-ico circle { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-text { display: flex; flex-direction: column; line-height: 1.35; }
.contact-text b { font-size: 0.92rem; }
.contact-text span { color: var(--text-muted); font-size: 0.88rem; }
.contact-note {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
  max-width: 9rem;
}
.contact-note, .contact-copy .contact-note { color: var(--text-muted); }

.contact-form {
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(36, 33, 28, 0.08);
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.contact-form h3 { font-size: 1.5rem; }
.form-hint { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field label span { color: var(--gold-deep); margin-left: 2px; }

.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.82rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: var(--cream-100);
  font-family: inherit;
  font-size: 0.94rem;
  color: inherit;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.6rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
.field input.has-error, .field textarea.has-error { border-color: #C0523A; box-shadow: 0 0 0 3px rgba(192, 82, 58, 0.12); }
.field-error { color: #C0523A; font-size: 0.78rem; min-height: 0; }

.form-status { margin: 0.9rem 0 0; font-size: 0.86rem; }
.form-status.is-ok { color: #5E6139; }
.form-status.is-error { color: #C0523A; }
.form-status a { color: var(--gold-deep); text-decoration: underline; }

.form-legal { margin-top: 0.9rem; font-size: 0.74rem; color: var(--text-muted); }

/* ── 10. ПОДВАЛ, МОДАЛЬНОЕ ОКНО, ПРОЧЕЕ ───────────────────────────────────── */
.site-footer {
  background: var(--ink-900);
  color: var(--text-light);
  padding-top: clamp(2.6rem, 5vw, 4rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2.4rem;
}
.footer-brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.footer-brand p { color: var(--text-light-muted); font-size: 0.88rem; margin: 0.4rem 0 0; max-width: 26rem; }

.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav a { color: var(--text-light-muted); font-size: 0.9rem; width: fit-content; transition: color 0.3s; }
.footer-nav a:hover { color: var(--gold-light); }

.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  color: var(--text-light);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.footer-social a:hover { background: var(--gold); color: var(--ink-900); border-color: var(--gold); transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-social path, .footer-social rect, .footer-social circle { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-block: 1.2rem;
  border-top: 1px solid var(--line-light);
  color: var(--text-light-muted);
  font-size: 0.78rem;
}

/* Плавающие кнопки */
.float-actions {
  position: fixed;
  right: clamp(0.9rem, 2vw, 1.6rem);
  bottom: clamp(0.9rem, 2vw, 1.6rem);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}
.float-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: var(--ink-900);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 18px 38px -18px rgba(201, 162, 39, 0.9);
  transition: transform 0.35s var(--ease), filter 0.3s;
}
.float-wa:hover { transform: translateY(-3px); filter: brightness(1.06); }
/* Иконка вынесена в отдельный слой: app.js подставляет значок того
   мессенджера, в который ведёт кнопка */
.float-wa-ico { display: inline-flex; flex: none; }
.float-wa svg { width: 18px; height: 18px; }
.float-wa path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.to-top {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), background 0.3s;
}
.to-top:hover { transform: translateY(-3px); background: #fff; }
.to-top svg { width: 20px; height: 20px; }
.to-top path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Модальное окно украшения */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(0.6rem, 2vw, 2rem);
  opacity: 0;
  /* закрытое окно не должно перехватывать клики по странице */
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 15, 13, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1020px);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-lg);
  background: var(--cream-100);
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.42s var(--ease-out);
}
.modal.is-open .modal-panel { transform: none; }

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: rgba(251, 248, 243, 0.92);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.modal-close:hover { background: #fff; transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
.modal-close path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
}
.modal-gallery {
  display: flex;
  flex-direction: column;
  background: var(--ink-800);
  min-height: 460px;
}
.modal-shot { margin: 0; flex: 1; display: flex; }
.modal-shot picture { display: flex; width: 100%; }
.modal-shot img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  object-position: center;
}

.modal-info { padding: clamp(1.4rem, 3vw, 2.6rem); }
.modal-info h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0.5rem 0 0.2rem; }
.modal-sub { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 0.9rem; }
.modal-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink-900);
  margin: 0 0 1rem;
}
.modal-price i { font-style: normal; font-family: var(--font-body); font-size: 1rem; }
.modal-price small { display: block; font-family: var(--font-body); font-size: 0.78rem; color: var(--text-muted); }
.modal-desc { color: var(--text-muted); font-size: 0.94rem; }

.modal-block { margin-top: 1.4rem; }
.modal-block h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.tag-list li {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--cream-300);
  font-size: 0.8rem;
}
.dot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.dot-list li { position: relative; padding-left: 1.1rem; font-size: 0.88rem; color: var(--text-muted); }
.dot-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.modal-actions { display: grid; gap: 0.55rem; margin-top: 1.8rem; }
.modal-note { margin: 1rem 0 0; font-size: 0.76rem; color: var(--text-muted); }

/* Панель избранного */
.saved-backdrop {
  position: fixed;
  inset: 0;
  z-index: 185;
  background: rgba(16, 15, 13, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.saved-backdrop.is-open { opacity: 1; }

.saved-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 190;
  width: min(400px, 100%);
  height: 100%;
  padding: 1.4rem;
  background: var(--cream-100);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  transition: transform 0.42s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}
.saved-panel.is-open { transform: none; }
.saved-head { display: flex; align-items: center; justify-content: space-between; }
.saved-head h3 { margin: 0; font-size: 1.5rem; }
.saved-head .modal-close { position: static; }
.saved-list { display: grid; gap: 0.7rem; }
.saved-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(36, 33, 28, 0.08);
}
.saved-thumb { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 10px; overflow: hidden; }
.saved-thumb img { width: 62px; height: 74px; object-fit: cover; }
.saved-info { display: flex; flex-direction: column; line-height: 1.35; }
.saved-info b { font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; }
.saved-info span { color: var(--text-muted); font-size: 0.84rem; }
.saved-remove {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.saved-remove:hover { background: #C0523A; border-color: #C0523A; color: #fff; }
.saved-empty { color: var(--text-muted); font-size: 0.9rem; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 300;
  transform: translate(-50%, 140%);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  background: var(--ink-900);
  color: var(--text-light);
  font-size: 0.86rem;
  box-shadow: var(--shadow);
  transition: transform 0.42s var(--ease-out);
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.toast.is-open { transform: translate(-50%, 0); }

/* Появление при прокрутке */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Битые изображения */
picture.is-broken, img.is-broken { background: linear-gradient(120deg, var(--cream-300), var(--cream-200)); }
img.is-broken { color: transparent; }

/* ── СТРАНИЦЫ КАТАЛОГА, КАТЕГОРИЙ И УКРАШЕНИЙ ─────────────────────────────
   Отдельные индексируемые страницы: /catalog/, /catalog/{категория}/,
   /catalog/{slug}/. Оформление продолжает главную страницу, но устроено
   проще: Заголовок → Хлебные крошки → Содержимое. */

.crumbs { margin: 1.6rem 0 1.2rem; font-size: 0.78rem; letter-spacing: 0.04em; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-muted); }
.crumbs li + li::before { content: '→'; color: var(--gold); font-size: 0.7rem; }
.crumbs a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.25s, border-color 0.25s; }
.crumbs a:hover { color: var(--gold-deep); border-bottom-color: var(--gold); }
.crumbs [aria-current] { color: var(--ink-900); }

.catalog-head { max-width: 780px; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.catalog-head h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 400; margin: 0 0 0.6rem; }
.catalog-head .lead, .lead { font-size: 1.02rem; color: var(--text-muted); max-width: 62ch; }

/* Категории на странице каталога — обычные ссылки: их видит поисковый робот */
.cat-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
a.chip { text-decoration: none; color: inherit; }

.section.narrow, .narrow { max-width: 760px; }
.narrow h1 { font-family: var(--font-display); font-weight: 400; }

/* ── Страница украшения ─────────────────────────────────────────────────── */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3.4rem);
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 3.4rem);
}
.product-shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-200);
  box-shadow: var(--shadow-sm);
}
.product-shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.product-thumbs { display: flex; gap: 0.5rem; margin-top: 0.7rem; flex-wrap: wrap; }
.product-thumb {
  width: 74px; height: 92px; padding: 0; border: 1px solid var(--line-dark);
  border-radius: 10px; overflow: hidden; background: var(--cream-200); cursor: pointer;
  transition: border-color 0.25s, transform 0.25s;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb:hover { transform: translateY(-2px); border-color: var(--gold); }
.product-thumb.is-active { border-color: var(--gold-deep); box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.25); }

.product-info h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; margin: 0.5rem 0 0.4rem; }
.product-sub { color: var(--text-muted); margin: 0 0 0.8rem; }
.product-price { font-size: 1.7rem; font-weight: 600; margin: 0.4rem 0 0.8rem; }
.product-price i { font-style: normal; font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.product-price.is-rent { color: var(--gold-deep); }
.product-lead { font-size: 1rem; color: var(--text-dark); margin: 0 0 1.2rem; }
.product-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.product-note {
  display: grid; gap: 0.35rem; padding: 1rem 1.1rem; margin-bottom: 1.2rem;
  border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(201, 162, 39, 0.07);
}
.product-note b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; }
.product-note span { font-size: 0.9rem; color: var(--text-muted); }
.product-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.product-spec h2 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; margin: 0 0 0.5rem; }
.product-spec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.product-spec li { position: relative; padding-left: 1rem; font-size: 0.92rem; color: var(--text-dark); }
.product-spec li::before { content: '◆'; position: absolute; left: 0; top: 0.15em; font-size: 0.5rem; color: var(--gold); }

.product-text { max-width: 72ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.product-text h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; margin: 0 0 0.6rem; }
.product-text p { color: var(--text-dark); line-height: 1.7; }
.product-related { border-top: 1px solid var(--line-dark); padding-top: clamp(1.4rem, 3vw, 2rem); }
.product-related h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; margin: 0 0 1.2rem; }

/* ── АДАПТИВ ──────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  /* кнопка «Смотреть каталог» скрыта — под неё больше не нужно место */
  .nav { gap: 1.25rem; --nav-reserve: 6rem; }
  .header-cta { display: none; }
}

/* Узкие экраны: пунктов много, а места мало — уплотняем меню,
   чтобы между ним и логотипом оставался заметный зазор */
@media (max-width: 940px) {
  .nav { gap: 1rem; --nav-reserve: 5rem; }
  .nav a { font-size: 0.82rem; }
}

@media (max-width: 1040px) {
  .header-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 560px; }
  .hero-media picture, .hero-media img { aspect-ratio: 5 / 4; }
  .hero-copy { max-width: none; }
  .about-grid, .rental-inner, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .contact-form { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  /* страница украшения: фото сверху, описание под ним */
  .product { grid-template-columns: 1fr; }
  .product-shot img { aspect-ratio: 4 / 5; }
}

@media (max-width: 820px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    left: auto;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    /* перебиваем высоту десктопного меню (var(--header-h)), иначе панель
       окажется высотой со шапку вместо всего экрана */
    height: auto;
    padding: 1.3rem 1.6rem 2rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.1rem;
    background: var(--cream-100);
    box-shadow: var(--shadow-lg);
    transform: translateX(103%);
    transition: transform 0.42s var(--ease-out);
    margin: 0;
    z-index: 110;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open { transform: none; }
  .nav a {
    font-family: var(--font-display);
    font-size: 1.55rem;
    padding-block: 0.2rem;
  }
  .nav a::after { display: none; }
  .nav-close {
    display: grid;
    place-items: center;
    align-self: flex-end;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    margin-bottom: 0.4rem;
  }
  .nav-close svg { width: 18px; height: 18px; }
  .nav-close path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .nav-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0.85rem 1.4rem !important;
    border-radius: var(--radius-pill);
    background: var(--ink-900);
    color: var(--cream-100) !important;
    font-family: var(--font-body) !important;
    font-size: 0.86rem !important;
    font-weight: 600;
  }
  .modal-body { grid-template-columns: 1fr; }
  /* на мобильном широкая карточка снова становится обычной вертикальной */
  .card--wide { grid-template-columns: minmax(0, 1fr); }
  .card--wide .card-media picture,
  .card--wide .card-media img { height: auto; aspect-ratio: 4 / 5; }
  .modal-gallery { min-height: 0; }
  .modal-shot img { aspect-ratio: 1 / 1; height: auto; min-height: 0; }
  .marquee-track { animation-duration: 30s; }
  /* тёмный фон под выезжающим меню, шапка остаётся читаемой */
  .site-header:has(.nav.is-open) { background: transparent; border-bottom-color: transparent; box-shadow: none; }
  .site-header:has(.nav.is-open) .brand,
  .site-header:has(.nav.is-open) .header-actions { position: relative; z-index: 112; }
  .site-header:has(.nav.is-open) .saved-btn,
  .site-header:has(.nav.is-open) .burger { background: var(--cream-100); }
}
@media (max-width: 560px) {
  .brand-tag { display: none; }
  .eyebrow { font-size: 0.64rem; letter-spacing: 0.16em; gap: 0.5rem; }
  .eyebrow-line { width: 22px; flex: none; }
  .hero-facts { gap: 1.4rem; }
  .hero-facts b { font-size: 1.25rem; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .card-foot .btn { width: 100%; }
  .contact-item { grid-template-columns: auto 1fr; }
  .contact-note { grid-column: 2; text-align: left; max-width: none; }
  /* Кнопка на телефоне остаётся с подписью «WhatsApp»: одна круглая
     иконка непонятна — не видно, что по нажатию откроется чат. */
  .float-wa { padding: 0.7rem 1rem; font-size: 0.8rem; gap: 0.4rem; }
  .float-wa svg { width: 16px; height: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .bundle-note { flex-direction: column; align-items: stretch; }
  .bundle-note .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

@media print {
  .site-header, .float-actions, .modal, .saved-panel, .marquee, .toast { display: none !important; }
  body { background: #fff; }
}
