/* Дополнительные товарные баннеры: реальные фотографии моделей поверх фирменных сцен. */
.hero--generated-p2000 .hero__copy,
.hero--generated-pid90k .hero__copy {
  position: relative;
  z-index: 2;
  max-width: 49%;
}
.hero--generated-p2000 .hero__media,
.hero--generated-pid90k .hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  mix-blend-mode: normal;
}
.hero--generated-p2000 .hero__media::after,
.hero--generated-pid90k .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero--generated-p2000 .hero__media::after {
  background: linear-gradient(90deg, rgba(24, 14, 8, 0.30) 0%, rgba(24, 14, 8, 0.10) 42%, rgba(24, 14, 8, 0) 72%);
}
.hero--generated-pid90k .hero__media::after {
  background: linear-gradient(90deg, rgba(246, 239, 231, 0.12) 0%, rgba(246, 239, 231, 0) 48%);
}
.hero--generated-p2000 .hero__media img,
.hero--generated-pid90k .hero__media img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: none;
  mask-image: none;
}
.hero--generated-p2000 {
  color: #fff;
}
.hero--generated-p2000 .hero__eyebrow,
.hero--generated-p2000 .hero__title,
.hero--generated-p2000 .hero__sub {
  color: #fff;
}
.hero--generated-p2000 .hero__sub { color: rgba(255, 255, 255, 0.88); }
.hero--generated-pid90k {
  color: var(--ink);
}
.hero--generated-pid90k .hero__eyebrow,
.hero--generated-pid90k .hero__title { color: var(--ink); }
.hero--generated-pid90k .hero__sub {
  color: #fff;
  text-shadow: 0 1px 3px rgba(24, 14, 8, 0.62);
}

.hero--p3000 {
  background:
    linear-gradient(90deg, rgba(24, 14, 8, 0.88) 0%, rgba(24, 14, 8, 0.68) 39%, rgba(24, 14, 8, 0.12) 74%, rgba(24, 14, 8, 0.02) 100%),
    url('/assets/reference/images/hero-p3000e-bg.webp') center / cover;
  color: #fff;
}
.hero--p3000 .hero__copy { max-width: 48%; }
.hero--p3000 .hero__eyebrow { color: #ffb08d; }
.hero--p3000 .hero__title { color: #fff; }
.hero--p3000 .hero__sub { color: rgba(255, 255, 255, 0.86); }
.hero--p3000 .hero__media { width: 61%; display: grid; place-items: center; mix-blend-mode: normal; }
.hero--p3000 .hero__media img {
  position: absolute;
  inset: 2% 0 0;
  width: 100%;
  height: 98%;
  object-fit: contain;
  object-position: center center;
  -webkit-mask-image: none;
  mask-image: none;
}
.hero--p3000 .hero__media::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 15%;
  right: 8%;
  bottom: 42px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0));
  filter: blur(5px);
}

.hero--camp {
  background:
    linear-gradient(90deg, rgba(246, 239, 231, 0.96) 0%, rgba(246, 239, 231, 0.78) 42%, rgba(246, 239, 231, 0.14) 78%),
    url('/assets/reference/images/hero-camp-bg.webp') center / cover;
  color: var(--ink);
}
.hero--camp .hero__eyebrow { color: var(--primary-pressed); }
.hero--camp .hero__title { color: var(--ink); }
.hero--camp .hero__sub { color: var(--ink-muted); }
.hero--camp .hero__media { width: 52%; mix-blend-mode: multiply; }
.hero--camp .hero__media img {
  position: absolute;
  inset: 8px 18px 18px;
  width: calc(100% - 36px);
  height: calc(100% - 26px);
  object-fit: contain;
  object-position: center bottom;
  -webkit-mask-image: none;
  mask-image: none;
}
.hero--camp .hero__media::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 20%;
  right: 16%;
  bottom: 34px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(24, 16, 8, 0.28), rgba(24, 16, 8, 0));
  filter: blur(4px);
}

/* На главной фильтры остаются доступными во время прокрутки. Ссылка ведёт в каталог,
   где открывается полноценная панель фильтрации. Кнопка «Наверх» закреплена ниже. */
.home-filter-tab { display: none; }
@media (max-width: 1023px) {
  /* Единая нижняя зона: нижняя навигация, «Наверх» и фильтры не пересекаются. */
  :root { --mobile-overlay-bottom: 68px; }
  .home-filter-tab {
    position: fixed;
    left: 0;
    bottom: calc(var(--mobile-overlay-bottom) + env(safe-area-inset-bottom) + 76px);
    z-index: 79;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: calc(42px + env(safe-area-inset-left));
    min-height: 136px;
    padding: 12px 0 14px env(safe-area-inset-left);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    background: var(--primary);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(24, 16, 8, 0.28);
    text-decoration: none;
  }
  .home-filter-tab .icon { width: 18px; height: 18px; }
  .home-filter-tab__text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.4px;
    line-height: 1;
  }
  .home-filter-tab:active { background: var(--primary-pressed); }
  .home-filter-tab:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
  }
}
html.has-cookiebar {
  --mobile-overlay-bottom: calc(68px + var(--cookiebar-h) + 14px);
}
@media (max-width: 1023px) {
  .scroll-top {
    bottom: calc(68px + env(safe-area-inset-bottom) + 8px) !important;
  }
}
@media (max-width: 767px) {
  /* Кнопка «Наверх» не должна попадать под вертикальную кнопку фильтров. */
  body:has(.home-filter-tab) .scroll-top {
    left: 50%;
    z-index: 120;
  }
}
@media (max-width: 767px) {
  .hero--generated-p2000 .hero__copy,
  .hero--generated-pid90k .hero__copy { max-width: none; }
  .hero--generated-p2000 .hero__media,
  .hero--generated-pid90k .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 230px;
  }
  .hero--generated-p2000 .hero__media img,
  .hero--generated-pid90k .hero__media img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: center;
  }
  .hero--p3000 .hero__copy { max-width: none; }
  .hero--p3000 .hero__media { width: 100%; }
  .hero--p3000 .hero__media img { inset: 0 8px 0; width: calc(100% - 16px); height: 100%; }
  .hero--p3000 .hero__media::after { bottom: 24px; }
  .hero--camp .hero__media { width: 100%; }
  .hero--camp .hero__media img { inset: 8px 16px 16px; width: calc(100% - 32px); height: calc(100% - 24px); }
  .hero--camp .hero__media::after { bottom: 22px; }
}

/* Правый промо-баннер: текст должен оставаться читаемым на любом кадре фотографии. */
.promo::before {
  background:
    linear-gradient(90deg, rgba(24, 14, 8, .84) 0%, rgba(24, 14, 8, .62) 44%, rgba(24, 14, 8, .24) 76%, rgba(24, 14, 8, 0) 100%),
    linear-gradient(180deg, rgba(24, 14, 8, .22) 0%, rgba(24, 14, 8, .06) 62%, rgba(24, 14, 8, .28) 100%);
}
.promo__body {
  max-width: 76%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .42);
}
.promo__eyebrow,
.promo__title,
.promo__text { color: #fff; }
.promo__eyebrow { color: #ffd0bd; }
.promo__text { color: rgba(255, 255, 255, .94); }
.promo__link { color: #ffd0bd; font-weight: 700; }
@media (max-width: 767px) {
  .promo__body { max-width: none; }
}

/* Сценарный блок под новостями: помогает выбрать раздел без повторения плитки категорий. */
.task-selector {
  padding: 28px;
  border: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fbf8f4 0%, #f4eee8 100%);
}
.task-selector__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.task-selector__title { margin: 0; font-size: 28px; font-weight: 500; line-height: 1.2; }
.task-selector__intro { max-width: 420px; margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 1.5; }
.task-selector__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.task-card { position: relative; display: flex; min-height: 190px; flex-direction: column; padding: 20px; overflow: hidden; border: 1px solid rgba(224, 215, 204, .9); border-radius: var(--radius-md); background: rgba(255, 255, 255, .82); transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.task-card:hover { background: #fff; box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.task-card:focus-visible { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--primary); outline: none; }
.task-card__icon { display: block; width: 92px; height: 78px; margin: -4px 0 14px; object-fit: contain; object-position: left center; }
.task-card__title { max-width: 88%; margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.task-card__text { max-width: 280px; margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.45; }
.task-card__cta { margin-top: auto; padding-top: 18px; color: var(--primary-pressed); font-size: 13px; font-weight: 700; }
@media (max-width: 1023px) {
  .task-selector__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .task-selector { padding: 20px 16px; }
  .task-selector__head { display: block; margin-bottom: 16px; }
  .task-selector__title { font-size: 22px; }
  .task-selector__intro { margin-top: 8px; font-size: 14px; }
  .task-selector__grid { gap: 10px; }
  .task-card { min-height: 176px; padding: 16px 14px; }
  .task-card__icon { width: 76px; height: 64px; margin: -2px 0 10px; }
  .task-card__title { font-size: 15px; }
  .task-card__text { font-size: 13px; }
  .task-card__cta { padding-top: 14px; font-size: 12px; }
}
