/* ============================================================
   Слайдер рекламных кампаний + фото-баннеры ЖК + скрытие плиток.
   Подключается из header.tpl с ?v=filemtime. css.css не трогаем.
   ============================================================ */

/* --- Плитки категорий: скрыть визуально, оставить ссылки для SEO --- */
.orh-cards--seo {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* --- Баннеры ЖК с фото-фоном --- */
.orh-wide__card--photo {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-color: var(--color-dark);
    min-height: 132px;
}
.orh-wide__card--photo::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(14,42,48,.20) 0%, rgba(14,42,48,.78) 100%);
    z-index: 0;
}
.orh-wide__card--photo > * { position: relative; z-index: 1; }
.orh-wide__card--photo .orh-wide__sub { color: rgba(255,255,255,.9); }

/* --- Большой баннер каталога Гринвича (занимает 2 колонки сетки — home_about.css) --- */
.orh-wide__card--big { min-height: 160px; }
@media (min-width: 992px) {
    .orh-wide__card--big { min-height: 200px; }
    .orh-wide__card--big .orh-wide__title { font-size: 22px; }
    .orh-wide__card--big .orh-wide__sub { margin-top: 4px; font-size: 14px; }
}

/* --- Лента рекламных кампаний --- */
.orh-promo-strip { position: relative; margin-top: 28px; }
.orh-promo-strip__viewport {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px;
}
.orh-promo-strip__viewport::-webkit-scrollbar { display: none; }
.orh-promo-strip__track { display: flex; gap: 14px; }
.orh-pc {
    position: relative;
    flex: 0 0 auto;
    width: 200px;
    height: 230px;
    border-radius: 14px;
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    background: var(--color-dark) center/cover no-repeat;
    box-shadow: 0 8px 22px -14px rgba(14,42,48,.45);
    transition: transform .18s cubic-bezier(.23,1,.32,1), box-shadow .2s ease;
}
.orh-pc::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(14,42,48,0) 35%, rgba(14,42,48,.82) 100%);
}
.orh-pc__body { position: relative; padding: 14px; }
.orh-pc__title {
    display: block;
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.25;
    color: #fff;
}
.orh-pc__sub { display: block; margin-top: 3px; font-size: 12px; color: rgba(255,255,255,.82); }
@media (hover: hover) {
    .orh-pc:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(14,42,48,.5); }
}
.orh-pc:active { transform: translateY(0) scale(.985); }

/* Стрелки навигации */
.orh-promo-strip__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--color-dark);
    border: 1px solid rgba(14,42,48,.12);
    box-shadow: 0 6px 16px -8px rgba(14,42,48,.4);
    cursor: pointer; z-index: 2;
    transition: opacity .15s ease;
}
.orh-promo-strip__nav--prev { left: -6px; }
.orh-promo-strip__nav--next { right: -6px; }
.orh-promo-strip__nav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 767.98px) {
    .orh-promo-strip__nav { display: none; } /* на тач — свайп */
    .orh-pc { width: 160px; height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
    .orh-pc { transition: none; }
}
