/* ============================================================
   ПОДКЛЮЧЕНИЕ ШРИФТОВ
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ============================================================
   АДАПТИВНАЯ ВЁРСТКА · mobile-first
   ПАЛИТРА — только три цвета:
     Красный  #be1823  rgb(190, 24, 35)
     Чёрный   #000000  rgb(0, 0, 0)
     Белый    #ffffff  rgb(255, 255, 255)
   Полутени/обводки — прозрачность этих же цветов.
   ШРИФТЫ:
     Заголовочный — Bebas Neue
     Основной    — Montserrat
   Брейкпоинты: 520 · 640 · 768 · 900 · 1200
   ============================================================ */

/* ---------- ПЕРЕМЕННЫЕ ---------- */
:root {
    /* палитра */
    --red:   #be1823;
    --black: #000000;
    --white: #ffffff;

    /* производные красного */
    --red-glow:  rgba(190, 24, 35, .45);
    --red-line:  rgba(190, 24, 35, .35);
    --red-faint: rgba(190, 24, 35, .12);

    /* производные белого/чёрного */
    --surface:    rgba(255, 255, 255, .06);
    --line:       rgba(255, 255, 255, .14);
    --text:       var(--white);
    --text-dim:   rgba(255, 255, 255, .72);
    --text-faint: rgba(255, 255, 255, .5);

    /* типографика */
    --font-heading: 'Bebas Neue', 'Impact', 'Arial Narrow', sans-serif;
    --font-body:    'Montserrat', 'Segoe UI', system-ui, sans-serif;

    /* «резиновые» значения */
    --container-pad: clamp(16px, 4vw, 32px);
    --section-gap:   clamp(40px, 7vw, 80px);
    --grid-gap:      clamp(16px, 2.5vw, 25px);
}

/* ---------- СБРОС И БАЗА ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--black);
    color: var(--text);
    line-height: 1.6;
    min-height: 100dvh;
}

img, video, svg { max-width: 100%; }

::selection { background: var(--red); color: var(--white); }

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
    border-radius: 6px;
}

[id] { scroll-margin-top: 80px; }

.container {
    width: 100%;
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* ---------- ШАПКА ---------- */
header {
    background-color: var(--black);
    color: var(--white);
    padding: clamp(24px, 5vw, 42px) 0 clamp(16px, 3vw, 22px);
    margin-bottom: clamp(24px, 4vw, 44px);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 4px 24px var(--red-glow);
}

.image {
    display: flex;
    align-items: center;
    margin-right: 1%;
    margin-bottom: 2vmin;
    width: clamp(48px, 10vmin, 96px);
    height: auto;
}

/* телефон: колонкой и по центру */
.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(12px, 2.5vw, 28px);
}

.logo {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 8vw + .4rem, 4.2rem); /* Bebas Neue мельче визуально, чем Montserrat — увеличиваем */
    font-weight: 400;
    letter-spacing: clamp(2px, .6vw, 6px);
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--white), var(--red) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px var(--red-glow);
    line-height: 1;
}

.site-description {
    font-family: var(--font-body);
    font-size: clamp(.95rem, 1.2vw + .5rem, 1.2rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-dim);
    max-width: 46ch;
    border-top: 2px solid var(--red);
    padding-top: 14px;
}

/* планшет и шире: логотип и описание в строку */
@media (min-width: 640px) {
    .logo-area {
        flex-direction: row;
        flex-wrap: wrap;
        text-align: left;
    }
    .site-description {
        border-top: none;
        padding-top: 0;
        border-left: 3px solid var(--red);
        padding-left: clamp(16px, 2.5vw, 25px);
    }
}

/* ---------- НАВИГАЦИЯ ---------- */
.nav-links {
    margin-top: clamp(18px, 3vw, 30px);
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(18px, 3.5vw, 30px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--red-line);
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(1.15rem, .8vw + .9rem, 1.5rem); /* Bebas Neue визуально компактнее Montserrat */
    letter-spacing: clamp(1px, .2vw, 2px);
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--text-dim);
    text-decoration: none;
    transition: color .3s, text-shadow .3s;
}
.nav-links a:hover {
    color: var(--red);
    text-shadow: 0 0 10px var(--red-glow);
}

@media (min-width: 768px) {
    .nav-links {
        flex-wrap: wrap;
        overflow: visible;
    }
}

/* ---------- ЛИПКАЯ НАВИГАЦИЯ ---------- */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--red);
    box-shadow: 0 4px 15px var(--red-faint);
}

.sticky-nav .nav-links {
    margin-top: 0;
    padding: 14px 0;
    border-bottom: none;
}
@media (min-width: 768px) {
    .sticky-nav .nav-links { padding: 16px 0; }
}

.sticky-nav a { position: relative; padding: 4px 2px; }

.sticky-nav a.active-link {
    color: var(--red);
    text-shadow: 0 0 8px var(--red-glow);
}
.sticky-nav a.active-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--red);
    box-shadow: 0 0 8px var(--red-glow);
}

/* ---------- ЗАГОЛОВКИ СЕКЦИЙ ---------- */
.section-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(2rem, 4.5vw + .5rem, 3.4rem);
    margin: var(--section-gap) 0 clamp(20px, 3.5vw, 34px);
    position: relative;
    display: inline-block;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: clamp(2px, .4vw, 4px);
    line-height: 1;
}
.section-title:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80%;
    height: 4px;
    background: var(--red);
    border-radius: 2px;
    box-shadow: 0 0 12px var(--red-glow);
}

/* ---------- СЕТКА КАРТОЧЕК ---------- */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
    margin: clamp(24px, 4vw, 40px) 0;
}
@media (min-width: 520px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- КАРТОЧКА ---------- */
.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: clamp(12px, 1.5vw, 16px);
    overflow: hidden;
    box-shadow: 0 10px 20px var(--red-faint);
    transition: transform .3s, box-shadow .3s, border-color .3s;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--red-line);
}

.card-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
    border-bottom: 3px solid var(--red);
}

.card-content {
    flex-grow: 1;
    padding: clamp(14px, 2vw, 20px) clamp(12px, 1.8vw, 16px);
    background: var(--surface);
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem);
    letter-spacing: clamp(.5px, .15vw, 1.5px);
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--white);
    line-height: 1.1;
}
.card-subtitle {
    font-family: var(--font-body);
    font-size: clamp(.8rem, .5vw + .7rem, .9rem);
    font-weight: 600;
    color: var(--red);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.card-desc {
    font-family: var(--font-body);
    font-size: clamp(.8rem, .5vw + .7rem, .9rem);
    font-weight: 400;
    color: var(--text-dim);
}

/* ---------- КНОПКА НАЗАД ---------- */
.back-link {
    display: inline-block;
    margin: clamp(20px, 3vw, 30px) 0;
    padding: clamp(10px, 1.5vw, 12px) clamp(22px, 3vw, 30px);
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: clamp(1rem, .6vw + .9rem, 1.3rem);
    font-weight: 400;
    letter-spacing: clamp(1px, .3vw, 3px);
    text-transform: uppercase;
    border-radius: 40px;
    transition: background .3s, color .3s, box-shadow .3s;
    border: 1px solid rgba(255, 255, 255, .3);
}

/* ---------- ФУТЕР ---------- */
footer {
    background: var(--black);
    color: var(--text-faint);
    font-family: var(--font-body);
    text-align: center;
    padding: clamp(32px, 6vw, 50px) 0;
    margin-top: var(--section-gap);
    border-top: 2px solid var(--red);
    font-size: clamp(.85rem, .5vw + .7rem, 1rem);
}

/* ---------- КАРУСЕЛЬ НОВОСТЕЙ ---------- */
.news-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: clamp(24px, 4vw, 40px) 0 20px;
    width: 100%;
    overflow: hidden;
}

.news-carousel {
    display: flex;
    gap: clamp(12px, 2vw, 20px);
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 10px 0 20px;
}
.news-carousel::-webkit-scrollbar { display: none; }

.news-card {
    flex: 0 0 clamp(240px, 78vw, 300px);
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--red-line);
    border-radius: clamp(12px, 1.5vw, 16px);
    padding: clamp(15px, 2vw, 20px);
    box-shadow: 0 10px 20px var(--red-faint);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.news-date {
    font-family: var(--font-heading);
    color: var(--red);
    font-size: clamp(.85rem, .5vw + .7rem, 1rem);
    letter-spacing: clamp(1px, .2vw, 2px);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.news-title {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--white);
    font-size: clamp(1.3rem, 1.2vw + 1rem, 1.8rem);
    letter-spacing: clamp(.5px, .15vw, 1.5px);
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.1;
}
.news-excerpt {
    font-family: var(--font-body);
    color: var(--text-dim);
    font-size: clamp(.85rem, .5vw + .75rem, .95rem);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 15px;
}
.news-link {
    font-family: var(--font-heading);
    color: var(--red);
    text-decoration: none;
    letter-spacing: clamp(.5px, .15vw, 1.5px);
    text-transform: uppercase;
    font-size: clamp(.95rem, .5vw + .8rem, 1.15rem);
    display: inline-block;
    transition: color .3s;
}
.news-link:hover { color: var(--white); }

/* Стрелки карусели */
.carousel-btn {
    display: none;
    background: var(--red);
    color: var(--white);
    border: none;
    width: clamp(34px, 3.5vw, 40px);
    height: clamp(34px, 3.5vw, 40px);
    border-radius: 50%;
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background .3s, color .3s, box-shadow .3s;
    z-index: 10;
    box-shadow: 0 0 15px var(--red-glow);
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .carousel-btn { display: flex; }
    .prev-btn { margin-right: 10px; }
    .next-btn { margin-left: 10px; }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(8px, 1.2vw, 10px);
    margin: 20px 0 clamp(24px, 4vw, 40px);
}
.dot {
    width: clamp(10px, 1.4vw, 12px);
    height: clamp(10px, 1.4vw, 12px);
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .22);
    cursor: pointer;
    transition: background .3s, transform .3s;
}
.dot.active {
    background: var(--red);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--red-glow);
}

/* ---------- ХОВЕР ТОЛЬКО ДЛЯ МЫШИ ---------- */
@media (hover: hover) {
    .card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 30px var(--red-glow);
        border-color: var(--red);
    }
    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px var(--red-glow);
        border-color: var(--red);
    }
    .back-link:hover {
        background: var(--white);
        color: var(--black);
        box-shadow: 0 0 20px var(--red-glow);
    }
    .carousel-btn:hover {
        background: var(--white);
        color: var(--red);
        box-shadow: 0 0 20px var(--red-glow);
    }
    .dot:hover { background: rgba(190, 24, 35, .6); }
}

/* ---------- СЛУЖЕБНЫЕ БЛОКИ ---------- */
.actor-quick-info strong { display: block; width: 100%; margin-bottom: 6px; }
@media (min-width: 768px) {
    .actor-quick-info strong { display: inline-block; width: auto; margin: 0 6px 0 0; }
}

/* ---------- СНИЖЕНИЕ АНИМАЦИЙ ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- 4. ПРЕМЬЕРА МЕСЯЦА ---------- */
.premiere-grid { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 900px) {
    .premiere-grid { grid-template-columns: minmax(280px, 420px) 1fr; align-items: start; }
}
.premiere-poster { position: relative; }
.premiere-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--red-line);
    box-shadow: 0 20px 40px var(--red-faint);
}
.premiere-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 8px;
}
.premiere-info .section-title { margin: 0 0 16px; }
.premiere-text { color: var(--text-dim); max-width: 60ch; }
.premiere-meta {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 18px 0 26px;
    color: var(--text-dim);
}
.premiere-meta strong { color: var(--red); }

/* ---------- 5. ГАЛЕРЕЯ ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(10px, 1.5vw, 16px);
    margin: 30px 0;
}
@media (min-width: 900px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery-grid img:first-child { grid-column: span 2; grid-row: span 2; } /* крупное первое фото */
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--red-line);
    transition: transform .4s, box-shadow .4s;
}
@media (hover: hover) {
    .gallery-grid img:hover { transform: scale(1.03); box-shadow: 0 12px 30px var(--red-glow); }
}