/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Основные цвета */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    /* Цвета интерфейса */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #1e293b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    /* Границы и тени */
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Размеры */
    --max-width: 1200px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;

    /* Анимации */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;

    /* Адаптивные размеры (добавлено для responsive) */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;

    /* Touch target minimum (Apple HIG standard) */
    --touch-target-min: 44px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* Типография */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

/* Кнопки */
.btn-primary, .btn-secondary, .btn-outline, .btn-emergency {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    font-weight: 600;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.booking-form .btn-primary {
    margin-top: 0.25rem;
    width: 100%;
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 11px;
    height: 50px;
    letter-spacing: -0.01em;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-emergency {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

/* Премиальный адаптивный navbar */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.75rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    min-height: 75px;
}

/* Пункты меню - центральная группа */
.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

/* Компактная адаптация для ноутбуков (критический диапазон) */
@media (min-width: 1150px) and (max-width: 1366px) {
    .nav-container {
        gap: 0.5rem;
        padding: 0.65rem 1rem;
        min-height: 70px;
    }

    .nav-logo {
        gap: 8px;
        padding: 4px 8px;
    }

    .logo-3d {
        width: 45px;
        height: 45px;
    }

    .logo-face {
        font-size: 1.6rem;
    }

    .logo-text-parvona {
        font-size: 0.95rem;
        letter-spacing: 0.06em;
    }

    .logo-text-hostel {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.65rem;
        border-radius: 6px;
    }

    .nav-actions {
        gap: 0.45rem;
        margin-left: 0.5rem;
    }

    .language-switcher {
        margin: 0;
        padding: 0.2rem;
        gap: 0.15rem;
    }

    .lang-btn {
        padding: 0.35rem 0.5rem;
        font-size: 10px;
        min-width: 28px;
    }

    .nav-login-btn {
        padding: 0.5rem 0.95rem;
        font-size: 0.85rem;
    }

    .btn-book {
        padding: 0.5rem 1.1rem;
        font-size: 0.85rem;
        min-width: 120px;
    }
}

/* Дополнительная оптимизация для узких ноутбуков */
@media (min-width: 901px) and (max-width: 1200px) {
    .nav-container {
        gap: 0.35rem;
        padding: 0.65rem 0.75rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }

    .nav-actions {
        gap: 0.35rem;
    }

    .nav-login-btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.8rem;
    }

    .btn-book {
        padding: 0.45rem 0.95rem;
        font-size: 0.8rem;
        min-width: 110px;
    }

    .logo-text-parvona {
        font-size: 0.9rem;
    }

    .logo-text-hostel {
        font-size: 0.6rem;
    }
}

/* Compact mode - дополнительное сжатие при переполнении */
.nav-container.compact-mode {
    gap: 0.25rem;
}

.nav-container.compact-mode .nav-link {
    padding: 0.3rem 0.45rem;
    font-size: 1.2rem;
}

.nav-container.compact-mode .nav-actions {
    gap: 0.3rem;
}

.nav-container.compact-mode .nav-login-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
}

.nav-container.compact-mode .btn-book {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
}

/* Адаптация для больших экранов */
@media (min-width: 1500px) {
    .nav-container {
        gap: 2.5rem;
        padding: 1rem 3rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }

    .nav-actions {
        gap: 0.85rem;
    }

    .nav-login-btn {
        padding: 0.7rem 1.35rem;
        font-size: 0.95rem;
    }

    .btn-book {
        padding: 0.7rem 1.65rem;
        font-size: 0.95rem;
    }
}

/* Скрываем мобильную навигацию на desktop */
@media (min-width: 901px) {
    .nav-toggle {
        display: none !important;
    }
}

.nav-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    padding: 6px 10px;
    flex-shrink: 0;
}

/* Премиум контейнер для анимации букв */
.logo-3d {
    position: relative;
    width: 50px;
    height: 50px;
    transform-style: preserve-3d;
    perspective: 1200px;
    flex-shrink: 0;
}

/* Премиальные 3D буквы с округлыми гранями */
.logo-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg,
            #2563eb 0%,
            #1d4ed8 50%,
            #1e3a8a 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    ;
    font-weight: 900;
    border-radius: 14px;
    box-shadow:
        0 15px 35px rgba(37, 99, 235, 0.4),
        0 8px 15px rgba(0, 0, 0, 0.2),
        inset 0 3px 6px rgba(255, 255, 255, 0.3),
        inset 0 -3px 6px rgba(0, 0, 0, 0.2);
    text-shadow:
        0 4px 10px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.35),
        0 1px 2px rgba(0, 0, 0, 0.25);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity, filter;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Эффект стекла и объёма */
.logo-face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.25) 0%,
            transparent 45%,
            rgba(0, 0, 0, 0.15) 100%);
    border-radius: 14px;
    pointer-events: none;
}

/* Мягкая бликовая подсветка сверху */
.logo-face::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 15%;
    right: 15%;
    height: 30%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.35) 0%,
            transparent 100%);
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
}

.logo-face.front {
    animation: smoothLetterOut 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.logo-face.back {
    animation: smoothLetterIn 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* Премиальная плавная анимация исчезновения буквы P */
@keyframes smoothLetterOut {
    0% {
        transform: rotateY(0deg) rotateX(0deg) translateZ(0px) scale(1);
        opacity: 1;
        filter: blur(0px) brightness(1);
    }

    /* Плавное вращение с подъёмом */
    10% {
        transform: rotateY(60deg) rotateX(12deg) translateZ(20px) scale(1.08);
        opacity: 1;
        filter: blur(0px) brightness(1.15);
    }

    20% {
        transform: rotateY(140deg) rotateX(18deg) translateZ(35px) scale(1.12);
        opacity: 0.92;
        filter: blur(0.5px) brightness(1.2);
    }

    /* Начало растворения */
    30% {
        transform: rotateY(220deg) rotateX(8deg) translateZ(25px) scale(1.05);
        opacity: 0.65;
        filter: blur(2px) brightness(1.1);
    }

    /* Активное растворение */
    40% {
        transform: rotateY(300deg) rotateX(-10deg) translateZ(5px) scale(0.85);
        opacity: 0.3;
        filter: blur(6px) brightness(0.8);
    }

    /* Почти исчезла */
    47% {
        transform: rotateY(360deg) rotateX(0deg) translateZ(-20px) scale(0.4);
        opacity: 0.05;
        filter: blur(12px) brightness(0.5);
    }

    /* Полностью растворилась - БЕЗ ПАУЗЫ */
    50%, 100% {
        transform: rotateY(360deg) rotateX(0deg) translateZ(-30px) scale(0);
        opacity: 0;
        filter: blur(15px) brightness(0);
    }
}

/* Премиальная плавная анимация появления буквы H */
@keyframes smoothLetterIn {

    /* Скрыта в начале */
    0%, 48% {
        transform: rotateY(-360deg) rotateX(0deg) translateZ(-30px) scale(0);
        opacity: 0;
        filter: blur(15px) brightness(0);
    }

    /* СРАЗУ начинает появляться после P - БЕЗ ПАУЗЫ */
    50% {
        transform: rotateY(-360deg) rotateX(0deg) translateZ(-20px) scale(0.4);
        opacity: 0.05;
        filter: blur(12px) brightness(0.5);
    }

    /* Активное проявление */
    60% {
        transform: rotateY(-300deg) rotateX(10deg) translateZ(5px) scale(0.85);
        opacity: 0.3;
        filter: blur(6px) brightness(0.8);
    }

    /* Продолжает проявляться */
    70% {
        transform: rotateY(-220deg) rotateX(-8deg) translateZ(25px) scale(1.05);
        opacity: 0.65;
        filter: blur(2px) brightness(1.1);
    }

    /* Почти полностью видна */
    80% {
        transform: rotateY(-140deg) rotateX(-18deg) translateZ(35px) scale(1.12);
        opacity: 0.92;
        filter: blur(0.5px) brightness(1.2);
    }

    /* Завершающее движение */
    90% {
        transform: rotateY(-60deg) rotateX(-12deg) translateZ(20px) scale(1.08);
        opacity: 1;
        filter: blur(0px) brightness(1.15);
    }

    /* Полностью на месте */
    100% {
        transform: rotateY(0deg) rotateX(0deg) translateZ(0px) scale(1);
        opacity: 1;
        filter: blur(0px) brightness(1);
    }
}

/* Старая анимация качания */
@keyframes tilt3d {
    0%, 100% {
        transform: perspective(400px) rotateY(-15deg);
    }

    50% {
        transform: perspective(400px) rotateY(15deg);
    }
}

@keyframes rotate3d {
    0%, 100% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(180deg);
    }
}

/* Двухстрочный текст логотипа */
.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.logo-text-parvona {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #1e3a8a;
    text-shadow:
        0 2px 4px rgba(37, 99, 235, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2),
        1px 1px 0px rgba(255, 255, 255, 0.3),
        -1px -1px 0px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.logo-text-hostel {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #1e40af;
    text-shadow:
        0 1px 2px rgba(37, 99, 235, 0.2),
        0 1px 1px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    margin-top: -2px;
}

/* Мягкая волновая анимация текста */
@keyframes gentleWave {
    0%, 100% {
        transform: translateY(0px) scaleY(1);
        opacity: 1;
    }

    25% {
        transform: translateY(-1px) scaleY(1.02);
        opacity: 0.95;
    }

    50% {
        transform: translateY(0px) scaleY(1);
        opacity: 1;
    }

    75% {
        transform: translateY(1px) scaleY(0.98);
        opacity: 0.95;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.nav-menu-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Переключатель языков */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    padding: 0.25rem;
    margin: 0 0.5rem;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.lang-divider {
    color: var(--primary-color);
    opacity: 0.4;
    margin: 0 2px;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.lang-btn:hover:not(.active) {
    background: rgba(37, 99, 235, 0.1);
}

/* Кнопки авторизации в навигации */
.nav-auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-login-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.nav-login-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.nav-user-menu {
    position: relative;
    display: none;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-user-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.nav-user-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0.875rem;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: calc(100% - 1.75rem);
}

.btn-book {
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
    min-width: 130px;
    white-space: nowrap;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Главная секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/optimized/20251130_111039_1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.85) 0%,
            rgba(59, 130, 246, 0.75) 50%,
            rgba(147, 51, 234, 0.85) 100%);
    z-index: 1;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 420px;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    justify-items: start;
}

.hero-text {
    color: var(--text-white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-offer {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.offer-highlight {
    color: #fbbf24;
    font-weight: 600;
}

.hero-booking {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    width: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-self: end;
}

.hero-booking:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.booking-widget h3 {
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    flex: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    letter-spacing: -0.01em;
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: var(--transition);
    background: var(--bg-primary);
    height: 46px;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    background: rgba(37, 99, 235, 0.02);
}

.form-group input:hover:not(:focus),
.form-group select:hover:not(:focus) {
    border-color: var(--border-dark);
}

.hero-features {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    gap: 2rem;
    color: var(--text-white);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.feature-item i {
    color: #fbbf24;
}

/* Секции */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Удобства */
.amenities {
    background: var(--bg-secondary);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.amenity-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.amenity-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-white);
}

.amenity-icon.wifi {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.amenity-icon.security {
    background: linear-gradient(135deg, #10b981, #059669);
}

.amenity-icon.kitchen {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.amenity-icon.parking {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.amenity-icon.lounge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.amenity-icon.premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    background: var(--bg-primary);
    padding: 2rem 1rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Номера */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.room-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.room-image {
    position: relative;
    height: 200px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.room-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), #e0e7ff);
    color: var(--primary-color);
    font-size: 3rem;
}

.room-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 500;
}

.room-badge.available {
    background: var(--success-color);
    color: var(--text-white);
}

.room-rating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-white);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.room-rating i {
    color: #fbbf24;
}

.room-content {
    padding: 1.5rem;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.room-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.room-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.room-price {
    text-align: right;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.price-period {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.room-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.room-features {
    margin-bottom: 1.5rem;
}

.feature {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.room-actions {
    display: flex;
    gap: 1rem;
}

.room-actions .btn-secondary,
.room-actions .btn-primary {
    flex: 1;
    justify-content: center;
    font-size: 0.9rem;
    padding: 10px 16px;
}

/* Галерея */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    height: 200px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), #e0e7ff);
    color: var(--primary-color);
    font-size: 2rem;
}

.virtual-tour {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    text-align: center;
}

.tour-content {
    max-width: 600px;
    margin: 0 auto;
}

.tour-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
}

.virtual-tour h3 {
    margin-bottom: 1rem;
}

.virtual-tour p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Отзывы */
.reviews {
    background: var(--bg-secondary);
}

.reviews-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 600;
}

.review-info h4 {
    margin-bottom: 0.3rem;
}

.review-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 0.3rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.write-review {
    margin-top: 3rem;
}

.write-review .review-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    text-align: center;
}

.review-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.write-review h3 {
    margin-bottom: 1rem;
}

.write-review p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Расположение */
.location-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.location-map {
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content {
    text-align: center;
    color: var(--text-secondary);
}

.map-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--error-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.address-card {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.address-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-text h4 {
    margin-bottom: 0.3rem;
}

.address-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.distance {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

.location-info {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.transport-options,
.nearby-places,
.contact-card {
    margin-bottom: 2rem;
}

.transport-list,
.places-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transport-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.transport-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.2rem;
}

.transport-icon.metro {
    background: var(--primary-color);
}

.transport-icon.bus {
    background: var(--success-color);
}

.transport-icon.taxi {
    background: var(--secondary-color);
}

.transport-details {
    flex: 1;
}

.transport-details h4 {
    margin-bottom: 0.3rem;
}

.transport-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.transport-time {
    font-weight: 600;
    color: var(--primary-color);
}

.place-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-left: 3px solid var(--primary-color);
    background: var(--bg-secondary);
}

.place-item i {
    width: 20px;
    color: var(--primary-color);
}

.place-item .distance {
    margin-left: auto;
    font-size: 0.8rem;
}

/* Контакты */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-container {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-info {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.2rem;
}

.contact-icon.phone {
    background: var(--success-color);
}

.contact-icon.email {
    background: var(--primary-color);
}

.contact-icon.telegram {
    background: #0088cc;
}

.contact-icon.address {
    background: var(--secondary-color);
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.contact-value {
    font-weight: 500;
}

.working-hours {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.hours-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hours-header i {
    color: var(--primary-color);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.emergency-contact {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    color: var(--text-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.emergency-contact h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.emergency-contact p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Футер */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 0.2rem;
    width: 16px;
}

.footer-contact a {
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-amenities {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-amenity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-amenity i {
    color: var(--primary-color);
    width: 16px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-color);
}

.payment-methods h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.payment-method {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Кнопка наверх */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Анимации */
[data-aos] {
    opacity: 0;
    transition: var(--transition-slow);
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Модальное окно для изображений */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
}

.image-modal.show {
    opacity: 1;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: -50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.image-modal-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* Адаптивность для модального окна изображений */
@media (max-width: 768px) {
    .image-modal-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.7);
    }

    .image-modal-content img {
        max-height: 70vh;
    }

    .image-modal-title {
        font-size: 1rem;
        padding: 0.75rem;
    }
}

@media (max-width: 900px) {
    :root {
        --max-width: 100%;
    }

    .container {
        padding: 0 15px;
    }

    /* Мобильный navbar с премиальной анимацией */
    .nav-container {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-toggle {
        display: flex !important;
        order: 10;
        z-index: 100;
    }

    /* Скрываем пункты меню на мобильных */
    .nav-link,
    .nav-actions {
        display: none;
        opacity: 0;
        transform: translateY(-10px);
    }

    /* Активное меню с плавной анимацией */
    .nav-container.active {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    .nav-container.active .nav-link,
    .nav-container.active .nav-actions {
        display: flex;
        width: 100%;
        opacity: 1;
        transform: translateY(0);
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-container.active .nav-link {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(37, 99, 235, 0.1);
        margin: 0;
        transition: all 0.25s ease;
    }

    .nav-container.active .nav-link:hover {
        background: rgba(37, 99, 235, 0.08);
        padding-left: 2rem;
    }

    .nav-container.active .nav-actions {
        flex-direction: column;
        margin-left: 0;
        padding: 1rem 0;
        gap: 0.75rem;
    }

    .nav-container.active .language-switcher,
    .nav-container.active .nav-login-btn,
    .nav-container.active .btn-book {
        width: calc(100% - 3rem);
        margin: 0.25rem 1.5rem;
    }

    /* Анимация появления пунктов */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Hero section - вертикальная компоновка на мобильных */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        justify-items: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-booking {
        width: 100%;
        max-width: 500px;
        justify-self: center;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-features {
        position: static;
        justify-content: center;
        margin-top: 2rem;
    }

    /* Секции */
    section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Формы */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Карточки */
    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Расположение */
    .location-content {
        grid-template-columns: 1fr;
    }

    /* Контакты */
    .contact-content {
        grid-template-columns: 1fr;
    }

    /* Футер */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {

    /* Типография */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    /* Карточки */
    .room-actions {
        flex-direction: column;
    }

    .amenity-card,
    .room-card,
    .review-card {
        padding: 1.5rem;
    }

    /* Галерея */
    .gallery-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* ============================================
   НОВЫЕ АДАПТИВНЫЕ МЕДИА-ЗАПРОСЫ
   Добавлено: 22 ноября 2025
   ============================================ */

/* Адаптивные переменные для mobile */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
        --font-size-3xl: 1.5rem;
        --font-size-4xl: 2rem;
        --max-width: 100%;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Touch-friendly увеличение элементов */
    .nav-link,
    .lang-btn,
    .filter-btn {
        min-height: var(--touch-target-min);
        padding: 0.75rem 1rem;
    }
}

/* Mobile landscape & Small Tablet (481px-768px) */
@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --max-width: 100%;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    /* Grid layouts - 2 columns */
    .amenities-grid,
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    /* Hero section */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
}

/* Tablet (769px-1024px) - КРИТИЧЕСКИЙ брейкпоинт */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 var(--spacing-lg);
    }

    /* Navbar оптимизация для планшета */
    .nav-container {
        padding: 1rem var(--spacing-lg);
    }

    .nav-menu-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: var(--font-size-sm);
        padding: 0.5rem 0.75rem;
    }

    /* Grid layouts - 2-3 columns */
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Hero section */
    .hero-content {
        grid-template-columns: 1fr 380px;
        gap: 2rem;
    }

    .hero-booking {
        min-height: 400px;
        padding: 1.5rem;
    }

    .booking-widget h3 {
        font-size: 1.25rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
        height: 42px;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    /* Contact section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
}

/* Desktop optimization (1025px+) */
@media (min-width: 1025px) {

    /* Hover effects только на desktop */
    .amenity-card:hover,
    .room-card:hover,
    .review-card:hover {
        transform: translateY(-5px);
    }

    .gallery-item:hover .gallery-overlay {
        opacity: 1;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {

    /* Оптимизация изображений для retina */
    .room-image,
    .gallery-item img,
    .amenity-icon {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Landscape orientation fixes */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 0 3rem;
    }

    .nav-menu {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    /* Модальные окна на весь экран */
    .auth-modal-content,
    .booking-modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* News Section */
.news-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Gallery Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10001;
    line-height: 1;
    padding: 0;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 50px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10001;
    line-height: 1;
    padding: 0;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    z-index: 10001;
}

@media (max-width: 768px) {
    .news-section {
        padding: 60px 0;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 35px;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    /* Navbar mobile */
    .nav-container {
        grid-template-columns: 1fr auto;
        padding: 0.75rem 1rem;
    }

    .nav-menu-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .nav-menu-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn-book,
    .nav-login-btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }

    /* Hero-booking mobile */
    .hero-booking {
        padding: 1.5rem;
        border-radius: 20px;
        margin: 0 1rem;
    }

    .booking-widget h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
    }

    .booking-form .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

.posts-container {
    grid-template-columns: 1fr;
    gap: 20px;
}
}