/* =========================================================
   CATEGORY PAGE — Dream Stay Hotel
   ========================================================= */

/* ---- Общий фон страницы ---- */
.cat-page-body {
    background-color: #f4f7fc;
}

/* =========================================================
   HERO КАТЕГОРИИ
   ========================================================= */
.cat-hero {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.cat-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    animation: catHeroZoom 8s ease-out forwards;
    z-index: 0;
}
@keyframes catHeroZoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1); }
}

.cat-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8, 14, 30, 0.30) 0%,
        rgba(8, 14, 30, 0.55) 55%,
        rgba(8, 14, 30, 0.82) 100%
    );
    z-index: 1;
}

/* ---- Навигация категории ---- */
.cat-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10;
    background: rgba(8, 14, 30, 0.36);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cat-nav-back {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-family: 'Golos Text', 'Segoe UI', Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.25s, gap 0.3s;
}
.cat-nav-back:hover { color: #c9a84c; gap: 14px; }

.cat-nav-logo { display: block; }
.cat-nav-logo-img {
    height: 150px;
    width: auto;
    display: block;
    filter: none;
    transition: opacity 0.3s;
    margin-top: 20px;
}
.cat-nav-logo-img:hover { opacity: 0.85; }

.cat-nav-book-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.65);
    color: #fff;
    padding: 10px 24px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.cat-nav-book-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #c9a84c;
    color: #c9a84c;
}

/* ---- Hero контент ---- */
.cat-hero-content {
    position: relative;
    z-index: 5;
    padding: 0 60px 44px;
    animation: catContentIn 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes catContentIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cat-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.cat-breadcrumb a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-family: 'Golos Text', 'Segoe UI', Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.cat-breadcrumb a:hover { color: #c9a84c; }
.cat-breadcrumb span {
    color: rgba(255,255,255,0.35);
    font-size: 11px;
}

.cat-hero-eyebrow {
    display: block;
    font-family: 'Golos Text', 'Segoe UI', Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 12px;
}

.cat-hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 72px;
    font-weight: 300;
    line-height: 1.1;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.cat-hero-divider {
    width: 48px;
    height: 1px;
    background: rgba(201,168,76,0.75);
    margin: 0 0 16px;
}

.cat-hero-desc {
    font-family: 'Golos Text', 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ---- Вкладки категорий ---- */
.cat-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cat-tab {
    display: inline-block;
    padding: 8px 22px;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.75);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.cat-tab:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}
.cat-tab.active {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #1a2a5e;
    font-weight: 600;
}

/* ---- Счётчик номеров ---- */
.cat-hero-stat {
    position: absolute;
    right: 60px;
    bottom: 44px;
    z-index: 5;
    text-align: right;
    animation: catContentIn 0.9s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cat-hero-stat-num {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 80px;
    font-weight: 300;
    line-height: 1;
    color: rgba(255,255,255,0.12);
    letter-spacing: -2px;
}
.cat-hero-stat-label {
    display: block;
    font-family: 'Golos Text', 'Segoe UI', Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
}

/* =========================================================
   СЕТКА НОМЕРОВ
   ========================================================= */
.cat-rooms-section {
    padding: 70px 0 100px;
}

.cat-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

/* ---- Карточка номера ---- */
.cat-room-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(26,42,94,0.07);
    border: 1px solid #e4ecf7;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease;
    opacity: 0;
    transform: translateY(28px);
}
.cat-room-card--visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.35s ease;
}
.cat-room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(26,42,94,0.14);
}

/* ---- Фото номера ---- */
.cat-room-img-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
}
.cat-room-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.cat-room-card:hover .cat-room-img { transform: scale(1.06); }
.cat-room-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,18,40,0.55) 0%, transparent 55%);
}
.cat-room-number-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 5px 14px;
    background: rgba(201,168,76,0.92);
    color: #1a2a5e;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 2px;
    letter-spacing: 1px;
}

/* ---- Тело карточки ---- */
.cat-room-body {
    padding: 28px;
}
.cat-room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
}
.cat-room-cat-label {
    font-family: 'Golos Text', 'Segoe UI', Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 6px;
}
.cat-room-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    color: #1a2a5e;
    line-height: 1.3;
}
.cat-room-number {
    flex: 0 0 auto;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 36px;
    font-weight: 300;
    color: rgba(26,42,94,0.12);
    line-height: 1;
    letter-spacing: -1px;
}

/* ---- Удобства ---- */
.cat-room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eef3fb;
}
.cat-room-amenity {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Golos Text', 'Segoe UI', Arial, sans-serif;
    font-size: 12px;
    color: #5a7aaa;
}
.cat-amenity-icon { font-size: 14px; }

/* ---- Тарифы ---- */
.cat-room-prices {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}
.cat-price-item {
    flex: 1;
    padding: 10px 12px;
    background: #f4f7fc;
    border-radius: 3px;
    text-align: center;
    border: 1px solid #e4ecf7;
}
.cat-price-item--accent {
    background: linear-gradient(135deg, #1a2a5e, #1e3a8a);
    border-color: transparent;
}
.cat-price-label {
    display: block;
    font-family: 'Golos Text', 'Segoe UI', Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8aa0c0;
    margin-bottom: 5px;
}
.cat-price-item--accent .cat-price-label { color: rgba(255,255,255,0.5); }
.cat-price-value {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    color: #1a2a5e;
    letter-spacing: 0.5px;
}
.cat-price-item--accent .cat-price-value { color: #c9a84c; }

/* ---- Кнопки карточки ---- */
.cat-room-actions {
    display: flex;
    gap: 10px;
}
.cat-btn-details {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: 1.5px solid #c5d3e8;
    color: #1a2a5e;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}
.cat-btn-details:hover {
    background: #1a2a5e;
    color: #fff;
}
.cat-btn-book {
    flex: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #c9a84c, #e8c96a);
    border: none;
    color: #1a2a5e;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(201,168,76,0.3);
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}
.cat-btn-book:hover {
    background: linear-gradient(135deg, #b8952f, #c9a84c);
    box-shadow: 0 6px 20px rgba(201,168,76,0.5);
    transform: translateY(-1px);
}

/* ---- Пустое состояние ---- */
.cat-empty {
    text-align: center;
    padding: 80px 20px;
    color: #5a7aaa;
    font-size: 18px;
}

/* =========================================================
   СТИЛИ БЛОКОВ КАТЕГОРИЙ НА ГЛАВНОЙ (index.html)
   Стиль: 2×2 полноразмерные карточки с фото и оверлеем
   ========================================================= */

/* Секция каталога — без внутреннего паддинга, от края до края */
.catalog {
    padding: 0;
    background-color: #fff;
}

/* Заголовок над сеткой */
.catalog-header-simple {
    display: none;
    text-align: center;
    padding: 70px 20px 50px;
    background: #fff;
}
.catalog-eyebrow-line {
    display: block;
    font-family: 'Golos Text', 'Segoe UI', Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 14px;
}
.catalog-h2-simple {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 38px;
    font-weight: 400;
    color: #1a2a5e;
    letter-spacing: 1px;
    margin: 0;
}

/* ---- Сетка 2×2 ---- */
.hotel-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 260px;
    gap: 34px;
    padding-block-start: 34px;
    padding-block-end: clamp(56px, 5vw, 88px);
    padding-inline: clamp(16px, 2vw, 32px);
    background: #fff;
}

/* ---- Отдельная карточка ---- */
.hotel-cat-card {
    --hotel-card-delay: 0ms;
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    border-radius: 4px;
    isolation: isolate;
    box-shadow: 0 8px 26px rgba(10, 18, 40, 0.08);
    transform: translateZ(0);
    transition:
        transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.52s ease;
}

.hotel-cat-card--reveal {
    opacity: 0;
    transform: translate3d(0, 42px, 0) scale(0.975);
    filter: saturate(0.78);
    will-change: opacity, transform, filter;
}

.hotel-cat-card--reveal.hotel-cat-card--visible {
    animation: hotelCardReveal 0.82s cubic-bezier(0.22, 1, 0.36, 1)
        var(--hotel-card-delay) both;
}

@keyframes hotelCardReveal {
    0% {
        opacity: 0;
        transform: translate3d(0, 42px, 0) scale(0.975);
        filter: saturate(0.78);
    }
    68% {
        opacity: 1;
        transform: translate3d(0, -4px, 0) scale(1.004);
        filter: saturate(1.04);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: saturate(1);
    }
}

.hotel-cat-card:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 5px;
}

.hotel-cat-card::before {
    content: '';
    position: absolute;
    top: -45%;
    bottom: -45%;
    left: -40%;
    width: 24%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.17),
        transparent
    );
    opacity: 0;
    transform: translate3d(-220%, 0, 0) rotate(14deg);
    transition:
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.25s ease;
    pointer-events: none;
    z-index: 2;
}

.hotel-cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: inherit;
    box-shadow: inset 0 0 0 0 rgba(201, 168, 76, 0);
    transition:
        border-color 0.45s ease,
        box-shadow 0.45s ease;
    pointer-events: none;
    z-index: 4;
}

/* Фото-фон */
.hotel-cat-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.01);
    transition:
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.65s ease;
    will-change: transform;
    z-index: 0;
}
/* Тёмный градиентный оверлей — сильнее слева */
.hotel-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 14, 28, 0.78) 0%,
        rgba(10, 14, 28, 0.50) 40%,
        rgba(10, 14, 28, 0.20) 70%,
        rgba(10, 14, 28, 0.08) 100%
    );
    z-index: 1;
}
.hotel-cat-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 78% 34%,
            rgba(201, 168, 76, 0.18),
            transparent 44%
        ),
        linear-gradient(
            to right,
            rgba(7, 10, 22, 0.20) 0%,
            rgba(7, 10, 22, 0.14) 42%,
            rgba(7, 10, 22, 0.07) 72%,
            rgba(7, 10, 22, 0.02) 100%
        );
    opacity: 0;
    transition: opacity 0.55s ease;
}

/* Контент поверх фото */
.hotel-cat-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 36px;
    transform: translate3d(0, 0, 0);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 3;
}

/* Название категории */
.hotel-cat-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    transform: translate3d(0, 0, 0);
    transition:
        letter-spacing 0.45s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        text-shadow 0.45s ease;
}

/* Кнопка "ПОДРОБНЕЕ" — обводка, как на скриншоте */
.hotel-cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 26px;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    color: #fff;
    font-family: 'Golos Text', 'Segoe UI', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background: transparent;
    border-radius: 1px;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.42s ease;
}

@media (hover: hover) and (pointer: fine) {
    .hotel-cat-card:hover {
        z-index: 2;
        transform: translate3d(0, -9px, 0) scale(1.01);
        box-shadow: 0 24px 58px rgba(10, 18, 40, 0.24);
    }
    .hotel-cat-card:hover::before {
        opacity: 1;
        transform: translate3d(650%, 0, 0) rotate(14deg);
    }
    .hotel-cat-card:hover::after {
        border-color: rgba(255, 255, 255, 0.42);
        box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.22);
    }
    .hotel-cat-card:hover .hotel-cat-bg {
        transform: scale(1.105) translate3d(6px, -2px, 0);
        filter: saturate(1.12) contrast(1.04);
    }
    #hcat-all:hover .hotel-cat-bg {
        filter: brightness(0.88) saturate(0.96) contrast(1.04) !important;
    }
    .hotel-cat-card:hover .hotel-cat-overlay::after {
        opacity: 1;
    }
    .hotel-cat-card:hover .hotel-cat-content {
        transform: translate3d(0, -7px, 0);
    }
    .hotel-cat-card:hover .hotel-cat-title {
        letter-spacing: 4.5px;
        transform: translate3d(5px, 0, 0);
        text-shadow: 0 5px 20px rgba(0, 0, 0, 0.58);
    }
    .hotel-cat-card:hover .hotel-cat-btn {
        background: rgba(201, 168, 76, 0.94);
        border-color: #c9a84c;
        color: #1a2a5e;
        transform: translate3d(8px, -2px, 0);
        box-shadow: 0 10px 24px rgba(10, 18, 40, 0.28);
    }
}

/* =========================================================
   АДАПТИВНОСТЬ — новые карточки
   ========================================================= */
@media (max-width: 860px) {
    .hotel-cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 240px);
        gap: 24px;
    }
}
@media (max-width: 500px) {
    .hotel-cards-grid {
        grid-template-rows: repeat(4, 200px);
        gap: 16px;
    }
    .hotel-cat-title { font-size: 22px; letter-spacing: 2px; }
    .hotel-cat-content { padding: 22px 24px; }
    .hotel-cat-btn { padding: 9px 20px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .hotel-cat-card,
    .hotel-cat-card--reveal,
    .hotel-cat-card--reveal.hotel-cat-card--visible {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
        transition: none;
    }
    .hotel-cat-bg,
    .hotel-cat-overlay,
    .hotel-cat-overlay::after,
    .hotel-cat-content,
    .hotel-cat-title,
    .hotel-cat-btn,
    .hotel-cat-card::before,
    .hotel-cat-card::after {
        animation: none;
        transition: none;
    }
    .hotel-cat-card::before {
        display: none;
    }
    .hotel-cat-card:hover {
        transform: none;
        box-shadow: 0 8px 26px rgba(10, 18, 40, 0.08);
    }
    .hotel-cat-card:hover .hotel-cat-bg,
    .hotel-cat-card:hover .hotel-cat-content,
    .hotel-cat-card:hover .hotel-cat-title,
    .hotel-cat-card:hover .hotel-cat-btn {
        transform: none;
    }
    .hotel-cat-card:hover .hotel-cat-bg {
        filter: none;
    }
    #hcat-all:hover .hotel-cat-bg {
        filter: brightness(0.75) saturate(0.8) !important;
    }
}
