.collection-intro { padding: 32px 0; border-bottom: 1px solid #ddd; background: #fff; }
.collection-intro__inner, .collection-preview__heading, .collection-preview__footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.collection-intro .section-title, .collection-preview .section-title { font-size: 32px; line-height: 1.15; margin: 0 0 12px; letter-spacing: 0; }
.collection-intro p, .collection-preview__footer p { margin: 0; }
.collection-intro .section-eyebrow, .collection-preview .section-eyebrow { margin-bottom: 12px; }
.collection-intro a, .collection-preview__heading > a { flex-shrink: 0; }
.collection-preview { padding: 56px 0; background: #fff; }
.collection-preview__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.collection-preview__grid a { color: #151414; text-decoration: none; min-width: 0; }
.collection-preview__grid img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; background: #f4f4f3; display: block; }
.collection-preview__grid span { display: block; font-family: var(--font-serif, Georgia, serif); font-size: 24px; margin-top: 10px; }
.collection-preview__footer { border-top: 1px solid #ddd; padding-top: 20px; font-size: 14px; }
.collection-preview__footer a { color: #151414; text-underline-offset: 5px; }
.dress-card--gallery .dress-card__img-real { background-size: contain; background-position: center; background-color: #f4f4f3; }
.dress-card--gallery:hover .dress-card__img-real { transform: none; }
.dress-card--gallery .dress-card__info { min-height: 92px; }
.collection-model-name { font: inherit; color: inherit; border: 0; padding: 0; background: transparent; cursor: pointer; text-align: left; }
.collection-model-name:hover { text-decoration: underline; text-underline-offset: 5px; }
.na-card--gallery { color: inherit; text-decoration: none; }
.na-card--gallery .na-card__img { background-size: contain; background-position: center; background-repeat: no-repeat; background-color: #f4f4f3; aspect-ratio: 2/3; }
.na-card--gallery .na-card__art { letter-spacing: 0; }
.collection-model-name:focus-visible, .pm-gallery__thumb:focus-visible { outline: 2px solid #151414; outline-offset: 4px; }
.product-modal--gallery [hidden] { display: none !important; }
.product-modal--gallery { padding: 16px; }
.product-modal--gallery .product-modal__card {
  width: 100%;
  max-width: 1560px;
  height: calc(100dvh - 32px);
  max-height: calc(100dvh - 32px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
}
.product-modal--gallery .pm-gallery__main { background-color: #f4f4f3; min-height: 0; }
.product-modal--gallery .product-modal__info { justify-content: flex-start; }
.product-modal--gallery .product-modal__actions { margin-top: 28px; }
.collection-index-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.collection-index-grid a { color: #151414; text-decoration: none; min-width: 0; }
.collection-index-grid img { width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; display: block; }
.collection-index-grid h3 { font-family: var(--font-serif, Georgia, serif); font-size: 26px; font-weight: 500; line-height: 1.2; margin: 16px 0 8px; letter-spacing: 0; }
.collection-index-grid p { margin: 0; font-size: 14px; }
.collection-index-grid a:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
/* Отступ якорей считается от реальной высоты верхних панелей: у гостя это
   шапка плюс вырез экрана, у вошедшего партнёра сверху добавляется плашка.
   Записанное числом значение не учитывало ни того, ни другого, и начало
   раздела пряталось под шапкой. */
:root { --marietta-top-offset: calc(78px + env(safe-area-inset-top, 0px)); }
#catalog-2027, #collections, #new-arrivals { scroll-margin-top: calc(var(--marietta-top-offset) + 14px); }
#cat-pills[hidden], #cat-featurebar[hidden] { display: none; }
body.collection-gallery-open #music-toggle,
body.collection-gallery-open #mc-root,
body.collection-gallery-open #marietta-lang-switcher,
body.collection-gallery-open #mls-btn { visibility: hidden; }
@media (max-width: 720px) {
  .product-modal--gallery { padding: 8px; }
  .product-modal--gallery .product-modal__card { height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
  .product-modal--gallery .pm-gallery { height: min(78dvh, 780px); }
  .product-modal--gallery .pm-gallery__main { flex: 1; height: auto; min-height: 0; }
  .product-modal--gallery .product-modal__close { position: fixed; top: 16px; right: 16px; z-index: 6; }
  .collection-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .collection-index-grid h3 { font-size: 22px; }
  .collection-intro__inner, .collection-preview__heading, .collection-preview__footer { align-items: flex-start; flex-direction: column; gap: 16px; }
  .collection-intro .section-title, .collection-preview .section-title { font-size: 26px; overflow-wrap: break-word; }
  .collection-preview { padding: 32px 0; }
  .collection-preview__grid { gap: 28px; grid-template-columns: minmax(0, 1fr); }
  .collection-preview__grid img { max-height: 560px; }
  .collection-preview__grid span { font-size: 21px; }
}
