:root {
    /* Цветовая палитра */
    --primary-kp: #3424449d;
    --secondary-kp: #451b88a9;
    --primary: #6a11cb;
    --primary-light: rgba(168, 168, 168, 0.2);
    --secondary: #2575fc;
    --secondary-light: rgba(37, 117, 252, 0.2);
    --accent: #ff4d4d;
    --accent-light: rgba(255, 77, 77, 0.2);
    --dark: #1a1a2e;
    --dark-light: rgba(26, 26, 46, 0.8);
    --light: #f8f9fa;
    --light-dark: rgba(248, 249, 250, 0.1);
    --gray: #6c757d;
    --gray-light: rgba(108, 117, 125, 0.5);

    /* Тени */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 15px rgba(106, 17, 203, 0.4);

    /* Переходы */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --transition-fast: all 0.15s ease;

    /* Закругления */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50px;

    /* Отступы */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;

    /* Типография */
    --font-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: var(--font-base);
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-xxl: 1.5rem;
    --text-xxxl: 2rem;
    --text-xxxxl: 2.5rem;
    --text-xxxxxl: 3.5rem;
}

/* Базовые стили */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    line-height: 1.6;
    color: var(--light);
    background: linear-gradient(135deg, var(--dark), #16213e);
    min-height: 100vh;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Типография */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: var(--text-xxxxxl);
}

h2 {
    font-size: var(--text-xxxxl);
}

h3 {
    font-size: var(--text-xxxl);
}

h4 {
    font-size: var(--text-xxl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--light);
    box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(106, 17, 203, 0.6);
}

.btn--outline {
    background: transparent;
    color: var(--light);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-lg) 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light-dark);
    transition: var(--transition);
}

.header.scrolled {
    padding: var(--space-md) 5%;
    background: rgba(10, 10, 20, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xxl);
    font-weight: 700;
    color: var(--light);
    transition: var(--transition);
    z-index: 1002;
}

.logo:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.logo__icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: var(--text-xxl);
    cursor: pointer;
    z-index: 1002;
    padding: var(--space-sm);
}

/* Секции */
.section {
    padding: var(--space-xxl) 5%;
}

.section__title {
    font-size: var(--text-xxxxl);
    margin-bottom: var(--space-xxl);
    text-align: center;
    position: relative;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 3px;
}

/* О киноклубе */
.about {
    background: rgba(10, 10, 20, 0.7);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: 0.3;
    z-index: -1;
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xxl);
    max-width: 1200px;
    margin: 0 auto;
}

/* FAQ сетка */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    width: 100%;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: var(--transition);
    border-left: 3px solid transparent;
    height: 100%;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-left: 3px solid var(--accent);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.faq-question h3 {
    margin: 0;
    font-size: var(--text-lg);
    color: var(--light);
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.faq-icon {
    font-size: var(--text-xxl);
    background: var(--primary-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-answer {
    margin-top: var(--space-sm);
    padding-left: 0;
    opacity: 0.9;
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* Цитата */
.about__quote {
    font-style: italic;
    margin: var(--space-xl) auto;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    position: relative;
    border: 1px solid var(--light-dark);
    max-width: 800px;
    width: 100%;
}

.quote-icon {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-md);
    font-size: var(--text-xxxl);
    color: rgba(255, 77, 77, 0.2);
}

.about__quote p {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.quote-author {
    text-align: right;
    color: var(--accent);
    font-weight: 600;
}

/* Контейнер с изображением */
.image-container-wrapper {
    width: 100%;
    margin-top: var(--space-xl);
}

.image-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 600px;
}

.main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.film-strip {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 20px,
            rgba(255, 255, 255, 0.1) 20px, rgba(255, 255, 255, 0.1) 22px);
    z-index: 2;
    pointer-events: none;
}

.projector-light {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    filter: blur(5px);
    z-index: 3;
    animation: projector 4s infinite alternate;
}

.cine-logo {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--text-xxxl);
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    z-index: 3;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Контакты */
.contacts {
    padding: var(--space-xxl) 5%;
    background: rgba(10, 10, 20, 0.7);
}

.contacts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.contact-card__icon {
    font-size: var(--text-xxxl);
    margin-bottom: var(--space-md);
    color: var(--secondary);
}

.contact-card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.contact-card__link {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: var(--space-sm);
}

.contact-card__link:hover {
    color: var(--accent);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

@keyframes projector {
    0% {
        transform: translate(-10px, -10px);
    }

    100% {
        transform: translate(10px, 10px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Сообщения о загрузке */
.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    color: var(--gray);
    grid-column: 1 / -1;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: var(--space-sm);
}

/* Специальные классы */
.gradient-link {
    color: var(--light);
    text-decoration: none;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    position: relative;
}

.gradient-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: var(--transition);
}

.gradient-link:hover::after {
    height: 2px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: relative;
        right: auto;
        top: auto;
    }

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

    .image-container {
        height: 300px;
    }

    .cine-logo {
        font-size: var(--text-xxl);
    }

    body {
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    :root {
        --space-xl: 1.5rem;
        --space-lg: 1rem;
        --space-md: 0.75rem;
    }

    .section__title {
        font-size: var(--text-xl);
    }

    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-sm);
    }

    .image-container {
        height: 250px;
    }

    .cine-logo {
        font-size: var(--text-xl);
        bottom: var(--space-lg);
    }
}

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