/* Дополнения к стилям шаблона. Базовый дизайн — css/styles.css и
   update/css/style.css (классы 1:1). */

/* Jivo прячем в админке: скрипт мог загрузиться на публичной части (см. plugins/jivo.client.ts). */
html.jivo-hidden jdiv,
html.jivo-hidden [id^="jivo"],
html.jivo-hidden [class^="jivo"] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2147483600; /* выше чата Jivo и кнопки записи */
  width: calc(100% - 32px);
  max-width: 480px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid #ece4ea;
  box-shadow: 0 16px 44px rgba(60, 30, 55, 0.2);
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
}
.cookie-banner__text { color: #5a4f56; }
.cookie-banner__btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 14px;
  border-radius: 11px;
}
@media (max-width: 480px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 16px;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 32px 30px;
}
.modal-card__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.modal-card__title { margin-bottom: 16px; }

.app-form { display: flex; flex-direction: column; gap: 12px; }
.app-form__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9d2d7;
  border-radius: 8px;
  font-size: 15px;
}
.app-form__error { color: #c0392b; margin: 0; font-size: 14px; }

.catalog-empty { color: #8a7f86; padding: 24px 0; }

/* Фильтры каталога */
.catalog-filter .dropdown-menu {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scaleY(0.98);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.16, 0.84, 0.44, 1), visibility 0s linear 0.22s;
}
.catalog-filter .dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scaleY(1);
  pointer-events: auto;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.16, 0.84, 0.44, 1), visibility 0s;
}
.catalog-filter .caret { transition: transform 0.22s ease; }
.catalog-filter .dropdown.open .caret { transform: rotate(180deg); }

.catalog-filter__check { max-height: 320px; overflow-y: auto; min-width: 240px; padding: 8px 0; }
.catalog-filter__check li { padding: 0; }
.catalog-filter__check label { display: flex; align-items: center; gap: 9px; padding: 7px 16px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.catalog-filter__check label:hover { background: #faf2f7; }
.catalog-filter__check input { width: 16px; height: 16px; accent-color: #9c5789; }
.catalog-filter__check .muted { margin-left: auto; color: #b3a7ad; font-size: 12px; }
.catalog-filter__price { padding: 14px 16px; min-width: 220px; }
.catalog-filter__price-row { display: flex; gap: 8px; margin-bottom: 10px; }
.catalog-filter__price-input { width: 100%; padding: 8px 10px; border: 1px solid #d9d2d7; border-radius: 6px; font-size: 14px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.catalog-filter__active { margin-top: 12px; }
.catalog-filter__reset { background: none; border: 1px solid #e4dde1; border-radius: 16px; padding: 6px 14px; font-size: 13px; color: #9c5789; cursor: pointer; }
.catalog-filter__reset:hover { border-color: #9c5789; }

.fav-count { display: inline-block; min-width: 17px; padding: 0 4px; margin-left: 4px; background: #9c5789; color: #fff; border-radius: 9px; font-size: 11px; line-height: 17px; text-align: center; vertical-align: top; }

.catalog-item__fav.is-active svg { fill: #9c5789; stroke: #9c5789; }

.btn-outline-primary.is-active { background: #9c5789; border-color: #9c5789; }
.btn-outline-primary.is-active,
.btn-outline-primary.is-active span { color: #fff; }
.btn-outline-primary.is-active:hover { background: #844672; border-color: #844672; }

/* Страница избранного */
.favorites__cell { position: relative; }
.favorites__remove {
  position: absolute; top: 8px; left: 8px; z-index: 2; width: 28px; height: 28px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: #9c5789; cursor: pointer; font-size: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.favorites__remove:hover { background: #9c5789; color: #fff; }
.favorites__grid { position: relative; }
.fav-leave-active { transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 0.84, 0.44, 1); position: absolute; z-index: 0; width: calc((100% - 2 * 20px) / 3); }
.fav-leave-to { opacity: 0; transform: scale(0.86) translateY(8px); }
.fav-move { transition: transform 0.42s cubic-bezier(0.16, 0.84, 0.44, 1); }
@media (max-width: 991px) { .fav-leave-active { width: calc((100% - 4px) / 2); } }

/* ── Контент: блог/новости/бренды/невесты/отзывы/вакансии ── */
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 30px; }
.content-grid--brides { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.content-grid--brands { grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 992px) { .content-grid { grid-template-columns: repeat(2, 1fr); } .content-grid--brides, .content-grid--brands { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px) { .content-grid, .content-grid--brides, .content-grid--brands { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

.content-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.content-card__image { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; }
.content-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 0.84, 0.44, 1); }
.content-card:hover .content-card__image img { transform: scale(1.05); }
.content-card__title { display: block; margin-top: 12px; font-size: 17px; font-weight: 500; }
.content-card__summary { display: block; margin-top: 6px; color: #8a7f86; font-size: 14px; line-height: 1.5; }

.brand-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; border: 1px solid #ece5ea; border-radius: 8px; text-decoration: none; color: inherit; transition: border-color 0.25s, transform 0.25s; }
.brand-card:hover { border-color: #9c5789; transform: translateY(-4px); }
.brand-card { min-height: 168px; }
.brand-card__logo { height: 90px; display: flex; align-items: center; justify-content: center; }
/* multiply гасит зашитый белый фон jpg-логотипов на белой карточке. */
.brand-card__logo img { max-height: 90px; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.brand-card__name { font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; text-align: center; }
/* Бренд без логотипа: крупное название по центру. */
.brand-card--text { justify-content: center; }
.brand-card--text .brand-card__name { font-size: 20px; font-weight: 500; color: #6f3a61; }

.bride-card { display: block; text-decoration: none; color: inherit; }
.bride-card__image { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; }
.bride-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 0.84, 0.44, 1); }
.bride-card:hover .bride-card__image img { transform: scale(1.05); }
.bride-card__name { display: block; margin-top: 10px; text-align: center; font-size: 15px; }

.content-list__actions { text-align: center; margin: 26px 0 30px; }
/* Страница услуг (ателье) */
.atelier__title { text-align: center; margin-bottom: 22px; }
.atelier__lead { max-width: 820px; margin: 0 auto 38px; text-align: center; line-height: 1.8; font-size: 17px; color: #5a525a; }

/* Выпадающий список услуг */
.atelier-nav { position: relative; max-width: 340px; margin: 0 auto 40px; z-index: 20; }
.atelier-nav__toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 13px 20px; border: 1px solid #d9d2d7; border-radius: 10px; background: #fff;
  cursor: pointer; font-size: 15px; color: #1b1b1b;
}
.atelier-nav__toggle:hover { border-color: #9c5789; }
.atelier-nav__caret { width: 8px; height: 8px; border: solid #9c5789; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.22s ease; }
.atelier-nav.is-open .atelier-nav__caret { transform: rotate(-135deg); }
.atelier-nav__menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid #ece5ea; border-radius: 10px;
  box-shadow: 0 14px 34px rgba(120, 70, 100, 0.16);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scaleY(0.98); transform-origin: top;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.16, 0.84, 0.44, 1), visibility 0s linear 0.22s;
}
.atelier-nav.is-open .atelier-nav__menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.16, 0.84, 0.44, 1), visibility 0s; }
.atelier-nav__menu a { display: block; padding: 10px 16px; border-radius: 7px; color: #1b1b1b; text-decoration: none; transition: background 0.15s, color 0.15s; }
.atelier-nav__menu a:hover { background: #faf2f7; color: #9c5789; }
.atelier-nav__menu a.is-current { background: #9c5789; color: #fff; }

/* Карточки услуг: 2 крупные + 3 в ряд на 6-колоночной сетке */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px; }
.service-card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(120, 70, 100, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(120, 70, 100, 0.18); }
.service-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 0.84, 0.44, 1); }
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card__body { display: flex; flex-direction: column; gap: 9px; padding: 22px 24px; flex: 1; }
.service-card__title { font-size: 19px; font-weight: 500; }
.service-card__text { color: #6b626a; line-height: 1.6; font-size: 14px; flex: 1; }
.service-card__link { color: #9c5789; font-weight: 500; margin-top: 2px; }

.services-grid .service-card:nth-child(1),
.services-grid .service-card:nth-child(2) { grid-column: span 3; flex-direction: row; }
.services-grid .service-card:nth-child(1) .service-card__img,
.services-grid .service-card:nth-child(2) .service-card__img { width: 46%; aspect-ratio: auto; flex-shrink: 0; }
.services-grid .service-card:nth-child(1) .service-card__body,
.services-grid .service-card:nth-child(2) .service-card__body { width: 54%; justify-content: center; padding: 26px 28px; }
.services-grid .service-card:nth-child(1) .service-card__title,
.services-grid .service-card:nth-child(2) .service-card__title { font-size: 22px; }
.services-grid .service-card:nth-child(n+3) { grid-column: span 2; }

@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card:nth-child(1),
  .services-grid .service-card:nth-child(2),
  .services-grid .service-card:nth-child(n+3) { grid-column: span 1; flex-direction: column; }
  .services-grid .service-card:nth-child(1) .service-card__img,
  .services-grid .service-card:nth-child(2) .service-card__img { width: 100%; aspect-ratio: 4 / 3; }
  .services-grid .service-card:nth-child(1) .service-card__body,
  .services-grid .service-card:nth-child(2) .service-card__body { width: 100%; }
}
@media (max-width: 576px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card { grid-column: span 1 !important; }
}

/* Форма фидбэка в 2 колонки — переопределяет .app-form (flex-column). */
.section-feedback__form { display: grid; grid-gap: 16px 28px; }
@media (min-width: 768px) {
  .section-feedback__form { grid-template-columns: repeat(2, 1fr); }
  .section-feedback__form > .btn,
  .section-feedback__form > p,
  .section-feedback__form .section-feedback__checks { grid-column: 1 / -1; }
}

/* Reveal секции фидбэка: контент слева, картинка справа */
.reveal-ready .section-feedback .section-feedback__content { opacity: 0; transform: translateX(-30px); }
.reveal-ready .section-feedback .section-feedback__asset { opacity: 0; transform: translateX(30px); }
.reveal-ready .section-feedback.is-revealed .section-feedback__content,
.reveal-ready .section-feedback.is-revealed .section-feedback__asset {
  opacity: 1; transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.reveal-ready .section-feedback.is-revealed .section-feedback__asset { transition-delay: 0.12s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .section-feedback .section-feedback__content,
  .reveal-ready .section-feedback .section-feedback__asset { opacity: 1; transform: none; transition: none; }
}

/* Стаггер карточек в блоке «Платья примерить первыми» */
.reveal-ready .coollections .coollections__items .swiper-slide { opacity: 0; transform: translateY(26px); }
.reveal-ready .coollections.is-revealed .coollections__items .swiper-slide {
  opacity: 1; transform: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.coollections.is-revealed .coollections__items .swiper-slide:nth-child(1) { transition-delay: 0.04s; }
.coollections.is-revealed .coollections__items .swiper-slide:nth-child(2) { transition-delay: 0.1s; }
.coollections.is-revealed .coollections__items .swiper-slide:nth-child(3) { transition-delay: 0.16s; }
.coollections.is-revealed .coollections__items .swiper-slide:nth-child(4) { transition-delay: 0.22s; }
.coollections.is-revealed .coollections__items .swiper-slide:nth-child(5) { transition-delay: 0.28s; }
.coollections.is-revealed .coollections__items .swiper-slide:nth-child(6) { transition-delay: 0.34s; }
.coollections.is-revealed .coollections__items .swiper-slide:nth-child(n+7) { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .coollections .coollections__items .swiper-slide { opacity: 1; transform: none; transition: none; }
}

/* Карточка товара: бренд, скидка, экономия, наличие */
.catalog-item__brand { display: block; color: #9c5789; font-size: 13px; margin-top: 2px; }
.catalog-item__discount { display: inline-block; color: #c0392b; font-weight: 600; font-size: 13px; }
.catalog-item__price--old { color: #b3a8ad; text-decoration: line-through; font-weight: 400; }
.catalog-item__benefit { display: block; color: #1e7d3a; font-size: 13px; margin-top: 2px; }
.catalog-item__stock { display: inline-flex; align-items: center; gap: 5px; color: #1e7d3a; font-size: 13px; margin-top: 4px; }
.catalog-item__stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1e7d3a; display: inline-block; }

/* Чипсы выбранных фильтров над товарами */
.catalog-filter__active { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.catalog-filter__chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px;
  background: #faf2f7; border: 1px solid #e7d6e2; border-radius: 20px; font-size: 14px; color: #5a4150;
}
.catalog-filter__chip button {
  border: none; background: #9c5789; color: #fff; width: 18px; height: 18px; border-radius: 50%;
  font-size: 11px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.catalog-filter__chip button:hover { background: #7d3f6c; }
.catalog-filter__reset {
  border: none; background: none; color: #9c5789; cursor: pointer; font-size: 14px; text-decoration: underline; padding: 4px 6px;
}
.catalog-filter__reset:hover { color: #7d3f6c; }

/* Текст бренда — карточка «О бренде» под сеткой платьев */
.brand-about {
  margin-top: 54px;
  background: linear-gradient(180deg, #faf5f8 0%, #f6eef3 100%);
  border-radius: 18px;
  padding: 44px clamp(20px, 5vw, 64px);
}
.brand-about__title { text-align: center; margin-bottom: 26px; }
.brand-about__text { max-width: 940px; margin: 0 auto; color: #4a444a; font-size: 16px; }
.brand-about__text p { margin: 0 0 16px; }
.brand-about__text p:last-child { margin-bottom: 0; }
.brand-about__text ul { margin: 0 0 18px; padding-left: 22px; }
.brand-about__text li { margin-bottom: 6px; }
.brand-about__text li::marker { color: #9c5789; }
@media (max-width: 576px) { .brand-about { padding: 30px 18px; border-radius: 14px; } }

/* Подстраница услуги */
.atelier-detail { max-width: 900px; margin: 0 auto; }
/* Фото услуг ~540px — без апскейла/обрезки, иначе мылит. */
.atelier-detail__img { max-width: 560px; margin: 0 auto 30px; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(120, 70, 100, 0.12); }
.atelier-detail__img img { width: 100%; height: auto; display: block; }
.atelier-detail__text { line-height: 1.8; font-size: 16px; color: #4a444a; }
.atelier-detail__text h2 { margin: 26px 0 12px; }
.atelier-detail__text ul { margin: 0 0 16px; padding-left: 20px; }

.services-price-title { text-align: center; margin: 56px 0 22px; }
.atelier-price {
  width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse;
  border-radius: 12px; overflow: hidden; box-shadow: 0 6px 24px rgba(120, 70, 100, 0.08);
}
.atelier-price td { padding: 14px 20px; border-bottom: 1px solid #f0eaee; background: #fff; }
.atelier-price td:last-child { text-align: right; white-space: nowrap; color: #9c5789; font-weight: 600; }
.atelier-price tr:last-child td { border-bottom: none; }
.atelier-price__head td { background: #9c5789; color: #fff; font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: 0.04em; }
.atelier-price__head td:last-child { color: #fff; }

/* Страница поиска */
.search-page__form { display: flex; gap: 12px; max-width: 640px; margin: 20px 0 8px; }
.search-page__input { flex: 1; padding: 13px 16px; border: 1px solid #d9d2d7; border-radius: 8px; font-size: 15px; }
.search-page__count { color: #8a7f86; margin: 14px 0 20px; }
.search-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 768px) { .search-results { grid-template-columns: 1fr; } }
.search-result { display: flex; gap: 14px; padding: 14px; border: 1px solid #ece5ea; border-radius: 8px; text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s; }
.search-result:hover { border-color: #9c5789; transform: translateY(-2px); }
.search-result__img { flex-shrink: 0; width: 64px; height: 82px; border-radius: 4px; overflow: hidden; }
.search-result__img img { width: 100%; height: 100%; object-fit: cover; }
.search-result__body { display: flex; flex-direction: column; gap: 4px; }
.search-result__type { font-size: 12px; color: #9c5789; text-transform: uppercase; letter-spacing: 0.04em; }
.search-result__title { font-size: 16px; font-weight: 500; }
.search-result__snippet { font-size: 13px; color: #8a7f86; line-height: 1.5; }

/* Страница контактов */
.contacts { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; margin-top: 16px; }
@media (max-width: 768px) { .contacts { grid-template-columns: 1fr; } }
.contacts__row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #f0eaee; }
.contacts__ico { flex-shrink: 0; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: #faf2f7; border-radius: 50%; }
.contacts__val { display: flex; flex-direction: column; gap: 2px; line-height: 1.5; padding-top: 4px; }
.contacts__val a { color: #1b1b1b; }
.contacts__val a:hover { color: #9c5789; }
.contacts__val small { color: #9b8f97; font-size: 12px; }
.contacts__reqs { margin-top: 20px; line-height: 1.7; }
.contacts__reqs h3 { margin-bottom: 8px; }
.contacts__map iframe { width: 100%; border-radius: 8px; display: block; }
.contacts__feedback { max-width: 640px; margin: 48px auto 0; text-align: center; }
.contacts__feedback h2 { margin-bottom: 8px; }
.contacts__feedback p { color: #6b626a; margin-bottom: 18px; }
.contacts__form { text-align: left; }
.contacts__thanks { color: #1e7d3a; font-size: 17px; }

.brides-text { max-width: 860px; margin: 50px auto 0; padding: 0 16px; line-height: 1.8; color: #4a444a; font-size: 16px; }
.brides-text p { margin: 0 0 18px; }
.brides-text h2 { margin: 34px 0 16px; text-align: center; text-transform: uppercase; letter-spacing: 0.04em; color: #1b1b1b; }
/* Отзывы — карточки-цитаты */
.reviews-head {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto 32px;
}
.reviews-head__count { font-size: 17px; color: #5a525a; }
.reviews-head__count strong { color: #9c5789; font-size: 20px; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}
.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  background: linear-gradient(180deg, #ffffff 0%, #fdf9fc 100%);
  border: 1px solid #f0e3ec;
  border-radius: 22px;
  padding: 30px 28px 26px;
  box-shadow: 0 14px 38px rgba(120, 70, 100, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.review-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #b76aa0, #9c5789, #6f3a61);
  opacity: 0; transition: opacity 0.3s ease;
}
.review-card:hover { transform: translateY(-6px); box-shadow: 0 24px 52px rgba(120, 70, 100, 0.18); border-color: #e6cede; }
.review-card:hover::before { opacity: 1; }

.review-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.review-card__qmark {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #b76aa0 0%, #9c5789 50%, #6f3a61 100%);
  box-shadow: 0 8px 18px rgba(120, 70, 100, 0.28);
}
.review-card__stars { color: #e7b64d; font-size: 15px; letter-spacing: 2px; }

/* Клип до 6 строк — карточки одинаковой высоты. */
.review-card__text {
  position: relative;
  margin: 0;
  line-height: 1.75;
  color: #423a47;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Подвал прижат к низу (margin-top:auto) — линия авторов ровная. */
.review-card__foot {
  display: flex; align-items: center; gap: 14px;
  margin-top: auto; padding-top: 20px; border-top: 1px solid #f1e6ee;
}
.review-card__avatar {
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(120, 70, 100, 0.3), 0 0 0 4px #fff, 0 0 0 5px #f0e0ea;
}
.review-card__person { display: flex; flex-direction: column; min-width: 0; }
.review-card__name { font-weight: 600; color: #2a2230; font-size: 15.5px; line-height: 1.3; }
.review-card__role { font-size: 12.5px; color: #a98cb0; }
@media (max-width: 991px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .reviews-grid { grid-template-columns: 1fr; gap: 18px; } }

/* Форма-модалка заявки */
.modal-card--lead { max-width: 480px; }
.modal-card--lead .modal-card__title { font-size: 26px; margin-bottom: 22px; }
.app-form__textarea { min-height: 100px; resize: vertical; font-family: inherit; }
.app-form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #6b626a; text-align: left; cursor: pointer; }
.app-form__check input { margin-top: 2px; flex-shrink: 0; width: 18px; height: 18px; accent-color: #9c5789; }
.app-form__check a { color: #9c5789; }
.app-form__file { display: inline-flex; align-items: center; gap: 7px; color: #9c5789; cursor: pointer; font-size: 14px; align-self: center; padding: 6px 4px; }
.app-form__file input { display: none; }
.app-form__file:hover { text-decoration: underline; }
.app-form .btn-primary { margin-top: 6px; }

/* Анимация перелистывания списков (отзывы/невесты) */
.page-fade-enter-active, .page-fade-leave-active { transition: opacity 0.3s ease, transform 0.3s ease; }
.page-fade-enter-from { opacity: 0; transform: translateY(10px); }
.page-fade-leave-to { opacity: 0; transform: translateY(-10px); }

/* Анимация модалок (на весь экран, плавно) */
.modal-enter-active { transition: opacity 0.28s ease; }
.modal-leave-active { transition: opacity 0.22s ease; }
.modal-enter-from, .modal-leave-to { opacity: 0; }
.modal-enter-active .modal-card { transition: transform 0.32s cubic-bezier(0.16, 0.84, 0.44, 1), opacity 0.32s ease; }
.modal-leave-active .modal-card { transition: transform 0.22s ease, opacity 0.22s ease; }
.modal-enter-from .modal-card, .modal-leave-to .modal-card { transform: translateY(24px) scale(0.97); opacity: 0; }

.vacancy-list { max-width: 820px; margin: 30px auto 0; display: flex; flex-direction: column; gap: 28px; }
.vacancy-item__text { line-height: 1.6; margin-top: 8px; }

.content-detail { padding-top: 10px; }
.content-detail__title { margin-bottom: 22px; }
.content-detail__image { margin-bottom: 24px; border-radius: 8px; overflow: hidden; }
.content-detail__image img { width: 100%; height: auto; display: block; }
.content-detail__body { max-width: 860px; }
.content-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
@media (max-width: 768px) { .content-gallery { grid-template-columns: repeat(2, 1fr); } }
.content-gallery__item { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; }
.content-gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* Пагинация каталога */
.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 8px;
}
/* Цифры без рамок, активная подчёркнута. */
.catalog-pagination__page,
.catalog-pagination__nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 34px;
  padding: 0 6px;
  border: none;
  background: none;
  color: #1b1b1b;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.catalog-pagination__page:hover,
.catalog-pagination__nav:hover { color: #9c5789; }
.catalog-pagination__nav { color: #9c5789; font-size: 18px; }
.catalog-pagination__page.is-active {
  color: #1b1b1b;
  background: none;
  pointer-events: none;
}
.catalog-pagination__page.is-active::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 3px;
  height: 1.5px;
  background: #9c5789;
}
.catalog-pagination__dots { padding: 0 4px; color: #8a7f86; }
.page-content { line-height: 1.7; }

/* ── Анимации ── */
html { scroll-behavior: smooth; }

/* Reveal секций при скролле (только с JS) */
.reveal-ready .section,
.reveal-ready .product-main,
.reveal-ready .intro {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.16, 0.84, 0.44, 1);
  will-change: opacity, transform;
}
.reveal-ready .section.is-revealed,
.reveal-ready .product-main.is-revealed,
.reveal-ready .intro.is-revealed {
  opacity: 1;
  transform: none;
}

/* До инициализации Swiper — сетка, а не одна карточка во всю ширину. */
.section-catalog__swiper:not(.swiper-initialized) .swiper-wrapper,
.section-gallery__swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.section-catalog__swiper:not(.swiper-initialized) .swiper-slide {
  width: calc(25% - 12px);
}
.section-gallery__swiper:not(.swiper-initialized) .swiper-slide {
  width: calc(25% - 12px);
}
@media (max-width: 768px) {
  .section-catalog__swiper:not(.swiper-initialized) .swiper-slide,
  .section-gallery__swiper:not(.swiper-initialized) .swiper-slide {
    width: calc(50% - 8px);
  }
}

/* Ховер карточек */
.catalog-item { transition: transform 0.4s cubic-bezier(0.16, 0.84, 0.44, 1); }
.catalog-item:hover { transform: translateY(-6px); }
.catalog-item__image { overflow: hidden; }
.catalog-item__image img { transition: transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1); }
.catalog-item:hover .catalog-item__image img { transform: scale(1.05); }

/* Ховер кнопок и услуг */
.btn { transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease; }
.btn:hover { transform: translateY(-2px); }
.section-services__item img,
.services__item img { transition: transform 0.5s cubic-bezier(0.16, 0.84, 0.44, 1); }
.section-services__item:hover img,
.services__item:hover img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready .section,
  .reveal-ready .product-main,
  .reveal-ready .intro { opacity: 1; transform: none; transition: none; }
  .catalog-item,
  .catalog-item__image img,
  .btn { transition: none; }
}

/* Бургер-меню: шаблон прячет .header-new__navigation (display:none ≤991px) и не
   возвращает — показываем панелью под шапкой. */
@media (max-width: 991px) {
  .header-new { position: relative; }
  /* Панель всегда в DOM (для transition), скрыта opacity/visibility; absolute —
     чтобы открывалась под баром и не занимала места. */
  .header-new__navigation {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1300;
    background: #fff;
    border-top: 1px solid #f0e8ee;
    box-shadow: 0 18px 36px rgba(120, 70, 100, 0.16);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.16, 0.84, 0.44, 1), visibility 0s linear 0.34s;
  }
  .header-new__navigation.is-mobile-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.16, 0.84, 0.44, 1), visibility 0s;
  }
  .header-new__navigation .header-new__navigation-inner { display: block; }
  .header-new__navigation .header-new__nav { display: flex; flex-direction: column; }
  .header-new__navigation .header-new__nav > * { flex-grow: 0; }
  .header-new__navigation .header-new__nav > * a,
  .header-new__navigation .header-new__nav > *:first-child a,
  .header-new__navigation .header-new__search-btn a {
    height: auto;
    padding: 14px 2px;
    justify-content: flex-start;
    border-bottom: 1px solid #f3eef1;
  }
  .header-new__navigation .header-new__search-btn a { border-bottom: none; }
  /* Ховер-мегаменю каталога — только для десктопа; на мобиле тап ведёт в раздел. */
  .header-drop { display: none; }
  .header-new__navigation .header-new__nav .caret { display: none; }

  /* Стаггер пунктов при открытии */
  .header-new__navigation.is-mobile-open .header-new__nav > *,
  .header-new__navigation.is-mobile-open .header-new__search-btn {
    animation: navItemIn 0.42s both;
  }
  .header-new__navigation.is-mobile-open .header-new__nav > *:nth-child(1) { animation-delay: 0.05s; }
  .header-new__navigation.is-mobile-open .header-new__nav > *:nth-child(2) { animation-delay: 0.09s; }
  .header-new__navigation.is-mobile-open .header-new__nav > *:nth-child(3) { animation-delay: 0.13s; }
  .header-new__navigation.is-mobile-open .header-new__nav > *:nth-child(4) { animation-delay: 0.17s; }
  .header-new__navigation.is-mobile-open .header-new__nav > *:nth-child(5) { animation-delay: 0.21s; }
  .header-new__navigation.is-mobile-open .header-new__nav > *:nth-child(6) { animation-delay: 0.25s; }
  .header-new__navigation.is-mobile-open .header-new__nav > *:nth-child(7) { animation-delay: 0.29s; }
  .header-new__navigation.is-mobile-open .header-new__search-btn { animation-delay: 0.33s; }

  /* Бургер → крестик при is-nav-open */
  .mobile-nav__menu-toggle a > * {
    transition: transform 0.3s cubic-bezier(0.16, 0.84, 0.44, 1), opacity 0.2s ease;
  }
  .header-new.is-nav-open .mobile-nav__menu-toggle a > *:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .header-new.is-nav-open .mobile-nav__menu-toggle a > *:nth-child(2) { opacity: 0; }
  .header-new.is-nav-open .mobile-nav__menu-toggle a > *:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
@keyframes navItemIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Админка ── */
.admin {
  --a-brand: #9c5789;
  --a-brand-dark: #6f3a61;
  --a-ink: #2a2230;
  --a-muted: #8b7f90;
  --a-border: #ece3ea;
  --a-bg: #f5f0f4;
  --a-soft: #faf2f7;
  display: flex;
  min-height: 100vh;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--a-ink);
  background: var(--a-bg);
}

/* Сайдбар */
.admin__sidebar {
  width: 268px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fdf8fb 100%);
  border-right: 1px solid #f1e6ee;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: 8px 0 36px rgba(120, 70, 100, 0.05);
}
.admin__brand { display: flex; align-items: center; gap: 13px; padding: 24px 22px 20px; }
.admin__brand-logo { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #b76aa0, #6f3a61); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 0.03em; box-shadow: 0 12px 26px rgba(120, 50, 100, 0.32); }
.admin__brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.admin__brand-text b { font-size: 16.5px; color: var(--a-ink); letter-spacing: 0.01em; }
.admin__brand-text span { font-size: 10.5px; color: #bda7c6; text-transform: uppercase; letter-spacing: 0.12em; }

.admin__nav { display: flex; flex-direction: column; gap: 3px; padding: 6px 14px 14px; overflow-y: auto; flex: 1; }
.admin__nav-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #c6b1ce; padding: 18px 12px 7px; }
.admin__nav-group:first-child .admin__nav-label { padding-top: 6px; }
.admin__nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 13px; border-radius: 12px;
  color: #6a5f72; text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.admin__nav a svg { width: 19px; height: 19px; flex-shrink: 0; color: #bca9c3; transition: color 0.2s ease; }
.admin__nav a:hover { background: #faf0f6; color: var(--a-brand); }
.admin__nav a:hover svg { color: var(--a-brand); }
.admin__nav a.router-link-active {
  background: linear-gradient(135deg, #b76aa0, #9c5789 55%, #7d4169);
  color: #fff; box-shadow: 0 12px 24px rgba(120, 50, 100, 0.3);
}
.admin__nav a.router-link-active svg { color: #fff; }

.admin__user { padding: 14px; border-top: 1px solid #f2e9f0; display: flex; align-items: center; gap: 11px; }
.admin__user-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #b76aa0, #6f3a61); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.admin__user-info { min-width: 0; flex: 1; }
.admin__user-info b { display: block; font-size: 13px; color: var(--a-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin__user-info span { font-size: 11px; color: #1e7d3a; display: inline-flex; align-items: center; gap: 5px; }
.admin__user-info span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #28c76f; box-shadow: 0 0 0 3px rgba(40, 199, 111, 0.18); }
.admin__logout { border: none; background: #f6eef3; color: #9c5789; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, color 0.2s ease; flex-shrink: 0; }
.admin__logout:hover { background: #c0392b; color: #fff; }

/* Контент */
.admin__content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin__topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 13px 26px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--a-border);
}
.admin__burger { display: none; border: none; background: none; cursor: pointer; color: var(--a-ink); padding: 4px; }
.admin__topbar-spacer { flex: 1; }
.admin__site-link { display: inline-flex; align-items: center; gap: 8px; color: var(--a-brand); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 10px; border: 1px solid #e7d6e2; transition: background 0.2s ease, transform 0.2s ease; }
.admin__site-link:hover { background: var(--a-soft); transform: translateY(-1px); }
.admin__main { flex: 1; padding: 28px 30px 48px; }
.admin__title { font-size: 26px; font-weight: 600; margin: 0 0 22px; letter-spacing: -0.01em; position: relative; padding-bottom: 12px; }
.admin__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #b76aa0, #6f3a61); }

/* Карточки */
.admin-card {
  background: #fff; border: 1px solid var(--a-border); border-radius: 18px;
  padding: 24px; margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(120, 70, 100, 0.06);
}
.admin-card h3 { margin: 24px 0 14px; font-size: 16px; font-weight: 600; color: var(--a-ink); }
.admin-card h3:first-child { margin-top: 0; }

/* Поля */
.admin-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.admin-field label { font-size: 13px; font-weight: 500; color: var(--a-muted); }
.admin-input, .admin-textarea, .admin-select {
  width: 100%; padding: 11px 14px; border: 1px solid #ddd3da; border-radius: 11px;
  font: inherit; color: var(--a-ink); background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.admin-input:focus, .admin-textarea:focus, .admin-select:focus {
  outline: none; border-color: var(--a-brand); box-shadow: 0 0 0 4px rgba(156, 87, 137, 0.13);
}
.admin-input::placeholder, .admin-textarea::placeholder { color: #b9adbf; }
.admin-textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
/* Кастомный селект: своя стрелка-шеврон */
.admin-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239c5789' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.admin-row { display: flex; gap: 16px; flex-wrap: wrap; }
.admin-row > .admin-field { flex: 1; min-width: 160px; margin-bottom: 0; }

/* Таблицы */
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--a-border); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(120, 70, 100, 0.06); }
.admin-table th { padding: 14px 16px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--a-muted); background: var(--a-soft); border-bottom: 1px solid var(--a-border); }
.admin-table td { padding: 13px 16px; border-bottom: 1px solid #f1eaef; font-size: 14.5px; vertical-align: middle; }
.admin-table tbody tr { transition: background 0.15s ease; }
.admin-table tbody tr:hover { background: #fcf7fb; }
.admin-table tbody tr:last-child td { border-bottom: none; }

/* Панель над таблицей: основная кнопка + вспомогательные действия */
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Дерево разделов: сворачивание поддеревьев */
.admin-tree__row { display: flex; align-items: center; gap: 8px; }
.admin-tree__toggle {
  flex-shrink: 0; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border: none; background: none; color: var(--a-brand); cursor: pointer; border-radius: 6px;
  transition: background 0.15s ease;
}
.admin-tree__toggle:hover { background: #f4e7f0; }
.admin-tree__toggle svg { width: 13px; height: 13px; transition: transform 0.2s ease; }
.admin-tree__toggle.is-collapsed svg { transform: rotate(-90deg); }
.admin-tree__spacer { flex-shrink: 0; width: 22px; }
.admin-tree__name { color: var(--a-ink); }
.admin-tree__count {
  flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #9c8fa5; background: #f2ebf0; border-radius: 10px;
}

/* Кнопки смены порядка раздела (выше/ниже) */
.admin-order { display: inline-flex; vertical-align: middle; margin-right: 10px; border: 1px solid #e3d6de; border-radius: 9px; overflow: hidden; }
.admin-order__btn {
  width: 30px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: none; background: #fff; color: var(--a-brand); cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.admin-order__btn + .admin-order__btn { border-left: 1px solid #efe2ea; }
.admin-order__btn svg { width: 15px; height: 15px; }
.admin-order__btn:hover:not(:disabled) { background: var(--a-soft); }
.admin-order__btn:disabled { color: #d3c6cf; cursor: default; }

/* Кнопки */
.admin-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #b76aa0, #9c5789 55%, #7d4169); color: #fff;
  border: 0; padding: 11px 20px; border-radius: 11px; cursor: pointer; font: inherit; font-weight: 500;
  box-shadow: 0 8px 20px rgba(120, 50, 100, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}
.admin-btn + .admin-btn { margin-left: 10px; }
.admin-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(120, 50, 100, 0.32); }
.admin-btn:active { transform: translateY(0); }
.admin-btn[disabled] { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.admin-btn--ghost { background: #fff; color: var(--a-brand); border: 1px solid #e0cdd9; box-shadow: none; }
.admin-btn--ghost:hover { background: var(--a-soft); box-shadow: 0 6px 16px rgba(120, 70, 100, 0.12); }
.admin-btn--danger { background: linear-gradient(135deg, #e06a5b, #c0392b); box-shadow: 0 8px 20px rgba(192, 57, 43, 0.22); }
.admin-btn--danger:hover { box-shadow: 0 14px 28px rgba(192, 57, 43, 0.32); }
.admin-btn--sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }

/* Бейджи / прочее */
.admin-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 20px; }
.admin-badge--published { background: #e4f7ea; color: #1e7d3a; }
.admin-badge--draft { background: #fdf0dc; color: #b6791f; }
.admin-badge--admin { background: #f3e6f0; color: #9c5789; }
.admin-badge--editor { background: #e7eef9; color: #2f5aa8; }
.admin-badge--seo { background: #e7f5f1; color: #1f8a6d; }
.admin-badge--soft { background: #efeaed; color: #8a7d86; margin-left: 8px; padding: 2px 8px; font-size: 11px; }
.admin-error { color: #c0392b; background: #fdecea; border: 1px solid #f5c9c3; padding: 10px 14px; border-radius: 10px; margin: 10px 0; font-size: 14px; }
.admin-hint { color: var(--a-muted); font-size: 13px; margin: 4px 0 14px; line-height: 1.6; }
.admin-saved { color: #1e7d3a; font-weight: 500; margin-left: 10px; display: inline-flex; align-items: center; gap: 6px; }
.admin-pager { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: 18px; color: var(--a-muted); }

/* Загрузка фото */
.admin-uploads { display: flex; flex-wrap: wrap; gap: 12px; }
.admin-uploads__item { position: relative; width: 96px; height: 128px; border-radius: 12px; overflow: hidden; border: 1px solid var(--a-border); box-shadow: 0 4px 12px rgba(120, 70, 100, 0.08); transition: transform 0.2s ease; }
.admin-uploads__item:hover { transform: translateY(-2px); }
.admin-uploads__item img { width: 100%; height: 100%; object-fit: cover; }
.admin-uploads__del {
  position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border: none; border-radius: 50%;
  background: rgba(0, 0, 0, 0.6); color: #fff; cursor: pointer; line-height: 1; font-size: 13px; transition: background 0.2s ease;
}
.admin-uploads__del:hover { background: #c0392b; }
.admin-uploads__add {
  display: flex; align-items: center; justify-content: center; width: 96px; height: 128px;
  border: 1.5px dashed #cbb8c4; border-radius: 12px; color: var(--a-brand); cursor: pointer; text-align: center; font-size: 13px; padding: 6px; transition: border-color 0.2s ease, background 0.2s ease;
}
.admin-uploads__add:hover { border-color: var(--a-brand); background: var(--a-soft); }
.admin-uploads__raw { margin-top: 8px; }
.admin-uploads__raw summary { cursor: pointer; color: var(--a-muted); font-size: 13px; }

/* Форма редактирования: секции-карточки + закреплённые действия */
.admin-form__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.admin-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; border: none; background: none; color: var(--a-brand); font: inherit; font-weight: 500; cursor: pointer; padding: 4px 0; transition: gap 0.2s ease; }
.admin-back:hover { gap: 11px; }
.admin-form__title { font-size: 22px; font-weight: 600; margin: 0; }
.admin-form__actions {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; justify-content: flex-end; gap: 12px;
  padding: 16px 18px; margin: 4px -2px 0;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(8px);
  border: 1px solid var(--a-border); border-radius: 16px; box-shadow: 0 -6px 22px rgba(120, 70, 100, 0.07);
}

/* Дашборд: плитки быстрого доступа */
.admin-welcome p { margin: 0 0 8px; line-height: 1.65; color: #4a414f; }
.admin-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.admin-tile {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: #fff; border: 1px solid var(--a-border); border-radius: 16px; text-decoration: none; color: var(--a-ink);
  box-shadow: 0 10px 30px rgba(120, 70, 100, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.admin-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(120, 70, 100, 0.16); border-color: #e6cede; }
.admin-tile__icon { width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #b76aa0, #6f3a61); box-shadow: 0 8px 18px rgba(120, 50, 100, 0.28); }
.admin-tile__icon svg { width: 24px; height: 24px; }
.admin-tile__body { flex: 1; min-width: 0; }
.admin-tile__label { display: block; font-weight: 600; font-size: 16px; }
.admin-tile__text { display: block; font-size: 13px; color: var(--a-muted); margin-top: 2px; }
.admin-tile__arrow { color: #c9b3c2; flex-shrink: 0; transition: transform 0.22s ease, color 0.22s ease; }
.admin-tile:hover .admin-tile__arrow { color: var(--a-brand); transform: translateX(4px); }

/* Выпадающий список */
.admin-dd { position: relative; width: 100%; }
.admin-dd__toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border: 1px solid #ddd3da; border-radius: 11px; background: #fff;
  font: inherit; color: var(--a-ink); cursor: pointer; text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.admin-dd__toggle:hover { border-color: #cdb9c7; }
.admin-dd.is-open .admin-dd__toggle { border-color: var(--a-brand); box-shadow: 0 0 0 4px rgba(156, 87, 137, 0.13); }
.admin-dd__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-dd__value.is-ph { color: #b9adbf; }
.admin-dd__caret { width: 9px; height: 9px; flex-shrink: 0; border: solid var(--a-brand); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.25s ease; margin-bottom: 2px; }
.admin-dd.is-open .admin-dd__caret { transform: rotate(-135deg); margin-bottom: -3px; }
.admin-dd__menu {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid #ece3ea; border-radius: 13px; box-shadow: 0 18px 44px rgba(120, 70, 100, 0.2);
  max-height: 280px; overflow-y: auto;
}
/* Меню в body (Teleport): fixed по кнопке, поверх всего — не режется overflow таблицы. */
.admin-dd__menu--float { position: fixed; right: auto; z-index: 4000; }

/* Кастомные чекбоксы админки */
.admin input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle;
  border: 1.5px solid #d7c6d1; border-radius: 5px; background: #fff; cursor: pointer;
  position: relative; transition: background 0.15s ease, border-color 0.15s ease;
}
.admin input[type="checkbox"]:hover { border-color: #b98fac; }
.admin input[type="checkbox"]:checked { background: #9c5789; border-color: #9c5789; }
.admin input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.admin-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--a-ink); }
.admin-tpl { border: 1px solid #ece3ea; border-left: 3px solid #d9a8c9; border-radius: 12px; padding: 14px 16px 6px; margin-bottom: 14px; background: #fdfbfd; }
.admin-tpl__head { font-weight: 600; color: var(--a-ink); margin-bottom: 12px; }
.admin-tpl__vars { font-weight: 400; font-size: 12px; color: #9c8fa5; margin-left: 8px; }

/* Вкладки в админке */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 22px; border-bottom: 1px solid #ece3ea; }
.admin-tabs__tab { border: none; background: none; padding: 10px 16px; font: inherit; font-size: 14px; color: #8a7f88; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.15s ease, border-color 0.15s ease; }
.admin-tabs__tab:hover { color: var(--a-brand); }
.admin-tabs__tab.is-active { color: var(--a-brand); border-bottom-color: var(--a-brand); font-weight: 600; }

/* Зона загрузки файла (импорт CSV) */
.admin-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 34px 20px; border: 2px dashed #e0cfda; border-radius: 14px; background: #fdfafc; cursor: pointer; text-align: center; transition: border-color 0.18s ease, background 0.18s ease; }
/* Глобально прячем скрытые file-инпуты в админке (атрибут hidden перебивается
   глобальным правилом на input, поэтому гасим через селектор). */
.admin input[type="file"][hidden], .admin-drop input[type="file"] { display: none !important; }
.admin-drop:hover, .admin-drop.is-drag { border-color: var(--a-brand); background: #faf2f7; }
.admin-drop.is-busy { opacity: 0.6; pointer-events: none; }
.admin-drop svg { width: 34px; height: 34px; color: #b98fac; }
.admin-drop.is-drag svg, .admin-drop:hover svg { color: var(--a-brand); }
.admin-drop__title { font-weight: 600; color: var(--a-ink); }
.admin-drop__hint { font-size: 13px; color: #9c8fa5; }
.admin-drop__result { margin-top: 14px; padding: 11px 16px; border-radius: 10px; background: #eef7f0; border: 1px solid #cfe9d6; color: #2f7d4f; font-size: 14px; }

/* Облако тегов на страницах каталога */
.catalog-tags__title { font-family: "Cormorant Garamond", serif; font-size: 26px; text-transform: uppercase; margin-bottom: 18px; }
.catalog-tags__cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.catalog-tags__tag { display: inline-block; padding: 8px 16px; border: 1px solid #e8ded9; border-radius: 22px; color: #7a6f6a; font-size: 14px; text-decoration: none; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.catalog-tags__tag:hover { border-color: #9c5789; color: #9c5789; background: #faf2f7; }

/* Визуальный редактор */
.admin-rte { border: 1px solid #e2d5dd; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(120, 70, 100, 0.04); }
.admin-rte__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 7px 8px; background: #faf6f9; border-bottom: 1px solid #efe4ec; }
.admin-rte__btn {
  width: 34px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; background: transparent; border-radius: 8px; color: #6b5f68;
  cursor: pointer; font-size: 15px; line-height: 1; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.admin-rte__btn--txt { width: auto; min-width: 34px; padding: 0 9px; font-size: 13px; font-weight: 600; }
.admin-rte__btn:hover { background: #f1e2ec; color: var(--a-brand); }
.admin-rte__btn:active { background: #e9d3e2; }
.admin-rte__btn svg { width: 18px; height: 18px; display: block; }
.admin-rte__btn i { font-style: italic; }
.admin-rte__file { position: relative; overflow: hidden; }
.admin-rte__file input { position: absolute; inset: 0; opacity: 0; width: 0; height: 0; pointer-events: none; }
.admin-rte__file.is-busy { opacity: 0.6; pointer-events: none; }
.admin-rte__sep { width: 1px; height: 18px; background: #e6d7e2; margin: 0 5px; }
.admin-rte__hint { margin-left: 8px; font-size: 12px; color: #9c8fa5; }
.admin-rte__area { min-height: 240px; padding: 18px 20px; outline: none; line-height: 1.65; font-size: 15px; color: var(--a-ink); }
.admin-rte__area:focus { box-shadow: inset 0 0 0 2px rgba(156, 87, 137, 0.1); }
.admin-rte__area:empty::before { content: "Текст статьи…"; color: #b9adbf; }
.admin-rte__area img { max-width: 100%; height: auto; border-radius: 10px; margin: 10px 0; }
.admin-rte__area h2, .admin-rte__area h3 { margin: 16px 0 8px; font-family: "Cormorant Garamond", serif; }
.admin-rte__area p { margin: 8px 0; }
.admin-rte__area ul, .admin-rte__area ol { margin: 8px 0; padding-left: 24px; }
.admin-rte__area a { color: var(--a-brand); text-decoration: underline; }
.admin-dd__opt {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 13px; border: none; background: none; border-radius: 9px; font: inherit; color: var(--a-ink);
  cursor: pointer; text-align: left; transition: background 0.15s ease, color 0.15s ease;
}
.admin-dd__opt:hover { background: #faf0f6; color: var(--a-brand); }
.admin-dd__opt.is-active { background: var(--a-soft); color: var(--a-brand); font-weight: 600; }
.admin-dd-enter-active, .admin-dd-leave-active { transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.16, 0.84, 0.44, 1); transform-origin: top; }
.admin-dd-enter-from, .admin-dd-leave-to { opacity: 0; transform: translateY(-8px) scaleY(0.96); }

/* Тосты-уведомления */
.admin-toasts { position: fixed; top: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.admin-toast {
  pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: 12px;
  min-width: 230px; max-width: 380px; padding: 13px 18px 13px 14px; border-radius: 14px; background: #fff;
  box-shadow: 0 18px 44px rgba(40, 20, 40, 0.2); border: 1px solid #f0e6ee;
}
.admin-toast__icon { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.admin-toast__text { font-size: 14.5px; font-weight: 500; color: var(--a-ink); }
.admin-toast--success .admin-toast__icon { background: linear-gradient(135deg, #34d27b, #1e9e57); }
.admin-toast--error .admin-toast__icon { background: linear-gradient(135deg, #f0776a, #c0392b); }
.admin-toast--info .admin-toast__icon { background: linear-gradient(135deg, #b76aa0, #6f3a61); }
.admin-toast-enter-active { transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 0.84, 0.44, 1); }
.admin-toast-leave-active { transition: opacity 0.3s ease, transform 0.3s ease; position: relative; }
.admin-toast-enter-from { opacity: 0; transform: translateX(40px) scale(0.9); }
.admin-toast-leave-to { opacity: 0; transform: translateX(40px) scale(0.95); }
.admin-toast-move { transition: transform 0.3s ease; }

/* Бренд товара: шаблонный max-height:100% не работает (родитель height:auto) —
   ограничиваем <img> прямыми height/width, иначе высокий логотип лез на кнопки. */
.product-main__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.product-main__brand-logo { max-width: 175px; max-height: 70px; flex: 0 0 auto; }
.product-main__brand-logo img { max-height: 70px; max-width: 175px; width: auto; height: auto; mix-blend-mode: multiply; }
@media (max-width: 767px) {
  .product-main__brand-logo { max-width: 120px; max-height: 48px; }
  .product-main__brand-logo img { max-height: 48px; max-width: 120px; }
}

/* Прелоадер */
.admin-loader {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background: radial-gradient(60% 60% at 50% 42%, #fdf6fb 0%, #f6ebf3 55%, #efe2ec 100%);
  backdrop-filter: blur(8px);
}
.admin-loader__stage { position: relative; width: 138px; height: 138px; display: flex; align-items: center; justify-content: center; }
/* Вращающиеся кольца-дуги */
.admin-loader__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 200deg, rgba(183, 106, 160, 0.25) 300deg, #9c5789 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: admin-spin 1.15s linear infinite;
}
.admin-loader__ring--2 { inset: 16px; opacity: 0.6; animation-duration: 1.7s; animation-direction: reverse; }
.admin-loader__flower { width: 84px; height: 84px; display: block; animation: admin-bloom-rot 9s linear infinite; }
.admin-loader__flower svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 10px 22px rgba(120, 50, 100, 0.3)); }
.admin-loader__petals ellipse { transform-origin: 50px 50px; animation: admin-bloom 2.4s ease-in-out infinite; animation-delay: calc(var(--p) * 0.12s); }
.admin-loader__core { fill: #f1c44e; animation: admin-core 2.4s ease-in-out infinite; transform-origin: 50px 50px; }
.admin-loader__brand {
  font-size: 15px; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; color: #7d4169;
  padding-left: 0.42em; animation: admin-brand-pulse 2.2s ease-in-out infinite;
}
@keyframes admin-spin { to { transform: rotate(360deg); } }
@keyframes admin-bloom-rot { to { transform: rotate(360deg); } }
@keyframes admin-bloom {
  0%, 100% { transform: scale(0.82); opacity: 0.78; }
  50% { transform: scale(1.05); opacity: 1; }
}
@keyframes admin-core {
  0%, 100% { transform: scale(0.9); }
  50% { transform: scale(1.12); }
}
@keyframes admin-brand-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.admin-loader-enter-active, .admin-loader-leave-active { transition: opacity 0.35s ease; }
.admin-loader-enter-active .admin-loader__stage, .admin-loader-leave-active .admin-loader__stage { transition: transform 0.4s cubic-bezier(0.16, 0.84, 0.44, 1); }
.admin-loader-enter-from, .admin-loader-leave-to { opacity: 0; }
.admin-loader-enter-from .admin-loader__stage, .admin-loader-leave-to .admin-loader__stage { transform: scale(0.8); }
@media (prefers-reduced-motion: reduce) {
  .admin-loader__ring, .admin-loader__flower, .admin-loader__petals ellipse, .admin-loader__core, .admin-loader__brand { animation-duration: 0s; }
}

/* Защита от выхода текста за рамки */
.admin__main { min-width: 0; overflow-x: hidden; }
.admin-table { table-layout: auto; }
.admin-table td, .admin-table th { overflow-wrap: anywhere; word-break: break-word; }
.admin-card { overflow-wrap: anywhere; }
.admin-uploads__add span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* Дымчатый градиент на фото: белое платье читаемо на белом фоне, низ затемнён
   под белый текст карточки. */
.catalog-item__image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(214.1deg, rgba(141, 122, 109, 0.1) 50.16%, #8E7F74 100%);
}
/* Зерно — «пыльный» эффект */
.catalog-item__image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Подпись «Свадебный салон» абсолютно внутри логотипа, снизу слева. */
.header-new__logo > a { position: relative; display: inline-block; line-height: 0; }
.header-new__logo-sub {
  position: absolute;
  left: 3px;
  bottom: 3px;
  line-height: 1;
  font-family: "Gilroy", Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #9b8f97;
  white-space: nowrap;
}

/* Старая цена: серый текст, фиолетовое диагональное перечёркивание. */
.catalog-item__prices .catalog-item__price--old,
.product-main__price-old {
  color: #D8D8D8;
  opacity: 1;
  text-decoration: none;
  position: relative;
  background-image: none;
}
.catalog-item__prices .catalog-item__price--old::after,
.product-main__price-old::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 1px;
  background: #98208b;
  transform: translateY(-50%) rotate(-11deg);
  transform-origin: center;
  pointer-events: none;
}

/* Кнопка «вперёд» кружком справа — только на телефоне. */
@media (max-width: 767px) {
  .coollections .section-catalog__swiper .swiper-navigation { display: block !important; }
  .coollections .swiper-button-prev { display: none !important; }
  .coollections .swiper-button-next {
    position: absolute; right: -2px; top: 44%; z-index: 6; margin: 0;
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff; box-shadow: 0 8px 22px rgba(120, 70, 100, 0.18);
    display: flex; align-items: center; justify-content: center;
  }
  .coollections .swiper-button-next::after { font-size: 15px; color: #6f3a61; }
}

/* ── Админ-таблицы на мобильных → карточки: строка = карточка, ячейка =
   «подпись (data-label): значение». Иначе 6–10 колонок сжимались в нечитаемый столбец. ── */
@media (max-width: 768px) {
  .admin-table { display: block; background: none; border: none; box-shadow: none; border-radius: 0; }
  .admin-table thead { display: none; }
  .admin-table tbody { display: block; }
  .admin-table tr {
    display: block; background: #fff; border: 1px solid var(--a-border);
    border-radius: 12px; padding: 4px 14px; margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(120, 70, 100, 0.05);
  }
  .admin-table td {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px 0; border-bottom: 1px solid #f3eef1;
    text-align: right; white-space: normal; word-break: normal; overflow-wrap: anywhere;
    font-size: 14px;
  }
  .admin-table tr td:last-child { border-bottom: none; }
  .admin-table td[data-label]::before {
    content: attr(data-label); flex: 0 0 auto; max-width: 48%; text-align: left;
    font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--a-muted);
  }
  /* Действия — кнопки в ряд на всю ширину */
  .admin-table td.admin-cell--actions { justify-content: stretch; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
  .admin-table td.admin-cell--actions .admin-btn { flex: 1 1 auto; margin: 0; }
  /* Картинка — по центру */
  .admin-table td.admin-cell--media { justify-content: center; }
  .admin-table td.admin-cell--media img { max-width: 92px; height: auto; }
  /* Скрываем пустые ячейки, чтобы не было пустых строк. */
  .admin-table td:empty { display: none; }
  /* Поля/выпадашки — ширина справа от подписи */
  .admin-table td > .admin-input,
  .admin-table td > .admin-dd { flex: 1 1 auto; width: auto !important; min-width: 0; max-width: 60%; }
}
.admin-uploads__raw .admin-textarea { word-break: break-all; }
/* Нативный file-input скрыт — видна только кнопка «+ Добавить». */
.admin-uploads input[type="file"], .admin-uploads__add input { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; pointer-events: none !important; }

/* Переход между страницами + стаггер элементов */
.admin-fade-enter-active { transition: opacity 0.25s ease; }
.admin-fade-leave-active { transition: opacity 0.18s ease; }
.admin-fade-enter-from, .admin-fade-leave-to { opacity: 0; }

.admin__page > div > * { animation: admin-rise 0.55s cubic-bezier(0.16, 0.84, 0.44, 1) both; }
.admin__page > div > *:nth-child(1) { animation-delay: 0.04s; }
.admin__page > div > *:nth-child(2) { animation-delay: 0.1s; }
.admin__page > div > *:nth-child(3) { animation-delay: 0.16s; }
.admin__page > div > *:nth-child(4) { animation-delay: 0.22s; }
.admin__page > div > *:nth-child(5) { animation-delay: 0.28s; }
.admin__page > div > *:nth-child(6) { animation-delay: 0.34s; }
.admin__page > div > *:nth-child(n+7) { animation-delay: 0.4s; }
/* Плитки дашборда — стаггер */
.admin-tiles > * { animation: admin-rise 0.5s cubic-bezier(0.16, 0.84, 0.44, 1) both; }
.admin-tiles > *:nth-child(2) { animation-delay: 0.05s; }
.admin-tiles > *:nth-child(3) { animation-delay: 0.1s; }
.admin-tiles > *:nth-child(4) { animation-delay: 0.15s; }
.admin-tiles > *:nth-child(5) { animation-delay: 0.2s; }
.admin-tiles > *:nth-child(6) { animation-delay: 0.25s; }
.admin-tiles > *:nth-child(7) { animation-delay: 0.3s; }
.admin-tiles > *:nth-child(n+8) { animation-delay: 0.35s; }
@keyframes admin-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .admin__page > div > *, .admin-tiles > * { animation: none; }
}

/* Вход */
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(1200px 600px at 70% -10%, #f3dcec 0%, transparent 60%), linear-gradient(160deg, #2c2030, #43273c); }
.admin-login__card { width: 100%; max-width: 400px; background: #fff; border-radius: 22px; padding: 38px 34px; box-shadow: 0 30px 80px rgba(40, 20, 40, 0.45); animation: admin-pop 0.45s cubic-bezier(0.16, 0.84, 0.44, 1); }
.admin-login__petal { position: fixed; pointer-events: none; }
.admin-login__petal--1 { width: 320px; height: 320px; top: -90px; left: -80px; animation: admin-spin 60s linear infinite; }
.admin-login__petal--2 { width: 240px; height: 240px; bottom: -70px; right: -60px; animation: admin-spin 80s linear infinite reverse; }
.admin-login__logo { width: 58px; height: 58px; border-radius: 16px; margin: 0 auto 18px; background: linear-gradient(135deg, #b76aa0, #6f3a61); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 22px; box-shadow: 0 12px 28px rgba(120, 50, 100, 0.4); }
.admin-login__title { text-align: center; font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.admin-login__sub { text-align: center; color: var(--a-muted); font-size: 14px; margin: 0 0 24px; }
@keyframes admin-pop { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }

/* Confirm-попап */
.admin-modal__backdrop { position: fixed; inset: 0; z-index: 2000; background: rgba(40, 20, 40, 0.5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.admin-modal { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 30px 28px; box-shadow: 0 30px 80px rgba(40, 20, 40, 0.4); text-align: center; }
.admin-modal__icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: #fdecea; color: #c0392b; display: flex; align-items: center; justify-content: center; }
.admin-modal__title { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.admin-modal__text { color: var(--a-muted); margin: 0 0 24px; line-height: 1.6; }
.admin-modal__actions { display: flex; gap: 12px; justify-content: center; }
.admin-modal-enter-active, .admin-modal-leave-active { transition: opacity 0.25s ease; }
.admin-modal-enter-active .admin-modal, .admin-modal-leave-active .admin-modal { transition: transform 0.3s cubic-bezier(0.16, 0.84, 0.44, 1), opacity 0.3s ease; }
.admin-modal-enter-from, .admin-modal-leave-to { opacity: 0; }
.admin-modal-enter-from .admin-modal, .admin-modal-leave-to .admin-modal { transform: translateY(20px) scale(0.95); opacity: 0; }

@media (max-width: 860px) {
  .admin__sidebar { position: fixed; left: 0; top: 0; z-index: 1000; transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.16, 0.84, 0.44, 1); box-shadow: 0 0 60px rgba(0, 0, 0, 0.4); }
  .admin.is-sidebar-open .admin__sidebar { transform: none; }
  .admin__burger { display: inline-flex; }
  .admin__scrim { position: fixed; inset: 0; z-index: 900; background: rgba(0, 0, 0, 0.4); }
  .admin__main { padding: 20px 16px 40px; }
}

/* Блок «Какой образ вам ближе?» */
.dress-filter__look-item {
  width: 100%;
  background: none;
  border: 1px solid transparent;
  outline: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Образы — часть фильтра: только обводка, выбор не уводит со страницы. */
.dress-filter__look-item { border-radius: 22px; overflow: hidden; }
.dress-filter__look-item:hover { border-color: #d3a8c5; }
.dress-filter__look-item.is-active { border-color: #9c5789; }
/* Кадр 232/308 через padding-хак (работает во всех браузерах, включая старые Android,
   где aspect-ratio не поддерживается — там карточки растягивались во весь экран).
   308/232 = 132.76%. Картинка абсолютом заполняет рамку, обрезаем снизу. */
.dress-filter__look-image-wrap { position: relative; display: block; overflow: hidden; border-radius: 20px 20px 0 0; padding-top: 132.76%; }
.dress-filter__look-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

/* Чипы силуэта/цвета: flex-wrap, не grid — иначе на ~1280px вылезали за разделитель. */
.dress-filter__chips { display: flex; flex-wrap: wrap; gap: 12px; }
.dress-filter__chips > * { flex: 1 1 calc(33.333% - 8px); min-width: 0; }
/* Цвета по 3 в ряд: при 4 длинные слова («изумрудный») не влезают; по 4 — только от 1600px. */
@media (min-width: 1600px) {
  .dress-filter__chips--col > * { flex-basis: calc(25% - 9px); }
}
.dress-filter__chip {
  padding: 14px 10px; border: 1px solid #f0e8ee; border-radius: 30px; background: #fff;
  color: #3a3340; font-size: 14px; cursor: pointer; line-height: 1.2; text-align: center;
  box-shadow: 0 6px 16px rgba(120, 70, 100, 0.06);
  overflow-wrap: break-word;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.dress-filter__chip:hover { border-color: #9c5789; box-shadow: 0 8px 20px rgba(120, 70, 100, 0.12); }
.dress-filter__chip.is-active { border-color: #9c5789; color: #9c5789; background: #faf2f7; font-weight: 500; }
.dress-filter__chip--more { color: #9b8f97; background: none; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.dress-filter__chip--more:hover { border-color: transparent; box-shadow: none; color: #9c5789; }
.dress-filter__chip-caret { width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.22s ease; }
.dress-filter__chip-caret.is-up { transform: rotate(-135deg); }
.dress-filter__empty { color: #b3a8ad; font-size: 14px; flex-basis: 100%; }
/* Анимация смены чипов */
.chip-enter-active, .chip-leave-active { transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 0.84, 0.44, 1); }
.chip-enter-from, .chip-leave-to { opacity: 0; transform: scale(0.82) translateY(8px); }
.chip-leave-active { position: absolute; }
.chip-move { transition: transform 0.4s cubic-bezier(0.16, 0.84, 0.44, 1); }
@media (max-width: 600px) {
  .dress-filter__chips > * { flex-basis: calc(50% - 6px); }
}

/* Бренд — выпадающий список */
.df-brand { position: relative; }
.df-brand__toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px; border: 1px solid #d9d2d7; border-radius: 10px; background: #fff;
  cursor: pointer; font-size: 15px; color: #1b1b1b; transition: border-color 0.2s ease;
}
.df-brand__toggle:hover, .df-brand.open .df-brand__toggle { border-color: #9c5789; }
.df-brand__caret { width: 9px; height: 9px; border: solid #9c5789; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.25s ease; flex-shrink: 0; margin-left: 10px; }
.df-brand.open .df-brand__caret { transform: rotate(-135deg); }
.df-brand__menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40; margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid #ece5ea; border-radius: 12px;
  box-shadow: 0 16px 38px rgba(120, 70, 100, 0.18); max-height: 280px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-10px) scaleY(0.96); transform-origin: top;
  transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.16, 0.84, 0.44, 1), visibility 0s linear 0.26s;
}
.df-brand.open .df-brand__menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.16, 0.84, 0.44, 1), visibility 0s; }
.df-brand__menu button { width: 100%; text-align: left; display: block; padding: 10px 14px; border: none; background: none; border-radius: 8px; color: #1b1b1b; cursor: pointer; font-size: 14px; transition: background 0.15s, color 0.15s; }
.df-brand__menu button:hover { background: #faf2f7; color: #9c5789; }
.df-brand__menu button.is-current { background: #9c5789; color: #fff; }

/* Пресеты бюджета — бежевые пилюли */
.dress-filter__filter-presets { display: flex; flex-wrap: wrap; gap: 10px; }
.dress-filter__filter-preset.btn {
  background: #efe7df; border: none; border-radius: 22px;
  padding: 9px 18px; font-size: 14px; color: #3a3340; line-height: 1.2;
  transition: background 0.18s ease, color 0.18s ease;
}
.dress-filter__filter-preset.btn:hover { background: #e6d8cd; color: #9c5789; }

/* Бюджет: подписи «от … / до …» над ползунком. */
.df-range-labels { display: flex; justify-content: space-between; font-size: 14px; color: #3a3340; margin-bottom: 4px; }

/* Нативный дубль-слайдер цены (два overlay range-инпута) — замена ion.rangeSlider. */
.df-range { position: relative; height: 34px; }
.df-range__track { position: absolute; top: 50%; left: 0; right: 0; height: 4px; transform: translateY(-50%); background: #e6dce3; border-radius: 3px; }
.df-range__fill { position: absolute; top: 0; bottom: 0; background: #9c5789; border-radius: 3px; transition: left 0.35s cubic-bezier(0.16, 0.84, 0.44, 1), right 0.35s cubic-bezier(0.16, 0.84, 0.44, 1); }
.df-range__input { position: absolute; top: 0; left: 0; width: 100%; height: 34px; margin: 0; padding: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.df-range__input::-webkit-slider-runnable-track { -webkit-appearance: none; background: none; border: none; }
.df-range__input::-moz-range-track { background: none; border: none; }
.df-range__input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #fff; border: 2px solid #9c5789; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); cursor: pointer; }
.df-range__input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #9c5789; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); cursor: pointer; }

/* Мобильные выпадашки силуэта/цвета (на десктопе скрыты — там чипсы). */
.df-select--mobile { display: none; }
.df-select__toggle { padding: 11px 18px; }
.df-select__field { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; text-align: left; }
.df-select__cap { font-size: 11px; color: #a596a0; letter-spacing: 0.02em; }
.df-select__val { font-size: 15px; color: #1b1b1b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
@media (max-width: 767px) {
  .dress-filter__filter-title { display: none; }
  .dress-filter__chips--sil, .dress-filter__chips--col { display: none; }
  .df-select--mobile { display: block; }
}

.dress-filter__range-values { display: flex; justify-content: space-between; font-size: 15px; color: #5a505a; margin-bottom: 10px; }
.dress-filter__range { position: relative; height: 36px; }
.dress-filter__range-track,
.dress-filter__range-fill { position: absolute; top: 16px; height: 4px; border-radius: 2px; }
.dress-filter__range-track { left: 0; right: 0; background: #e4dde1; }
.dress-filter__range-fill { background: #9c5789; transition: left 0.15s ease, width 0.15s ease; }
.dress-filter__range-input {
  position: absolute; top: 0; left: 0; width: 100%; height: 36px; margin: 0;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.dress-filter__range-input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #9c5789;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); cursor: pointer; transition: transform 0.15s ease;
}
.dress-filter__range-input::-webkit-slider-thumb:hover { transform: scale(1.12); }
.dress-filter__range-input::-moz-range-thumb {
  pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 2px solid #9c5789; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); cursor: pointer;
}
.dress-filter__range-input::-moz-range-track { background: none; }

/* Списки подборщика раскрываются поверх блока, без обрезки рамкой карточки. */
.dress-filter__card { overflow: visible !important; }
.dress-filter__filters { overflow: visible; }
/* Поднимаем фильтр над секцией «Новинки» (её карточки имеют z-index: 2),
   иначе выпадающий список брендов уходит под неё. */
.dress-filter { position: relative; z-index: 20; }
.df-brand__menu { z-index: 60; }

/* Выпадающие списки подборщика */
.df-drop { position: relative; }
.df-drop__toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px; border: 1px solid #d9d2d7; border-radius: 10px; background: #fff;
  cursor: pointer; font-size: 15px; color: #1b1b1b; transition: border-color 0.2s ease;
}
.df-drop__toggle:hover, .df-drop.open .df-drop__toggle { border-color: #9c5789; }
.df-drop__caret { width: 8px; height: 8px; border: solid #9c5789; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.22s ease; flex-shrink: 0; margin-left: 10px; }
.df-drop.open .df-drop__caret { transform: rotate(-135deg); }
.df-drop__menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid #ece5ea; border-radius: 10px;
  box-shadow: 0 14px 34px rgba(120, 70, 100, 0.16); max-height: 280px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scaleY(0.98); transform-origin: top;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.16, 0.84, 0.44, 1), visibility 0s linear 0.22s;
}
.df-drop.open .df-drop__menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.16, 0.84, 0.44, 1), visibility 0s; }
.df-drop__menu button {
  width: 100%; text-align: left; display: block; padding: 10px 14px; border: none; background: none;
  border-radius: 7px; color: #1b1b1b; cursor: pointer; font-size: 14px; transition: background 0.15s, color 0.15s;
}
.df-drop__menu button:hover { background: #faf2f7; color: #9c5789; }
.df-drop__menu button.is-current { background: #9c5789; color: #fff; }

/* ── Мобильные фиксы поверх шаблона ── */

/* Карусель образов — Swiper: шаблон поставил overflow:visible, на мобиле слайды
   тянули страницу до ~1038px. Возвращаем клиппинг. */
.dress-filter__looks { overflow: hidden; padding-bottom: 24px; }

/* Страховка от горизонтального скролла на узких экранах. */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
}

/* Планшет (768–991px): подписи групп к чипсам. На телефоне их нет — там выпадашки. */
@media (min-width: 768px) and (max-width: 991px) {
  .dress-filter__filter-title {
    display: block;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #a596a0;
    margin: 2px 0 12px;
  }
}
@media (max-width: 991px) {
  /* Расстояние между Силуэт / Цвета / Бренд задаёт именно grid-gap. */
  .dress-filter__filters-inner { grid-gap: 8px; }
}

/* ── Каталог на мобильных: разделы пилюлями, фильтры аккордеоном ── */
@media (max-width: 767px) {
  /* Разделы — пилюли вместо «стены ссылок» */
  .catalog-filter__tags {
    gap: 8px;
    margin-bottom: 18px;
  }
  .catalog-filter__tag {
    align-items: center;
    padding: 8px 14px;
    border: 1px solid #ece0e8;
    border-radius: 20px;
    background: #fff;
    font-size: 12.5px;
    line-height: 1.1;
    color: #5a4f56;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  }
  .catalog-filter__tag:hover,
  .catalog-filter__tag:active {
    border-color: #9c5789;
    color: #9c5789;
    background: #faf2f7;
  }

  /* Фильтры — аккордеон на всю ширину; абсолютные выпадашки уезжали за край. */
  .catalog-filter__row {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  * + .catalog-filter__row { margin-top: 8px; }
  .catalog-filter__main {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .catalog-filter__main > .dropdown,
  .catalog-filter__sort > .dropdown {
    width: 100%;
    border-bottom: 1px solid #f0e8ee;
  }
  .catalog-filter__main > .dropdown:first-child { border-top: 1px solid #f0e8ee; }
  .catalog-filter__sort {
    margin-left: 0;
    width: 100%;
    border-top: 1px solid #f0e8ee;
  }
  .catalog-filter__main .dropdown-toggle,
  .catalog-filter__sort .dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 4px;
    font-size: 14px;
  }
  /* Раскрытие — аккордеоном вниз */
  .catalog-filter .dropdown-menu {
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    float: none !important;
    border: none !important;
    box-shadow: none !important;
    background: #faf7f9;
    border-radius: 10px;
    margin: 0;
    padding: 0;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
  }
  .catalog-filter .dropdown.open .dropdown-menu {
    max-height: 320px;
    overflow-y: auto;
    margin: 0 0 12px;
  }
  .catalog-filter__check,
  .catalog-filter__price { min-width: 0; }
}

/* Навбар 992–1449px: шаблонная сетка «auto 1fr auto» сдвигала логотип от центра.
   Возвращаем симметричную 1fr/auto/1fr, телефоны — стопкой. */
@media (min-width: 992px) and (max-width: 1449px) {
  .header-new__main-inner { grid-template-columns: 1fr auto 1fr; }
  .header-new__phones {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .header-new__phones .vr { display: none; }
  .header-new__phones > a + a { margin-left: 0; }
}

/* Десктоп-меню 992–1279px: флюидная ширина шапки + меньший шрифт, чтобы пункты
   не слипались на средних разрешениях. */
@media (min-width: 992px) and (max-width: 1279px) {
  .header-new .container { width: auto; }
  .header-new__nav { font-size: 11px; letter-spacing: 0.01em; }
}

/* ── Косметические правки макета ── */

/* Hero */
.intro__lead { font-size: 20px; font-weight: 400; }
@media (min-width: 992px) {
  .intro__title { font-size: 84px; line-height: 0.92; }
  .intro__more .btn {
    width: 319px; max-width: 100%; height: 64px; font-size: 16px; font-weight: 300;
    display: inline-flex; align-items: center; justify-content: center;
  }
}

/* Подпись «Свадебный салон» — правее и контрастнее */
.header-new__logo-sub { left: 10px; color: #6f636b; }

/* «Перезвоните мне» — контур/текст #9C5789, без жирного */
.header-new__recall-btn .btn {
  width: 175px; height: 39px; padding: 0; font-weight: 400;
  border-color: #9c5789; color: #9c5789;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Второстепенные пункты + всё меню одним цветом, без подчёркивания */
.header-new__fav-link a, .header-new__contacts-link a { color: #7a6f6a; font-weight: 400; }
.header-new__nav a { color: #7a6f6a; text-decoration: none; }

/* DressFilter: обводка карточки-образа — только при наведении */
/* Карточки-образы: без обводки и без статичной тени; тень появляется на hover/выборе. */
.dress-filter__look-item { border-color: transparent; box-shadow: none; }
.dress-filter__look-item:hover { border-color: transparent; box-shadow: 6px 8.25px 11.25px 0 rgba(0, 0, 0, 0.13); }
.dress-filter__look-item.is-active { border-color: #9c5789; }

/* Чипы/пресеты: радиус 49, активный без заливки и жирности */
.dress-filter__chip { border-radius: 49px; }
.dress-filter__chip.is-active { background: #fff; color: #9c5789; border-color: #9c5789; font-weight: 400; }
.dress-filter__chip--more, .dress-filter__chip--more:hover { border-color: transparent; box-shadow: none; }
@media (min-width: 1600px) { .dress-filter__chips--col > * { flex-basis: calc(33.333% - 8px); } }
.dress-filter__filter-preset.btn {
  background: #f1ece9; border: 1px solid #e8ded9; border-radius: 49px; font-weight: 400;
  transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease, border-color 0.2s ease;
}
.dress-filter__filter-preset.btn:hover { background: #e9e0d9; color: #9c5789; }
.dress-filter__filter-preset.btn:active { transform: scale(0.96); }
/* Плавная установка фильтра пресетом (только в момент клика — чтобы не лагал drag) */
.df-anim .irs-bar, .df-anim .irs-handle, .df-anim .irs-single, .df-anim .irs-from, .df-anim .irs-to {
  transition: left 0.4s cubic-bezier(0.16, 0.84, 0.44, 1), width 0.4s cubic-bezier(0.16, 0.84, 0.44, 1);
}

/* «от …/до …» ближе к ползунку */
.df-range-labels { margin-bottom: 0; }
.dress-filter__filter-range .irs { margin-top: -6px; }

/* Действия фильтра — тонкий шрифт */
.dress-filter__actions > * { flex: 0 0 auto; }
.dress-filter__reset-btn.btn { font-size: 16px; color: #663619; font-weight: 300; }
.dress-filter__submit-btn.btn { width: 337px; max-width: 100%; height: 50px; border-radius: 6px; border: 1px solid #b79a88; font-weight: 300; }
.dress-filter__submit-btn.btn-primary:not(:hover):not(:focus) { background: #9c5789; }

/* Карточки товара: общий радиус 10 */
/* overflow:hidden — чтобы при hover-анимации (scale картинки) не вылезали квадратные углы. */
.catalog-item__card { border-radius: 10px; overflow: hidden; }

/* Бейдж ХИТ — радиус 9, шрифт Gotham Pro */
.catalog-item__tag--hit, .product-main__tag--hit { border-radius: 9px; font-family: "Gotham Pro", "Gilroy", Helvetica, sans-serif; }

/* Старая цена в каталоге: прямая линия #D8D8D8 2px (диагональ остаётся в карточке товара) */
.catalog-item__prices .catalog-item__price--old {
  color: #d8d8d8; text-decoration: line-through; text-decoration-color: #d8d8d8; text-decoration-thickness: 1px;
}
.catalog-item__prices .catalog-item__price--old::after { display: none; }

/* «Детали, которые влюбляют»: больше воздуха, мягче заливка */
.catalog-item--accessories .catalog-item__content { min-height: 288px; justify-content: center; padding: 40px; gap: 18px; }
.catalog-item--accessories .catalog-item__image::before { opacity: 0.5; }

/* Заголовки секций */
@media (min-width: 992px) {
  .section-services__title, .brands-marquee .section__title { font-size: 64px; }
  .section-catalog__title.h2 { font-size: 48px; }
}
.section-services__title { margin-bottom: 56px; }

/* Подзаголовок брендов + ч/б логотипы */
.brands-marquee .section__title { margin-bottom: 0; }
.brands-marquee .section__subtitle { margin-top: 2px; font-size: 18px; color: #1f1f1f; text-align: center; }
.brands-marquee__logo img { filter: grayscale(1); }

/* Каталог: пропорция карточек и шаг сетки */
.section-catalog__inner .catalog-item__card { aspect-ratio: 541 / 898; }
@media (min-width: 992px) { .section-catalog__inner { grid-gap: 20px; } }

/* Подборка: стрелки плавно появляются/исчезают на краях */
.coollections .swiper-button-prev, .coollections .swiper-button-next { transition: opacity 0.3s ease, visibility 0.3s ease; }
.coollections .swiper-button-disabled { opacity: 0; visibility: hidden; pointer-events: none; }

/* Футер: карта + кнопка тоньше и левее, чтобы дать воздух контактам */
.footer-new__button .btn { font-weight: 300; }
@media (min-width: 992px) {
  .footer-new__col--map { justify-content: center; transform: translateX(-20px); }
  .footer-new__col--contacts { padding-left: 14px; }
}

/* Пагинация — как на лендинге: Cormorant, крупнее */
.catalog-pagination__page, .catalog-pagination__nav { font-family: "Cormorant Garamond", serif; font-size: 22px; }
.catalog-pagination__nav { font-size: 24px; }

/* ── Правки: карточка товара, футер, попап ── */

/* Хлебные крошки: цвета и стрелки крупнее/жирнее */
.page-head .breadcrumb > li a, .page-head .breadcrumb > li a span, .page-head .breadcrumb > li > span { color: #1f1f1f; }
.page-head .breadcrumb > li.active span { color: #b5b5b5; }
.page-head .breadcrumbs-block .breadcrumb > li + li:before {
  width: 16px; height: 16px;
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 5l7 7-7 7' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Карточка товара — цвета/веса (не зависят от ширины) */
.product-main__tags { margin-top: 0; font-size: 16px; }
.product-main__props { margin-top: 6px; color: #524150; font-weight: 300; font-size: 16px; }
.product-main__price-old { color: #524150; text-decoration-color: #9c5789; }
.product-main__price-benefit { color: #524150; margin-top: 3px; font-weight: 400; }
.product-main__description { color: #4f4350; font-size: 14px; }
/* Размеры — только десктоп (мобильные уже заданы отдельно) */
@media (min-width: 768px) {
  .product-main__name { font-size: 48px; line-height: 1.02; }
  .product-main__price-current { font-size: 35.73px; font-weight: 500; color: #1f1f1f; }
  .product-main__price-discount { color: #9c5789; font-weight: 400; font-size: 24.74px; }
}
.product-main__price-current { color: #1f1f1f; }
.product-main__price-discount { color: #9c5789; }
/* Кнопки товара — 260×60 с иконками */
.product-main__actions > * { flex: 0 0 auto; }
.product-main__book, .product-main__fav { width: 260px; max-width: 100%; height: 60px; font-size: 16px; font-weight: 400; border-radius: 8px; }
.product-main__book { background: #9c5789; color: #fff; }
.product-main__book:hover, .product-main__book:focus { background: #844672; color: #fff; }
.product-main__fav { background: transparent; border: 1px solid #b05aa0; color: #9c5789; box-shadow: none; }
.product-main__fav.is-active { background: transparent; color: #9c5789; }

/* Подборка «примерить первыми»: закругления и «ХИТ» */
.coollections .catalog-item__card { border-radius: 20px; }
.coollections .catalog-item__content { bottom: 8px; }
.coollections .catalog-item__tag--hit {
  width: 42px; height: 20px; padding: 0; justify-content: center;
  font-size: 12px; font-weight: 500; font-family: "Gotham Pro", "Gilroy", sans-serif;
}

/* Попап: согласие тоньше, заголовок крупнее */
.modal-card .app-form__check span { font-weight: 300; }
.modal-card__title { font-size: 38px; }

/* Футер: воздух между пунктами, отступ от карты, копирайт */
@media (min-width: 992px) {
  .footer-new__col--nav .footer-new__nav { grid-gap: 18px 20px; }
  .footer-new__col--map { transform: translateX(-32px); }
  .footer-new__col--contacts { padding-left: 20px; }
}
.footer-new__desc { margin-top: 57px; font-family: "Gilroy", Helvetica, sans-serif; font-weight: 300; font-size: 10px; color: #919191; }

/* Кнопка «В избранное» в активном состоянии — заливка, чтобы читалась на белом */
.product-main__fav.is-active, .product-main__fav.is-active span { color: #fff; }
.product-main__fav.is-active { background: #9c5789; border-color: #9c5789; }
.product-main__fav.is-active svg path { fill: #fff; stroke: #fff; }

/* Форма на лендинге: галочки как в попапе, кнопка Gilroy, поля #919191 */
.section-feedback__checks .form-check { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.section-feedback__checks .form-check-input { margin: 2px 0 0; flex-shrink: 0; width: 18px; height: 18px; accent-color: #9c5789; }
.section-feedback__checks .form-check-label { color: #6b626a; font-weight: 300; }
.section-feedback__checks .form-check-label a { color: #9c5789; }
.section-feedback__form .btn { font-family: "Gilroy", Helvetica, sans-serif; font-weight: 400; font-size: 16px; }
.section-feedback__form .form-control, .app-form__input { color: #919191; }
.section-feedback__form .form-control::placeholder, .app-form__input::placeholder { color: #919191; }

/* Логотипы брендов на странице товара — тёмные (multiply гасит белый фон jpg) */
.product-main__brand-logo img { mix-blend-mode: multiply; filter: grayscale(1); }
.product-main__brand-name { font-family: "Cormorant Garamond", serif; font-size: 22px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }

/* «Искать по сайту» — по правому краю (вровень с «Перезвоните мне»), лупа+текст с шагом 20px */
.header-new__search-btn a { display: flex; justify-content: flex-end; align-items: center; gap: 20px; color: #7a6f6a; font-family: "Gilroy", Helvetica, sans-serif; font-weight: 400; font-size: 16px; }
.header-new__search-btn a::before { display: none; content: none; }
.header-new__search-ico { flex-shrink: 0; }

/* Пункты меню распределяются по всей ширине (flex-grow из базы) — без «сплюснутости»
   и без пустой зоны перед поиском. Ниже дизайн-ширины 1686 шапка подгоняется под
   вьюпорт, иначе правый край (поиск) уходит за экран. */
@media (max-width: 1685px) { .header-new .container { width: auto !important; } }

/* Карточка товара: 10px между «Новинка» и названием */
.product-main__name { margin-top: 10px; }

/* ── Мобильные правки ── */
@media (max-width: 767px) {
  /* DressFilter: «Сбросить» и «Показать N» по центру, на всю ширину */
  .dress-filter__actions { flex-direction: column-reverse; align-items: center; }
  .dress-filter__submit-btn.btn, .dress-filter__reset-btn.btn { width: 100%; max-width: 337px; }
  .dress-filter__reset-btn.btn { text-align: center; }

  /* Заголовки секций крупнее */
  .section-catalog__title.h2 { font-size: 32px; }
  .section-services__title { font-size: 32px; }
  .coollections__title.h4 { font-size: 26px; }

  /* «Детали, которые влюбляют» — не обрезать содержимое на узкой карточке */
  .catalog-item--accessories .catalog-item__content { min-height: 0; padding: 18px; gap: 8px; }

  /* Карточка товара: отступ картинка→«Новинка», кнопки по центру */
  .product-main__tags { margin-top: 20px; }
  .product-main__actions { display: flex; justify-content: center; width: 100%; }
}

/* Стрелки галереи в карточке товара */
.product-main__swiper { position: relative; }
.product-main__swiper .swiper-button-prev,
.product-main__swiper .swiper-button-next {
  width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 16px rgba(40, 20, 40, 0.16);
  color: #9c5789; transition: background 0.18s ease, transform 0.18s ease;
}
.product-main__swiper .swiper-button-prev:hover,
.product-main__swiper .swiper-button-next:hover { background: #fff; transform: scale(1.06); }
.product-main__swiper .swiper-button-prev::after,
.product-main__swiper .swiper-button-next::after { font-size: 15px; font-weight: 700; }
.product-main__swiper .swiper-button-disabled { opacity: 0; pointer-events: none; }

/* Кликабельные услуги */
.services__item--link, .section-services__item--link { cursor: pointer; text-decoration: none; color: inherit; transition: transform 0.2s ease; }
.services__item--link:hover, .section-services__item--link:hover { transform: translateY(-3px); }
.services__item--link:hover span, .section-services__item--link:hover span { color: #9c5789; }

/* ==== Мобильные правки (только ≤991px): фуллскрин-бургер + единый блок фильтра ==== */
/* Доп-блок меню (телефоны/соцсети/кнопка) — на десктопе скрыт. */
.header-new__mobile-extra { display: none; }

@media (max-width: 991px) {
  .header-new { position: static; }
  /* Мобильный бар с бургером/крестиком — поверх меню, чтобы закрывать. */
  .header-new__mobile-nav { position: relative; z-index: 1400; background: #fff; }

  /* Меню на весь экран. */
  .header-new__navigation {
    position: fixed;
    inset: 0;
    top: 0;
    height: 100dvh;
    max-height: none;
    padding: 72px 22px 26px;
    border-top: none;
    box-shadow: none;
    overflow-y: auto;
  }
  .header-new__navigation .header-new__navigation-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }
  .header-new__navigation .header-new__nav > * a,
  .header-new__navigation .header-new__nav > *:first-child a {
    padding: 15px 2px;
    font-size: 16px;
  }
  /* Шеврон у раскрывающихся пунктов (как в макете). */
  .header-new__navigation .header-new__nav .caret { display: inline-block; margin-left: auto; }
  .header-new__navigation .header-new__nav li a { display: flex; align-items: center; }
  .header-new__navigation .header-new__search-btn { display: none; }

  /* Телефоны / соцсети / кнопка — прижаты к низу. */
  .header-new__mobile-extra { display: block; margin-top: auto; padding-top: 22px; }
  .header-new__mobile-phones { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
  .header-new__mobile-phones a {
    display: flex; align-items: center; gap: 10px;
    color: #7a6f6a; text-decoration: none; font-size: 15px;
  }
  .header-new__mobile-phones a svg { color: #9c5789; flex-shrink: 0; }
  .header-new__mobile-socials { display: flex; gap: 22px; margin-bottom: 20px; }
  .header-new__mobile-socials a { color: #0a0b0b; display: inline-flex; }
  .header-new__mobile-book { display: block; width: 100%; text-align: center; }
  .header-new__mobile-extra .header-new__mobile-book,
  .header-new__mobile-extra .header-new__mobile-book:hover,
  .header-new__mobile-extra .header-new__mobile-book:focus { color: #fff; }

  /* Иконка трубки (call.svg) в телефонах меню */
  .header-new__mobile-phones a .mobile-phone-ico { width: 16px; height: auto; flex-shrink: 0; }

  /* Пункты меню — не капсом (первая заглавная, как в тексте) */
  .header-new__navigation .header-new__nav a { text-transform: none; }

  /* Тело не скроллится под открытым меню (класс вешает JS на <html>). */
  .is-nav-locked, .is-nav-locked body { overflow: hidden; height: 100%; }

  /* Единый блок фильтра: без заголовка «Какой образ вам ближе?». */
  .dress-filter__title { display: none; }
  .dress-filter__looks { margin-top: 0; }
}

/* ── Детальные мобильные правки лендинга (по макету) ── */
/* Переносы строк, переключаемые по вьюпорту */
.intro-br-mob { display: none; }
.intro-br-desk { display: inline; }
/* Точки под карточками-образами — только на мобиле */
.dress-filter__looks .swiper-pagination { display: none; }

@media (max-width: 991px) {
  .intro-br-mob { display: inline; }
  .intro-br-desk { display: none; }

  /* Hero: заголовок 32, подпись 14, кнопка 228×48 */
  .intro__title { font-size: 32px; line-height: 1.06; }
  .intro__lead { font-size: 14px; line-height: 1.4; }
  .intro__more .btn { width: 228px; max-width: 100%; height: 48px; font-size: 14px; }

  /* Убрать расстояние между hero и карточкой фильтра */
  .dress-filter.section { padding-top: 0; }

  /* Точки-пагинация под карточками-образами (меняются при скролле) */
  .dress-filter__looks .swiper-pagination {
    display: flex; position: static; justify-content: center; gap: 8px; margin-top: 12px;
  }
  .dress-filter__looks .swiper-pagination .swiper-pagination-bullet {
    width: 7px; height: 7px; background: #d8cdd4; opacity: 1; margin: 0;
  }
  .dress-filter__looks .swiper-pagination .swiper-pagination-bullet-active { background: #9c5789; }

  /* Немного уменьшить расстояние между карточками-образами и фильтром */
  .dress-filter__filters { margin-top: 8px; }

  /* Сумма диапазона: цвет #1F1F1F, шрифт 16 */
  .df-range-labels span { color: #1f1f1f; font-size: 16px; }

  /* Карточки диапазона цен: высота 32 */
  .dress-filter__filter-preset.btn {
    height: 32px; min-height: 32px; padding: 0 16px; display: inline-flex; align-items: center;
  }

  /* «Сбросить все фильтры»: шрифт 14 */
  .dress-filter__reset-btn.btn { font-size: 14px; }

  /* Новинки: скроллящаяся карточка 160×263 */
  .section-catalog__grid .section-catalog__swiper .catalog-item__card {
    width: 100%; height: auto; aspect-ratio: 160 / 263; margin: 0;
  }

  /* «Детали, которые влюбляют»: показать ссылку «Смотреть аксессуары» */
  .catalog-item--accessories .catalog-item__content { overflow: visible; }
  .catalog-item--accessories .catalog-item__link { display: inline-flex; align-items: center; gap: 10px; }

  /* Подборка: карточки 306×452, по центру */
  .coollections .coollections__items .swiper-slide { display: flex; justify-content: center; }
  .coollections .coollections__item .catalog-item__card {
    width: 306px; max-width: 100%; height: 452px; aspect-ratio: auto; margin: 0 auto;
  }
}

/* Логотип group 1476.svg — размер на десктопе; иконка поиска search.svg */
.brand-logo { display: block; height: auto; }
.header-new__logo .brand-logo { width: 270px; }
/* Подпись «Свадебный салон» убрана из логотипа на ПК. */
.header-new__logo-sub { display: none; }
.header-new__search-ico { width: 21px; height: auto; }

@media (max-width: 991px) {
  /* Мобильный навбар выше (61) + крупнее лого */
  .mobile-nav__inner { height: 61px; }
  .mobile-nav__logo { width: 168px; }
  .mobile-nav__search-ico { width: 20px; height: auto; display: block; }

  /* Лого строго по центру: боковые блоки равной доли, лого — по своей ширине. */
  .mobile-nav__menu-toggle, .mobile-nav__actions { flex: 1 1 0; }
  .mobile-nav__actions { justify-content: flex-end; }
  .mobile-nav__logo { flex: 0 0 auto; }

  /* Бургер/крестик: убрать чёрный квадрат тап-подсветки и фокус-рамку. */
  .mobile-nav__menu-toggle a {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    background: transparent;
  }

  /* Сердечко «в избранное» на маленьких карточках — меньше (SVG фиксированный 29px). */
  .catalog-item__fav button svg { width: 20px; height: 20px; }
  .section-catalog__grid .section-catalog__swiper .catalog-item__fav button svg { width: 18px; height: 18px; }
}

@media (max-width: 767px) {
  /* Убрать зазор между hero и блоком фильтра: у секции верхний margin (--section-spacer),
     который на десктопе гасится -40px, а на телефоне оставался. */
  .dress-filter { margin-top: 0; }

  /* «Детали, которые влюбляют»: описание 12, ссылка 16 (стрелка масштабируется от em). */
  .catalog-item--accessories .catalog-item__description { font-size: 12px; }
  .catalog-item--accessories .catalog-item__link { font-size: 16px; }

  /* «Платья, которые хочется / примерить первыми» — ровно в 2 строки. */
  .coollections__title.h4 { font-size: 22px; }
}

/* Логотип: без обводки/тап-подсветки при клике (ПК и мобилка). */
.header-new__logo a, .header-new__logo a:focus,
.mobile-nav__logo a, .mobile-nav__logo a:focus,
.brand-logo { outline: none; -webkit-tap-highlight-color: transparent; }

/* Выпадающие списки фильтра: пункты не жирные (лендинг + категорийный фильтр). */
.df-brand__menu li button { font-weight: 400; }
.catalog-filter__check label, .catalog-filter__check li,
.catalog-filter .dropdown-toggle span, .catalog-filter__tag { font-weight: 400; }

@media (max-width: 991px) {
  /* Одинаковый отступ между Силуэт/Цвета/Бренд; чуть больше между Брендом и ценой. */
  /* Зазор даёт grid-gap (8px) — собственный margin у групп не нужен, иначе суммируется. */
  .dress-filter__filters-group { margin-bottom: 0; }
  /* Заголовок «Бюджет» на мобилке скрыт, Бренд становится первым в группе —
     его базовый margin-top прибавлялся бы к grid-gap. */
  .dress-filter__filter-brand { margin-top: 0; margin-bottom: 28px; }
}

/* На мобилке чипы-подкатегории на странице категории убраны — они в подменю бургера. */
@media (max-width: 991px) {
  .catalog-filter__tags { display: none; }

  /* Выпадашки фильтра: анимация и на раскрытие. Bootstrap-овый display:none её убивал —
     держим меню в потоке и анимируем max-height (её проставляет JS) + прозрачность. */
  .catalog-filter .dropdown .dropdown-menu {
    display: block; max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.16, 0.84, 0.44, 1), opacity 0.22s ease;
  }
  .catalog-filter .dropdown.open .dropdown-menu { opacity: 1; }

  /* Хлебные крошки: показать на мобилке (база прячет ≤767), 12px от навбара и 12px до заголовка.
     Отступ снизу собирался из трёх мест — margin блока, margin у <ul class="breadcrumb">
     и margin-top секции (база обнуляет его только с 768px), поэтому задаём все три. */
  /* Легаси styles.css даёт .main-block padding-top: 45px ниже 576px. Правило темы,
     которое его гасит, требует .main-block прямым потомком .wrapper — у нас он внутри <main>. */
  .main-block { padding-top: 0; }

  .breadcrumbs-block { display: block !important; }
  .page-head .breadcrumbs-block { padding-top: 12px !important; margin-bottom: 0 !important; overflow: visible; }
  .breadcrumbs-block .breadcrumb { margin: 0 !important; padding: 0 !important; }
  .page-head + .section { margin-top: 12px !important; }

  /* Фото под брендами: широкий баннер (2:1) в натуральной пропорции, сверху карточки. */
  .section-feedback__inner { display: flex; flex-direction: column; }
  .section-feedback__asset { display: block; order: -1; margin: 0 -20px 8px; }
  .section-feedback__asset img {
    width: 100%; max-width: 100%; height: auto; object-fit: unset; display: block; margin: 0;
  }

  /* Подборка: карточка по центру. */
  .coollections .coollections__items .swiper-slide { display: flex; justify-content: center; }
  .coollections .coollections__item { width: 306px; max-width: 100%; margin: 0 auto; }
}

/* Мобильное подменю раздела в бургере (выезжает справа). */
.header-new__submenu { display: none; }
@media (max-width: 991px) {
  .header-new__submenu {
    display: block;
    position: fixed;
    inset: 0;
    top: 0;
    height: 100dvh;
    z-index: 1350;
    background: #fff;
    padding: 72px 22px 26px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.34s cubic-bezier(0.16, 0.84, 0.44, 1), visibility 0s linear 0.34s;
  }
  .header-new__submenu.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.34s cubic-bezier(0.16, 0.84, 0.44, 1), visibility 0s;
  }
  .header-new__submenu-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
  .header-new__submenu-back {
    background: none; border: none; padding: 0; color: #1b1b1b; cursor: pointer;
    display: inline-flex; flex: 0 0 auto;
  }
  .header-new__submenu-title {
    font-family: "Cormorant Garamond", serif; font-weight: 600; text-transform: uppercase;
    font-size: 18px; letter-spacing: 0.02em;
  }
  .header-new__submenu-list { list-style: none; margin: 0; padding: 0; }
  .header-new__submenu-list a {
    display: block; padding: 15px 2px; font-size: 16px;
    color: #7a6f6a; text-decoration: none; border-bottom: 1px solid #f3eef1;
  }
}

@media (max-width: 991px) {
  .section-feedback__subtitle { font-size: 12px; }
  .brands-marquee .section__subtitle { font-size: 14px; }
}

@media (max-width: 767px) {
  /* Карточки от края экрана 20px. */
  .section-catalog .container, .brands-marquee .container { padding-left: 20px; padding-right: 20px; }
  /* Листающиеся карточки: ровно 160px, 8px между, следующие выпирают (overflow visible из base). */
  .section-catalog__grid .section-catalog__swiper .swiper-slide { width: 160px; }

  /* «Подробнее» в новинках — показать (база прячет ссылку на мобиле). */
  .section-catalog__grid .catalog-item__link { display: inline-flex; }

  /* Первая (большая) карточка новинок 362×709; «Детали, которые влюбляют» 362×474. */
  .section-catalog__grid > .catalog-item:first-child .catalog-item__card {
    width: 362px; max-width: 100%; aspect-ratio: 362 / 709;
  }
  .catalog-item--accessories .catalog-item__card {
    width: 362px; max-width: 100%; aspect-ratio: auto; height: auto;
  }
  .catalog-item--accessories .catalog-item__image { aspect-ratio: 362 / 517; height: auto; }
  .catalog-item--accessories .catalog-item__content { min-height: 192px; height: 192px; }

  /* Бейдж ХИТ 42×20, 22px от угла карточки. */
  .catalog-item__tag--hit {
    width: 42px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0; font-size: 11px; line-height: 1;
  }
  .coollections .catalog-item__head { padding: 22px; }

  /* Подборка: фото 306×452, 16px между карточкой и «Смотреть подборку». */
  .coollections .coollections__item .catalog-item__card {
    width: 306px; max-width: 100%; aspect-ratio: 306 / 452; height: auto; margin: 0 auto;
  }
  /* 16px от карточки до «Смотреть подборку» (грид-гэп 20px компенсируем -4px → нетто 16). */
  .coollections .coollections__link { margin-top: -4px; }

  /* Форма-фидбек: содержимое (имя/номер и т.д.) 20px от краёв карточки. */
  .section-feedback__card { padding-left: 20px; padding-right: 20px; }

  /* Кнопки на странице товара 362×47. */
  .product-main__book, .product-main__fav { width: 362px; max-width: 100%; height: 47px; }

  /* Хлебные крошки листаются вправо-влево. Селектор с .page-head обязателен: легаси
     styles.css задаёт этой же паре display: inline со специфичностью (0,3,0),
     а к инлайновому боксу overflow-x не применяется вовсе. */
  .page-head .breadcrumbs-block .breadcrumb {
    display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    white-space: nowrap; scrollbar-width: none;
  }
  .page-head .breadcrumbs-block .breadcrumb::-webkit-scrollbar { display: none; }
  .page-head .breadcrumbs-block .breadcrumb > li { display: flex; align-items: center; flex: 0 0 auto; }
}

/* Chromium рисует прямоугольную фокус-рамку по клику мышью/тачем, тогда как Safari и
   Firefox показывают её только при навигации с клавиатуры. Приводим Chromium к тому же
   поведению: гасим обводку, когда фокус пришёл не от клавиатуры (:focus без :focus-visible),
   и заодно снимаем чёрную тап-подсветку. Клавиатурный :focus-visible не трогаем — доступность
   сохраняется. */
:focus:not(:focus-visible) { outline: none; }
a, button, [role="button"], [tabindex], input, select, textarea, summary {
  -webkit-tap-highlight-color: transparent;
}

/* Зум-кнопка вокруг фото товара (заменяет прежнюю ссылку на голую картинку) */
.product-main__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.product-main__zoom img { display: block; width: 100%; }

/* Лайтбокс просмотра фото товара — внутри сайта, без ухода на отдельную картинку */
.is-lb-open, .is-lb-open body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 12, 16, 0.92); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.lightbox__img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 34px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding-bottom: 4px; transition: background 0.2s ease;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; letter-spacing: 0.04em; opacity: 0.85; }
.lightbox-enter-active, .lightbox-leave-active { transition: opacity 0.22s ease; }
.lightbox-enter-from, .lightbox-leave-to { opacity: 0; }
@media (max-width: 767px) {
  .lightbox__nav { width: 42px; height: 42px; font-size: 28px; background: rgba(255, 255, 255, 0.16); }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .lightbox__img { max-width: 96vw; }
}

/* Мини-описания на карточках временно скрыты (каталог + новинки на лендинге).
   TODO: вынести в глобальную настройку админки (показывать/скрывать). */
.catalog-item__description { display: none; }
