/* Моя Кафета — нежно-розовая тема «ручная карамель» */

:root {
  --candy-pink-50: #fff5f7;
  --candy-pink-100: #ffe4ec;
  --candy-pink-200: #fecdd9;
  --candy-pink-300: #fda4bf;
  --candy-pink-500: #f472b6;
  --candy-pink-600: #ec4899;
  --candy-pink-800: #9d174d;
  --candy-red: #dc2626;
  --candy-white: #fffbfc;
}

/* Единые SVG-иконки */
.candy-icon {
  display: block;
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  color: currentColor;
}

.candy-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: inherit;
}

.candy-icon--sm { width: 1rem; height: 1rem; }
.candy-icon--md { width: 1.35rem; height: 1.35rem; }
.candy-icon--lg { width: 1.75rem; height: 1.75rem; }
.candy-icon--xl { width: 2.5rem; height: 2.5rem; }
.candy-icon--2xl { width: 3.25rem; height: 3.25rem; }
.candy-icon--hero { width: 4rem; height: 4rem; }

/* Защита медиа от простой выгрузки (как на franshiza) */
img,
video {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#hero-slideshow img,
.hero-slideshow-bg img,
#lightbox-img,
#gallery-lightbox img,
.reviews-grid img,
.vk-product-card__bg,
.photo-card img,
.photos-grid img,
#photos-page-grid img,
.video-card video,
#videos-grid video,
.shop-category-card__img,
.site-logo-mark {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

video::-webkit-media-controls-download-button {
  display: none !important;
}

.candy-icon--filled {
  color: #ec4899;
}

.site-footer-brand .candy-icon,
.site-footer-brand [data-candy-icon] {
  width: 1.5rem;
  height: 1.5rem;
  color: #fda4bf;
}

.site-footer-lollipop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  line-height: 0;
  filter: drop-shadow(0 4px 10px rgba(236, 72, 153, 0.35));
}

.site-footer-lollipop img,
.site-footer-lollipop svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.home-feature-card__icon .candy-icon,
.home-feature-card__icon [data-candy-icon] .candy-icon {
  width: 1.7rem;
  height: 1.7rem;
  color: inherit;
}

@media (min-width: 640px) {
  .home-feature-card__icon .candy-icon,
  .home-feature-card__icon [data-candy-icon] .candy-icon {
    width: 1.9rem;
    height: 1.9rem;
  }
}

.shop-category-card__emoji .candy-icon {
  width: 2rem;
  height: 2rem;
  color: #db2777;
}

.vk-product-card__fav .candy-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.vk-product-card__fav.is-active {
  color: #ec4899;
}

.vk-product-card__bg--placeholder .candy-icon {
  width: 3rem;
  height: 3rem;
  color: rgba(255, 255, 255, 0.85);
}

.constructor-option__icon .candy-icon {
  width: 2rem;
  height: 2rem;
  margin: 0 auto;
  color: #db2777;
}

.constructor-preview__emoji .candy-icon {
  width: 3.25rem;
  height: 3.25rem;
  color: #db2777;
}

.candy-run-candy .candy-icon,
.candy-juggle-pop .candy-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: #ec4899;
}

.tg-panel-head__avatar .candy-icon {
  width: 1.35rem;
  height: 1.35rem;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  /* Запас под фиксированную шапку (+ top inset). JS scroll-nav дополнительно корректирует. */
  --site-header-scroll-offset: 7.75rem;
}

@media (min-width: 1280px) {
  html {
    --site-header-scroll-offset: 10rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.scroll-mt-28 {
  scroll-margin-top: var(--site-header-scroll-offset);
}

body {
  font-family: 'Comfortaa', cursive;
  background-color: var(--candy-pink-50);
  color: var(--candy-pink-800);
  overflow-x: clip;
  min-width: 0;
}

/* Полоска «леденец» */
.candy-stripe {
  background: repeating-linear-gradient(
    -45deg,
    #ffffff 0,
    #ffffff 10px,
    var(--candy-red) 10px,
    var(--candy-red) 20px
  );
}

.candy-stripe-thin {
  height: 6px;
}

.candy-stripe-bar {
  height: 4px;
  border-radius: 9999px;
  overflow: hidden;
}

/* Шапка (главная и внутренние страницы) */
#site-header,
#page-header {
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

#site-header.header-at-top,
#page-header.header-at-top {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(253, 164, 191, 0.25);
  box-shadow: 0 6px 28px -10px rgba(157, 23, 77, 0.14);
}

#site-header.fixed {
  top: max(0.375rem, env(safe-area-inset-top, 0px));
  left: max(0.75rem, env(safe-area-inset-left, 0px));
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  width: auto;
  border-radius: 1rem;
}

/* Мобильное меню: прокрутка до Корзины / Кабинета */
@media (max-width: 1279px) {
  #mobile-menu:not(.hidden) {
    max-height: min(70dvh, calc(100dvh - 5.25rem));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
  }
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.35rem;
}

.mobile-menu-actions .mobile-menu-action {
  width: 100%;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(190, 24, 93, 0.16);
}

.mobile-menu-actions .mobile-menu-action:active {
  transform: scale(0.98);
}

.mobile-menu-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.85rem 0 0.35rem;
  padding: 0.35rem 0 0.15rem;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: #db2777;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(236, 72, 153, 0.28);
  box-shadow: 0 2px 10px rgba(190, 24, 93, 0.1);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-contact svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  display: block;
}

.header-contact--tg {
  color: #2AABEE;
  border-color: rgba(42, 171, 238, 0.35);
  box-shadow: 0 2px 10px rgba(42, 171, 238, 0.14);
}

.header-contact--wa {
  color: #25D366;
  border-color: rgba(37, 211, 102, 0.35);
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.14);
}

.header-contact--phone {
  color: #db2777;
}

.header-contact:hover,
.header-contact:focus-visible {
  transform: scale(1.08);
  color: #fff;
  outline: none;
}

.header-contact--tg:hover,
.header-contact--tg:focus-visible {
  background: linear-gradient(135deg, #1e9ad8, #2AABEE);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(42, 171, 238, 0.4);
}

.header-contact--wa:hover,
.header-contact--wa:focus-visible {
  background: linear-gradient(135deg, #1ebe57, #25D366);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.header-contact--phone:hover,
.header-contact--phone:focus-visible {
  background: linear-gradient(135deg, #be185d, #ec4899);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(190, 24, 93, 0.35);
}

.hero-inquiry-guests {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 241, 246, 0.95), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(251, 113, 133, 0.22);
}

.hero-inquiry-guests.hidden {
  display: none;
}

.hero-inquiry-guests__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-inquiry-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(244, 114, 182, 0.35);
}

.hero-inquiry-total__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(157, 23, 77, 0.7);
}

.hero-inquiry-total__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #db2777;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 479px) {
  .hero-inquiry-guests__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* На страницах магазина — только иконка корзины в мобильной шапке */
@media (max-width: 639px) {
  #page-header .cart-btn-label {
    display: none;
  }

  #page-header a[href="cart.html"].btn-candy {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    min-width: 2.65rem;
    justify-content: center;
  }
}

#page-header {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Логотип и действия — с небольшим отступом от краёв шапки */
#site-header > .max-w-7xl {
  max-width: none;
  padding-left: 1.7rem;
  padding-right: 1.7rem;
}

@media (min-width: 640px) {
  #site-header > .max-w-7xl {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {
  #site-header > .max-w-7xl {
    padding-left: 1.9rem;
    padding-right: 1.9rem;
  }
}

#site-header > .max-w-7xl > .flex {
  min-height: 4.75rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

@media (min-width: 1280px) {
  #site-header > .max-w-7xl > .flex {
    display: grid;
    grid-template-columns: minmax(12.5rem, auto) minmax(0, 1fr) minmax(8.5rem, auto);
    align-items: center;
    column-gap: 0.75rem;
    min-height: 5.75rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .site-header-logo {
    justify-self: start;
  }

  .site-header-actions {
    justify-self: end;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 1536px) {
  #site-header > .max-w-7xl {
    padding-left: 2.3rem;
    padding-right: 2.3rem;
  }

  #site-header > .max-w-7xl > .flex {
    grid-template-columns: minmax(14rem, auto) minmax(0, 1fr) minmax(9.5rem, auto);
    column-gap: 1rem;
    min-height: 6.25rem;
  }
}

#site-header.header-scrolled,
#page-header.header-scrolled {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(253, 164, 191, 0.45);
  box-shadow: 0 10px 40px -12px rgba(236, 72, 153, 0.25);
}

/* Кнопки */
.btn-candy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, background-color 0.3s ease;
}

.btn-candy:hover {
  transform: scale(1.04);
  filter: brightness(1.05);
  box-shadow: 0 20px 40px -12px rgba(236, 72, 153, 0.45);
}

.btn-candy:active {
  transform: scale(0.98);
}

.btn-candy-primary {
  background: linear-gradient(135deg, #f472b6, #ec4899);
  color: white;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 10px 30px -8px rgba(236, 72, 153, 0.5);
}

.btn-candy-outline {
  background: rgba(255, 255, 255, 0.85);
  color: var(--candy-pink-800);
  font-weight: 600;
  border: 2px solid rgba(253, 164, 191, 0.6);
  border-radius: 9999px;
}

.btn-candy-outline:hover {
  border-color: var(--candy-pink-500);
  background: white;
}

/* Кнопки заставки (hero) — тот же розовый градиент, что у «Личный кабинет» */
.hero-cta .btn-candy-primary {
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 10px 30px -8px rgba(236, 72, 153, 0.55),
    0 4px 14px -4px rgba(0, 0, 0, 0.18);
}

.hero-cta .btn-candy-primary:hover {
  box-shadow:
    0 20px 40px -12px rgba(236, 72, 153, 0.6),
    0 6px 18px -6px rgba(0, 0, 0, 0.2);
}

/* Карточки */
.card-candy {
  background: white;
  border: 1px solid rgba(253, 164, 191, 0.35);
  border-radius: 1.25rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 4px 24px -8px rgba(157, 23, 77, 0.08);
}

.card-candy:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 50px -12px rgba(236, 72, 153, 0.22);
  border-color: rgba(244, 114, 182, 0.55);
}

/* Прокрутка описания в карточках товаров */
.vk-card-desc {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: auto;
  scrollbar-color: rgba(219, 39, 119, 0.75) rgba(253, 164, 191, 0.28);
  padding-right: 0.35rem;
}

.vk-card-desc::-webkit-scrollbar {
  width: 7px;
}

.vk-card-desc::-webkit-scrollbar-thumb {
  background: rgba(219, 39, 119, 0.72);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.vk-card-desc::-webkit-scrollbar-track {
  background: rgba(253, 164, 191, 0.28);
  border-radius: 9999px;
}

.vk-product-card--hero.card-candy {
  position: relative;
  background: #831843;
  padding: 0;
  aspect-ratio: 3 / 4;
  min-height: 22rem;
  isolation: isolate;
}

.vk-product-card--hero.card-candy:hover {
  transform: scale(1.02);
}

.vk-product-card__fav-wrap {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  max-width: calc(100% - 1.5rem);
  pointer-events: none;
}

.vk-product-card__fav {
  pointer-events: auto;
}

.vk-product-card__fav-hint {
  pointer-events: none;
  font-size: 0.625rem;
  line-height: 1.25;
  font-weight: 600;
  padding: 0.28rem 0.5rem;
  border-radius: 0.625rem;
  background: rgba(255, 252, 253, 0.94);
  color: #831843;
  border: 1px solid rgba(253, 164, 191, 0.45);
  box-shadow: 0 4px 14px rgba(157, 23, 77, 0.14);
  text-align: right;
  max-width: 10.5rem;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.vk-product-card__fav-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.vk-product-card--compact {
  min-height: 20rem;
}

.vk-product-card--full {
  min-height: 24rem;
}

.vk-product-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.45s ease;
}

.vk-product-card--hero:hover .vk-product-card__bg {
  transform: scale(1.04);
}

.vk-product-card__bg--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(160deg, #831843 0%, #db2777 45%, #fda4bf 100%);
}

/* Размытие фона только у «Леденцы для фотосессий (декор)» (класс --bg-blur) */
#other-services .vk-product-card--bg-blur.card-candy,
#vk-sec-services .vk-product-card--bg-blur.card-candy {
  overflow: hidden;
}

#other-services .vk-product-card__bg:not(.vk-product-card__bg--placeholder),
#vk-sec-services .vk-product-card__bg:not(.vk-product-card__bg--placeholder) {
  transform: none;
  filter: none;
}

#other-services .vk-product-card--bg-blur .vk-product-card__bg:not(.vk-product-card__bg--placeholder),
#vk-sec-services .vk-product-card--bg-blur .vk-product-card__bg:not(.vk-product-card__bg--placeholder) {
  transform: scale(1.08);
  filter: blur(3px);
  transition: transform 0.45s ease, filter 0.45s ease;
}

#other-services .vk-product-card--bg-blur:hover .vk-product-card__bg:not(.vk-product-card__bg--placeholder),
#vk-sec-services .vk-product-card--bg-blur:hover .vk-product-card__bg:not(.vk-product-card__bg--placeholder) {
  transform: scale(1.12);
  filter: blur(2.5px);
}

.vk-product-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(25, 8, 16, 0.94) 0%,
      rgba(45, 12, 28, 0.82) 28%,
      rgba(60, 15, 36, 0.55) 52%,
      rgba(80, 20, 45, 0.22) 72%,
      rgba(0, 0, 0, 0.08) 100%
    );
}

.vk-product-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
  padding: 1rem 1.1rem 1.15rem;
  color: #fff;
}

.vk-product-card__title {
  margin-top: auto;
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.vk-product-card__desc {
  flex: 0 1 auto;
  margin-bottom: 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  white-space: pre-line;
  overflow-y: auto;
  max-height: 9.5rem;
  padding-right: 0.35rem;
  scrollbar-width: auto;
  scrollbar-color: rgba(255, 255, 255, 0.8) rgba(255, 255, 255, 0.18);
}

.vk-product-card__desc--compact {
  max-height: 7.5rem;
}

.vk-product-card__desc--empty {
  margin-bottom: 0.85rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
}

.vk-product-card__desc::-webkit-scrollbar {
  width: 7px;
}

.vk-product-card__desc::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
}

.vk-product-card__desc::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.vk-product-card__footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.vk-product-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.vk-product-card__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.vk-product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vk-product-card__btn.btn-candy-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.vk-product-card__btn.btn-candy-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.vk-product-card__btn--unavailable,
.vk-product-card__btn--unavailable:hover,
.vk-product-card__btn--unavailable:focus,
.vk-product-card__btn--unavailable:active,
.vk-product-card__btn--unavailable:disabled {
  cursor: default;
  pointer-events: none;
  transform: none;
  filter: none;
  background: linear-gradient(135deg, #f472b6, #ec4899);
  color: #fff;
  opacity: 1;
  box-shadow: 0 10px 30px -8px rgba(236, 72, 153, 0.5);
}

/* Каталог мастер-классов: фото сверху, описание снизу крупным текстом */
.vk-section-grid--stacked {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.vk-product-card--stacked.card-candy {
  position: relative;
  background: #fff;
  padding: 0;
  aspect-ratio: auto;
  min-height: 0;
  isolation: isolate;
  border: 1px solid rgba(253, 164, 191, 0.4);
  box-shadow: 0 10px 32px -14px rgba(157, 23, 77, 0.18);
}

.vk-product-card--stacked.card-candy:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 114, 182, 0.55);
  box-shadow: 0 18px 40px -16px rgba(236, 72, 153, 0.28);
}

.vk-product-card--stacked .vk-product-card__media {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(160deg, #831843 0%, #db2777 50%, #fda4bf 100%);
}

.vk-product-card--stacked .vk-product-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.vk-product-card--stacked:hover .vk-product-card__bg {
  transform: scale(1.04);
}

.vk-product-card--stacked .vk-product-card__bg--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vk-product-card--stacked .vk-product-card__content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.15rem 1.2rem 1.25rem;
  color: #831843;
  background:
    linear-gradient(180deg, #fff9fb 0%, #ffffff 40%, #fff5f8 100%);
}

.vk-product-card--stacked .vk-product-card__title {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.35;
  color: #9d174d;
  text-shadow: none;
}

.vk-product-card--stacked .vk-product-card__desc,
.vk-product-card--stacked .vk-product-card__desc--stacked {
  flex: 1 1 auto;
  margin-bottom: 1rem;
  max-height: none;
  overflow: visible;
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
  line-height: 1.65;
  color: rgba(131, 24, 67, 0.88);
  text-shadow: none;
}

.vk-product-card--stacked .vk-product-card__desc--empty {
  color: rgba(157, 23, 77, 0.55);
  font-size: 0.9375rem;
}

.vk-product-card--stacked .vk-product-card__footer {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(253, 164, 191, 0.45);
}

.vk-product-card--stacked .vk-product-card__price,
.vk-product-card--stacked .birthday-price-value,
.vk-product-card--stacked .birthday-guest-count,
.vk-product-card--stacked .birthday-guest-unit,
.vk-product-card--stacked .qty-unit {
  color: #db2777;
  text-shadow: none;
}

.vk-product-card--stacked .birthday-guest-calc {
  color: rgba(157, 23, 77, 0.85);
}

.vk-product-card--stacked .birthday-guest-minus.btn-candy-outline,
.vk-product-card--stacked .birthday-guest-plus.btn-candy-outline {
  border-color: rgba(253, 164, 191, 0.7);
  color: #9d174d;
  background: rgba(255, 255, 255, 0.9);
}

.vk-product-card--stacked .vk-product-card__btn.btn-candy-outline {
  border-color: rgba(253, 164, 191, 0.7);
  color: #9d174d;
  background: rgba(255, 255, 255, 0.9);
}

.vk-product-card--stacked .vk-product-card__fav-wrap {
  top: 0.7rem;
  right: 0.7rem;
}

@media (min-width: 640px) {
  .vk-product-card--stacked .vk-product-card__content {
    padding: 1.35rem 1.4rem 1.45rem;
  }

  .vk-product-card--stacked .vk-product-card__media {
    aspect-ratio: 16 / 11;
  }
}

@media (min-width: 1024px) {
  .vk-section-grid--stacked {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .vk-product-card--stacked .vk-product-card__desc,
  .vk-product-card--stacked .vk-product-card__desc--stacked {
    font-size: 1.0625rem;
  }
}

@media (max-width: 639px) {
  .vk-section-grid--stacked {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .vk-product-card--stacked .vk-product-card__media {
    aspect-ratio: 5 / 4;
  }
}

.vk-product-card--unavailable .vk-product-card__btn--unavailable {
  white-space: normal;
  line-height: 1.25;
  text-align: center;
  max-width: 11.5rem;
}

.vk-product-card--unavailable .vk-product-card__bg {
  filter: blur(5px) saturate(0.88) brightness(0.92);
  transform: scale(1.08);
  transform-origin: center;
}

.vk-product-card--unavailable.vk-product-card--hero:hover .vk-product-card__bg {
  filter: blur(4.5px) saturate(0.9) brightness(0.94);
  transform: scale(1.1);
}

.vk-product-card--unavailable.vk-product-card--stacked .vk-product-card__bg {
  filter: blur(4px) saturate(0.9) brightness(0.95);
  transform: scale(1.06);
}

.vk-product-card--unavailable .vk-product-card__scrim {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.42) 55%, rgba(15, 23, 42, 0.62) 100%);
}

@media (max-width: 640px) {
  .vk-product-card--unavailable .vk-product-card__btn--unavailable {
    max-width: none;
    width: 100%;
  }
}

.vk-product-card--hero .birthday-price-value,
.vk-product-card--hero .birthday-guest-count,
.vk-product-card--hero .birthday-guest-unit,
.vk-product-card--hero .qty-unit {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.vk-product-card--hero .birthday-guest-calc {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

.vk-product-card--hero .birthday-guest-plus.btn-candy-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

@media (min-width: 640px) {
  .vk-product-card__content {
    padding: 1.15rem 1.25rem 1.25rem;
  }

  .vk-product-card__title {
    font-size: 1.125rem;
  }
}

/* Навигация — центр шапки, без наложения на логотип и действия */
.site-header-nav {
  display: none;
}

@media (min-width: 1280px) {
  .site-header-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.15rem 0.35rem;
    min-width: 0;
    width: 100%;
    max-width: 46rem;
    justify-self: center;
  }

  .site-header-nav-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.2rem 0.35rem;
    width: max-content;
    max-width: 100%;
    min-width: 0;
  }

  /* Ряды чуть вправо и со сдвигом относительно друг друга — не «колонкой» */
  .site-header-nav-row--top {
    transform: translateX(0.85rem);
  }

  .site-header-nav-row--bottom {
    transform: translateX(1.85rem);
  }

  .site-header-nav .nav-candy {
    padding: 0.28rem 0.5rem;
    font-size: 0.65625rem;
    white-space: nowrap;
    line-height: 1.15;
    flex: 0 1 auto;
    letter-spacing: 0.01em;
  }
}

@media (min-width: 1440px) {
  .site-header-nav {
    max-width: 50rem;
    gap: 0.4rem;
    padding: 0.2rem 0.5rem;
  }

  .site-header-nav-row {
    gap: 0.25rem 0.5rem;
  }

  .site-header-nav-row--top {
    transform: translateX(1rem);
  }

  .site-header-nav-row--bottom {
    transform: translateX(2.15rem);
  }

  .site-header-nav .nav-candy {
    padding: 0.32rem 0.6rem;
    font-size: 0.71875rem;
  }
}

@media (min-width: 1536px) {
  .site-header-nav {
    max-width: 52rem;
    gap: 0.45rem;
  }

  .site-header-nav-row {
    gap: 0.3rem 0.55rem;
  }

  .site-header-nav-row--top {
    transform: translateX(1.15rem);
  }

  .site-header-nav-row--bottom {
    transform: translateX(2.4rem);
  }

  .site-header-nav .nav-candy {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
  }
}

.site-header-phone {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 9999px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-header-contacts {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.site-header-contacts .header-contact {
  width: 2.35rem;
  height: 2.35rem;
}

.site-header-contacts .header-contact svg {
  width: 1.05rem;
  height: 1.05rem;
}

@media (max-width: 379px) {
  .site-header-contacts {
    gap: 0.28rem;
  }

  .site-header-contacts .header-contact {
    width: 2.15rem;
    height: 2.15rem;
  }
}

.site-header-phone__icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.site-header-phone-mobile {
  font-weight: 700;
  color: #db2777 !important;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
  justify-content: flex-end;
  margin-left: auto;
  position: relative;
  z-index: 2;
}

@media (min-width: 1280px) {
  .site-header-actions {
    margin-left: 0;
    margin-right: 0;
    justify-self: end;
    gap: 0.55rem;
    padding-left: 0;
    padding-right: 0;
  }

  .site-header-actions .btn-candy {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    font-size: 0.8125rem;
  }

  .site-header-actions .site-header-phone {
    width: 2.55rem;
    height: 2.55rem;
    padding: 0;
  }
}

.site-header-logo {
  flex-shrink: 0;
  min-width: 0;
  max-width: min(16rem, 48vw);
  align-items: center;
  gap: 0.55rem;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.08em;
  font-family: 'Comfortaa', cursive;
  font-style: normal;
  font-weight: 700;
  /* +15% к прежнему размеру; колонка auto — меню не перекрывается */
  font-size: clamp(0.9rem, 1.95vw, 1.09rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ec4899;
  max-width: none;
  transition: color 0.3s ease;
}

.site-logo-text__line {
  display: block;
  white-space: nowrap;
}

.group:hover .site-logo-text {
  color: #f472b6;
}

.site-logo-mark {
  width: 3.85rem; /* 3.35 × 1.15 */
  height: 3.85rem;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow:
    0 1px 2px rgba(157, 23, 77, 0.06),
    0 4px 14px rgba(157, 23, 77, 0.1);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.35s ease;
}

.group:hover .site-logo-mark {
  transform: scale(1.04);
  box-shadow:
    0 2px 4px rgba(157, 23, 77, 0.08),
    0 8px 22px rgba(157, 23, 77, 0.14);
}

@media (min-width: 1280px) {
  .site-header-logo {
    max-width: none;
    gap: 0.65rem;
  }

  .site-logo-text {
    font-size: 1.035rem; /* 0.9 × 1.15 */
    letter-spacing: 0.018em;
  }

  .site-logo-mark {
    width: 4.2rem; /* 3.65 × 1.15 */
    height: 4.2rem;
    border-radius: 50%;
    padding: 0;
  }
}

@media (min-width: 1536px) {
  .site-header-logo {
    max-width: none;
    gap: 0.75rem;
  }

  .site-logo-text {
    font-size: 1.15rem; /* 1.0 × 1.15 */
  }

  .site-logo-mark {
    width: 4.6rem; /* 4.0 × 1.15 */
    height: 4.6rem;
    border-radius: 50%;
  }
}

/* Если экран узкий для xl — чуть компактнее (+10%), чтобы не давить меню */
@media (min-width: 1280px) and (max-width: 1439px) {
  .site-logo-text {
    font-size: 0.99rem; /* 0.9 × 1.10 */
  }

  .site-logo-mark {
    width: 4rem;
    height: 4rem;
  }
}

/* Герой — полноэкранное слайдшоу */
.hero-fullscreen {
  position: relative;
  width: calc(100% - 1.5rem);
  margin-top: 7rem;
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  min-height: clamp(28rem, 76vh, 44rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 16px 48px -20px rgba(131, 24, 67, 0.35);
}

.hero-slideshow-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #ffe4ec, #831843);
  border-radius: inherit;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(105deg, rgba(131, 24, 67, 0.82) 0%, rgba(157, 23, 77, 0.58) 42%, rgba(0, 0, 0, 0.38) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2.75rem 0 3.5rem;
}

@media (min-width: 640px) {
  .hero-fullscreen {
    margin-top: 6.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-fullscreen {
    min-height: clamp(32rem, 86vh, 52rem);
  }

  .hero-content {
    padding: 3.25rem 0 4.5rem;
  }
}

@media (min-width: 1280px) {
  .hero-fullscreen {
    margin-top: 8.25rem;
  }
}

.hero-copy {
  color: #fff;
}

.hero-fullscreen-title {
  font-size: clamp(1.875rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-headline-stack {
  display: grid;
  grid-template: 1fr / 1fr;
  align-items: start;
  max-width: min(100%, 46rem);
}

.hero-headline-line--long {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.4rem, 1.4vw, 0.75rem);
  font-size: clamp(1.5rem, 4.2vw, 2.75rem);
  max-width: min(100%, 52rem);
}

.hero-headline-line--long .hero-headline-part {
  display: block;
  line-height: 1.15;
}

.hero-headline-line {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.65rem);
  transition:
    opacity 0.85s ease,
    transform 0.85s ease,
    visibility 0s linear 0.85s;
  pointer-events: none;
}

.hero-headline-line.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.85s ease,
    transform 0.85s ease,
    visibility 0s linear 0s;
  pointer-events: auto;
}

.hero-headline-br {
  display: none;
}

@media (min-width: 640px) {
  .hero-headline-br {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-headline-line {
    transition: none;
    transform: none;
  }
}

.hero-fullscreen-title-accent {
  display: inline;
  background: linear-gradient(90deg, #ffe4ec 0%, #fda4bf 45%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-fullscreen-subtitle {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: clamp(0.9375rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1024px) {
  .hero-fullscreen-subtitle {
    margin-top: 1.5rem;
  }
}

#hero-slideshow,
.hero-slideshow-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

#hero-slideshow img,
.hero-slideshow-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.8s ease;
}

#hero-slideshow img.is-fading,
.hero-slideshow-bg img.is-fading {
  opacity: 0;
}

/* Карусель «Как проходят мастер-классы» */
.home-section--mc-flow {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

@media (min-width: 1024px) {
  .home-section--mc-flow {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}

.mc-carousel {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.mc-carousel-viewport {
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 20px 50px rgba(157, 23, 77, 0.15);
  /* Резерв высоты до загрузки фото — меньше скачков при якорь-скролле */
  min-height: 18rem;
  transition: height 0.35s ease;
}

@media (min-width: 768px) {
  .mc-carousel-viewport {
    min-height: 24rem;
  }
}

.mc-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  align-items: flex-start;
}

.mc-carousel-slide {
  position: relative;
  flex: 0 0 100%;
  overflow: hidden;
  line-height: 0;
  /* Единый кадр для всех слайдов */
  aspect-ratio: 3 / 2;
}

.mc-carousel-slide-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.mc-carousel-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(0deg, rgba(131, 24, 67, 0.88) 0%, rgba(131, 24, 67, 0.45) 45%, rgba(0, 0, 0, 0.2) 100%);
}

.mc-carousel-slide-stage {
  position: absolute;
  left: 50%;
  top: 36%;
  z-index: 1;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0 0.75rem;
  max-width: 100%;
  box-sizing: border-box;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.5rem, 11vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.38);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  user-select: none;
}

/* Обычная арабская цифра: в Cormorant «1» выглядит как тонкая римская I */
.mc-carousel-slide-stage__num {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  font-variant-numeric: lining-nums;
  letter-spacing: 0.04em;
  font-size: 0.92em;
  vertical-align: 0.02em;
}

@media (min-width: 640px) {
  .mc-carousel-slide-stage {
    top: 38%;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.4);
  }
}

.mc-carousel-slide-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1.5rem 1.25rem 1.75rem;
  color: #fff;
  line-height: normal;
}

@media (max-width: 767px) {
  .mc-carousel-viewport {
    min-height: 26rem;
  }

  .mc-carousel-slide {
    aspect-ratio: 3 / 4;
  }

  .mc-carousel-slide-stage {
    top: 20%;
    font-size: clamp(1.85rem, 9vw, 3.25rem);
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.28);
  }

  .mc-carousel-slide-content {
    max-height: 58%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 1.1rem 1rem 1.25rem;
    scrollbar-width: auto;
    scrollbar-color: rgba(255, 255, 255, 0.75) rgba(255, 255, 255, 0.15);
  }

  .mc-carousel-slide-content::-webkit-scrollbar {
    width: 6px;
  }

  .mc-carousel-slide-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
  }

  .mc-carousel-slide-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 9999px;
  }

  .mc-carousel-slide-title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }

  .mc-carousel-slide-text {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .mc-carousel-btn {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.75rem;
  }
}

@media (min-width: 640px) {
  .mc-carousel-slide-content {
    padding: 2rem 2.25rem 2.25rem;
  }
}

.mc-carousel-slide-title {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.mc-carousel-slide-text {
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 42rem;
}

.mc-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: auto;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(145deg, #ffffff 0%, #ffe4ec 100%);
  color: #9d174d;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 22px rgba(157, 23, 77, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.mc-carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow:
    0 10px 28px rgba(157, 23, 77, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.14);
}

.mc-carousel-btn:active {
  transform: translateY(-50%) scale(1.02);
}

.mc-carousel-btn--prev {
  left: 0.35rem;
}

.mc-carousel-btn--next {
  right: 0.35rem;
}

@media (min-width: 640px) {
  .mc-carousel-btn {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 3rem;
  }

  .mc-carousel-btn--prev {
    left: -1.5rem;
  }

  .mc-carousel-btn--next {
    right: -1.5rem;
  }
}

.mc-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.mc-carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #fecdd9;
  transition: width 0.25s ease, background 0.25s ease;
}

.mc-carousel-dot.is-active {
  width: 1.5rem;
  background: #db2777;
}

.mc-carousel-dot:hover {
  background: #f472b6;
}

.nav-candy {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #9d174d;
  border-radius: 0.75rem;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.nav-candy:hover {
  color: var(--candy-pink-600);
  background-color: rgba(253, 164, 191, 0.2);
  transform: translateY(-1px);
}

/* Пункты меню в шапке — яркий насыщенный красный (кроме корзины и кабинета) */
header .nav-candy:not([href="cart.html"]):not([href="profile.html"]) {
  color: #e60000;
  font-weight: 600;
  border: 3px solid rgba(230, 0, 0, 0.5);
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 5px rgba(230, 0, 0, 0.07);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

header .nav-candy:not([href="cart.html"]):not([href="profile.html"]):hover {
  color: #c40000;
  border-color: rgba(196, 0, 0, 0.72);
  background-color: rgba(255, 248, 248, 0.95);
  box-shadow: 0 3px 12px rgba(230, 0, 0, 0.14);
}

#site-header #mobile-menu .nav-candy:not([href="cart.html"]):not([href="profile.html"]) {
  display: block;
  margin: 0.28rem 0;
  padding: 0.55rem 1rem;
  text-align: center;
}

/* Заголовки секций */
.section-label {
  color: var(--candy-pink-600);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-divider {
  width: 5rem;
  height: 4px;
  margin: 1rem auto 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--candy-red), var(--candy-pink-500), var(--candy-red));
}

/* Кнопки под заголовком каталога: «На главную» + «Магазин» */
.catalog-hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  max-width: 100%;
}

.catalog-hero-actions.hidden {
  display: none;
}

.catalog-back-link,
.catalog-shop-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  min-width: 9.5rem;
  padding: 0.55rem 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-back-link:hover,
.catalog-shop-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(236, 72, 153, 0.45);
}

.catalog-back-link:active,
.catalog-shop-link:active {
  transform: translateY(0);
}

/* В разделах магазина «Магазин» убран из шапки — он под заголовком */
body.catalog-is-shop-section #catalog-header-shop {
  display: none !important;
}

@media (max-width: 480px) {
  .catalog-hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 18rem;
    margin-left: auto;
    margin-right: auto;
    gap: 0.65rem;
  }

  .catalog-back-link,
  .catalog-shop-link {
    width: 100%;
    min-width: 0;
    white-space: normal;
    padding: 0.65rem 1.1rem;
  }
}

/* Единые отступы между разделами (главная) */
.home-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .home-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.home-section-hero {
  /* верхний отступ задаётся через pt-24 xl:pt-28 в разметке */
  padding-bottom: 0;
}

/* === Отзывы (скрины VK / Яндекс / 2ГИС) === */
.reviews-section {
  background: linear-gradient(180deg, #fff9fb 0%, #ffffff 45%, #fff5f8 100%);
}

/* Отступ между «О нас» и «Отзывы» — на 40% меньше обычного */
#about.home-section {
  padding-bottom: 3rem;
}

#about.home-section + #reviews.reviews-section {
  padding-top: 3rem;
}

@media (min-width: 1024px) {
  #about.home-section {
    padding-bottom: 3.6rem;
  }

  #about.home-section + #reviews.reviews-section {
    padding-top: 3.6rem;
  }
}

.reviews-section__lead {
  max-width: 40rem;
  margin: 0.75rem auto 0;
  text-align: center;
  color: rgba(157, 23, 77, 0.7);
  font-size: 0.95rem;
  line-height: 1.55;
}

.reviews-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}

.reviews-heading__heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  vertical-align: middle;
}

.reviews-heading__heart-svg {
  width: 0.85em;
  height: 0.85em;
  fill: #ef4444;
  filter: drop-shadow(0 2px 6px rgba(239, 68, 68, 0.35));
  transform-origin: center;
  animation: reviews-heart-beat 1.35s ease-in-out infinite;
}

@keyframes reviews-heart-beat {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 2px 6px rgba(239, 68, 68, 0.3));
  }
  18% {
    transform: scale(1.18);
    filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.5));
  }
  32% {
    transform: scale(0.96);
  }
  48% {
    transform: scale(1.12);
    filter: drop-shadow(0 3px 10px rgba(239, 68, 68, 0.45));
  }
  64% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-heading__heart-svg {
    animation: none;
  }
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
    align-items: stretch;
  }
}

.reviews-col {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(253, 164, 191, 0.35);
  box-shadow: 0 10px 28px -16px rgba(157, 23, 77, 0.22);
}

.reviews-col__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.reviews-col__logo {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
}

.reviews-col__logo svg,
.reviews-col__logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.reviews-col__logo svg {
  fill: currentColor;
}

.reviews-col--yandex .reviews-col__logo,
.reviews-col--2gis .reviews-col__logo {
  background: transparent;
}

.reviews-col--vk .reviews-col__head {
  background: linear-gradient(135deg, #0077ff 0%, #0055d4 100%);
}

.reviews-col--yandex .reviews-col__head {
  background: linear-gradient(135deg, #fc3f1d 0%, #e03616 100%);
}

.reviews-col--2gis .reviews-col__head {
  background: linear-gradient(135deg, #1db93c 0%, #149a30 100%);
}

.reviews-col__body {
  position: relative;
  flex: 1;
  min-height: 18rem;
  background: #faf7f8;
}

@media (min-width: 768px) {
  .reviews-col__body {
    min-height: 22rem;
  }
}

.reviews-col__frame {
  position: absolute;
  inset: 0.75rem;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(253, 164, 191, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.reviews-col__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: #fff;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.reviews-col__frame img.is-active {
  opacity: 1;
}

.reviews-col__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: rgba(157, 23, 77, 0.55);
  font-size: 0.9rem;
}

.reviews-grid__loading,
.reviews-grid__error {
  grid-column: 1 / -1;
}

.reviews-grid__loading {
  min-height: 20rem;
}

/* Пока VK-карточки не отрисованы — резерв высоты, чтобы якоря не «уплывали» */
[id^="home-section-"]:empty {
  min-height: 24rem;
}

@media (min-width: 640px) {
  [id^="home-section-"]:empty {
    min-height: 26rem;
  }
}

.home-section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.home-section-head .reviews-heading {
  width: 100%;
}

@media (min-width: 1024px) {
  .home-section-head {
    margin-bottom: 3rem;
  }
}

.home-section-cta {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.home-section-cta .btn-section-catalog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.65rem;
  min-width: min(100%, 17.5rem);
  max-width: 100%;
  border-radius: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.35;
  color: #831843;
  background: linear-gradient(160deg, rgba(255, 253, 254, 0.98) 0%, rgba(255, 236, 244, 0.94) 100%);
  border: 1px solid rgba(253, 164, 191, 0.52);
  box-shadow:
    0 6px 22px -8px rgba(157, 23, 77, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    color 0.28s ease;
  cursor: pointer;
  position: relative;
  z-index: 2;
  text-decoration: none;
  font-family: inherit;
}

.home-section-cta .btn-section-catalog::after {
  content: '→';
  font-size: 0.95em;
  opacity: 0.72;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.home-section-cta .btn-section-catalog:hover {
  transform: translateY(-2px);
  color: #9d174d;
  border-color: rgba(244, 114, 182, 0.62);
  background: linear-gradient(160deg, #ffffff 0%, rgba(255, 228, 236, 0.98) 100%);
  box-shadow:
    0 14px 32px -10px rgba(236, 72, 153, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.home-section-cta .btn-section-catalog:hover::after {
  transform: translateX(3px);
  opacity: 1;
}

.home-section-cta .btn-section-catalog:active {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .home-section-cta .btn-section-catalog {
    padding: 0.85rem 2rem;
    font-size: 0.875rem;
  }
}

#about .home-section-features {
  margin-top: var(--home-features-gap, 2.5rem);
}

.about-heart,
.about-emoji {
  display: inline-block;
  margin-left: 0.2em;
  font-size: 1.05em;
  line-height: 1;
  vertical-align: -0.05em;
}

.about-heart {
  filter: drop-shadow(0 1px 2px rgba(239, 68, 68, 0.35));
}

#how-classes.home-section--mc-flow {
  padding-top: var(--home-mc-gap, 5.5rem);
  /* Та же «лента», что у Дней рождения + тонкая граница перед Мастер-классами */
  box-shadow: inset 0 -1px 0 rgba(253, 164, 191, 0.38);
}

@media (min-width: 1024px) {
  :root {
    --home-features-gap: 3rem;
    --home-mc-gap: 7rem;
  }

  #about .home-section-features {
    margin-top: var(--home-features-gap);
  }

  #how-classes.home-section--mc-flow {
    padding-top: var(--home-mc-gap);
  }
}

.home-section-features {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .home-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .home-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.home-feature-card {
  display: block;
  text-align: center;
  padding: 1.05rem 0.75rem 1.15rem;
}

@media (max-width: 639px) {
  .home-feature-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.55rem;
  }

  .home-feature-card__title {
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
  }

  .home-feature-card__text {
    font-size: 0.72rem;
    line-height: 1.45;
  }
}

@media (min-width: 640px) {
  .home-feature-card {
    padding: 1.55rem 1.35rem 1.65rem;
  }
}

@media (min-width: 1024px) {
  .home-feature-card {
    padding: 1.75rem 1.5rem 1.85rem;
  }
}

.home-feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  margin: 0 auto 0.75rem;
  border-radius: 9999px;
  line-height: 0;
  box-shadow: 0 6px 16px -8px rgba(157, 23, 77, 0.28);
}

@media (min-width: 640px) {
  .home-feature-card__icon {
    width: 3.45rem;
    height: 3.45rem;
    margin-bottom: 0.85rem;
  }
}

/* Цветные иконки — каждая карточка со своим акцентом */
.home-feature-card--design .home-feature-card__icon {
  color: #db2777;
  background: linear-gradient(145deg, #ffe4ec 0%, #fda4bf 55%, #f9a8d4 100%);
}

.home-feature-card--natural .home-feature-card__icon {
  color: #15803d;
  background: linear-gradient(145deg, #dcfce7 0%, #86efac 55%, #4ade80 100%);
}

.home-feature-card--kids .home-feature-card__icon {
  color: #c2410c;
  background: linear-gradient(145deg, #ffedd5 0%, #fdba74 55%, #fb923c 100%);
}

.home-feature-card--safe .home-feature-card__icon {
  color: #0369a1;
  background: linear-gradient(145deg, #e0f2fe 0%, #7dd3fc 55%, #38bdf8 100%);
}

.home-feature-card__body {
  min-width: 0;
}

.home-feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #9d174d;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .home-feature-card__title {
    font-size: 1.125rem;
  }
}

.home-feature-card__text {
  font-size: clamp(0.78rem, 0.72rem + 0.2vw, 0.9rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(157, 23, 77, 0.62);
  margin: 0 auto;
  max-width: min(22rem, 100%);
  text-wrap: balance;
  text-pretty: pretty;
}

@media (min-width: 640px) {
  .home-feature-card__text {
    line-height: 1.6;
  }
}

@media (min-width: 1024px) {
  .home-feature-card__text {
    max-width: 23rem;
  }
}

.partners-lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}

.partners-lead p {
  margin: 0;
  width: 100%;
  color: #9d174d;
  font-size: 0.9375rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.partners-site-link {
  display: inline-block;
  margin: 0.55rem 0;
  padding: 0.35rem 0.5rem;
  max-width: 100%;
  font-size: clamp(1.35rem, 5.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #db2777;
  text-decoration: none;
  word-break: break-word;
  transition: transform 0.28s ease, color 0.28s ease, text-shadow 0.28s ease;
  transform-origin: center;
  will-change: transform;
}

.partners-site-link:hover,
.partners-site-link:focus-visible {
  transform: scale(1.12);
  color: #ec4899;
  text-shadow: 0 8px 22px rgba(236, 72, 153, 0.28);
  outline: none;
}

.partners-site-link:active {
  transform: scale(1.06);
}

@media (min-width: 640px) {
  .partners-lead {
    gap: 1.2rem;
  }

  .partners-lead p {
    font-size: 1.0625rem;
    line-height: 1.75;
  }

  .partners-site-link {
    margin: 0.65rem 0;
  }
}

@media (min-width: 1024px) {
  .partners-lead {
    gap: 1.35rem;
    max-width: 40rem;
  }

  .partners-lead p {
    font-size: 1.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-site-link {
    transition: color 0.2s ease;
  }

  .partners-site-link:hover,
  .partners-site-link:focus-visible,
  .partners-site-link:active {
    transform: none;
  }
}

/* Пустая корзина */
.cart-empty-icon {
  margin-left: auto;
  margin-right: auto;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  align-items: center;
  color: #0369a1;
  background: linear-gradient(145deg, #e0f2fe 0%, #7dd3fc 50%, #38bdf8 100%);
  box-shadow: 0 10px 24px -10px rgba(3, 105, 161, 0.45);
}

.cart-empty-icon .candy-icon {
  width: 2.35rem;
  height: 2.35rem;
  color: inherit;
}

/* Модалка заявки в корзине */
.request-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.request-modal.hidden {
  display: none;
}

.request-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(83, 12, 40, 0.45);
  backdrop-filter: blur(4px);
}

.request-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(131, 24, 67, 0.28);
}

.request-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  font-size: 1.5rem;
  line-height: 1;
  color: #9d174d;
  background: rgba(255, 228, 236, 0.7);
  transition: background 0.2s ease, transform 0.2s ease;
}

.request-modal__close:hover {
  background: #ffe4ec;
  transform: scale(1.05);
}

.hero-inquiry-choice {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: rgba(255, 228, 236, 0.55);
  border: 1px solid rgba(253, 164, 191, 0.45);
  color: #9d174d;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
}

.hero-inquiry-choice.is-empty {
  color: rgba(157, 23, 77, 0.55);
  font-weight: 500;
}

.hero-cta {
  width: 100%;
}

.hero-cta .btn-candy-primary {
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  max-width: 100%;
}

.hero-cta a.btn-candy-primary,
.hero-cta button.btn-candy-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-cta .btn-candy-primary {
    min-width: 12.5rem;
  }
}

.hero-cta button.btn-candy {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Контакты — главная */
.contacts-panel {
  text-align: center;
}

.contacts-panel__lead {
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--candy-pink-800);
}

.contacts-panel__grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .contacts-panel__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.contacts-panel__block {
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255, 245, 247, 0.95) 0%, rgba(255, 228, 236, 0.55) 100%);
  border: 1px solid rgba(253, 164, 191, 0.35);
}

.contacts-panel__label {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: none;
  color: var(--candy-pink-800);
  text-align: center;
}

.contacts-panel__block .contacts-panel__label {
  padding-bottom: 0.35rem;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

.contacts-panel__list {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: clamp(0.9rem, 2.3vw, 1rem);
}

.contacts-panel__link {
  color: var(--candy-pink-800);
  text-decoration: none;
  font-size: inherit;
  line-height: 1.45;
  transition: color 0.25s ease;
}

.contacts-panel__link:hover {
  color: var(--candy-pink-600);
}

.contacts-panel__link--strong {
  font-weight: 700;
}

.contacts-panel__address {
  margin: 0;
  font-size: clamp(0.9rem, 2.3vw, 1rem);
  line-height: 1.65;
  color: var(--candy-pink-800);
  text-align: center;
}

.contacts-panel__messengers {
  display: flex;
  justify-content: center;
}

.contacts-social--inline {
  margin-top: 0.15rem;
}

.contacts-panel__social {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(253, 164, 191, 0.35);
  /* Выше плавающих виджетов (Telegram z-index:90), иначе правая кнопка перекрывается */
  position: relative;
  z-index: 95;
}

.contacts-social__link--avito {
  background: linear-gradient(135deg, #ff6163 0%, #00aaff 50%, #965eeb 100%);
  cursor: pointer;
  pointer-events: auto;
}

.contacts-panel__social .contacts-panel__label {
  text-align: center;
  margin-bottom: 1rem;
}

.contacts-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.contacts-social--rows {
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 22.5rem;
  margin-inline: auto;
}

.contacts-social__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 480px) {
  .contacts-social--rows {
    max-width: 28.5rem;
  }

  .contacts-social__row {
    gap: 0.85rem;
  }
}

.contacts-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px -8px rgba(157, 23, 77, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contacts-social__link svg {
  width: 1.35rem;
  height: 1.35rem;
}

.contacts-social__link:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px -10px rgba(236, 72, 153, 0.45);
}

.contacts-social__link--vk { background: #0077ff; }
.contacts-social__link--ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.contacts-social__link--yt { background: #ff0000; }
.contacts-social__link--rt { background: #100943; }
.contacts-social__link--tt { background: #010101; }
.contacts-social__link--ym {
  background: #fc3f1d;
  padding: calc(1px / 3 * 0.4);
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 6px 18px -8px rgba(157, 23, 77, 0.35);
}

.contacts-social__link--photo {
  padding: 0;
  overflow: hidden;
}

.contacts-social__link--ym.contacts-social__link--photo {
  padding: calc(1px / 3 * 0.4);
}

.contacts-social__link--2gis.contacts-social__link--photo,
.contacts-social__link--avito.contacts-social__link--photo {
  position: relative;
  z-index: 96;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(29, 185, 60, 0.2);
  background: transparent;
  padding: 0;
}

.contacts-social__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}
.contacts-social__link--tg { background: #26a5e4; }
.contacts-social__link--wa { background: #25d366; }
.contacts-social__link--2gis { background: #1db93c; }
.contacts-social__link--static { cursor: default; }

/* Галерея — горизонтальная карусель со стрелками */
.gallery-carousel {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  padding: 0 0.25rem;
}

.gallery-carousel__track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 0.35rem 0.15rem 0.85rem;
  scrollbar-width: none;
}

.gallery-carousel__track.is-scrolling .gallery-photo {
  pointer-events: none;
}

.gallery-carousel__track.is-scrolling .gallery-photo img {
  transform: scale(0.985);
  transition: transform 0.35s ease;
}

.gallery-carousel__track::-webkit-scrollbar {
  display: none;
}

.gallery-carousel__track .gallery-photo {
  flex: 0 0 min(78vw, 16.5rem);
  width: min(78vw, 16.5rem);
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 1rem;
  overflow: hidden;
  background: #ffe4ec;
}

@media (min-width: 640px) {
  .gallery-carousel__track {
    gap: 1rem;
  }

  .gallery-carousel__track .gallery-photo {
    flex-basis: min(42vw, 15.5rem);
    width: min(42vw, 15.5rem);
  }
}

@media (min-width: 1024px) {
  .gallery-carousel {
    padding: 0 2.75rem;
  }

  .gallery-carousel__track .gallery-photo {
    flex-basis: calc((100% - 3rem) / 4);
    width: calc((100% - 3rem) / 4);
  }
}

.gallery-photo {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-photo:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px -10px rgba(236, 72, 153, 0.35);
}

.gallery-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-58%);
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 2px solid rgba(253, 164, 191, 0.75);
  background: linear-gradient(145deg, #ffffff 0%, #ffe4ec 100%);
  color: #9d174d;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px -8px rgba(157, 23, 77, 0.35);
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
  cursor: pointer;
}

.gallery-carousel__btn:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-58%) scale(1.08);
  box-shadow: 0 12px 28px -8px rgba(157, 23, 77, 0.42);
}

.gallery-carousel__btn:active:not(:disabled) {
  transform: translateY(-58%) scale(1.02);
}

.gallery-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.gallery-carousel__btn--prev {
  left: 0;
}

.gallery-carousel__btn--next {
  right: 0;
}

@media (min-width: 640px) {
  .gallery-carousel__btn {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 2.15rem;
  }
}

@media (min-width: 1024px) {
  .gallery-carousel__btn--prev {
    left: 0.15rem;
  }

  .gallery-carousel__btn--next {
    right: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-carousel__track {
    scroll-behavior: auto;
  }
}

#gallery-lightbox:not(.hidden) {
  display: flex;
}

/* Страница всех фото */
.photos-page-hero__top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1.25rem;
}

.photos-page-hero__title {
  text-align: center;
}

.photos-page__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px -12px rgba(157, 23, 77, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.photos-page__back:hover {
  transform: translateX(-2px);
  box-shadow: 0 12px 24px -12px rgba(157, 23, 77, 0.4);
}

@media (min-width: 640px) {
  .photos-page-hero__top {
    margin-bottom: 1.5rem;
  }

  .photos-page__back {
    min-height: 2.75rem;
    padding: 0.65rem 1.35rem;
    font-size: 0.9375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photos-page__back {
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .photos-page__back:hover {
    transform: none;
  }
}

.photos-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .photos-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 900px) {
  .photos-page-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1200px) {
  .photos-page-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.photos-page-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #ffe4ec;
  box-shadow: 0 8px 22px -14px rgba(157, 23, 77, 0.35);
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.photos-page-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.photos-page-card__veil {
  position: absolute;
  inset: 0;
  background: rgba(131, 24, 67, 0);
  transition: background 0.28s ease;
  pointer-events: none;
}

.photos-page-card:hover,
.photos-page-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(157, 23, 77, 0.45);
  outline: none;
}

.photos-page-card:hover img,
.photos-page-card:focus-visible img {
  transform: scale(1.04);
  filter: brightness(1.04);
}

.photos-page-card:hover .photos-page-card__veil,
.photos-page-card:focus-visible .photos-page-card__veil {
  background: rgba(131, 24, 67, 0.08);
}

.photos-page-status {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  text-align: center;
  color: rgba(157, 23, 77, 0.7);
  font-size: 0.875rem;
}

.photos-page-status.hidden {
  display: none;
}

.photos-page__back--bottom {
  min-width: 10rem;
}

.photos-page__back--bottom:hover {
  transform: translateX(-2px);
}

.photos-page-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(244, 114, 182, 0.9);
  padding: 3rem 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .photos-page-card,
  .photos-page-card img,
  .photos-page-card__veil {
    transition: none;
  }

  .photos-page-card:hover,
  .photos-page-card:focus-visible {
    transform: none;
  }

  .photos-page-card:hover img,
  .photos-page-card:focus-visible img {
    transform: none;
  }
}

#constructor-modal:not(.hidden) {
  display: flex;
  z-index: 130;
}

.constructor-modal__panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.constructor-modal__header {
  flex-shrink: 0;
  z-index: 2;
}

.constructor-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.25rem;
}

.constructor-modal__footer {
  flex-shrink: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 -8px 24px rgba(157, 23, 77, 0.06);
}

/* Поля ввода */
.input-candy {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(253, 164, 191, 0.45);
  background: white;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.input-candy:focus {
  border-color: var(--candy-pink-500);
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.2);
}

/* Футер внутренних страниц */
.footer-candy {
  background: linear-gradient(to bottom, var(--candy-pink-100), var(--candy-pink-50));
  border-top: 1px solid rgba(253, 164, 191, 0.35);
}

.site-footer {
  position: relative;
  z-index: 120;
  isolation: isolate;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.site-footer-copy {
  margin: 0 auto;
  width: 100%;
  max-width: 36rem;
  padding: 0 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.55;
  letter-spacing: 0.015em;
  color: rgba(251, 207, 232, 0.78);
  text-wrap: balance;
  text-align: center;
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.site-footer-legal a {
  font-size: 0.6875rem;
  line-height: 1.4;
  color: rgba(251, 207, 232, 0.92);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(251, 207, 232, 0.35);
}

.site-footer-legal a:hover,
.site-footer-legal a:focus-visible {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.7);
  outline: none;
}

.vk-section-grid--shop {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  grid-auto-rows: min-content;
}

.vk-section-grid--shop > .vk-product-card {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 640px) {
  .vk-section-grid--shop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .vk-section-grid--shop {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 639px) {
  .vk-section-grid--shop .vk-product-card--hero.card-candy,
  .vk-section-grid--shop .vk-product-card--compact,
  .vk-section-grid--shop .vk-product-card--full {
    aspect-ratio: auto;
    min-height: 0;
  }

  .vk-section-grid--shop .vk-product-card__content {
    min-height: 18.5rem;
    padding: 0.95rem 1rem 1.05rem;
  }

  .vk-section-grid--shop .vk-product-card__title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }

  .vk-section-grid--shop .vk-product-card__desc,
  .vk-section-grid--shop .vk-product-card__desc--compact {
    max-height: 7.25rem;
    font-size: 0.8125rem;
    margin-bottom: 0.7rem;
  }

  .vk-section-grid--shop .vk-product-card__price,
  .vk-section-grid--shop .vk-product-card__actions .btn-candy {
    font-size: 0.875rem;
  }

  .vk-section-grid--shop .vk-product-card__footer {
    padding-top: 0.65rem;
  }
}

@media (max-width: 639px) and (orientation: portrait) {
  .vk-section-grid--shop {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
  }

  /* Карточка растёт по контенту, а не вылезает из трека грида */
  .vk-product-card--hero.card-candy {
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    transform: none;
  }

  .vk-product-card--compact,
  .vk-product-card--full {
    min-height: 0;
  }
}

.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 240;
  max-width: 34rem;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(244, 114, 182, 0.28);
  box-shadow: 0 18px 40px rgba(157, 23, 77, 0.18);
  color: #9d174d;
}

.cookie-consent__text {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.cookie-consent__text a {
  color: #db2777;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-consent__btn {
  appearance: none;
  border: 0;
  border-radius: 9999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent__btn--accept {
  background: linear-gradient(135deg, #be185d, #ec4899);
  color: #fff;
  box-shadow: 0 8px 18px rgba(190, 24, 93, 0.28);
}

.cookie-consent__btn--more {
  background: rgba(251, 207, 232, 0.55);
  color: #9d174d;
}

.legal-page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.legal-page h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #9d174d;
}

.legal-page h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 1.5rem 0 0.55rem;
  color: #be185d;
}

.legal-page p,
.legal-page li {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(157, 23, 77, 0.88);
}

.legal-page ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.2rem;
}

.legal-page a {
  color: #db2777;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@media (min-width: 640px) {
  .site-footer-copy {
    max-width: 40rem;
    font-size: 0.75rem;
    line-height: 1.6;
  }

  .site-footer-legal a {
    font-size: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .site-footer-copy {
    max-width: 44rem;
    font-size: 0.8125rem;
  }
}

/* Toast */
.toast-candy {
  background: var(--candy-pink-800);
  color: #fce7f3;
  border-radius: 9999px;
  box-shadow: 0 16px 40px -8px rgba(157, 23, 77, 0.4);
}

/* Бейдж корзины */
.cart-badge {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--candy-pink-800);
  color: #fce7f3;
  border-radius: 9999px;
}

/* Адаптив: таблицы и overflow */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 639px) {
  .table-responsive table {
    min-width: 100%;
  }

  .table-responsive th,
  .table-responsive td {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0;
    border: none;
  }

  .table-responsive tr {
    display: block;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid rgba(253, 164, 191, 0.3);
  }

  .table-responsive thead {
    display: none;
  }
}

/* Плавающая кнопка «Наверх» */
.scroll-top-btn {
  position: fixed;
  left: 1rem;
  top: 5.25rem;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--candy-pink-600), var(--candy-pink-800));
  box-shadow: 0 8px 24px -6px rgba(236, 72, 153, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.25s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  box-shadow: 0 12px 32px -8px rgba(236, 72, 153, 0.55);
  transform: translateY(-2px);
}

.scroll-top-btn.is-visible:hover {
  transform: translateY(-2px);
}

.scroll-top-btn:focus-visible {
  outline: 2px solid var(--candy-pink-400);
  outline-offset: 2px;
}

.scroll-top-btn__icon {
  width: 1.35rem;
  height: 1.35rem;
}

@media (min-width: 1280px) {
  .scroll-top-btn {
    top: 6.5rem;
  }
}

@media (max-width: 639px) {
  .scroll-top-btn {
    left: 0.75rem;
    top: 4.75rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Калькулятор участников — Дни рождения */
.birthday-price-wrap {
  min-width: 0;
}

.birthday-guest-calc {
  padding: 0.15rem 0.35rem 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 228, 236, 0.65);
  border: 1px solid rgba(253, 164, 191, 0.45);
}

.birthday-guest-plus,
.birthday-guest-minus {
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 9999px;
  font-weight: 700;
}

.birthday-guest-plus:disabled,
.birthday-guest-minus:disabled {
  pointer-events: none;
}

.qty-calc {
  padding-right: 0.45rem;
}

.qty-unit {
  line-height: 1;
  letter-spacing: 0.02em;
}

.qty-price-wrap--sized {
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  max-width: 100%;
  width: 100%;
}

.qty-price-wrap__row {
  min-width: 0;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.qty-price-wrap__calc {
  min-width: 0;
}

.qty-price-wrap__actions {
  margin-left: auto;
  flex: 0 0 auto;
}

.qty-price-wrap__actions .vk-product-card__btn {
  white-space: nowrap;
}

/* Калькулятор слева, «В корзину» в правом нижнем углу (леденцы, наборы, россыпная карамель) */
.qty-price-wrap--split,
.qty-price-wrap--weight {
  width: 100%;
  max-width: 100%;
}

.qty-price-wrap--split:not(.qty-price-wrap--sized),
.qty-price-wrap--weight:not(.qty-price-wrap--sized) {
  flex-direction: column;
  align-items: stretch;
}

.qty-price-wrap--split .qty-price-wrap__row,
.qty-price-wrap--weight .qty-price-wrap__row {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}

.qty-price-wrap--split .qty-price-wrap__calc,
.qty-price-wrap--weight .qty-price-wrap__calc {
  flex: 1 1 auto;
  min-width: 0;
}

.qty-price-wrap--split .qty-price-wrap__actions,
.qty-price-wrap--weight .qty-price-wrap__actions {
  margin-left: auto;
  width: auto;
  flex: 0 0 auto;
}

.qty-price-wrap--split .qty-price-wrap__actions .vk-product-card__btn,
.qty-price-wrap--weight .qty-price-wrap__actions .vk-product-card__btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}

.lollipop-options {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.35rem 0.45rem;
  width: auto;
  max-width: 100%;
}

.lollipop-options--single {
  width: auto;
  max-width: 100%;
  align-self: flex-start;
  margin-left: 0;
  margin-right: auto;
}

/* Карамельное сердце / Гигантский чупа-чупс: только размер — левее и на 20% шире */
.lollipop-options--single .lollipop-size,
.lollipop-options--single .lollipop-shape {
  width: auto;
  max-width: 100%;
}

.lollipop-options--single .lollipop-size__select,
.lollipop-options--single .lollipop-shape__select {
  width: 11.7rem; /* 9.75rem × 1.2 */
  min-width: 8.1rem; /* 6.75rem × 1.2 */
  max-width: min(11.7rem, 100%);
  font-size: 0.74rem;
}

.lollipop-shape,
.lollipop-size {
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
}

.lollipop-shape__label,
.lollipop-size__label {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin: 0;
  cursor: pointer;
  width: auto;
}

.lollipop-shape__caption,
.lollipop-size__caption {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.78;
  line-height: 1.1;
}

.lollipop-shape__select,
.lollipop-size__select {
  width: auto;
  min-width: 6.75rem;
  max-width: 9.75rem;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(253, 164, 191, 0.55);
  background:
    #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23db2777' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 0.65rem center / 0.65rem;
  color: #9d174d;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.4rem 1.7rem 0.4rem 0.7rem;
  box-shadow: 0 3px 10px rgba(244, 114, 182, 0.1);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-overflow: ellipsis;
}

.lollipop-shape__select:focus,
.lollipop-size__select:focus {
  border-color: #f472b6;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.22);
}

.vk-product-card--hero .lollipop-shape__caption,
.vk-product-card--hero .lollipop-size__caption {
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.vk-product-card--hero .lollipop-shape__select,
.vk-product-card--hero .lollipop-size__select {
  background-color: rgba(255, 255, 255, 0.94);
}

.vk-product-card--compact .lollipop-options {
  gap: 0.3rem 0.4rem;
}

.vk-product-card--compact .lollipop-shape__select,
.vk-product-card--compact .lollipop-size__select {
  min-width: 6.25rem;
  max-width: 8.75rem;
  font-size: 0.7rem;
  padding: 0.36rem 1.55rem 0.36rem 0.6rem;
}

.vk-product-card--compact .lollipop-options--single .lollipop-size__select,
.vk-product-card--compact .lollipop-options--single .lollipop-shape__select {
  width: 10.5rem; /* 8.75rem × 1.2 */
  min-width: 7.5rem; /* 6.25rem × 1.2 */
  max-width: min(10.5rem, 100%);
  font-size: 0.7rem;
}

.vk-product-card--compact .qty-price-wrap--sized {
  gap: 0.3rem;
}

@media (max-width: 639px) {
  .lollipop-options {
    width: auto;
    max-width: 100%;
  }

  .lollipop-shape,
  .lollipop-size {
    max-width: calc(50% - 0.25rem);
  }

  .lollipop-shape__select,
  .lollipop-size__select {
    width: 100%;
    min-width: 0;
    max-width: 9.25rem;
  }

  .lollipop-options--single .lollipop-size,
  .lollipop-options--single .lollipop-shape {
    max-width: 100%;
  }

  .lollipop-options--single .lollipop-size__select,
  .lollipop-options--single .lollipop-shape__select {
    width: 11.1rem; /* ~9.25rem × 1.2 */
    max-width: min(11.1rem, 100%);
    min-width: 0;
    font-size: 0.74rem;
  }

  .qty-price-wrap__row {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .qty-price-wrap__actions {
    width: auto;
  }

  .qty-price-wrap__actions .vk-product-card__btn {
    min-height: 2.35rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .qty-price-wrap--weight .qty-price-wrap__actions,
  .qty-price-wrap--split .qty-price-wrap__actions {
    width: auto;
  }

  .qty-price-wrap--weight .vk-product-card__actions .vk-product-card__btn,
  .qty-price-wrap--split .vk-product-card__actions .vk-product-card__btn {
    flex: 0 0 auto;
    width: auto;
  }
}

.birthday-guest-unit {
  line-height: 1;
  letter-spacing: 0.02em;
  padding-right: 0.15rem;
}

/* Карточки разделов магазина */
.shop-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .shop-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 1100px) {
  .shop-categories-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

.shop-categories-grid__error {
  grid-column: 1 / -1;
}

.shop-category-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  position: relative;
  /* Выше Telegram FAB (z-index:90), иначе правая часть кнопки не кликается */
  z-index: 96;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-category-card:hover {
  transform: translateY(-2px);
}

.shop-category-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 4;
  background: linear-gradient(145deg, rgba(255, 245, 247, 0.95) 0%, rgba(255, 228, 236, 0.65) 100%);
  overflow: hidden;
}

.shop-category-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.shop-category-card:hover .shop-category-card__img {
  transform: scale(1.04);
}

.shop-category-card__emoji {
  font-size: inherit;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #db2777;
}

.shop-category-card__media--icon {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.95) 0%, transparent 42%),
    linear-gradient(155deg, #fff5f7 0%, #ffe4ec 52%, #fecdd9 100%);
}

.shop-category-icon {
  position: relative;
  width: clamp(4.75rem, 42%, 7rem);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-category-icon__glow {
  position: absolute;
  inset: 18% 14% auto;
  height: 52%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.38) 0%, transparent 72%);
  filter: blur(5px);
  pointer-events: none;
}

.shop-category-icon__svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: transform 0.4s ease;
  transform-origin: 50% 85%;
}

.shop-category-card:hover .shop-category-icon__svg {
  transform: scale(1.06) translateY(-2px);
}

.shop-category-icon--lollipops .shop-category-icon__svg {
  animation: shop-category-icon-sway 3.6s ease-in-out infinite;
}

.shop-category-icon--sets .shop-category-icon__svg {
  animation: shop-category-icon-bob 3.2s ease-in-out infinite;
}

.shop-category-icon--chopped-caramel .shop-category-icon__chunks {
  transform-origin: 60px 50px;
  animation: shop-category-icon-nudge 3.8s ease-in-out infinite;
}

.shop-category-icon--other-sweets .shop-category-icon__svg {
  animation: shop-category-icon-bob 3.4s ease-in-out infinite;
  animation-delay: 0.4s;
}

@keyframes shop-category-icon-sway {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-3px); }
}

@keyframes shop-category-icon-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes shop-category-icon-nudge {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(2deg) translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .shop-category-icon--lollipops .shop-category-icon__svg,
  .shop-category-icon--sets .shop-category-icon__svg,
  .shop-category-icon--other-sweets .shop-category-icon__svg,
  .shop-category-icon--chopped-caramel .shop-category-icon__chunks {
    animation: none;
  }

  .shop-category-card:hover .shop-category-icon__svg {
    transform: none;
  }
}

.shop-category-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.7rem 0.75rem 0.8rem;
  gap: 0.3rem;
}

.shop-category-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--candy-pink-900);
  line-height: 1.25;
}

.shop-category-card__desc {
  font-size: 0.7rem;
  color: rgba(131, 24, 67, 0.72);
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-category-card__meta {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--candy-pink-600);
}

.shop-category-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: auto;
  width: 100%;
  position: relative;
  z-index: 2;
  padding-top: 0.45rem;
}

.shop-category-card__actions--single {
  margin-top: auto;
}

.shop-category-card__action--start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.65rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
  text-decoration: none;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  box-sizing: border-box;
}

.shop-category-card__action--start:hover {
  color: #fff;
}

@media (min-width: 640px) {
  .shop-category-card__action--start {
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
  }
}

.shop-category-card--constructor {
  border: 1px dashed rgba(253, 164, 191, 0.65);
}

.shop-category-card__media--constructor {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95) 0%, transparent 42%),
    linear-gradient(160deg, #fff5f7 0%, #ffe4ec 48%, #fecdd9 100%);
}

.constructor-build {
  position: relative;
  width: clamp(5.75rem, 52%, 7.25rem);
  aspect-ratio: 120 / 140;
  display: flex;
  align-items: center;
  justify-content: center;
}

.constructor-build__glow {
  position: absolute;
  inset: 22% 10% auto;
  height: 48%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.42) 0%, transparent 72%);
  filter: blur(6px);
  animation: constructor-build-glow 2.8s ease-in-out infinite;
  pointer-events: none;
}

.constructor-build__svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.constructor-build__jib {
  transform-origin: 58px 33px;
  animation: constructor-build-sway 3.4s ease-in-out infinite;
}

.constructor-build__hook {
  transform-origin: 104px 33px;
  animation: constructor-build-hook 2.6s ease-in-out infinite;
}

.shop-category-card--constructor:hover .constructor-build__jib {
  animation-duration: 2.2s;
}

.shop-category-card--constructor:hover .constructor-build__hook {
  animation-duration: 1.7s;
}

.constructor-build__spark {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  color: #f472b6;
  animation: constructor-build-spark 2.4s ease-in-out infinite;
}

.constructor-build__spark .candy-icon {
  width: 0.85rem;
  height: 0.85rem;
}

.constructor-build__spark--1 {
  top: 6%;
  right: 4%;
  animation-delay: 0s;
}

.constructor-build__spark--2 {
  top: 36%;
  left: 2%;
  color: #fbbf24;
  animation-delay: 0.7s;
}

.constructor-build__spark--2 .candy-icon {
  width: 0.7rem;
  height: 0.7rem;
}

.constructor-build__spark--3 {
  bottom: 18%;
  right: 12%;
  color: #ec4899;
  animation-delay: 1.3s;
}

.constructor-build__spark--3 .candy-icon {
  width: 0.75rem;
  height: 0.75rem;
}

@keyframes constructor-build-sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(6deg); }
}

@keyframes constructor-build-hook {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes constructor-build-glow {
  0%, 100% { opacity: 0.5; transform: scale(0.92); }
  50% { opacity: 0.95; transform: scale(1.08); }
}

@keyframes constructor-build-spark {
  0%, 100% { opacity: 0.25; transform: scale(0.75) translateY(0); }
  50% { opacity: 1; transform: scale(1.15) translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .constructor-build__jib,
  .constructor-build__hook,
  .constructor-build__glow,
  .constructor-build__spark {
    animation: none;
  }
}

/* === Конструктор леденца === */
.constructor-modal__layout {
  align-items: stretch;
}

.constructor-preview {
  border-radius: 1.25rem;
  border: 1px solid rgba(253, 164, 191, 0.45);
  padding: 1.5rem 1rem;
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  background: #fff5f7;
}

.constructor-preview__emoji {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.constructor-preview__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #9d174d;
  margin: 0 0 0.35rem;
}

.constructor-preview__meta {
  font-size: 0.8125rem;
  color: rgba(157, 23, 77, 0.65);
  margin: 0;
  line-height: 1.45;
}

.constructor-step {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.constructor-step--grow {
  flex: 1;
  min-width: 0;
}

.constructor-step__dot {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: #ffe4ec;
  color: #f472b6;
  flex-shrink: 0;
}

.constructor-step__dot.is-active {
  background: #ec4899;
  color: #fff;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
}

.constructor-step__dot.is-done {
  background: #10b981;
  color: #fff;
}

.constructor-step__label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(157, 23, 77, 0.45);
  white-space: nowrap;
  display: none;
}

.constructor-step__label.is-active {
  color: #9d174d;
}

@media (min-width: 640px) {
  .constructor-step__label {
    display: block;
  }
}

.constructor-step__line {
  flex: 1;
  height: 2px;
  margin: 0 0.25rem;
  background: #ffe4ec;
  min-width: 0.5rem;
}

.constructor-step__line.is-done {
  background: #6ee7b7;
}

.constructor-step-lead {
  font-size: 0.9375rem;
  color: rgba(157, 23, 77, 0.72);
  margin: 0 0 0.85rem;
}

.constructor-step-lead__hint {
  font-size: 0.8125rem;
  color: rgba(157, 23, 77, 0.5);
}

.constructor-step-note {
  font-size: 0.8125rem;
  color: rgba(157, 23, 77, 0.65);
  margin: -0.35rem 0 0.75rem;
}

.constructor-search {
  display: block;
  margin-bottom: 0.75rem;
}

.constructor-search__input {
  font-size: 0.875rem;
}

/* Поиск вкусов — каталог россыпной карамели */
.catalog-flavor-search {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  text-align: center;
}

.catalog-flavor-search__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(157, 23, 77, 0.55);
  margin-bottom: 0.55rem;
}

.catalog-flavor-search__field {
  position: relative;
  display: flex;
  align-items: center;
}

.catalog-flavor-search__icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(236, 72, 153, 0.75);
  pointer-events: none;
  display: flex;
  line-height: 0;
}

.catalog-flavor-search__input {
  padding-left: 2.75rem;
  padding-right: 2.5rem;
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, rgba(251, 113, 133, 0.55), rgba(244, 114, 182, 0.35), rgba(253, 186, 116, 0.45)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 10px 28px rgba(244, 114, 182, 0.08);
  font-family: inherit;
  font-size: 0.95rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.catalog-flavor-search__input:focus {
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.18), 0 12px 30px rgba(244, 114, 182, 0.12);
  border-color: transparent;
}

.catalog-flavor-search__clear {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(253, 164, 191, 0.35);
  color: #9d174d;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.catalog-flavor-search__clear:hover {
  background: rgba(251, 113, 133, 0.45);
  transform: translateY(-50%) scale(1.05);
}

.catalog-flavor-search__meta {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  color: rgba(157, 23, 77, 0.7);
}

.catalog-flavor-search__meta strong {
  color: #9d174d;
  font-weight: 700;
}

.catalog-flavor-empty {
  text-align: center;
  color: rgba(157, 23, 77, 0.55);
  padding: 1.5rem 1rem 0.5rem;
  font-size: 0.95rem;
}

.catalog-flavor-card--hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .catalog-flavor-search {
    margin-bottom: 1.25rem;
    max-width: none;
  }

  .catalog-flavor-search__input {
    font-size: 1rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }
}

.constructor-options {
  display: grid;
  gap: 0.65rem;
}

.constructor-options--shapes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 480px) {
  .constructor-options--shapes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .constructor-options--shapes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.constructor-options--sizes {
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .constructor-options--sizes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (min-width: 900px) {
  .constructor-options--sizes.constructor-options--sizes-roomy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 1100px) {
  .constructor-options--sizes.constructor-options--sizes-roomy {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.constructor-option--size {
  padding: 0.55rem 0.45rem;
  border-radius: 0.85rem;
}

.constructor-option--size-lg {
  padding: 1.15rem 1rem;
  border-radius: 1.15rem;
  min-height: 7.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.constructor-option--size-lg .constructor-option__title,
.constructor-option--size-lg .constructor-option__title--lg {
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 0.15rem;
}

.constructor-option--size-lg .constructor-option__desc {
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
}

.constructor-option--size-lg .constructor-option__price--lg {
  font-size: 1.15rem;
  margin-top: 0.2rem;
}

.constructor-option--size .constructor-option__title {
  font-size: 0.75rem;
  line-height: 1.2;
}

.constructor-option--size .constructor-option__desc {
  font-size: 0.65rem;
  margin-bottom: 0.2rem;
}

.constructor-checkout {
  display: grid;
  gap: 0.9rem;
}

.constructor-checkout--final {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: none;
}

.constructor-checkout--final .constructor-comment--checkout,
.constructor-checkout--final .constructor-summary--checkout {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.constructor-checkout--final .constructor-comment--checkout {
  padding: 0.85rem 1rem;
  border-radius: 1.15rem;
}

.constructor-checkout--final .constructor-summary--checkout {
  margin-top: 0;
  height: auto;
  min-height: 0;
  padding: 0.95rem 1.1rem;
  border-radius: 1.15rem;
}

.constructor-checkout--final .constructor-comment__input {
  min-height: 4.25rem;
  width: 100%;
  resize: vertical;
}

@media (min-width: 640px) {
  .constructor-checkout--final {
    gap: 1rem;
  }

  .constructor-checkout--final .constructor-comment--checkout {
    padding: 1rem 1.15rem;
  }

  .constructor-checkout--final .constructor-summary--checkout {
    padding: 1.05rem 1.25rem;
  }

  .constructor-checkout--final .constructor-comment__input {
    min-height: 4.75rem;
  }
}

@media (min-width: 720px) {
  .constructor-checkout:not(.constructor-checkout--final) {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: stretch;
    gap: 1rem;
  }
}

.constructor-checkout__panel--order {
  display: grid;
  gap: 0.85rem;
}

.constructor-checkout__price-card {
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(253, 164, 191, 0.55);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.95) 0%, transparent 42%),
    linear-gradient(155deg, #fff5f7 0%, #ffe4ec 55%, #fecdd9 100%);
  box-shadow: 0 10px 28px -14px rgba(157, 23, 77, 0.28);
}

.constructor-checkout__eyebrow {
  margin: 0;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: rgba(157, 23, 77, 0.55);
}

.constructor-checkout__total {
  margin: 0.25rem 0 0.15rem;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 700;
  color: #db2777;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.constructor-checkout__unit {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  color: rgba(157, 23, 77, 0.58);
}

.constructor-qty--checkout {
  width: 100%;
}

.constructor-qty--checkout .constructor-qty__calc {
  margin-top: 0.35rem;
  padding: 0.3rem 0.45rem 0.3rem 0.55rem;
}

.constructor-comment {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem 0.8rem;
  border-radius: 1rem;
  border: 1px dashed rgba(253, 164, 191, 0.7);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.9) 0%, transparent 45%),
    linear-gradient(160deg, #fff5f7 0%, #ffe4ec 100%);
  min-height: 100%;
}

.constructor-comment__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #9d174d;
}

.constructor-comment__input {
  width: 100%;
  min-height: 6.5rem;
  resize: vertical;
  font-size: 0.8125rem;
  line-height: 1.45;
  border-radius: 0.85rem;
}

.constructor-comment__hint {
  font-size: 0.6875rem;
  color: rgba(157, 23, 77, 0.5);
}

.constructor-comment--checkout {
  min-height: 0;
}

.constructor-summary--checkout {
  margin-top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.constructor-summary__wish {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(253, 164, 191, 0.55);
  font-size: 0.8125rem;
  color: rgba(157, 23, 77, 0.78);
  line-height: 1.45;
}

.constructor-summary__wish span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(157, 23, 77, 0.5);
}

.constructor-modal__price-row.hidden {
  display: none;
}

@media (min-width: 640px) {
  .constructor-step__label {
    font-size: 0.625rem;
  }
}

@media (min-width: 900px) {
  .constructor-step__label {
    font-size: 0.6875rem;
  }
}

.constructor-option--size .constructor-option__price--lg {
  font-size: 0.8125rem;
  margin-top: 0.15rem;
}

.constructor-options--colors {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .constructor-options--colors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .constructor-options--colors {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.constructor-option {
  cursor: pointer;
  border: 2px solid rgba(253, 164, 191, 0.45);
  border-radius: 1rem;
  background: #fff;
  padding: 0.85rem 0.65rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.constructor-option:hover {
  border-color: rgba(244, 114, 182, 0.75);
  transform: translateY(-1px);
}

.constructor-option--selected {
  border-color: #ec4899;
  background: #fff5f7;
  box-shadow: 0 8px 22px rgba(236, 72, 153, 0.18);
}

.constructor-option__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.35rem;
  min-height: 2.75rem;
  color: #db2777;
}

.constructor-option__icon-img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  display: block;
}

.constructor-preview__photo-wrap {
  width: min(100%, 11rem);
  aspect-ratio: 1;
  margin: 0 auto 0.75rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(253, 164, 191, 0.45);
  background: #fff;
  box-shadow: 0 10px 24px rgba(157, 23, 77, 0.12);
}

.constructor-preview__photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.constructor-preview__emoji--svg {
  margin-bottom: 0.65rem;
}

.constructor-preview__icon-img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.constructor-option__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #9d174d;
}

.constructor-option__title--lg {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.constructor-option__desc {
  display: block;
  font-size: 0.75rem;
  color: rgba(157, 23, 77, 0.55);
  margin-bottom: 0.35rem;
}

.constructor-option__price {
  display: block;
  font-size: 0.75rem;
  color: rgba(157, 23, 77, 0.62);
  margin-top: 0.15rem;
}

.constructor-option__price--lg {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #db2777;
  margin-top: 0.35rem;
}

.constructor-flavor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  /* Прокрутка списка вкусов — «Далее» остаётся на экране */
  max-height: min(14.5rem, 38vh);
  overflow-y: auto;
  padding: 0.2rem 0.25rem 0.35rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
}

@media (min-width: 640px) {
  .constructor-flavor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: min(16rem, 42vh);
    gap: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .constructor-flavor-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: min(17rem, 44vh);
  }
}

.constructor-flavor-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.5rem 0.6rem;
  text-align: left;
  min-height: 2.65rem;
  width: 100%;
  box-sizing: border-box;
}

.constructor-flavor-chip__name {
  font-size: clamp(0.7rem, 2.4vw, 0.8125rem);
  font-weight: 600;
  color: #9d174d;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.constructor-flavor-chip__price {
  font-size: 0.6875rem;
  color: rgba(157, 23, 77, 0.55);
}

.constructor-color-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.45rem;
}

.constructor-color-chip__swatch {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(157, 23, 77, 0.15);
}

.constructor-color-chip__label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9d174d;
  text-align: center;
  line-height: 1.2;
}

.constructor-color-chip__price {
  font-size: 0.625rem;
  color: rgba(157, 23, 77, 0.5);
}

.constructor-summary {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: #fff5f7;
  border: 1px solid rgba(253, 164, 191, 0.45);
}

.constructor-summary__label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(157, 23, 77, 0.5);
  margin: 0 0 0.35rem;
}

.constructor-summary__text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #9d174d;
  margin: 0;
  line-height: 1.45;
}

.constructor-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(157, 23, 77, 0.5);
  padding: 1.5rem 0;
  font-size: 0.875rem;
}

.constructor-modal__footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-top: 0;
}

.constructor-modal__footer-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.constructor-modal__footer-buttons {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .constructor-modal__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .constructor-modal__footer > #modal-prev.hidden {
    display: none;
  }

  .constructor-modal__footer-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    width: auto;
    margin-left: auto;
    gap: 0.85rem 1.15rem;
  }

  .constructor-modal__footer-buttons {
    width: auto;
    flex: 0 0 auto;
  }
}

.constructor-modal--checkout .constructor-modal__footer-actions {
  align-items: stretch;
}

@media (min-width: 720px) {
  .constructor-modal--checkout .constructor-modal__footer-actions {
    flex-wrap: nowrap;
    align-items: center;
  }

  .constructor-modal--checkout .constructor-modal__price-row {
    flex: 0 1 auto;
    justify-content: flex-end;
    align-items: center;
  }
}

.constructor-modal__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.1rem;
  min-width: 0;
}

.constructor-modal__price-block {
  min-width: 0;
}

.constructor-modal__price-unit {
  margin: 0.15rem 0 0;
  font-size: 0.6875rem;
  color: rgba(157, 23, 77, 0.55);
  font-variant-numeric: tabular-nums;
}

.constructor-modal__price-unit.hidden {
  display: none;
}

.constructor-qty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.constructor-qty.hidden {
  display: none;
}

.constructor-qty--footer {
  flex: 0 0 auto;
}

.constructor-qty__label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: rgba(157, 23, 77, 0.5);
  line-height: 1;
}

.constructor-qty__calc {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.constructor-qty__value {
  min-width: 1.75rem;
  font-variant-numeric: tabular-nums;
}

.constructor-qty__unit {
  padding-right: 0.1rem;
}

@media (max-width: 639px) {
  .constructor-modal__price-row {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .constructor-qty {
    align-items: flex-end;
  }

  .constructor-modal--checkout .constructor-modal__footer-buttons {
    width: 100%;
  }

  .constructor-modal--checkout .constructor-modal__footer-buttons .btn-candy {
    flex: 1 1 auto;
  }
}

.constructor-modal__price-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: rgba(157, 23, 77, 0.5);
  margin: 0;
}

.constructor-modal__price-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: #db2777;
  margin: 0.1rem 0 0;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Мобильная и touch-адаптация (iOS / Android) === */
@media (max-width: 639px) {
  /* Шапка: логотип → название (3 строки) → звонок → корзина → бургер */
  #site-header > .max-w-7xl {
    padding-left: 0.75rem;
    padding-right: 0.65rem;
  }

  #site-header > .max-w-7xl > .flex {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    min-height: 3.65rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .site-header-logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    gap: 0.4rem;
  }

  .site-logo-mark {
    width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .site-logo-text {
    font-size: 0.62rem;
    line-height: 1.18;
    letter-spacing: 0.01em;
    gap: 0.02em;
  }

  .site-logo-text__line {
    white-space: nowrap;
  }

  .site-header-actions {
    gap: 0.28rem;
    margin-left: 0;
    flex-shrink: 0;
  }

  /* В шапке на телефоне — только звонок; TG/WA остаются в бургер-меню */
  .site-header-contacts .header-contact--tg,
  .site-header-contacts .header-contact--wa {
    display: none;
  }

  .site-header-contacts .header-contact--phone {
    width: 2.4rem;
    height: 2.4rem;
  }

  .site-header-contacts .header-contact--phone svg {
    width: 1.05rem;
    height: 1.05rem;
  }

  .site-header-cart {
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border-radius: 9999px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .site-header-cart svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  #burger-btn {
    padding: 0.45rem;
    flex-shrink: 0;
  }

  #burger-btn svg {
    width: 1.35rem;
    height: 1.35rem;
  }
}

@media (max-width: 479px) {
  .site-logo-text {
    font-size: 0.58rem;
  }

  .site-logo-mark {
    width: 2.7rem;
    height: 2.7rem;
  }

  .hero-fullscreen {
    width: calc(100% - 1rem);
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    min-height: clamp(24rem, 72vh, 36rem);
    border-radius: 1rem;
  }

  .hero-content {
    padding: 2rem 0 2.75rem;
  }

  .hero-cta .btn-candy-primary {
    width: 100%;
    justify-content: center;
  }

  .home-section {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }

  .home-section-head h2 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
}

@media (max-width: 359px) {
  .site-logo-text {
    font-size: 0.52rem;
  }

  .site-header-contacts .header-contact--phone,
  .site-header-cart {
    width: 2.2rem;
    height: 2.2rem;
  }
}

@media (max-width: 639px) {
  #site-header > .max-w-7xl > .flex {
    flex-wrap: nowrap;
    align-items: center;
  }

  .vk-product-card__meta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .birthday-price-wrap,
  .qty-price-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .vk-product-card__actions {
    width: 100%;
  }

  .vk-product-card__actions .vk-product-card__btn {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 2.5rem;
  }

  .qty-price-wrap--weight .vk-product-card__actions,
  .qty-price-wrap--weight .qty-price-wrap__actions,
  .qty-price-wrap--split .vk-product-card__actions,
  .qty-price-wrap--split .qty-price-wrap__actions {
    width: auto;
  }

  .qty-price-wrap--weight .vk-product-card__actions .vk-product-card__btn,
  .qty-price-wrap--split .vk-product-card__actions .vk-product-card__btn {
    flex: 0 0 auto;
    width: auto;
  }

  .mc-carousel-btn {
    width: 2.35rem;
    height: 2.35rem;
  }

  .mc-carousel-slide-title {
    font-size: 1.35rem;
  }

  .mc-carousel-slide-text {
    font-size: 0.875rem;
  }

  .contacts-social--rows {
    gap: 0.65rem;
  }

  .contacts-social__row {
    justify-content: center;
  }

  .toast-candy {
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: calc(100% - 2rem);
    transform: none;
    border-radius: 1rem;
    text-align: center;
  }

  .scroll-top-btn {
    left: max(0.75rem, env(safe-area-inset-left, 0px));
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn-candy:hover,
  .card-candy:hover,
  .nav-candy:hover,
  .shop-category-card:hover,
  .contacts-social__link:hover {
    transform: none;
    filter: none;
  }

  .vk-product-card--hero.card-candy:hover,
  .vk-product-card--hero:hover .vk-product-card__bg {
    transform: none;
  }

  #other-services .vk-product-card--bg-blur:hover .vk-product-card__bg:not(.vk-product-card__bg--placeholder),
  #vk-sec-services .vk-product-card--bg-blur:hover .vk-product-card__bg:not(.vk-product-card__bg--placeholder) {
    transform: scale(1.08);
    filter: blur(3px);
  }

  .btn-candy:active {
    transform: scale(0.98);
  }
}

/* Уважение к reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn-candy:hover,
  .card-candy:hover,
  .gallery-photo:hover,
  .nav-candy:hover {
    transform: none;
  }

  .vk-product-card--hero:hover .vk-product-card__bg {
    transform: none;
  }

  .vk-product-card--unavailable .vk-product-card__bg,
  .vk-product-card--unavailable.vk-product-card--hero:hover .vk-product-card__bg {
    filter: blur(5px) saturate(0.88) brightness(0.92);
    transform: scale(1.08);
  }

  .vk-product-card--hero.card-candy:hover {
    transform: none;
  }

  #other-services .vk-product-card--bg-blur:hover .vk-product-card__bg:not(.vk-product-card__bg--placeholder),
  #vk-sec-services .vk-product-card--bg-blur:hover .vk-product-card__bg:not(.vk-product-card__bg--placeholder) {
    transform: scale(1.08);
    filter: blur(3px);
  }

  .contacts-social__link:hover {
    transform: none;
  }

  .home-section-cta .btn-section-catalog:hover,
  .home-section-cta .btn-section-catalog:hover::after {
    transform: none;
  }

  .catalog-back-link:hover,
  .catalog-shop-link:hover {
    transform: none;
    box-shadow: none;
  }

  .scroll-top-btn,
  .scroll-top-btn.is-visible,
  .scroll-top-btn:hover {
    transition: none;
    transform: none;
  }
}

/* Личный кабинет — вкладки и настройки */
.profile-dash-tabs {
  gap: 0.5rem;
}

.profile-dash-tabs .dash-tab {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .profile-dash-tabs .dash-tab {
    flex: 1 1 calc(50% - 0.25rem);
    font-size: 0.8125rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.profile-settings-card .section-label {
  display: inline-block;
}

/* Подсказки и предупреждения в формах входа / регистрации */
.auth-field__hint {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(157, 23, 77, 0.55);
  letter-spacing: 0.01em;
}

.auth-field__warning {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #dc2626;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.auth-field__warning[hidden] {
  display: none;
}

.auth-field__hint[hidden] {
  display: none;
}

@media (max-width: 639px) {
  .auth-field__hint,
  .auth-field__warning {
    font-size: 0.7rem;
    line-height: 1.35;
  }
}

/* FAQ — Вопросы и ответы */
.faq-section {
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(253, 164, 191, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 92% 82%, rgba(251, 207, 232, 0.35), transparent 50%),
    linear-gradient(180deg, #fff7fb 0%, #fff 55%, #fff5f8 100%);
}

/* Верхний отступ до заголовка — на 40% меньше обычного home-section */
#faq.home-section {
  padding-top: 3rem;
}

@media (min-width: 1024px) {
  #faq.home-section {
    padding-top: 3.6rem;
  }
}

@media (max-width: 479px) {
  #faq.home-section {
    padding-top: 2.25rem;
  }
}

.faq-section__lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  color: rgba(157, 23, 77, 0.78);
  font-size: 0.95rem;
  line-height: 1.55;
}

.faq-section__lead-greeting {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: #9d174d;
  letter-spacing: 0.01em;
}

.faq-section__lead-text {
  display: block;
  max-width: 36rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 46rem;
  margin: 0 auto;
}

.faq-item {
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(251, 113, 133, 0.18);
  box-shadow: 0 8px 22px rgba(190, 24, 93, 0.05);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(244, 114, 182, 0.35);
  box-shadow: 0 10px 26px rgba(190, 24, 93, 0.08);
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #9d174d;
  font-family: inherit;
}

.faq-item__q {
  flex: 1 1 auto;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
  color: #831843;
}

.faq-item__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(253, 164, 191, 0.22);
  color: #db2777;
  transition: transform 0.25s ease, background 0.2s ease;
}

.faq-item__trigger.is-open .faq-item__icon {
  transform: rotate(180deg);
  background: rgba(244, 114, 182, 0.28);
}

.faq-item__panel[hidden] {
  display: none;
}

.faq-item__a {
  padding: 0 1.1rem 1.05rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(131, 24, 67, 0.88);
  white-space: pre-line;
}

.faq-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.35rem;
}

.faq-footnote {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.55rem;
  max-width: 36rem;
  margin: 1.5rem auto 0;
  padding: 0 0.5rem;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #9d174d;
}

.faq-footnote__heart {
  flex: 0 0 auto;
  margin-top: 0.12rem;
  color: #ec4899;
  animation: faq-heart-pulse 2.4s ease-in-out infinite;
}

.faq-footnote__text {
  flex: 1 1 auto;
}

@keyframes faq-heart-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 639px) {
  .faq-section__lead {
    font-size: 0.88rem;
    gap: 0.3rem;
    padding: 0 0.25rem;
  }

  .faq-section__lead-greeting {
    font-size: 0.98rem;
  }

  .faq-item__trigger {
    padding: 0.9rem 0.95rem;
  }

  .faq-item__q {
    font-size: 0.92rem;
  }

  .faq-item__a {
    font-size: 0.86rem;
    padding: 0 0.95rem 0.95rem;
  }

  .faq-footnote {
    font-size: 0.86rem;
    gap: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-footnote__heart {
    animation: none;
  }

  .faq-item__icon {
    transition: none;
  }
}

