/*==============================================
  libelle-new.css — Natasha Libelle
  Шаблон одной коллекции с под-коллекциями.
  Собран в стилистике обзорной страницы (../collectionbew/):
    Cormorant Garamond + Inter, палитра #faf8f5 / #7a5c8a / #1c1220.
  Структура:
    1. HERO       — крупная картинка + название
    2. INTRO      — короткое вступление + якорная навигация под-коллекций
    3. SUBS       — блоки под-коллекций (картинка + история + сетка товаров)
==============================================*/

:root {
  --lb-bg:       #faf8f5;
  --lb-surface:  #ffffff;
  --lb-hair:     #e8e3de;
  --lb-text:     #1c1220;
  --lb-muted:    #6b6570;
  --lb-accent:   #7a5c8a;
  --lb-warm:     #f5f2ee;
}

main.lb-page {
  background: var(--lb-bg);
  color: var(--lb-text);
}

/* ═══════════════════════════════════════════
   1. HERO — split 50/50: текст слева на бренд-фоне #f8f2f7 + фото справа.
   Паттерн взят один-в-один с существующих страниц коллекций
   (parmskaya-fialka, zaha-hadid, cs-hero) — тёмный текст на нежно-
   лавандовом фоне читается всегда, независимо от того, светлая
   картинка или тёмная.
═══════════════════════════════════════════ */
.lb-hero {
  padding-top: 68px; /* компенсация фиксированного хедера */
  background: #f8f2f7;
  overflow: hidden;
}
.lb-hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}

/* Левая колонка — текст на бренд-фоне */
.lb-hero__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 72px clamp(24px, 4vw, 72px) 64px;
  background: #f8f2f7;
}
.lb-hero__crumbs {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  color: rgba(28,18,32,0.45);
}
.lb-hero__crumbs li { display: flex; align-items: center; gap: 8px; }
.lb-hero__crumbs li + li::before { content: '/'; opacity: 0.5; flex-shrink: 0; }
.lb-hero__crumbs a { color: rgba(28,18,32,0.45); text-decoration: none; transition: color .2s; }
.lb-hero__crumbs a:hover { color: var(--lb-accent); }
.lb-hero__crumbs [aria-current] { color: var(--lb-text); font-weight: 600; }

.lb-hero__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lb-accent);
  margin-bottom: 20px;
}
.lb-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(48px, 6vw, 92px);
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 24px;
  color: var(--lb-text);
}
.lb-hero__title em {
  font-style: italic;
  color: var(--lb-accent);
}
.lb-hero__lead {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.85;
  color: rgba(28,18,32,0.6);
  max-width: 520px;
  margin: 0;
}

/* Правая колонка — фото коллекции */
.lb-hero__photo {
  position: relative;
  overflow: hidden;
  background: var(--lb-warm);
}
.lb-hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════
   2. INTRO + ЯКОРНАЯ НАВИГАЦИЯ ПОД-КОЛЛЕКЦИЙ
═══════════════════════════════════════════ */
.lb-intro {
  max-width: 1360px;
  margin: 0 auto;
  padding: 96px 40px 40px;
  text-align: center;
}
.lb-intro__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lb-accent);
  margin-bottom: 20px;
}
.lb-intro__text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.45;
  color: var(--lb-text);
  max-width: 780px;
  margin: 0 auto;
}
.lb-intro__text em {
  font-style: italic;
  color: var(--lb-accent);
}

/* Якорная навигация: сколько под-коллекций — столько кнопок */
.lb-anchor-nav {
  position: sticky;
  top: 72px;
  z-index: 30;
  background: var(--lb-bg);
  border-top: 1px solid var(--lb-hair);
  border-bottom: 1px solid var(--lb-hair);
  margin-top: 56px;
}
.lb-anchor-nav__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
}
.lb-anchor-nav__inner::-webkit-scrollbar { display: none; }
.lb-anchor-nav__item {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lb-muted);
  text-decoration: none;
  padding: 8px 0;
  transition: color .2s;
  white-space: nowrap;
  position: relative;
}
.lb-anchor-nav__item:hover,
.lb-anchor-nav__item.is-active {
  color: var(--lb-accent);
}
.lb-anchor-nav__item.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--lb-accent);
}

/* ═══════════════════════════════════════════
   3. БЛОКИ ПОД-КОЛЛЕКЦИЙ
═══════════════════════════════════════════ */
.lb-subs {
  max-width: 1360px;
  margin: 0 auto;
  padding: 96px 40px 120px;
  display: flex;
  flex-direction: column;
  gap: 140px;
}

.lb-sub {
  scroll-margin-top: 160px;
}

/* --- Заголовочная связка под-коллекции: фото + история --- */
.lb-sub__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 64px;
}
.lb-sub__head--reversed { direction: rtl; }
.lb-sub__head--reversed > * { direction: ltr; }

.lb-sub__media {
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  background: var(--lb-warm);
  position: relative;
  align-self: start;
}
.lb-sub__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.lb-sub:hover .lb-sub__media img {
  transform: scale(1.03);
}
.lb-sub__badge {
  position: absolute;
  top: 24px; left: 24px;
  background: var(--lb-accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 12px;
  z-index: 2;
}

.lb-sub__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lb-muted);
  margin-bottom: 20px;
}
.lb-sub__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(36px, 4.8vw, 56px);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--lb-text);
  margin: 0 0 24px;
}
.lb-sub__title em {
  font-style: italic;
  color: var(--lb-accent);
}
.lb-sub__story {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--lb-text);
  max-width: 520px;
}
.lb-sub__story p { margin: 0 0 16px; }
.lb-sub__story p:last-child { margin-bottom: 0; }
.lb-sub__meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--lb-muted);
  text-transform: uppercase;
}
.lb-sub__meta span strong {
  color: var(--lb-text);
  font-weight: 500;
  margin-left: 6px;
}

/* --- Строка-подзаголовок над сеткой товаров --- */
.lb-sub__items-lead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--lb-hair);
}
.lb-sub__items-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--lb-text);
}
.lb-sub__items-count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lb-muted);
}

/* --- Сетка товаров под-коллекции --- */
.lb-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}
.lb-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.lb-item__photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}
.lb-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.lb-item:hover .lb-item__photo img {
  transform: scale(1.03);
}
.lb-item__tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.92);
  color: var(--lb-text);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 10px;
}
.lb-item__name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.25;
  margin: 18px 0 6px;
  color: var(--lb-text);
}
.lb-item__spec {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--lb-muted);
  margin: 0 0 10px;
}
.lb-item__price {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--lb-text);
  margin: 0;
}
.lb-item__price s {
  color: #b8b3ac;
  font-weight: 300;
  margin-right: 8px;
}
.lb-item__price em {
  font-style: normal;
  color: var(--lb-accent);
}

/* CTA — «Все товары под-коллекции в каталоге» */
.lb-sub__cta {
  margin-top: 48px;
  text-align: center;
}
.lb-sub__cta a {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lb-text);
  text-decoration: none;
  padding: 14px 32px;
  border: 1px solid var(--lb-text);
  transition: background .2s, color .2s;
}
.lb-sub__cta a:hover {
  background: var(--lb-text);
  color: #fff;
}

/* Тонкий разделитель между под-коллекциями */
.lb-sub + .lb-sub::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--lb-hair);
  margin: -70px auto 70px;
}

/* ═══════════════════════════════════════════
   4. АДАПТАЦИЯ
═══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .lb-items { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  /* HERO складывается в одну колонку: сначала фото, потом текст под ним */
  .lb-hero__layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .lb-hero__photo {
    order: -1;
    height: clamp(280px, 50vw, 420px);
  }
  .lb-hero__text {
    padding: 48px 24px 56px;
  }
  .lb-hero__crumbs { margin-bottom: 20px; }

  .lb-intro { padding: 72px 24px 32px; }
  .lb-anchor-nav__inner { padding: 12px 24px; flex-wrap: nowrap; }
  .lb-subs { padding: 72px 24px 96px; gap: 96px; }
  .lb-sub__head {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
  }
  .lb-sub__head--reversed { direction: ltr; }
  .lb-sub__media { aspect-ratio: 5 / 4; max-width: 520px; margin: 0 auto; }
  .lb-sub__story { max-width: none; }
  .lb-items { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .lb-sub + .lb-sub::before { margin: -48px auto 48px; }
}
@media (max-width: 560px) {
  .lb-hero__text { padding: 40px 16px 48px; }
  .lb-intro { padding: 56px 16px 24px; }
  .lb-subs { padding: 56px 16px 72px; gap: 72px; }
  .lb-item__name { font-size: 17px; margin: 12px 0 4px; }
  .lb-item__spec { font-size: 11px; }
  .lb-items { gap: 20px 12px; }
}
@media (max-width: 420px) {
  .lb-items { grid-template-columns: 1fr; }
}
