* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PT Serif', serif;
    line-height: 1.6;
    color: #3a211a;
    background: #efdfbd;
    background-image:
        /* Тонкая текстура дерева */
            linear-gradient(90deg, transparent 0%, rgba(58, 33, 26, 0.02) 50%, transparent 100%),
            linear-gradient(0deg, transparent 0%, rgba(58, 33, 26, 0.01) 50%, transparent 100%),
                /* Цветовые акценты */
            radial-gradient(circle at 20% 50%, rgba(155, 46, 40, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(138, 174, 144, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, rgba(58, 33, 26, 0.03) 0%, transparent 50%);
    background-size: 100px 100px, 100px 100px, 800px 800px, 600px 600px, 1000px 1000px;
    background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(rgba(58,33,26,0.8), rgba(58,33,26,0.8)), url('img/western_club.jpg') center/cover;
    color: #efdfbd;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(3px 3px 6px rgba(58, 33, 26, 0.3));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(3px 3px 6px rgba(58, 33, 26, 0.3)); }
    100% { filter: drop-shadow(3px 3px 12px rgba(155, 46, 40, 0.4)); }
}

h1 {
    font-family: 'Rye', cursive;
    font-size: 4rem;
    margin-bottom: 30px;
    text-shadow:
            3px 3px 0px #3a211a,
            6px 6px 8px rgba(0,0,0,0.3),
            0 0 20px rgba(155, 46, 40, 0.5);
    color: #efdfbd;
    letter-spacing: 3px;
    position: relative;
    transform: perspective(500px) rotateX(10deg);
}

.hero-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #efdfbd;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(145deg, #9b2e28, #7a2420);
    color: #efdfbd;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #3a211a;
    box-shadow:
            0 4px 15px rgba(58, 33, 26, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '★';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    transition: left 0.3s ease;
    opacity: 0.7;
}

.cta-button:hover {
    background: linear-gradient(145deg, #ce6f6b, #9b2e28);
    transform: translateY(-2px);
    box-shadow:
            0 6px 20px rgba(58, 33, 26, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-button:hover::before {
    left: 8px;
}

/* Контейнер для кнопок в hero секции */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Стиль для кнопки маршрута */
.route-button {
    background: linear-gradient(145deg, #8aae90, #6b8f71);
    border: 2px solid #3a211a;
}

.route-button:hover {
    background: linear-gradient(145deg, #a8c7ae, #8aae90);
}

.route-button::before {
    content: '★';
}

/* Кнопка маршрута в контактах */
.route-contact-btn {
    background: #9b2e28;
    color: #efdfbd;
}

.route-contact-btn:hover {
    background: #ce6f6b;
    color: #efdfbd;
}

/* Контейнер для кнопок в карточках контактов */
.contact-buttons {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

nav {
    background: #3a211a;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: #efdfbd;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 3px;
    transition: background 0.3s;
}

nav a:hover, nav a.active {
    background: #9b2e28;
}

/* Burger Menu Styles */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 101;
}

.burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: #efdfbd;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(58, 33, 26, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 100;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
        opacity: 0;
        transform: translateX(-50px);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.5s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.6s; }
    
    .nav-menu a {
        font-size: 1.5rem;
        padding: 15px 30px;
        border-radius: 8px;
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: #9b2e28;
        border-color: #ce6f6b;
        transform: scale(1.05);
    }
}

section {
    padding: 60px 0;
}

.section-alt {
    background: #8aae90;
    color: #efdfbd;
}

h2 {
    font-family: 'PT Serif', serif;
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #3a211a;
    position: relative;
    display: inline-block;
    width: 100%;
    letter-spacing: 1px;
}

h2::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #9b2e28, transparent);
    border-radius: 2px;
}

h2::after {
    content: '★';
    position: absolute;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    color: #9b2e28;
    font-size: 1.2rem;
}

.section-alt h2 {
    color: #efdfbd;
}

.section-alt h2::before {
    background: linear-gradient(90deg, transparent, #efdfbd, transparent);
}

.section-alt h2::after {
    color: #efdfbd;
}


.feature-card {
    background: #efdfbd;
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow:
            0 8px 25px rgba(58,33,26,0.15),
            inset 0 1px 0 rgba(255,255,255,0.3);
    text-align: center;
    border: 3px solid #3a211a;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Декоративные уголки в стиле дикого запада */
.feature-card::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    background:
            linear-gradient(45deg, transparent 30%, #9b2e28 30%, #9b2e28 70%, transparent 70%),
            linear-gradient(-45deg, transparent 30%, #9b2e28 30%, #9b2e28 70%, transparent 70%);
    background-size: 10px 10px;
    opacity: 0.3;
    transform: rotate(45deg);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #9b2e28, #ce6f6b, #8aae90, #9b2e28);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 15px 35px rgba(58,33,26,0.25);
}

.feature-card:hover::before {
    opacity: 1;
}

.section-alt .feature-card {
    background: #3a211a;
    color: #efdfbd;
    border: 3px solid #efdfbd;
}

.western-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    display: block;
    transition: all 0.3s ease;
    /* Тонирование в цвет #9b2e28 (красно-коричневый) */
    filter: brightness(0) saturate(100%) invert(19%) sepia(75%) saturate(2167%) hue-rotate(340deg) brightness(82%) contrast(92%);
}

.feature-card:hover .western-icon {
    transform: scale(1.1) rotate(5deg);
    /* При наведении тонируем в цвет #ce6f6b (светлее) */
    filter: brightness(0) saturate(100%) invert(44%) sepia(32%) saturate(1014%) hue-rotate(318deg) brightness(91%) contrast(85%);
}

/* Для альтернативных секций с зелёным фоном - светлые иконки */
.section-alt .western-icon {
    /* Тонирование в цвет #efdfbd (бежевый) */
    filter: brightness(0) saturate(100%) invert(93%) sepia(10%) saturate(606%) hue-rotate(12deg) brightness(105%) contrast(89%);
}

/* Специальные стили для больших иконок в секции кафе */
.text-center img[style*="80px"] {
    /* Тонирование в цвет #9b2e28 (красно-коричневый) для секции кафе */
    filter: brightness(0) saturate(100%) invert(19%) sepia(75%) saturate(2167%) hue-rotate(340deg) brightness(82%) contrast(92%);
}

/* Для экологической секции - светлые иконки */
.eco-info img[style*="80px"] {
    /* Тонирование в цвет #efdfbd (бежевый) */
    filter: brightness(0) saturate(100%) invert(93%) sepia(10%) saturate(606%) hue-rotate(12deg) brightness(105%) contrast(89%);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Дополнительные декоративные элементы */
.western-ornament {
    display: inline-block;
    font-size: 2rem;
    color: #9b2e28;
    margin: 0 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Улучшенные тени для всех карточек */
.room-card, .contact-card, .parking-info {
    box-shadow:
            0 10px 30px rgba(58,33,26,0.2),
            0 1px 0 rgba(255,255,255,0.1) inset;
}


@media (max-width: 768px) {
    .rooms-grid {
        grid-template-columns: 1fr;
    }
}

.room-card {
    background: #3a211a;
    color: #efdfbd;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(58,33,26,0.2);
    transition: all 0.4s ease;
    border: 3px solid #8aae90;
    position: relative;
}

.room-card::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ce6f6b"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
    background-size: contain;
    opacity: 0.7;
}

.room-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(58,33,26,0.3);
}

.room-card:hover::before {
    transform: rotate(360deg);
    transition: transform 0.6s ease;
}

.room-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.room-info {
    padding: 20px;
}

.room-price {
    font-size: 1.5rem;
    color: #ce6f6b;
    font-weight: bold;
    margin-bottom: 10px;
}


.menu-category {
    background: #efdfbd;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(58,33,26,0.15);
    border: 3px solid #3a211a;
    position: relative;
    transition: all 0.3s ease;
}

.menu-category::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    background:
            linear-gradient(135deg, #3a211a 0%, #9b2e28 50%, #3a211a 100%);
    border-radius: 15px 15px 0 0;
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    border: 1px solid rgba(155, 46, 40, 0.3);
}

.menu-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(58,33,26,0.25);
}

.menu-category h3 {
    color: #3a211a;
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-family: 'PT Serif', serif;
    font-weight: 700;
    text-align: center;
    position: relative;
    letter-spacing: 1px;
}

.menu-category h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #9b2e28;
    border-radius: 1px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #8aae90;
}

.menu-item span:last-child {
    color: #9b2e28;
    font-weight: bold;
}

.parking-info {
    background: #3a211a;
    color: #efdfbd;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 3px solid #8aae90;
}

.parking-hours {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.parking-hours > div {
    background: #8aae90;
    padding: 20px;
    border-radius: 8px;
    color: #3a211a;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-card {
    background: #efdfbd;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(58,33,26,0.2);
    text-align: center;
    border: 2px solid #3a211a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.section-alt .contact-card {
    background: #3a211a;
    color: #efdfbd;
    border: 2px solid #efdfbd;
}

.phone-number {
    font-size: 1.5rem;
    color: #9b2e28;
    font-weight: bold;
    margin: 20px 0;
}

.section-alt .phone-number {
    color: #ce6f6b;
}

h3 {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.room-price {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
}

.phone-number {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
}

.btn {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.whatsapp-btn {
    background: #8aae90;
    color: #3a211a;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    display: inline-block;
    margin: 10px;
    font-weight: bold;
    transition: background 0.3s;
}

.whatsapp-btn:hover {
    background: #ce6f6b;
    color: #efdfbd;
}

.review-link {
    display: inline-block;
    background: #9b2e28;
    color: #efdfbd;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 10px;
    transition: background 0.3s;
}

.review-link:hover {
    background: #ce6f6b;
}

.review-link.yandex {
    background: #8aae90;
    color: #3a211a;
}

.review-link.yandex:hover {
    background: #ce6f6b;
    color: #efdfbd;
}

footer {
    background: #3a211a;
    color: #efdfbd;
    text-align: center;
    padding: 40px 0;
}

.reviews-links {
    margin: 30px 0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.eco-info {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: #8aae90;
    border-radius: 10px;
    color: #efdfbd;
    border: 2px solid #3a211a;
}

.eco-info h3 {
    color: #efdfbd;
    margin-bottom: 15px;
}

.rooms-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    background: #efdfbd;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #3a211a;
    color: #3a211a;
}


.cafe-description {
    text-align: center;
    margin-bottom: 40px;
    background: #8aae90;
    padding: 20px;
    border-radius: 10px;
    color: #efdfbd;
}

.cafe-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.cafe-images img {
    width: 100%;
    border-radius: 10px;
    border: 3px solid #3a211a;
}

@media (max-width: 768px) {
    .logo {
        max-width: 280px !important;
        width: 80vw !important;
    }
}

/* Дополнительные стили для очень маленьких экранов (iPhone) */
@media (max-width: 480px) {
    .logo {
        max-width: 250px !important;
        width: 75vw !important;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1.2rem;
    }

    /* Navigation styles handled by burger menu above */

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cafe-images {
        grid-template-columns: 1fr;
    }

    .reviews-links {
        flex-direction: column;
        align-items: center;
    }

    .review-link {
        width: 100%;
        max-width: 300px;
        text-align: center;
        margin: 10px 0;
    }

    /* Мобильные стили для кнопок в hero */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}