/* СБРОС И БАЗОВЫЕ СТИЛИ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #136243;
    --primary-light: #1e7e5b;
    --primary-dark: #0d4a33;
    --bg-light: #f5f7fa;
    --text-dark: #1e293b;
    --text-soft: #334155;
    --border-color: #d1d5db;
    --white: #ffffff;
    --gray-icon: #4b5563;
    --arrow-color: #136243;
    --footer-bg: #111827;
    --footer-text: #e5e7eb;
    
    /* Цвета для информационной плашки */
    --promo-bg: #f8f4e9;
    --promo-border: #e2d9c8;
    --promo-text: #136243;
    --promo-text-hover: #1e7e5b;
    --promo-close: #9b8c78;
    --promo-close-hover: #136243;
    
    /* Цвета для карточек постеров */
    --poster-card-bg: #ffffff;
    --poster-card-hover: #f8fafc;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ИНФОРМАЦИОННАЯ ПЛАШКА */
.info-banner {
    background-color: var(--promo-bg);
    border-bottom: 2px solid var(--promo-border);
    padding: 8px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-banner.hidden {
    display: none;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.info-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--promo-text);
    transition: color 0.2s;
    flex: 1;
}

.info-link:hover {
    color: var(--promo-text-hover);
}

.info-icon {
    font-size: 1.3rem;
    line-height: 1;
    min-width: 24px;
    text-align: center;
}

.info-text {
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px dashed currentColor;
}

.info-close {
    background: none;
    border: none;
    color: var(--promo-close);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.info-close:hover {
    color: var(--promo-close-hover);
}

/* КОНТЕЙНЕР */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ШАПКА */
.header-image {
    width: 100%;
    background-color: var(--primary);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.header-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 350px;
    min-height: 120px;
    background-color: var(--primary);
}

/* НАВИГАЦИЯ */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
    min-width: 160px;
}

.back-btn:hover {
    border-color: var(--primary);
    background-color: #f9f9f9;
}

.back-arrow {
    font-size: 1.2rem;
    color: var(--primary);
}

/* ЗАГОЛОВОК РАЗДЕЛА */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-dark);
    border-left: 6px solid var(--primary);
    padding-left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title span {
    font-size: 2rem;
}

/* СЕТКА КАРТОЧЕК ПОСТЕРОВ */
.posters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0 50px;
}

/* КАРТОЧКА ПОСТЕРА */
.poster-card {
    background-color: var(--poster-card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    cursor: pointer;
}

.poster-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(19, 98, 67, 0.15);
}

.poster-image {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background-color: #f0f0f0;
}

.poster-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.poster-card:hover .poster-image img {
    transform: scale(1.05);
}

/* ИНФОРМАЦИОННЫЙ БЛОК */
.info-block {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.info-block p {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin: 10px 0;
}

.info-block p:first-child {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

/* ФУТЕР */
footer {
    margin-top: 50px;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0 30px;
    border-top: 1px solid #2d3748;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 40px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    cursor: pointer;
}

.footer-links a:hover {
    color: white;
    border-bottom-color: var(--primary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
}

.social-icon {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.social-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.footer-note {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    max-width: 800px;
    margin: 20px auto 0;
}

/* МОДАЛЬНЫЕ ОКНА */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    max-width: 500px;
    width: 90%;
    padding: 0;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s ease;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal-image {
    width: 100%;
    max-height: 60vh;
    overflow: hidden;
    background: #f0f0f0;
}

.modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-link-wrapper {
    padding: 25px 30px 30px;
    text-align: center;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.modal-link:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(19, 98, 67, 0.3);
}

.modal-link:active {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.2s;
    border: none;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Модальное окно для информации */
.info-modal-content {
    background-color: white;
    max-width: 400px;
    width: 90%;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s ease;
}

.info-modal-content h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.8rem;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.info-modal-content p {
    line-height: 1.6;
    color: var(--text-soft);
    margin-bottom: 15px;
}

.close-modal-info {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-icon);
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

.close-modal-info:hover {
    color: var(--primary);
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 24px;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 16px;
    display: inline-block;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #334155;
}

.empty-state p {
    color: #64748b;
}

/* АДАПТАЦИЯ */
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .back-btn {
        width: 100%;
        min-width: unset;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .posters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .modal-link {
        padding: 16px 28px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.4rem;
    }
    
    .posters-grid {
        gap: 15px;
    }
    
    .modal-link {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .modal-link-wrapper {
        padding: 20px 25px 25px;
    }
}