        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }
        
        body {
            color: #333;
            line-height: 1.6;
            opacity: 0;
            animation: fadeIn 0.5s ease-in forwards;
        }
        
        @keyframes fadeIn {
            to { opacity: 1; }
        }
        
        header {
            background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../image/dom1-resized-1500.jpg') center/cover no-repeat;
            color: white;
            padding: 4rem 1rem;
            text-align: center;
            height: 50vh;
            min-height: 350px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            animation: zoomIn 1s ease-out;
        }
        
        @keyframes zoomIn {
            from { transform: scale(1.05); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        
        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            margin-bottom: 0.8rem;
            animation: slideDown 0.8s ease-out;
        }
        
        @keyframes slideDown {
            from { transform: translateY(-50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        .header-buttons {
            display: flex;
            justify-content: center;
            gap: 0.8rem;
            margin-top: 1.2rem;
            flex-wrap: wrap;
            animation: fadeInUp 1s ease-out 0.3s both;
        }
        
        @keyframes fadeInUp {
            from { transform: translateY(30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        .btn-call, .btn-tg {
            display: inline-flex;
            align-items: center;
            color: white;
            padding: 0.6rem 1.2rem;
            border-radius: 30px;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            font-size: 0.9rem;
            transform: translateY(0);
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        
        .btn-call {
            background: #4CAF50;
        }
        
        .btn-tg {
            background: #0088cc;
        }
        
        .btn-call:hover, .btn-tg:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }
        
        .btn-call:hover {
            background: #3e8e41;
        }
        
        .btn-tg:hover {
            background: #006699;
        }
        
        .btn-call::before {
            content: "📞";
            margin-right: 6px;
            display: inline-block;
            animation: phone-shake 0.6s ease-in-out infinite;
        }

        @keyframes phone-shake {
            0%, 100% { transform: translateX(0) rotate(0); }
            25% { transform: translateX(-2px) rotate(-2deg); }
            75% { transform: translateX(2px) rotate(2deg); }
        }
        
        nav {
            background: rgba(255,255,255,0.9);
            padding: 0.8rem;
            position: sticky;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(5px);
            animation: slideInDown 0.9s ease-out;
        }
        
        @keyframes slideInDown {
            from { transform: translateY(-100%); }
            to { transform: translateY(0); }
        }
        
        nav ul {
            display: flex;
            justify-content: center;
            list-style: none;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        
        nav a {
            color: #333;
            text-decoration: none;
            padding: 0.4rem 1rem;
            font-weight: bold;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            position: relative;
        }
        
        nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: #8B4513;
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }
        
        nav a:hover {
            color: #8B4513;
        }
        
        nav a:hover::after {
            width: 70%;
        }
        
        section {
            padding: 1.5rem 0.8rem;
            max-width: 1200px;
            margin: 0 auto;
            animation: fadeIn 0.8s ease-out;
        }
        
        h1 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            color: #fff;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
            animation: fadeIn 1s ease-out 0.2s both;
        }
        
        h2 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: #8B4513;
            position: relative;
            display: inline-block;
            text-decoration: underline;
        }
        
        p {
            margin-bottom: 1rem;
            font-size: 0.95rem;
            animation: fadeIn 0.8s ease-out;
        }
        
        .zhirtext {
            font-weight: bold;
            color: #8B4513;
        }

        /* Списки для удобств */
        .amenities-list {
            list-style: none;
            padding-left: 1.5rem;
            margin: 1rem 0;
            text-align: center;
        }

        .about {
            background: #f9f9f9;
            text-align: center;
            padding: 1.2rem 0.8rem;
            position: relative;
        }
        
        .about-content {
            max-height: 200px;
            overflow: hidden;
            transition: max-height 0.5s ease-out;
            position: relative;
        }
        
        .about-content.expanded {
            max-height: 2000px;
        }
        
        .about-content::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: linear-gradient(to bottom, transparent, #f9f9f9);
            opacity: 1;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }
        
        .about-content.expanded::after {
            opacity: 0;
        }
        
        .read-more-btn {
            background: #8B4513;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 25px;
            cursor: pointer;
            margin-top: 15px;
            font-weight: bold;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .read-more-btn:hover {
            background: #6b3300;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
        }
        
        .read-more-btn::after {
            content: '▼';
            font-size: 0.8em;
            transition: transform 0.3s ease;
        }
        
        .read-more-btn.expanded::after {
            transform: rotate(180deg);
        }
        
        .rooms {
            text-align: center;
            padding: 1.2rem 0.8rem;
        }
        
        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
            gap: 0.8rem;
            margin-top: 1rem;
            width: 100%;
        }

        /* На больших экранах ограничиваем максимум 3 колонки */
            @media (min-width: 1184px) {
                .gallery {
                    grid-template-columns: repeat(3, 1fr);
                }
            }

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 6px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            height: 260px;
            cursor: pointer;
            min-width: 0;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }
        
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .gallery-item:hover img {
            transform: scale(1.05);
        }
        
        .gallery-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0,0,0,0.4);
            color: white;
            padding: 0.8rem;
        }
        
        .gallery-item:hover .gallery-caption {
            transform: translateY(0);
        }
        
        .gallery-caption h3 {
            margin-bottom: 0.3rem;
            font-size: 1.1rem;
        }
        
        .gallery-caption p {
            font-size: 0.85rem;
            margin-bottom: 0;
        }
        
        /* Модальное окно */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.9);
            overflow: auto;
            animation: fadeIn 0.3s ease-out;
        }
        
        .modal-content {
            position: relative;
            margin: auto;
            padding: 40px 15px 20px;
            width: 95%;
            max-width: 1000px;
            animation: modalSlideIn 0.4s ease-out;
        }
        
        @keyframes modalSlideIn {
            from { transform: translateY(50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        .close {
            color: white;
            position: fixed;
            top: 15px;
            right: 15px;
            font-size: 30px;
            font-weight: bold;
            cursor: pointer;
            background: rgba(0,0,0,0.5);
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            z-index: 1001;
            transition: all 0.3s ease;
        }
        
        .close:hover {
            color: #8B4513;
            background: rgba(255,255,255,0.3);
            transform: rotate(90deg);
        }
        
        .room-slideshow {
            position: relative;
            margin: 0 auto;
            max-width: 900px;
        }
        
        .room-slide {
            display: none;
            text-align: center;
        }
        
        .room-slide.active {
            display: block;
        }
        
        .room-slide img {
            width: 100%;
            max-height: 60vh;
            object-fit: contain;
            cursor: pointer;
            border-radius: 6px;
            transition: transform 0.3s ease;
        }
        
        .room-slide img:hover {
            transform: scale(1.02);
        }
        
        .room-info {
            color: white;
            padding: 15px;
            text-align: center;
            background: rgba(0,0,0,0.7);
            border-radius: 6px;
            margin-top: 15px;
            animation: fadeIn 0.6s ease-out;
        }
        
        .room-info h2 {
            color: #f8c537;
            margin-bottom: 0.8rem;
            font-size: 1.4rem;
        }
        
        .room-info ul {
            text-align: left;
            max-width: 600px;
            margin: 0 auto 0.8rem;
            padding-left: 1.2rem;
        }
        
        .room-info li {
            margin-bottom: 0.4rem;
            font-size: 0.9rem;
            position: relative;
            padding-left: 20px;
        }
        
        .room-info li::before {
            content: "•";
            color: #f8c537;
            font-size: 1.2rem;
            position: absolute;
            left: 0;
            top: -3px;
        }
        
        .room-info p {
            font-size: 0.9rem;
            margin-bottom: 0;
        }
        
        .prev, .next {
            cursor: pointer;
            position: absolute;
            top: 50%;
            width: auto;
            padding: 12px;
            margin-top: -22px;
            color: white;
            font-weight: bold;
            font-size: 16px;
            transition: 0.3s;
            user-select: none;
            background-color: rgba(0,0,0,0.5);
            border: none;
            outline: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .next {
            right: 10px;
        }
        
        .prev {
            left: 10px;
        }
        
        .prev:hover, .next:hover {
            background-color: rgba(0,0,0,0.8);
            transform: scale(1.1);
        }
        
        .dots-container {
            text-align: center;
            padding: 15px;
        }
        
        .dot {
            cursor: pointer;
            height: 12px;
            width: 12px;
            margin: 0 4px;
            background-color: #bbb;
            border-radius: 50%;
            display: inline-block;
            transition: all 0.3s ease;
        }
        
        .dot.active, .dot:hover {
            background-color: #8B4513;
            transform: scale(1.2);
        }
        
        /* Стили для блока с картой */
        .map-container {
            width: 100%;
            padding: 1.2rem 0.8rem;
            background: #f9f9f9;
            animation: fadeIn 0.8s ease-out;
            text-align: center;
        }
        
        .map-title {
            margin-bottom: 1rem;
            color: #8B4513;
            width: 100%;
            display: block;
        }
        
        .map-wrapper {
            height: 350px;
            width: 100%;
            max-width: 1000px;
            margin: 0 auto;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .map-wrapper:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px rgba(0,0,0,0.2);
        }
        
        .map-frame {
            width: 100%;
            height: 100%;
            border: none;
        }

        .contact {
            background: #f9f9f9;
            text-align: center;
            padding: 1.2rem 0.8rem;
        }
        
        .contact-info {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            margin-top: 1rem;
            gap: 0.8rem;
        }
        
        .contact-item {
            flex: 1;
            min-width: 220px;
            padding: 1rem;
            background: white;
            border-radius: 6px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }
        
        .contact-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        }
        
        .contact-item h3 {
            font-size: 1.1rem;
            margin-bottom: 0.6rem;
            color: #8B4513;
        }
        
        .contact-item p {
            font-size: 0.9rem;
            margin-bottom: 0.3rem;
        }
        
        footer {
            background: #333;
            color: white;
            text-align: center;
            padding: 1.2rem;
            font-size: 0.9rem;
            animation: fadeIn 0.8s ease-out;
        }
        
        .fade {
            animation-name: fade;
            animation-duration: 0.4s;
        }
        
        @keyframes fade {
            from {opacity: .4}
            to {opacity: 1}
        }

        /* Оптимизация загрузки изображений */
        img {
            content-visibility: auto;
        }
        
        /* Ленивая загрузка для изображений вне viewport */
        .lazy {
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .lazy.loaded {
            opacity: 1;
        }

        @media (max-width: 768px) {
            header {
                height: 45vh;
                min-height: 300px;
                padding: 3rem 1rem;
            }
            
            .logo {
                font-size: 1.6rem;
            }
            
            h1 {
                font-size: 1.5rem;
            }
            
            h2 {
                font-size: 1.3rem;
            }
            
            .close {
                top: 10px;
                right: 10px;
                font-size: 26px;
                width: 32px;
                height: 32px;
            }
            
            .modal-content {
                padding-top: 50px;
            }
            
            .gallery {
                grid-template-columns: 1fr;
            }
            
            .map-wrapper {
                height: 280px;
            }
            
            .room-slide img {
                max-height: 50vh;
            }
            
            section {
                padding: 1.2rem 0.5rem;
            }
            
            .about, .rooms, .contact {
                padding: 1rem 0.5rem;
            }
            
            .header-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .btn-call, .btn-tg {
                width: 100%;
                max-width: 200px;
                justify-content: center;
            }
            
            .about-content {
                max-height: 150px;
            }
        }

        /* Анимация для списков */
        @keyframes listItem {
            from { opacity: 0; transform: translateX(-20px); }
            to { opacity: 1; transform: translateX(0); }
        }
        
        .about ul, .about p, .room-info ul {
            animation: fadeIn 0.8s ease-out;
        }
        
        .about li, .room-info li {
            animation: listItem 0.5s ease-out forwards;
            opacity: 0;
        }
        
        /* Создаем задержку для каждого элемента списка */
        .about li:nth-child(1) { animation-delay: 0.1s; }
        .about li:nth-child(2) { animation-delay: 0.2s; }
        .about li:nth-child(3) { animation-delay: 0.3s; }
        .about li:nth-child(4) { animation-delay: 0.4s; }
        .about li:nth-child(5) { animation-delay: 0.5s; }
        .about li:nth-child(6) { animation-delay: 0.6s; }
        
        .room-info li:nth-child(1) { animation-delay: 0.2s; }
        .room-info li:nth-child(2) { animation-delay: 0.3s; }
        .room-info li:nth-child(3) { animation-delay: 0.4s; }
        .room-info li:nth-child(4) { animation-delay: 0.5s; }
        .room-info li:nth-child(5) { animation-delay: 0.6s; }
        .room-info li:nth-child(6) { animation-delay: 0.7s; }
        .room-info li:nth-child(7) { animation-delay: 0.8s; }
        .room-info li:nth-child(8) { animation-delay: 0.9s; }
        .room-info li:nth-child(9) { animation-delay: 1s; }
        .room-info li:nth-child(10) { animation-delay: 1.1s; }