/* ========================================
   PAR63 SPATIAL v5.0 - PREMIUM STYLES
   Fullscreen sections with nature palette
   ======================================== */

/* ========================================
   CSS VARIABLES - NATURE PALETTE
   ======================================== */

:root {
    /* Linden Wood (Липа) */
    --linden-dark: #D4A574;
    --linden-light: #E8C99C;
    
    /* Water (Вода) */
    --water-primary: #4FC3F7;
    --water-light: #81D4FA;
    --water-dark: #0288D1;
    
    /* Birch & Oak (Берёза и дуб) */
    --birch-accent: #A8D5BA;
    --oak-accent: #689F38;
    
    /* Warm Graphite Text */
    --text-dark: #263238;
    --text-medium: #37474F;
    
    /* Backgrounds */
    --bg-light: #FAFAFA;
    --bg-soft: #F5F5F5;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.6s ease;
    --transition-slow: 1.2s ease;

    /* Оплата (отдельно от красных кнопок «Звоните») */
    --pay-gradient-mid: #0097a7;
    --pay-shadow: rgba(2, 136, 209, 0.45);

    /* Единая «стеклянная» карточка: hero / плитки / детальный номер */
    --glass-pay-bg: rgba(18, 26, 36, 0.82);
    --glass-pay-border: rgba(255, 255, 255, 0.16);
    --glass-pay-blur: 14px;
    --glass-pay-radius: 14px;
    --glass-pay-shadow: 0 8px 28px rgba(0, 0, 0, 0.36);
    --glass-pay-text: rgba(255, 255, 255, 0.95);
    --glass-pay-muted: rgba(255, 255, 255, 0.9);
    --glass-pay-label: rgba(255, 255, 255, 0.88);
    --glass-pay-title-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    --glass-pay-segment-bg: rgba(255, 255, 255, 0.08);
    --glass-pay-segment-border: rgba(255, 255, 255, 0.22);
    --glass-pay-segment-radius: 10px;
    --glass-pay-btn-radius: 12px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* scroll-behavior отключен для устранения автоматических прыжков */
    /* scroll-behavior: smooth; */
    /* Отключаем автоматическую прокрутку к якорям */
    scroll-behavior: auto;
    overflow-anchor: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   NAVIGATION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 26, 36, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
    color: white;
}

.navbar .logo,
.navbar .nav-link,
.navbar .nav-phone {
    color: rgba(255, 255, 255, 0.92);
}

.navbar .nav-link::after {
    background: rgba(255, 255, 255, 0.7);
}

.navbar .nav-phone {
    border-color: rgba(255, 255, 255, 0.8);
}

.navbar .mobile-menu-btn span {
    background: rgba(255, 255, 255, 0.9);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-link,
.navbar.scrolled .nav-phone {
    color: var(--text-dark);
}

.navbar.scrolled .nav-link::after {
    background: var(--water-primary);
}

.navbar.scrolled .nav-phone {
    border-color: #ff0000;
    color: white;
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--text-dark);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo-image {
    height: 42px;
    width: auto;
}

.navbar.scrolled .logo-image {
    filter: none;
}

.navbar.scrolled .logo {
    color: var(--text-dark);
}

.logo-accent {
    color: var(--water-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--water-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--water-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    background: #ff0000; /* Ярко-красный */
    border: 2px solid #ff0000;
    border-radius: 24px;
    transition: all var(--transition-fast);
}

.nav-phone-icon {
    display: flex;
    flex-shrink: 0;
    line-height: 0;
}

.nav-phone-icon svg {
    width: 17px;
    height: 17px;
    display: block;
}

.nav-phone-number {
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.nav-phone:hover {
    background: #cc0000; /* Темно-красный при наведении */
    border-color: #cc0000;
    color: white;
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ========================================
   FAB STACK: наверх + звонок
   ======================================== */

.fab-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.fab-scroll-top {
    width: 58px;
    height: 58px;
    padding: 0;
    margin: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(18, 26, 36, 0.88);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
}

.fab-scroll-top.fab-scroll-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.fab-scroll-top.fab-scroll-top--visible:hover {
    background: rgba(28, 38, 52, 0.95);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(0) scale(1.06);
}

.fab-phone {
    width: 58px;
    height: 58px;
    background: #ff0000;
    border: 2px solid #ff0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 18px rgba(255, 0, 0, 0.45);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.fab-phone:hover {
    transform: scale(1.08);
    background: #cc0000;
    border-color: #cc0000;
    box-shadow: 0 6px 26px rgba(255, 0, 0, 0.55);
}

.fab-phone-icon {
    display: flex;
    line-height: 0;
}

.fab-phone-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

/* ========================================
   FULLSCREEN SECTIONS
   ======================================== */

.fullscreen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ========================================
   HERO SLIDER (FULLSCREEN)
   ======================================== */

.hero {
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ebef 50%, #dde2e8 100%);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-rental-panel {
    width: 100%;
    padding: 16px 16px 18px;
    border-radius: var(--glass-pay-radius);
    background: var(--glass-pay-bg);
    backdrop-filter: blur(var(--glass-pay-blur));
    -webkit-backdrop-filter: blur(var(--glass-pay-blur));
    border: 1px solid var(--glass-pay-border);
    box-shadow: var(--glass-pay-shadow);
    color: var(--glass-pay-text);
}

/* Заголовок панели аренды в hero (заголовок хаба оплаты — css/rent-pay.css) */
.hero-rental-panel__title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: #fff;
    text-shadow: var(--glass-pay-title-shadow);
}

.hero-rental-segment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.hero-rental-segment__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    padding: 8px 6px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.92);
    background: var(--glass-pay-segment-bg);
    border: 1px solid var(--glass-pay-segment-border);
    border-radius: var(--glass-pay-segment-radius);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-family: inherit;
}

.hero-rental-segment__btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-rental-segment__btn.is-active {
    border-color: var(--water-primary);
    background: rgba(79, 195, 247, 0.22);
    box-shadow: 0 0 0 1px rgba(79, 195, 247, 0.35);
}

.hero-rental-segment__price {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.88;
}

/* Подписи и поля часов — один ритм везде */
.hero-rental-label,
.room-tile-pay-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--glass-pay-label);
}

.hero-rental-select,
.room-tile-pay-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: var(--glass-pay-segment-radius);
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-rental-select:hover,
.room-tile-pay-select:hover {
    border-color: rgba(129, 212, 250, 0.55);
}

.hero-rental-select:focus,
.room-tile-pay-select:focus {
    outline: none;
    border-color: var(--water-primary);
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.35);
}

.hero-rental-total,
.room-tile-pay-total {
    margin: 0 0 12px;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--glass-pay-muted);
}

.hero-rental-total strong,
.room-tile-pay-total-sum {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
}

.hero-rental-submit {
    width: 100%;
    white-space: normal;
    line-height: 1.25;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 24px;
}

.slider-btn.next {
    right: 24px;
}

/* Thumbnails */
.slider-thumbnails {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.room-detail-slider .slider-thumbnails {
    position: absolute;
    bottom: 40px;
    right: 60px;
    left: auto;
    transform: none;
    max-width: 50%;
    flex-wrap: nowrap;
}

.room-detail-slider .thumbnail {
    flex: 0 0 auto;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    opacity: 0.6;
}

.thumbnail:hover {
    opacity: 0.9;
}

.thumbnail.active {
    border-color: var(--water-primary);
    box-shadow: 0 0 12px rgba(79, 195, 247, 0.5);
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Миниатюры только у hero-слайдера: меньше акцента, не трогаем галерею номера */
.hero-slider > .slider-thumbnails .thumbnail {
    width: 72px;
    height: 54px;
    opacity: 0.45;
}

.hero-slider > .slider-thumbnails .thumbnail:hover {
    opacity: 0.74;
}

.hero-slider > .slider-thumbnails .thumbnail.active {
    opacity: 0.88;
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.4);
}

/* Hero caption — вариант A: без glass-карточки, локальный градиент + типографика */
.hero-caption-overlay {
    position: absolute;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    color: white;
    width: min(96vw, 920px);
    padding: 16px 24px 20px;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    isolation: isolate;
}

.hero-caption-overlay::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -12%;
    transform: translateX(-50%);
    width: min(132%, 52rem);
    height: min(72vh, 480px);
    max-height: 65%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(
        ellipse 78% 58% at 50% 78%,
        rgba(6, 8, 12, 0.48) 0%,
        rgba(6, 8, 12, 0.22) 42%,
        transparent 70%
    );
}

.hero-caption-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 2px 14px rgba(0, 0, 0, 0.65),
        0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-caption-subtitle {
    font-size: 1.4rem;
    margin-bottom: 10px;
    opacity: 1;
    color: rgba(255, 255, 255, 0.98);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.85),
        0 2px 12px rgba(0, 0, 0, 0.55),
        0 6px 24px rgba(0, 0, 0, 0.35);
}

.hero-caption-trust {
    margin: 0 auto 20px;
    max-width: 36em;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.02em;
    opacity: 0.94;
    color: rgba(255, 255, 255, 0.96);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.88),
        0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-cta-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.hero-cta-row .btn {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    padding: 10px 16px;
    min-height: 46px;
    border-radius: 999px;
    box-sizing: border-box;
    line-height: 1.25;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    transition:
        transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
        background 0.35s ease,
        border-color 0.35s ease;
}

/* Контрастные CTA задаются после .btn — см. блок «Hero CTA над слайдером» */

.hero-cta-phone {
    gap: 0.4em;
    padding: 10px 18px;
}

/* ========================================
   SERVICES SECTION (ПРЕИМУЩЕСТВА)
   ======================================== */

.services {
    padding: 56px 24px 88px;
    background: linear-gradient(180deg, #fafbfc 0%, #f0f2f5 100%);
    overflow-anchor: none; /* Отключаем автопрокрутку к этой секции */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 36px;
}

.service-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-fast);
    text-align: center;
    transform: translateZ(0); /* Force GPU acceleration */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    color: var(--water-primary);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-description {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ========================================
   ROOMS SECTION (2×2 FULLSCREEN GRID)
   ======================================== */

.rooms-section {
    background: linear-gradient(135deg, #f8f9fb 0%, #eef1f4 100%);
    padding: 80px 0 52px;
    position: relative;
    overflow-anchor: none; /* Отключаем автопрокрутку к этой секции */
}

.rooms-section .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.rooms-section .section-header {
    text-align: center;
    padding: 0 24px 40px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.section-inline-link {
    color: var(--water-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.section-inline-link:hover {
    color: var(--pay-gradient-mid);
}

.section-header {
    text-align: center;
    padding: 100px 24px 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), transparent);
    position: relative;
    z-index: 1;
}

/* Заголовки внутри секций с .container — без дубля от глобального .section-header */
.services .section-header {
    padding: 0 0 24px;
    background: transparent;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
    opacity: 0.85;
}

/* 2×2 Grid - PREMIUM TILES */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 16px;
    padding: 0 24px;
    height: 1200px; /* увеличена высота */
    contain: layout; /* Prevent reflow */
}

.room-tile {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.8s ease;
    min-height: 0; /* Prevent grid blowout */
    height: 100%; /* явная высота ячейки сетки — цепочка % у .room-tile-slider на мобильных */
    align-self: stretch;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Бейдж выбора — стекло + золотистый акцент */
.room-tile-choice-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100% - 40px);
    padding: 9px 16px 9px 12px;
    pointer-events: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 252, 248, 0.98);
    background: linear-gradient(
        125deg,
        rgba(255, 245, 228, 0.3) 0%,
        rgba(32, 26, 20, 0.5) 42%,
        rgba(10, 12, 16, 0.66) 100%
    );
    border: 1px solid rgba(218, 184, 124, 0.58);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 10px 28px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

/* Светлая подложка под эмодзи: тёмные/фиолетовые иконки (напр. 👥) не теряются на фото */
.room-tile-choice-badge__emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.05em;
    height: 2.05em;
    padding: 0 5px;
    box-sizing: border-box;
    border-radius: 999px;
    font-size: 1em;
    line-height: 1;
    background: rgba(255, 252, 245, 0.97);
    box-shadow:
        0 0 0 1px rgba(212, 175, 116, 0.45),
        0 2px 10px rgba(0, 0, 0, 0.28);
    filter: none;
}

.room-tile-choice-badge__label {
    line-height: 1.2;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.room-tile[data-theme='gold'] .room-tile-choice-badge {
    border-color: rgba(230, 200, 140, 0.62);
    background: linear-gradient(
        125deg,
        rgba(255, 238, 210, 0.34) 0%,
        rgba(42, 34, 22, 0.52) 45%,
        rgba(12, 10, 8, 0.68) 100%
    );
}

.room-tile[data-theme='bronze'] .room-tile-choice-badge {
    border-color: rgba(196, 158, 118, 0.58);
    background: linear-gradient(
        125deg,
        rgba(240, 220, 200, 0.28) 0%,
        rgba(38, 30, 24, 0.52) 45%,
        rgba(14, 12, 10, 0.66) 100%
    );
}

.room-tile[data-theme='terracotta'] .room-tile-choice-badge {
    border-color: rgba(220, 150, 130, 0.58);
    background: linear-gradient(
        125deg,
        rgba(255, 228, 218, 0.3) 0%,
        rgba(52, 28, 24, 0.5) 45%,
        rgba(18, 10, 10, 0.66) 100%
    );
}

.room-tile[data-theme='silver'] .room-tile-choice-badge {
    border-color: rgba(200, 208, 220, 0.58);
    background: linear-gradient(
        125deg,
        rgba(248, 250, 255, 0.3) 0%,
        rgba(28, 30, 36, 0.52) 45%,
        rgba(10, 12, 16, 0.66) 100%
    );
}

.room-tile:hover .room-tile-choice-badge {
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.26) inset,
        0 12px 34px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(129, 212, 250, 0.14);
}

.room-tile-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.room-tile-slider .slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.room-tile-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.room-tile-slider .slide.active {
    opacity: 1;
    pointer-events: auto;
}

.room-tile-slider .slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
    transform: translateZ(0); /* GPU acceleration */
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.room-tile:hover {
    z-index: 2;
}

.room-tile:hover .room-tile-slider .slide.active img {
    transform: scale(1.05);
}

.room-tile-slider .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.room-tile:hover .room-tile-slider .slider-btn {
    opacity: 1;
}

.room-tile-slider .slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.room-tile-slider .slider-btn.prev {
    left: 12px;
}

.room-tile-slider .slider-btn.next {
    right: 12px;
}

/* Gradient Overlay - атмосферное затемнение снизу */
.room-tile::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    pointer-events: none;
    transition: all var(--transition-medium);
    z-index: 2;
}

.room-tile:hover::after {
    background: linear-gradient(to top, rgba(212, 165, 116, 0.45), transparent);
    height: 60%;
}

/* Room Info - премиальная типографика */
.room-info {
    position: absolute;
    bottom: 32px;
    left: 32px;
    max-width: min(340px, calc(100% - 248px));
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    z-index: 3;
    transition: transform var(--transition-fast);
    pointer-events: none;
}

.room-tile:hover .room-info {
    transform: translateY(-8px);
}

.room-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.room-info .room-meta {
    display: flex;
    gap: 24px;
    font-size: 1.54rem;
    opacity: 0.95;
    line-height: 1.4;
}

.room-meta span {
    display: flex;
    align-items: center;
    gap: 0;
    color: white;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    position: relative;
}

/* Карточка номера: 2–3 коротких якоря для быстрого выбора */
.room-tile-anchors {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.room-tile-anchors li {
    position: relative;
    margin: 0;
    padding: 0 0 0 0.75em;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

.room-tile-anchors li + li {
    margin-top: 2px;
}

.room-tile-anchors li::before {
    content: '·';
    position: absolute;
    left: 0;
    font-weight: 700;
    opacity: 0.85;
}

/* Плитка: главный CTA «Выбрать этот номер», вторичные — подробнее и звонок */
.room-tile-actions {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 6;
    width: min(224px, 54vw);
    pointer-events: auto;
    cursor: default;
    user-select: auto;
    -webkit-user-select: auto;
    padding: 10px 10px 12px;
    border-radius: var(--glass-pay-radius);
    background: var(--glass-pay-bg);
    backdrop-filter: blur(var(--glass-pay-blur));
    -webkit-backdrop-filter: blur(var(--glass-pay-blur));
    border: 1px solid var(--glass-pay-border);
    box-shadow: var(--glass-pay-shadow);
    color: var(--glass-pay-text);
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.room-tile-actions .btn-pay {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: var(--glass-pay-btn-radius);
}

.room-tile-btn-book {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.room-tile-btn-detail {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 7px 10px;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--glass-pay-segment-radius);
    cursor: pointer;
    text-align: center;
}

.room-tile-btn-detail:hover,
.room-tile-btn-detail:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.45);
    outline: none;
}

.room-tile-call-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 5px 4px 2px;
    font-size: 0.74rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.room-tile-call-compact:hover,
.room-tile-call-compact:focus-visible {
    color: #fff;
    outline: none;
}

.room-tile-call-compact .btn-call-icon svg {
    width: 0.95em;
    height: 0.95em;
    opacity: 0.9;
}

.room-tile-pay-form {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-rental-field,
.room-tile-pay-field {
    margin-bottom: 12px;
}

.room-tile-pay-btn {
    width: 100%;
    font-size: 0.8rem;
    padding: 9px 10px;
    line-height: 1.25;
    white-space: normal;
}

/* Живая поверхность - радиальный свет при hover */
.room-tile::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.3), transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all var(--transition-slow);
    pointer-events: none;
    z-index: 1;
}

.room-tile:hover::before {
    width: 400px;
    height: 400px;
    opacity: 1;
}

/* ========================================
   ROOM DETAIL SCREENS (FULLSCREEN)
   ======================================== */

.room-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 80px 60px;
    z-index: 900;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: rgba(12, 20, 27, 0.85);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.room-detail.active {
    display: flex;
    opacity: 1;
}

.room-detail-body {
    position: relative;
    display: flex;
    justify-content: flex-start;
    width: min(1600px, 100%);
    margin: 0 auto;
    height: 100%;
}

.room-detail-media {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
}

.room-detail-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.room-detail-slider .slider-container {
    width: 100%;
    height: 100%;
}

.room-detail-overlay {
    position: absolute;
    top: 60px;
    right: 60px;
    transform: none;
    width: clamp(480px, 40vw, 650px);
    padding: 36px;
    background: rgba(15, 22, 30, 0.78);
    backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.45);
    z-index: 20;
    color: rgba(255, 255, 255, 0.96);
    overflow: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
}

.room-detail-header h2,
.room-detail-header p,
.room-detail-meta,
.room-detail-meta span,
.room-detail-features li {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: none;
}

.room-detail-header h2 {
    margin-top: 0;
    margin-bottom: 6px;
}

.room-detail-header > p {
    margin-top: 0;
}

.room-detail-features li::before {
    color: var(--water-light);
}

.room-detail-choice-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 8px 16px 8px 12px;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 252, 248, 0.98);
    background: linear-gradient(
        125deg,
        rgba(255, 245, 228, 0.22) 0%,
        rgba(30, 34, 42, 0.55) 50%,
        rgba(12, 14, 18, 0.72) 100%
    );
    border: 1px solid rgba(218, 184, 124, 0.5);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 8px 22px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.room-detail-choice-badge__emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.05em;
    height: 2.05em;
    padding: 0 5px;
    box-sizing: border-box;
    border-radius: 999px;
    font-size: 1em;
    line-height: 1;
    background: rgba(255, 252, 245, 0.96);
    box-shadow:
        0 0 0 1px rgba(212, 175, 116, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3);
    filter: none;
}

.room-detail-choice-badge__label {
    line-height: 1.2;
}

.room-detail[data-theme='gold'] .room-detail-choice-badge {
    border-color: rgba(230, 200, 140, 0.55);
}

.room-detail[data-theme='bronze'] .room-detail-choice-badge {
    border-color: rgba(196, 158, 118, 0.52);
}

.room-detail[data-theme='terracotta'] .room-detail-choice-badge {
    border-color: rgba(220, 150, 130, 0.52);
}

.room-detail[data-theme='silver'] .room-detail-choice-badge {
    border-color: rgba(200, 208, 220, 0.52);
}

.room-detail-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
    align-items: stretch;
}

.room-detail-book-btn {
    width: 100%;
    font-family: inherit;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 18px;
}

.room-detail-cta-call--outline {
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    background: transparent !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow: none !important;
    text-decoration: none;
    padding: 12px 16px;
    gap: 0.4em;
    flex-wrap: wrap;
}

.room-detail-cta-call--outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.85) !important;
    transform: translateY(-1px);
}

.room-detail-cta-num {
    font-size: 0.82em;
    font-weight: 600;
    opacity: 0.92;
    letter-spacing: 0.03em;
}

.room-detail-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
    z-index: 25;
}

.room-detail-toggle:hover,
.room-detail-toggle:focus-visible {
    background: rgba(255, 255, 255, 1);
    color: var(--water-dark);
    transform: translateY(-1px);
}

.room-detail-expander {
    position: absolute;
    bottom: 32px;
    right: 60px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 6px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
    transition: all var(--transition-fast);
    z-index: 20;
}

.room-detail-expander:hover,
.room-detail-expander:focus-visible {
    background: rgba(255, 255, 255, 1);
    color: var(--water-dark);
    transform: translateY(-1px);
}

.room-detail-overlay.collapsed {
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    pointer-events: none;
}

.room-detail-overlay.collapsed ~ .room-detail-expander {
    display: inline-flex;
}

.room-detail-overlay .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.room-detail-overlay .btn-secondary:hover,
.room-detail-overlay .btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    color: var(--water-light);
    border-color: rgba(255, 255, 255, 0.24);
}

.close-detail {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-detail:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 28px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-primary {
    background: #ff0000; /* Ярко-красный */
    color: white;
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.4);
}

.btn-primary:hover {
    background: #cc0000; /* Темно-красный при наведении */
    box-shadow: 0 6px 24px rgba(255, 0, 0, 0.6);
    transform: translateY(-2px) scale(1.05);
}

/* Единый стиль красных CTA «Звоните» (иконка + текст) */
.btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
}

.btn-call-icon {
    display: flex;
    flex-shrink: 0;
    line-height: 0;
}

.btn-call-icon svg {
    width: 1.1em;
    height: 1.1em;
    display: block;
}

.btn-call-label {
    font-weight: 600;
    line-height: 1.2;
}

.btn-call-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
}

.btn-call--stacked {
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    text-align: center;
}

.btn-call--stacked .btn-call-number {
    font-size: 0.92em;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0.94;
    letter-spacing: 0.04em;
}

/* Hero: главная — btn-pay; звонок — контур; «Рассчитать» — слабая ссылка */
.hero-caption-overlay .hero-cta-row a.hero-cta-choose.btn-pay {
    text-shadow: 0 1px 2px rgba(0, 40, 70, 0.35);
}

.hero-caption-overlay .hero-cta-row a.hero-cta-choose.btn-pay:focus-visible {
    outline: 2px solid var(--water-light);
    outline-offset: 3px;
}

.hero-caption-overlay .hero-cta-row a.hero-cta-phone.hero-cta-phone--outline {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.hero-caption-overlay .hero-cta-row a.hero-cta-phone.hero-cta-phone--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-1px);
}

.hero-caption-overlay .hero-cta-row a.hero-cta-phone.hero-cta-phone--outline:focus-visible {
    outline: 2px solid var(--water-light);
    outline-offset: 3px;
}

.room-detail-cta-call.btn-call--stacked {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Онлайн-оплата: бирюзово-синий градиент палитры «вода», не красный как звонок */
.btn-pay {
    background: linear-gradient(135deg, #01579b 0%, var(--water-dark) 42%, var(--pay-gradient-mid) 78%, var(--water-primary) 100%);
    color: #fff;
    border: 2px solid rgba(129, 212, 250, 0.55);
    border-radius: 22px;
    box-shadow:
        0 4px 18px var(--pay-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 40, 70, 0.35);
}

.btn-pay:hover {
    background: linear-gradient(135deg, #0277bd 0%, #0288d1 45%, #00acc1 100%);
    border-color: var(--water-light);
    box-shadow:
        0 6px 26px rgba(2, 136, 209, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.btn-pay:focus-visible {
    outline: 2px solid var(--water-light);
    outline-offset: 3px;
}

.btn-pay:active {
    transform: translateY(0);
    box-shadow: 0 2px 14px rgba(2, 136, 209, 0.4);
}

/* Оплата внутри стеклянных карточек — один радиус и визуальная связь с контейнером */
.hero-rental-panel .btn-pay,
.hero-caption-overlay .hero-cta-choose.btn-pay {
    border-radius: var(--glass-pay-btn-radius);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   RULES SECTION
   ======================================== */

.rules {
    padding: 40px 24px 48px;
    background: linear-gradient(180deg, #f5f7fa 0%, #eceff3 100%);
    overflow: visible; /* Prevent scroll jumps */
    position: relative; /* Establish stacking context */
    overflow-anchor: none; /* Отключаем автопрокрутку к этой секции */
}

/* #rules: явная специфичность + компактный блок заголовка (без «белой плашки» от .section-header) */
#rules .section-header {
    padding: 0 0 16px;
    background: transparent;
}

.rules-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

/* ПК: три карточки «Перед отдыхом» в один ряд */
@media (min-width: 1200px) {
    .rules-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

/* Ноутбук / узкий экран: две колонки */
@media (min-width: 1025px) and (max-width: 1199px) {
    .rules-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.rules-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-fast);
    transform: translateZ(0); /* Force GPU acceleration */
    will-change: transform; /* Prevent reflow */
}

.rules-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Карточки «гарантий»: спокойная вода / зелень / тёплый нейтраль */
.rules-card--clean {
    background: rgba(129, 212, 250, 0.1);
    border-color: rgba(2, 136, 209, 0.28);
}

.rules-card--rent {
    background: rgba(168, 213, 186, 0.2);
    border-color: rgba(104, 159, 56, 0.32);
}

.rules-card--comfort {
    background: rgba(232, 201, 156, 0.12);
    border-color: rgba(168, 213, 186, 0.5);
}

.rules-card--format {
    background: rgba(245, 248, 250, 0.95);
    border-color: rgba(38, 50, 56, 0.12);
}

/* Полоса «Формат клуба» на всю ширину viewport (компенсация padding секции .rules) */
.rules-format-strip {
    margin-top: 24px;
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
    box-sizing: border-box;
    /* Фон на всю ширину экрана; контент — в .container как у карточек выше */
    padding: 26px 0 30px;
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    background: linear-gradient(180deg, rgba(228, 234, 239, 0.92) 0%, rgba(212, 222, 230, 0.95) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Компактнее общего .rules-card — меньше «воздуха» внутри белой карточки */
.rules-format-strip .rules-card {
    padding: 26px 28px 28px;
}

.rules-format-strip .rules-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.rules-format-strip .rules-card h3 {
    margin-bottom: 10px;
}

.rules-format-strip .rules-card-lead {
    margin-bottom: 12px;
}

.rules-card--format-full {
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.rules-card--format-full:hover {
    transform: translateY(-3px);
}

@media (min-width: 768px) {
    .rules-card-list--format-columns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem 2rem;
    }

    .rules-card-list--format-columns li {
        margin-bottom: 0;
    }
}

.rules-card-lead {
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-medium);
}

.rules-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.rules-card h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    line-height: 1.25;
}

.rules-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.55;
}

.rules-card-list li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.65rem;
}

.rules-card-list li:last-child {
    margin-bottom: 0;
}

.rules-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--oak-accent);
    opacity: 0.85;
}

.rules-card strong {
    color: var(--text-dark);
    font-weight: 600;
}

.rules-legal {
    max-width: 52rem;
    margin: 22px auto 0;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-medium);
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.rules-cta-wrap {
    margin-top: 22px;
    text-align: center;
}

.rules-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
}

/* ========================================
   REVIEWS SECTION
   ======================================== */

.reviews {
    padding: 36px 24px 80px;
    background: linear-gradient(180deg, #fafbfc 0%, #f2f4f7 100%);
    overflow-anchor: none; /* Отключаем автопрокрутку к этой секции */
}

/* #reviews: компактный заголовок, без «плашки» .section-header */
#reviews .section-header {
    padding: 0 0 16px;
    background: transparent;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 22px;
}

.review-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-fast);
    transform: translateZ(0); /* Force GPU acceleration */
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
}

.review-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--water-primary), var(--water-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.review-meta {
    flex: 1;
}

.review-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.review-stars {
    color: var(--linden-dark);
    font-size: 1.2rem;
    margin-top: 4px;
}

.review-text {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 16px;
}

.review-date {
    font-size: 0.9rem;
    color: var(--text-medium);
    opacity: 0.7;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    padding: 80px 24px 96px;
    background: var(--bg-soft);
    overflow-anchor: none; /* Отключаем автопрокрутку к этой секции */
}

/* Не дублировать глобальные 100px/60px у .section-header — иначе огромный зазор до карты */
.contact .section-header {
    padding: 0 0 16px;
    background: none;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 8px;
}

.contact-row--split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
    align-items: stretch;
}

.contact-row--map {
    min-width: 0;
}

.contact-row--requisites {
    width: 100%;
}

.contact-card {
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

.contact-card a {
    color: var(--water-primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-person {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-booking-inline {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-medium);
    margin-bottom: 0;
}

.contact-booking-inline strong {
    color: var(--text-dark);
    font-weight: 600;
}

.contact-requisites {
    margin-top: 4px;
    padding: 14px 16px;
    background: var(--bg-soft);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-medium);
}

.contact-requisites p {
    margin: 0 0 0.4rem;
}

.contact-requisites p:last-child {
    margin-bottom: 0;
}

.contact-requisites-lead {
    font-weight: 600;
    color: var(--text-dark);
}

.contact-requisites-addr-label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-map-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-map-heading {
    font-size: clamp(1.55rem, 4vw, 2.15rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-align: center;
    color: var(--text-dark);
    margin: 0 auto 16px;
    max-width: 100%;
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    min-height: 620px;
    width: 100%;
    max-width: 100%;
    flex: 1;
}

.contact-map iframe {
    max-width: 100% !important;
    display: block;
}

/* ========================================
   OFERTA (публичная оферта)
   ======================================== */

.oferta-page {
    padding: calc(80px + 40px) 24px 80px;
    background: linear-gradient(180deg, #fafbfc 0%, #f0f2f5 100%);
    min-height: 55vh;
    overflow-anchor: none;
}

.oferta-doc {
    max-width: none;
    margin: 0 auto;
    padding: 2rem 1.75rem 2.25rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.65;
    text-align: left;
}

.oferta-doc h1 {
    font-size: clamp(1.45rem, 4vw, 1.95rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    text-align: center;
}

.oferta-doc-subtitle {
    text-align: center;
    margin: 0 auto 1.75rem;
    max-width: none;
}

.oferta-doc h2 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 1.75rem 0 0.65rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.oferta-doc h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.oferta-doc p {
    margin: 0 0 0.65rem;
}

.oferta-doc ul {
    margin: 0.35rem 0 0.85rem 1.25rem;
}

.oferta-doc li {
    margin-bottom: 0.35rem;
}

.oferta-requisites {
    margin: 0.5rem 0 0;
    padding: 1rem 1.25rem;
    background: rgba(245, 247, 250, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

.oferta-requisites p {
    margin-bottom: 0.35rem;
}

.oferta-requisites p:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .oferta-page {
        padding: calc(72px + 24px) 16px 56px;
    }

    .oferta-doc {
        padding: 1.35rem 1.05rem 1.65rem;
    }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    --footer-fg: rgba(255, 255, 255, 0.9);
    --footer-muted: rgba(255, 255, 255, 0.68);
    --footer-faint: rgba(255, 255, 255, 0.5);
    --footer-heading: rgba(255, 255, 255, 0.98);
    --footer-size: 0.9375rem;
    --footer-size-sm: 0.8125rem;
    background: var(--text-dark);
    color: var(--footer-fg);
    padding: 60px 24px 28px;
    font-size: var(--footer-size);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 48px;
    margin-bottom: 36px;
    align-items: start;
}

.footer-section h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--footer-heading);
    margin: 0 0 14px;
}

.footer-section--legal > a:first-of-type {
    margin-top: 16px;
}

/* Только прямые ссылки (навигация, документы). Ссылки внутри <p> в «Контактах» не трогаем — иначе display:block ломает склейку телефон + имя. */
.footer-section > a {
    display: block;
    color: var(--footer-muted);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 6px;
    padding: 3px 0;
    letter-spacing: 0.01em;
    transition: color var(--transition-fast);
}

.footer-section > a:hover {
    color: var(--water-light);
}

.footer-section > a:last-child {
    margin-bottom: 0;
}

.footer-section p {
    margin: 0 0 8px;
    line-height: 1.58;
    color: var(--footer-muted);
}

.footer-section p:last-child {
    margin-bottom: 0;
}

.footer-entity-lead {
    font-weight: 600;
    color: var(--footer-fg);
    margin-bottom: 10px;
    font-size: 1rem;
}

.footer-bank-line {
    font-size: 0.875rem;
    line-height: 1.52;
    color: var(--footer-muted);
}

.footer-section p.footer-address-block {
    margin: 0 0 12px;
}

.footer-section p.footer-address-block:last-of-type {
    margin-bottom: 0;
}

.footer-address-label {
    display: block;
    font-size: var(--footer-size-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--footer-faint);
    margin-bottom: 5px;
}

.footer-address-value {
    display: block;
    color: var(--footer-muted);
    line-height: 1.55;
}

.footer-contact-phone {
    color: var(--water-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    transition: color var(--transition-fast);
}

.footer-contact-phone:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-contact-name {
    display: inline-block;
    margin-top: 2px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--footer-faint);
}

.footer-bottom {
    text-align: center;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--footer-faint);
    font-size: var(--footer-size-sm);
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-link-wrap {
    margin-top: 8px;
    font-size: var(--footer-size-sm);
}

.footer-bottom-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: underline;
    text-decoration-color: rgba(129, 212, 250, 0.45);
    text-underline-offset: 3px;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.footer-bottom-link:hover {
    color: var(--water-light);
    text-decoration-color: var(--water-light);
}

.footer-bottom-sep {
    color: rgba(255, 255, 255, 0.35);
}

/* ========================================
   PAYMENT STATUS OVERLAY (?payment=success|error)
   ======================================== */

.payment-status-overlay:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(20px, env(safe-area-inset-top, 0px) + 12px) max(20px, env(safe-area-inset-right, 0px) + 8px)
        max(20px, env(safe-area-inset-bottom, 0px) + 12px) max(20px, env(safe-area-inset-left, 0px) + 8px);
}

.payment-status-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    box-sizing: border-box;
    pointer-events: none;
}

.payment-status-overlay.is-open {
    pointer-events: auto;
}

.payment-status-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 20, 27, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.payment-status-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    min-width: 0; /* не раздувать flex-родителя → лишний overflow-x */
    max-height: min(90vh, 720px);
    overflow-x: hidden; /* только вертикаль: auto даёт полосу X из‑за субпикселей / акцента */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--glass-pay-bg);
    backdrop-filter: blur(var(--glass-pay-blur));
    -webkit-backdrop-filter: blur(var(--glass-pay-blur));
    border: 1px solid var(--glass-pay-border);
    border-radius: var(--glass-pay-radius);
    box-shadow: var(--glass-pay-shadow), 0 24px 64px rgba(0, 0, 0, 0.45);
    color: var(--glass-pay-text);
    outline: none;
}

/* Тёмная карточка + точечный статусный акцент (не заливка всего окна) */
.payment-status-dialog--success {
    border-color: rgba(78, 178, 162, 0.48);
    box-shadow:
        var(--glass-pay-shadow),
        0 24px 64px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(56, 155, 142, 0.14),
        0 -32px 64px -16px rgba(36, 150, 135, 0.36),
        inset 0 1px 0 rgba(120, 210, 195, 0.14);
}

.payment-status-dialog--error {
    border-color: rgba(188, 92, 84, 0.55);
    box-shadow:
        var(--glass-pay-shadow),
        0 24px 64px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(160, 65, 58, 0.18),
        0 -34px 68px -14px rgba(155, 52, 48, 0.36),
        inset 0 1px 0 rgba(220, 118, 105, 0.1);
}

.payment-status-accent {
    display: block;
    height: 5px;
    width: 100%;
    border-radius: calc(var(--glass-pay-radius) - 1px) calc(var(--glass-pay-radius) - 1px) 0 0;
    margin: 0;
    flex-shrink: 0;
}

/* Success: emerald / teal — спокойное «подтверждено» */
.payment-status-accent--success {
    background: linear-gradient(
        90deg,
        rgba(28, 112, 102, 0.98) 0%,
        rgba(58, 182, 165, 0.96) 42%,
        rgba(16, 92, 88, 0.98) 100%
    );
    box-shadow: 0 0 28px rgba(52, 175, 158, 0.48);
}

/* Error: coral / ruby — «нужно внимание», без кислотного красного */
.payment-status-accent--error {
    background: linear-gradient(
        90deg,
        rgba(108, 38, 38, 0.98) 0%,
        rgba(198, 92, 82, 0.96) 42%,
        rgba(88, 32, 36, 0.98) 100%
    );
    box-shadow: 0 0 32px rgba(178, 72, 64, 0.48);
}

.payment-status-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    margin: 0 0 4px;
}

.payment-status-icon-badge {
    position: relative;
    display: none;
    width: 74px;
    height: 74px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    isolation: isolate;
}

.payment-status-dialog--success .payment-status-icon-badge--success,
.payment-status-dialog--error .payment-status-icon-badge--error {
    display: flex;
}

.payment-status-icon-glow {
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.payment-status-icon-glow--success {
    background: radial-gradient(
        circle,
        rgba(72, 195, 178, 0.5) 0%,
        rgba(48, 145, 132, 0.2) 48%,
        transparent 72%
    );
}

.payment-status-icon-glow--error {
    background: radial-gradient(
        circle,
        rgba(215, 98, 82, 0.52) 0%,
        rgba(145, 52, 48, 0.22) 48%,
        transparent 72%
    );
}

.payment-status-icon-badge--success {
    z-index: 1;
    background: linear-gradient(148deg, rgba(32, 98, 92, 0.66) 0%, rgba(20, 62, 58, 0.85) 100%);
    border: 1px solid rgba(125, 225, 208, 0.58);
    color: #dffaf4;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 12px 32px rgba(14, 72, 66, 0.45);
}

.payment-status-icon-badge--error {
    z-index: 1;
    background: linear-gradient(148deg, rgba(112, 46, 44, 0.68) 0%, rgba(52, 22, 24, 0.86) 100%);
    border: 1px solid rgba(228, 132, 118, 0.55);
    color: #fff2ef;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.11),
        0 12px 34px rgba(48, 20, 20, 0.48);
}

.payment-status-icon-svg {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    display: block;
}

.payment-status-inner {
    padding: 22px 26px 26px;
    min-width: 0;
    overflow-x: hidden;
}

.payment-status-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-status-close:hover,
.payment-status-close:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.45);
    outline: none;
}

.payment-status-close:focus-visible {
    box-shadow: 0 0 0 2px rgba(129, 212, 250, 0.55);
}

.payment-status-dialog--success .payment-status-close {
    background: rgba(72, 155, 145, 0.15);
    border-color: rgba(118, 198, 186, 0.36);
}

.payment-status-dialog--success .payment-status-close:hover,
.payment-status-dialog--success .payment-status-close:focus-visible {
    background: rgba(88, 172, 162, 0.24);
    border-color: rgba(138, 215, 200, 0.48);
}

.payment-status-dialog--success .payment-status-close:focus-visible {
    box-shadow: 0 0 0 2px rgba(100, 200, 188, 0.55);
}

.payment-status-dialog--error .payment-status-close {
    background: rgba(168, 68, 58, 0.16);
    border-color: rgba(205, 118, 105, 0.38);
}

.payment-status-dialog--error .payment-status-close:hover,
.payment-status-dialog--error .payment-status-close:focus-visible {
    background: rgba(188, 82, 72, 0.24);
    border-color: rgba(225, 135, 122, 0.5);
}

.payment-status-dialog--error .payment-status-close:focus-visible {
    box-shadow: 0 0 0 2px rgba(220, 125, 112, 0.55);
}

.payment-status-title {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 44px 10px 0;
    letter-spacing: 0.02em;
    text-shadow: var(--glass-pay-title-shadow);
}

.payment-status-desc {
    margin: 0 0 18px;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--glass-pay-muted);
    font-weight: 500;
}

.payment-status-dialog--error .payment-status-desc {
    margin-bottom: 8px;
}

.payment-status-hint {
    margin: 0 0 14px;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.035em;
    color: rgba(255, 208, 198, 0.95);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.payment-status-hint[hidden] {
    display: none !important;
}

.payment-status-summary {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--glass-pay-segment-radius);
    background: var(--glass-pay-segment-bg);
    border: 1px solid var(--glass-pay-segment-border);
}

.payment-status-summary-title {
    margin: 0 0 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--glass-pay-label);
}

.payment-status-summary-list {
    margin: 0;
}

.payment-status-summary-row {
    display: grid;
    grid-template-columns: minmax(5.5rem, 32%) 1fr;
    gap: 8px 14px;
    align-items: baseline;
    font-size: 0.92rem;
    line-height: 1.4;
}

.payment-status-summary-row + .payment-status-summary-row {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-status-summary-row dt {
    margin: 0;
    font-weight: 600;
    color: var(--glass-pay-label);
}

.payment-status-summary-row dd {
    margin: 0;
    font-weight: 600;
    color: #fff;
    word-break: break-word;
}

.payment-status-reason {
    margin: 0 0 18px;
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
    color: rgba(255, 236, 220, 0.96);
    background: rgba(212, 165, 116, 0.12);
    border: 1px solid rgba(212, 165, 116, 0.35);
    border-radius: var(--glass-pay-segment-radius);
}

.payment-status-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
    min-width: 0;
}

.payment-status-btn {
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 48px;
}

.payment-status-btn--wide {
    width: 100%;
}

.payment-status-dialog .btn-secondary.payment-status-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--glass-pay-btn-radius);
}

.payment-status-dialog .btn-secondary.payment-status-btn--ghost:hover,
.payment-status-dialog .btn-secondary.payment-status-btn--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
}

.payment-status-tel {
    background: rgba(0, 0, 0, 0.22);
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.55) !important;
    border-radius: var(--glass-pay-btn-radius);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.payment-status-tel:hover,
.payment-status-tel:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.85) !important;
    transform: translateY(-1px);
    outline: none;
}

.payment-status-tel:focus-visible {
    box-shadow: 0 0 0 2px rgba(129, 212, 250, 0.55);
}

.payment-status-dialog .btn-pay {
    border-radius: var(--glass-pay-btn-radius);
}

/* Primary CTA: success — спокойное завершение, лёгкий success-акцент */
.payment-status-dialog .payment-status-btn--primary-success.btn-pay {
    background: linear-gradient(
        135deg,
        #05525c 0%,
        #09706c 30%,
        #0d867c 62%,
        #129e90 100%
    );
    border: 2px solid rgba(130, 228, 210, 0.55);
    box-shadow:
        0 4px 24px rgba(14, 95, 88, 0.5),
        0 0 28px -8px rgba(48, 175, 160, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    text-shadow: 0 1px 2px rgba(0, 35, 40, 0.45);
}

.payment-status-dialog .payment-status-btn--primary-success.btn-pay:hover {
    background: linear-gradient(135deg, #065e6a 0%, #0a7e78 38%, #109488 100%);
    border-color: rgba(165, 240, 225, 0.65);
    box-shadow:
        0 6px 32px rgba(18, 112, 102, 0.55),
        0 0 32px -6px rgba(56, 185, 170, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.payment-status-dialog .payment-status-btn--primary-success.btn-pay:focus-visible {
    outline: 2px solid rgba(120, 220, 200, 0.85);
    outline-offset: 3px;
}

/* Primary CTA: retry — призыв к действию, без «победного» градиента */
.payment-status-dialog .payment-status-btn--primary-retry.btn-pay {
    background: rgba(26, 20, 22, 0.92);
    border: 2px solid rgba(210, 118, 105, 0.62);
    box-shadow:
        0 0 0 1px rgba(140, 58, 52, 0.22),
        0 4px 20px rgba(32, 16, 16, 0.42),
        0 0 24px -10px rgba(175, 70, 60, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    text-shadow: 0 1px 2px rgba(10, 0, 0, 0.5);
}

.payment-status-dialog .payment-status-btn--primary-retry.btn-pay:hover {
    background: rgba(34, 26, 28, 0.95);
    border-color: rgba(232, 138, 125, 0.72);
    box-shadow:
        0 0 0 1px rgba(160, 68, 58, 0.28),
        0 6px 26px rgba(42, 20, 20, 0.48),
        0 0 28px -8px rgba(195, 85, 72, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.payment-status-dialog .payment-status-btn--primary-retry.btn-pay:focus-visible {
    outline: 2px solid rgba(225, 140, 128, 0.8);
    outline-offset: 3px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .rooms-section {
        padding: 60px 0;
        min-height: auto;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        height: 1600px; /* увеличена высота */
        gap: 12px;
        contain: layout; /* Предотвращаем reflow */
    }
    
    .room-info h3 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    .room-info .room-meta {
        font-size: 1.23rem;
        gap: 20px;
    }
    
    .room-info {
        bottom: 24px;
        left: 24px;
    }
    
    .rules-content {
        grid-template-columns: 1fr;
    }
    
    .contact-row--split {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .room-detail {
        padding: 72px 24px 48px;
        overflow-x: hidden;
        overflow-y: auto;
        align-items: stretch;
    }

    .room-detail-body {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 24px;
        overflow: visible;
    }

    .room-detail-media {
        width: 100%;
        height: auto;
    }

    .room-detail-slider {
        width: 100%;
        height: auto;
    }

    .room-detail-slider .slider-container {
        height: clamp(320px, 60vh, 520px);
    }

    .room-detail-slider .slider-thumbnails {
        position: static;
        transform: none;
        justify-content: flex-start;
        padding: 12px 0 0;
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .room-detail-slider .slider-thumbnails::-webkit-scrollbar {
        height: 8px;
    }

    .room-detail-slider .slider-thumbnails::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.35);
        border-radius: 999px;
    }

    .room-detail-slider .slider-thumbnails::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }

    .room-detail-slider .thumbnail {
        width: 90px;
        height: 68px;
    }

    .room-detail-slider .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .room-detail-overlay {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 28px 24px;
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        overflow: visible;
        background: rgba(15, 22, 30, 0.82);
        color: rgba(255, 255, 255, 0.96);
    }

    .room-detail-overlay.collapsed {
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: none;
        padding: 28px 24px;
        margin: 0;
    }

    .room-detail-toggle {
        display: none !important;
    }

    .room-detail-expander {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .hero-cta-row {
        flex-wrap: wrap;
    }

    .hero-cta-row .btn {
        flex: 1 1 calc(50% - 4px);
        white-space: normal;
    }

    .hero-cta-row .hero-cta-phone {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-phone {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .hero-cta-row {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .hero-cta-row .btn {
        font-size: 0.78rem;
        letter-spacing: 0.02em;
        padding: 9px 12px;
        min-height: 44px;
    }

    .hero-caption-overlay {
        width: min(98vw, 100%);
        padding: 12px 14px 18px;
    }

    .hero-slider > .slider-thumbnails .thumbnail {
        width: 54px;
        height: 41px;
        opacity: 0.42;
    }

    .hero-slider > .slider-thumbnails .thumbnail:hover {
        opacity: 0.7;
    }

    .hero-slider > .slider-thumbnails .thumbnail.active {
        opacity: 0.84;
    }

    .hero-rental-panel {
        padding: 14px 12px 16px;
    }

    .hero-rental-panel__title {
        font-size: 0.98rem;
        margin-bottom: 12px;
    }

    .hero-rental-segment__btn {
        min-height: 44px;
        font-size: 0.78rem;
        padding: 6px 4px;
    }

    .hero-rental-segment__price {
        font-size: 0.68rem;
    }
    
    .hero-caption-title {
        font-size: 2rem;
    }
    
    .hero-caption-subtitle {
        font-size: 1.1rem;
    }

    .hero-caption-trust {
        font-size: 0.8rem;
        margin-bottom: 16px;
        padding: 0 4px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .rooms-grid {
        gap: 8px;
        padding: 0 16px;
        height: 1200px; /* увеличена высота */
        max-height: none;
        contain: layout; /* Предотвращаем reflow */
    }
    
    .room-tile-slider .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
        opacity: 0.7;
    }
    
    .room-tile:hover .room-tile-slider .slider-btn {
        opacity: 0.9;
    }
    
    .room-tile-slider .slider-btn.prev {
        left: 8px;
    }
    
    .room-tile-slider .slider-btn.next {
        right: 8px;
    }
    
    .room-info {
        bottom: 16px;
        left: 16px;
        max-width: min(52%, calc(100% - 200px));
    }
    
    .room-info h3 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .room-info .room-meta {
        flex-direction: column;
        gap: 8px !important;
        font-size: 1.08rem;
    }

    .room-tile-anchors {
        margin-top: 6px;
    }

    .room-tile-anchors li {
        font-size: 0.72rem;
    }

    .room-tile-choice-badge {
        top: 14px;
        left: 12px;
        max-width: calc(100% - 28px);
        padding: 7px 12px 7px 10px;
        font-size: 0.64rem;
        letter-spacing: 0.07em;
    }

    .room-tile-actions {
        bottom: 14px;
        right: 12px;
        width: min(210px, 54vw);
        padding: 10px 10px 12px;
        gap: 6px;
    }

    .room-tile-actions .btn-pay {
        font-size: 0.76rem;
        padding: 9px 10px;
    }

    .room-tile-btn-detail {
        font-size: 0.72rem;
        padding: 6px 8px;
    }

    .room-tile-call-compact {
        font-size: 0.7rem;
        padding: 4px 2px 1px;
    }

    .room-tile-pay-btn {
        font-size: 0.72rem;
        padding: 8px 8px;
    }
    
    .room-detail {
        padding: 64px 16px 40px;
    }

    .room-detail-body {
        gap: 20px;
    }

    .room-detail-media {
        height: auto;
    }

    .room-detail-overlay {
        padding: 24px 20px;
        gap: 16px;
        overflow: visible;
        top: 0;
        right: 0;
        background: rgba(15, 22, 30, 0.86);
    }

    .room-detail-overlay.collapsed {
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: none;
        padding: 24px 20px;
        margin: 0;
    }

    .room-detail-toggle {
        display: none !important;
    }

    .room-detail-expander {
        display: none !important;
    }

    .room-detail-header h2 {
        font-size: 2rem;
    }
    
    .rules-card {
        padding: 32px 24px;
    }
    
    .rules-icon {
        font-size: 2.5rem;
    }
    
    .rules-card h3 {
        font-size: 1.3rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-header {
        padding: 80px 16px 40px;
    }

    .services .section-header {
        padding: 0 0 20px;
    }

    #rules .section-header {
        padding: 0 0 14px;
    }

    #reviews .section-header {
        padding: 0 0 14px;
    }

    .room-detail-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .room-detail-slider .slider-container {
        height: clamp(260px, 55vh, 420px);
    }

    .room-detail-slider .slider-thumbnails {
        padding: 10px 0 0;
        gap: 10px;
    }

    .room-detail-body {
        overflow-y: auto;
    }

    .payment-status-inner {
        padding: 18px 18px 20px;
    }

    .payment-status-visual {
        min-height: 74px;
        margin-bottom: 2px;
    }

    .payment-status-icon-badge {
        width: 66px;
        height: 66px;
    }

    .payment-status-icon-svg {
        width: 30px;
        height: 30px;
    }

    .payment-status-title {
        font-size: 1.28rem;
        margin-right: 40px;
    }

    .payment-status-close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }

    .payment-status-summary-row {
        grid-template-columns: 1fr;
        gap: 2px 0;
    }

    .payment-status-summary-row dd {
        margin-bottom: 4px;
    }
}
