/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff5e14;
    --secondary-color: #92400e;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8f8f8;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: white;
}

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

/* ===== АНИМАЦИИ ПОЯВЛЕНИЯ ===== */
.anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.anim-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-fade {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.anim-fade.visible {
    opacity: 1;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 94px;
    transition: height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
}

.header.scrolled {
    height: 72px;
    background: var(--white);
    box-shadow: var(--shadow);
}

/* Ключевое исправление: container должен иметь высоту 100% */
.header > .container {
    height: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: height 0.3s ease;
    display: block;
}

.logo-color {
    display: none;
}

.header.scrolled .logo-white {
    display: none;
}

.header.scrolled .logo-color {
    display: block;
}

.header.scrolled .logo-img {
    height: 48px;
}

.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.header.scrolled .nav-link {
    color: var(--text-color);
}

.header.scrolled .nav-link:hover {
    color: var(--primary-color);
}

.header-phone {
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    transition: color 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.header.scrolled .header-phone {
    color: var(--primary-color);
}

/* ===== БУРГЕР-КНОПКА (скрыта на десктопе) ===== */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    flex-shrink: 0;
}

.burger-line {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.header.scrolled .burger-line {
    background: var(--text-color);
}

/* Анимация бургера в крестик */
.burger-btn.active .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.burger-btn.active .burger-line {
    background: var(--text-color) !important;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80%;
    height: 100%;
    background: var(--white);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    padding: 80px 30px 30px;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* ===== HERO СЛАЙДШОУ ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    animation: kenBurns 6s ease-in-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hero-slide-1 {
    background-image: url('slide1.jpg');
}

.hero-slide-2 {
    background-image: url('slide2.jpg');
}

.hero-slide-3 {
    background-image: url('slide3.jpg');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 20px;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===== КНОПКИ ===== */
.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Пульсация кнопки */
.pulse-btn {
    animation: pulse 2s infinite;
}

.pulse-btn:hover {
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(217, 119, 6, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(217, 119, 6, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(217, 119, 6, 0.3);
    }
}

/* ===== СЕКЦИИ ===== */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}

/* ===== МЕНЮ ===== */
.menu {
    background: var(--bg-light);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.tab-button {
    flex: 1;
    min-width: 120px;
    padding: 14px 20px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 0;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button.active {
    background: var(--primary-color);
    color: var(--white);
}

.tab-content {
    margin-bottom: 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.menu-item {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.menu-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-img-clickable {
    cursor: pointer;
}

.menu-img-clickable:hover {
    transform: scale(1.05);
}

.menu-item h4 {
    padding: 15px 15px 5px;
    font-size: 18px;
    font-weight: 600;
}

.menu-item p {
    padding: 0 15px;
    color: var(--text-light);
    font-size: 14px;
}

.menu-item .price {
    display: block;
    padding: 10px 15px 15px;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
}

/* ===== ОТДЕЛЬНЫЙ БЛОК CTA ===== */
.menu-cta-section {
    background: var(--bg-light);
    padding: 0 0 60px 0;
}

.menu-cta {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 0;
    box-shadow: var(--shadow);
}

.menu-cta-text {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* ===== КАРУСЕЛЬ ===== */
.gallery {
    background: var(--white);
}

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 50%;
    padding: 0 10px;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.carousel-slide:hover img {
    transform: scale(1.03);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.carousel-btn.prev {
    left: -24px;
}

.carousel-btn.next {
    right: -24px;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--white);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-item {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.feature-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.feature-body {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--bg-light);
    border: 2px solid var(--primary-color);
}

.feature-text-wrap {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
}

.feature-text {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.5;
}

/* ===== НАШИ ЗАЛЫ ===== */
.halls {
    background: var(--bg-light);
}

.halls-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.halls-track-container {
    overflow: hidden;
}

.halls-track {
    display: flex;
    transition: transform 0.6s ease;
}

.halls-slide {
    flex: 0 0 33.333%;
    padding: 0 10px;
    cursor: pointer;
}

.halls-slide img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 0;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.halls-slide:hover img {
    transform: scale(1.03);
}

/* ===== КОНТАКТЫ ===== */
.contacts {
    background: var(--white);
}

.contacts-content {
    text-align: center;
}

.contact-phone {
    display: inline-block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 20px;
    min-height: 1.2em;
    border-right: 3px solid var(--primary-color);
    padding-right: 4px;
    animation: blinkCaret 0.7s step-end infinite;
}

.contact-phone.typing-done {
    border-right-color: transparent;
    animation: none;
}

@keyframes blinkCaret {
    from, to { border-right-color: transparent; }
    50% { border-right-color: var(--primary-color); }
}

.contact-text {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 20px;
}

/* Запрет скролла при открытом lightbox или мобильном меню */
body.lightbox-open,
body.menu-open {
    overflow: hidden;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Мобильная версия: до 747px */
@media (max-width: 747px) {
    .header-nav {
        display: none;
    }

    .header-phone {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 16px;
    }

    .burger-btn {
        display: flex;
    }

    .header-logo {
        position: relative;
        z-index: 1;
    }
}

@media (min-width: 748px) {
    .burger-btn {
        display: none;
    }

    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .section-title {
        font-size: 36px;
    }

    .carousel-slide {
        flex: 0 0 50%;
    }

    .halls-slide {
        flex: 0 0 33.333%;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .menu-items {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        gap: 30px;
    }

    .menu-item {
        max-width: 500px;
        width: 100%;
    }

    .contact-phone {
        font-size: 48px;
    }

    .header-nav {
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }

    .carousel-slide {
        flex: 0 0 25%;
    }

    .halls-slide {
        flex: 0 0 33.333%;
    }

    .menu-items {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        gap: 40px;
    }

    .menu-item {
        max-width: 600px;
        width: 100%;
    }
}