/* Импорт шрифтов */
@font-face {
    font-family: 'Bonapart Modern';
    src: url('assets/fonts/bonapart_modern.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'The Weekend';
    src: url('assets/fonts/the_weekend.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tkachev Lugatype';
    src: url('assets/fonts/Tkachev-Lugatype.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tilda Sans';
    src: url('assets/fonts/tilda-sans_regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jemima';
    src: url('assets/fonts/Jemima-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS переменные для современного дизайна */
:root {
    /* Цветовая палитра */
    --primary-color: #d4af37;
    --primary-dark: #b8941f;
    --secondary-color: #1a1a1a;
    --accent-color: #8b4513;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --text-muted: #dfdfdf;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --border-color: #333333;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    
    /* Типографика */
    --font-heading: 'Tkachev Lugatype', serif;
    --font-body: 'Jemima', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Размеры и отступы */
    --container-max-width: 1200px;
    --section-padding: clamp(4rem, 10vw, 8rem);
    --border-radius: 8px;
    --border-radius-large: 16px;
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);
}

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

/* Предотвращение лишних скролл-баров */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Убираем скролл-бары у элементов */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    width: 100%;
}

/* Доступность */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem clamp(1rem, 4vw, 2rem);
    max-width: var(--container-max-width);
    margin: 0 auto;
    gap: clamp(1rem, 3vw, 3rem);
    width: 100%;
}

.nav-logo {
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    flex-shrink: 0;
}

.nav-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo h1 {
    color: var(--primary-color);
    font-family: 'Bonapart Modern', var(--font-heading);
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    user-select: none;
    white-space: nowrap;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.logo-small {
    font-size: 0.7em;
    font-weight: 200;
    color: var(--text-secondary);
}

.logo-main {
    font-size: 1em;
    font-weight: 300;
    color: var(--primary-color);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    position: relative;
    padding: 0.5rem 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color);
    outline: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.bar {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-normal);
    border-radius: 1px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
    min-width: 44px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-primary);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-height: 36px;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    min-height: 56px;
}

/* Главная секция */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    width: 100%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, rgba(10, 10, 10, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
    z-index: 2;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: fadeIn 1s ease-out 0.2s both;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.hero-logo {
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.1s both;
}

.hero-logo-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-normal);
}

.hero-logo-img:hover {
    transform: scale(1.05);
}


.hero-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
    animation: fadeIn 1s ease-out 0.4s both;
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 0.6s both;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.feature-icon {
    width: clamp(2rem, 5vw, 2.5rem);
    height: clamp(2rem, 5vw, 2.5rem);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-buttons {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.8s both;
}

/* Анимации */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideInFromLeft {
    from { 
        opacity: 0; 
        transform: translateX(-50px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideInFromRight {
    from { 
        opacity: 0; 
        transform: translateX(50px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* Секции */
section {
    padding: var(--section-padding) 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 8vw, 5rem);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 0.1em;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.5;
    letter-spacing: 0.05em;
}

/* О нас */
.about-section {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 8vw, 5rem);
    align-items: center;
}

.about-text {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.about-img:hover {
    transform: scale(1.02);
}

/* Меню */
.menu-section {
    background: var(--bg-primary);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.menu-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.5rem, 3vw, 2rem);
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    position: relative;
    white-space: nowrap;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.tab-btn:hover,
.tab-btn:focus,
.tab-btn.active {
    color: var(--primary-color);
    outline: none;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn var(--transition-slow) ease-out;
}

.tab-content[hidden] {
    display: none !important;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: clamp(2rem, 5vw, 3rem);
}

.menu-item {
    background: var(--bg-secondary);
    padding: clamp(2rem, 5vw, 3rem);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    transition: all var(--transition-normal);
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.menu-item:hover::before,
.menu-item:focus::before {
    opacity: 1;
}

.menu-item:hover,
.menu-item:focus {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    outline: none;
}

.menu-item.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(212, 175, 55, 0.1) 100%);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.menu-item-header h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: 1.3;
    letter-spacing: 0.08em;
}

.badge {
    background: var(--primary-color);
    color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-item p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.weight {
    color: var(--text-muted);
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    font-weight: 400;
}

/* Мероприятия */
.events-section {
    background: var(--bg-secondary);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: clamp(2rem, 5vw, 3rem);
}

.event-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: clamp(2rem, 5vw, 3rem);
    transition: all var(--transition-normal);
    display: flex;
    align-items: flex-start;
    gap: clamp(1.5rem, 4vw, 2rem);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.event-card:hover::before,
.event-card:focus::before {
    opacity: 1;
}

.event-card:hover,
.event-card:focus {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    outline: none;
}

.event-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--bg-primary);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.event-icon svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.event-icon:hover {
    transform: scale(1.1);
}

.event-info h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: 0.08em;
}

.event-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.event-time {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-time span {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Стили для иконок времени и календаря в карточках событий */
.time-icon,
.calendar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.time-icon svg,
.calendar-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
}

/* Галерея */
.gallery-section {
    background: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-item .image-placeholder {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    font-size: 1.2rem;
}

/* Бронирование */
.reservation-section {
    background: var(--bg-secondary);
}

.reservation-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Стили для ошибок валидации */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.field-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    animation: fadeIn 0.3s ease;
}

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

/* Скрытые элементы */
.hidden {
    display: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Контакты */
.contact-section {
    background: var(--bg-primary);
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 8vw, 5rem);
}

.contact-info {
    display: flex;
    justify-content: space-around;
    gap: clamp(2rem, 5vw, 3rem);
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 
        0 15px 40px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.contact-details h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.contact-details p {
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.contact-details a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent-secondary);
}

/* Секция карты */
.map-section {
    width: 100%;
    margin-bottom: clamp(2rem, 6vw, 4rem);
}

.map-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 0.15em;
    font-weight: 600;
}

#yandex-map {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Убираем возможные блокировки интерактивности */
#yandex-map * {
    pointer-events: auto !important;
}

/* Анимация для маркера на карте */
@keyframes markerPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Применяем анимацию к маркеру */
.ymaps-2-1-placemark-overlay {
    animation: markerPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

/* Дополнительные стили для маркера */
.ymaps-2-1-placemark {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

#yandex-map canvas {
    pointer-events: auto !important;
}

/* Стили для элементов управления картой */
.ymaps-2-1-zoom {
    pointer-events: auto !important;
}

.ymaps-2-1-controls__control {
    pointer-events: auto !important;
}

.transport-info {
    display: flex;
    justify-content: space-around;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    flex-wrap: wrap;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-md);
    margin-top: 1.5rem;
}

.transport-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 280px;
}

.transport-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    color: var(--primary-color);
}

.transport-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
}

/* Специальный стиль для иконки телефона - делаем её золотой */
.transport-item:nth-child(2) .transport-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    color: var(--primary-color);
}

.transport-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-align: center;
}

.transport-item p {
    margin: 0.25rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
}

.transport-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-normal);
    font-weight: 500;
}

.transport-item a:hover {
    color: var(--accent-secondary);
}

/* Футер */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: clamp(3rem, 8vw, 5rem) 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
}

.footer-logo h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.footer-logo p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-links a svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
}

.social-links a:hover,
.social-links a:focus {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    outline: none;
}

.social-links a:hover svg,
.social-links a:focus svg {
    fill: var(--bg-primary);
}

.footer-links h4,
.footer-info h4,
.footer-contact h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
    -webkit-tap-highlight-color: transparent;
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--primary-color);
    outline: none;
}

.footer-info p,
.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Стили для иконок в футере */
.footer-contact p:first-child,
.footer-contact p:nth-child(2) {
    color: var(--text-primary);
}

.phone-icon,
.location-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.phone-icon svg,
.location-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .container {
        padding: 0 clamp(1rem, 3vw, 1.5rem);
    }
}

@media (max-width: 992px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    

    

    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* Предотвращение скролл-баров */
    html, body {
        overflow-x: hidden;
    }
    
    /* Навигация */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-container {
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-logo h1 {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
        overflow-wrap: break-word;
    }
    
    .nav-actions {
        display: none;
    }
    
    /* Hero секция */
    .hero {
        min-height: 500px;
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3.5vw, 1.3rem);
        padding: 0 1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Дополнительные исправления для маленьких экранов */
    .hero-logo-img {
        width: 80px;
        height: 80px;
    }
    
    .feature-icon {
        width: clamp(1.5rem, 4vw, 2rem);
        height: clamp(1.5rem, 4vw, 2rem);
    }
    
    .menu-tabs {
        flex-direction: column;
        align-items: center;
        border-bottom: none;
        gap: 0;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
        border-bottom: 1px solid var(--border-color);
        justify-content: center;
    }
    
    .tab-btn.active::after {
        display: none;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .event-icon {
        margin-bottom: 0.5rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .feature-icon {
        width: clamp(1.8rem, 4vw, 2.2rem);
        height: clamp(1.8rem, 4vw, 2.2rem);
    }
    
    /* Адаптивность для контактов */
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .contact-item {
        min-width: auto;
        width: 100%;
        max-width: 350px;
        padding: 1.5rem;
    }
    
    #yandex-map {
        height: 400px;
    }
    
    .transport-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .transport-item {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .nav-logo h1 {
        font-size: clamp(0.8rem, 3vw, 1rem);
        letter-spacing: 1px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero {
        min-height: 400px;
        padding: 1.5rem 0.5rem;
    }
    
    .hero-content {
        padding: 0.5rem;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        padding: 0 0.25rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        padding: 0 0.5rem;
    }
    
    .hero-features {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .menu-item,
    .event-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .feature-icon {
        width: clamp(1.5rem, 3.5vw, 2rem);
        height: clamp(1.5rem, 3.5vw, 2rem);
    }
    
    /* Адаптивность для контактов на мобильных */
    .contact-item {
        padding: 1.25rem;
        min-width: auto;
    }
    
    .contact-icon {
        font-size: 2rem;
    }
    
    #yandex-map {
        height: 350px;
    }
    
    .transport-info {
        padding: 1.25rem;
        gap: 1.25rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 320px) {
    /* Предотвращение скролл-баров */
    html, body {
        overflow-x: hidden;
    }
    
    .nav-container {
        padding: 0.25rem;
        gap: 0.25rem;
    }
    
    .nav-logo h1 {
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
        letter-spacing: 0.5px;
    }
    
    .hero {
        padding: 1rem 0.25rem;
    }
    
    .hero-content {
        padding: 0.25rem;
    }
    
    .hero-title {
        font-size: clamp(1.3rem, 4vw, 1.6rem);
        padding: 0 0.1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        padding: 0 0.25rem;
    }
    
    .hero-features {
        gap: 0.75rem;
        padding: 0 0.25rem;
    }
    
    .hero-buttons {
        gap: 0.5rem;
        padding: 0 0.25rem;
    }
    
    .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        max-width: 250px;
    }
    
    .section-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        padding: 0 0.25rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
}

/* Планшеты в портретной ориентации */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Планшеты в ландшафтной ориентации */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

/* Большие экраны */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 4rem;
    }
}



/* Высокие экраны */
@media (min-height: 1000px) {
    .hero {
        min-height: 80vh;
    }
    
    section {
        padding: 8rem 0;
    }
}

/* Поддержка тёмной темы */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0a0a;
        --bg-secondary: #1a1a1a;
        --bg-tertiary: #2a2a2a;
    }
}

/* Поддержка уменьшенного движения */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Поддержка высокого DPI */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background {
        background-image: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    }
}

/* Поддержка hover на устройствах с hover */
@media (hover: hover) {
    .menu-item:hover,
    .event-card:hover {
        transform: translateY(-4px);
    }
}

/* Поддержка touch устройств */
@media (hover: none) and (pointer: coarse) {
    .menu-item:active,
    .event-card:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
}

/* Дополнительные стили для улучшения UX */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Улучшенная доступность для фокуса */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Улучшенная читаемость текста */
p, li {
    text-rendering: optimizeLegibility;
}

/* Улучшенная производительность анимаций */
.menu-item,
.event-card,
.gallery-item {
    will-change: transform;
}

/* Улучшенная поддержка печати */
@media print {
    .navbar,
    .hero-scroll,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero {
        height: auto;
        min-height: auto;
    }
}

/* Адаптивность для контактов */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .contact-item {
        min-width: auto;
        width: 100%;
        max-width: 350px;
        padding: 1.5rem;
    }
    
    #yandex-map {
        height: 400px;
    }
    
    .transport-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .transport-item {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .contact-info {
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.25rem;
        min-width: auto;
    }
    
    .contact-icon {
        font-size: 2rem;
    }
    
    #yandex-map {
        height: 350px;
    }
    
    .transport-info {
        padding: 1.25rem;
        gap: 1.25rem;
    }
}
