/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.75;
    font-size: 16px;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== VARIABLES ===== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-card: #151515;
    --bg-card-hover: #1a1a1a;
    --text-primary: #f0ece4;
    --text-secondary: #b8b2a6;
    --text-muted: #7a756c;
    --accent: #a83232;
    --accent-light: #c94444;
    --accent-dark: #7a1e1e;
    --accent-glow: rgba(168, 50, 50, 0.25);
    --border: #1f1d1a;
    --nav-height: 70px;
    --container: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.section__subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 300;
}

/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
    transition: var(--transition);
}

.nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav__logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.nav__logo:hover .nav__logo-img {
    opacity: 0.8;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

.nav__links a:hover {
    color: var(--text-primary);
}

.nav__links a:hover::after {
    width: 100%;
}

.nav__cta {
    background: var(--accent);
    color: var(--bg-primary) !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.nav__cta::after { display: none !important; }

.nav__cta:hover {
    background: var(--accent-light);
    color: var(--bg-primary) !important;
    transform: translateY(-1px);
}

/* Burger */
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__burger.active span:nth-child(2) {
    opacity: 0;
}

.nav__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #000000;
    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.hero__logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto 24px;
    /* filter: brightness(0) invert(1); */
    opacity: 0.95;
}

.hero__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero__title span {
    display: block;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    display: inline;
    font-size: 1.7rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    /* background: linear-gradient(transparent 0%, rgba(168, 50, 50, 0.35) 0%); */
    padding: 2px 4px;
}

.hero__slogan {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-style: italic;
    font-weight: 400;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

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

.btn--primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn--small {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.btn--large {
    padding: 18px 48px;
    font-size: 1.05rem;
}

/* ===== БЛИЖАЙШИЕ ПОКАЗЫ ===== */
.shows {
    background: var(--bg-primary);
}

.shows__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.show-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.show-item:hover {
    border-color: rgba(168, 50, 50, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.show-item__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 12px 16px;
    background: rgba(168, 50, 50, 0.1);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.show-item__day {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.show-item__month {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: lowercase;
}

.show-item__year {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.show-item__info {
    flex: 1;
}

.show-item__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.show-item__author {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.show-item__venue {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.show-item__venue a {
    color: var(--accent);
    transition: var(--transition);
}

.show-item__venue a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .show-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }

    .show-item__date {
        flex-direction: row;
        gap: 8px;
        padding: 8px 16px;
    }

    .show-item__day {
        font-size: 1.5rem;
    }
}

/* ===== АФИША ===== */
.afisha {
    background: var(--bg-secondary);
}

.afisha__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 50, 50, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.card__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

.card__body {
    padding: 24px;
}

.card__age {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(168, 50, 50, 0.12);
    color: var(--accent);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.card__author {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card__tagline {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
    font-style: italic;
}

/* ===== О ТЕАТРЕ ===== */
.about {
    background: var(--bg-primary);
}

.about__tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.about__tab {
    padding: 12px 32px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.about__tab:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.about__tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

.about__content.hidden {
    display: none;
}

/* Manifest */
.manifest {
    max-width: 760px;
    margin: 0 auto;
}

.manifest__text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--text-secondary);
    line-height: 1.9;
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.manifest__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.manifest__version {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.manifest__epigraph {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-style: italic;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
    text-align: center;
}

.manifest__section {
    margin-bottom: 40px;
}

.manifest__section h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 18px;
    font-weight: 600;
}

.manifest__section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.85;
    letter-spacing: 0.01em;
}

.manifest__section .manifest__closing {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-style: italic;
    text-align: center;
}

.manifest__section .manifest__sign {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--accent);
    text-align: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.highlight-marker {
    background: linear-gradient(transparent 0%, rgba(168, 50, 50, 0.35) 0%);
    padding: 2px 4px;
    color: #fff;
}

/* Team */
.team__group {
    margin-bottom: 48px;
}

.team__role {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 600;
}

.team__member--lead {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 600px;
}

.team__member--lead .team__avatar {
    width: 150px;
    height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.team__member--lead .team__avatar img {
    border-radius: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team__member--lead .team__info h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.team__member--lead .team__info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.team__member {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    padding: 0;
    cursor: pointer;
}

.team__member:hover {
    border-color: rgba(168, 50, 50, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.team__avatar {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: 0;
}

.team__avatar svg {
    width: 100%;
    height: 100%;
}

.team__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.team__member-text {
    padding: 12px 14px;
}

.team__member h4 {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.team__member p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ===== ОТЗЫВЫ ===== */
.reviews {
    background: var(--bg-secondary);
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.review-card:hover {
    border-color: rgba(168, 50, 50, 0.2);
    transform: translateY(-2px);
}

.review-card__text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-card__avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.review-card__avatar svg {
    width: 100%;
    height: 100%;
}

.review-card__author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.review-card__author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== ФОТО/ВИДЕО ===== */
.media {
    background: var(--bg-primary);
}

.media__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.media__item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.media__item:hover {
    transform: scale(1.02);
}

.media__item svg {
    width: 100%;
    height: auto;
    display: block;
}

.media__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== ШКОЛЬНИКАМ ===== */
.school {
    background: var(--bg-secondary);
}

.school__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.school__block {
    margin-bottom: 32px;
}

.school__block h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.school__block p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.school__block ul {
    list-style: none;
}

.school__block li {
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.7;
}

.school__block li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.school__block p + p {
    margin-top: 12px;
}

.school__block p a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.school__block p a:hover {
    color: var(--accent-light);
}

.school__contacts {
    margin-top: 16px;
    font-size: 1.05rem;
    line-height: 1.9;
}

.school__repertoire h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.school__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}

.school__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    gap: 12px;
}

.school__item-title {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.school__item-author {
    color: var(--text-muted);
    font-size: 0.85rem;
    flex: 1;
    text-align: center;
}

.school__item-age {
    padding: 2px 8px;
    background: rgba(168, 50, 50, 0.12);
    color: var(--accent);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.school__btn {
    width: 100%;
}

/* ===== ПАРТНЕРЫ ===== */
.partners {
    background: var(--bg-primary);
}

.partners__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.partners__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.partners__item:hover {
    border-color: rgba(168, 50, 50, 0.2);
}

.partners__item svg {
    width: 100%;
    max-width: 160px;
}

/* ===== ПОДДЕРЖАТЬ ===== */
.support {
    background: var(--bg-secondary);
}

.support__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.support__text p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.85;
}

.support__action {
    text-align: center;
}

.support__amounts {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.support__amount {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.support__amount:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.support__amount.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

.support__note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ===== FOOTER ===== */
.footer {
    background: #050505;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer__figure {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    opacity: 0.8;
}

.footer__logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    text-align: center;
}

.footer__logo-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    text-align: center;
    margin-top: 4px;
}

.footer__links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.footer__copy {
    font-size: 0.8rem;
    color: #555;
}

.footer__contact {
    text-align: center;
}

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

.footer__contact a {
    color: var(--accent);
    transition: var(--transition);
}

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

/* ===== ДИАЛОГОВОЕ ОКНО ===== */
.dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
}

.dialog-overlay.active {
    display: flex;
}

.dialog-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 56px;
    text-align: center;
    animation: modalIn 0.3s ease;
}

.dialog-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.dialog-close {
    min-width: 140px;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.modal__content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    animation: modalIn 0.3s ease;
}

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

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal__header {
    margin-bottom: 24px;
}

.modal__age {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(168, 50, 50, 0.12);
    color: var(--accent);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal__author {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.modal__director {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.modal__premiere {
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 6px;
    font-weight: 500;
}

.modal__body {
    margin-bottom: 32px;
}

.modal__tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--accent-light);
    font-style: italic;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.modal__body p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 18px;
}

.modal__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
    padding: 20px;
    background: rgba(168, 50, 50, 0.05);
    border-radius: var(--radius-sm);
}

.modal__detail strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.modal__detail span {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.modal__cast h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.modal__cast ul {
    list-style: none;
}

.modal__cast li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal__cast li:last-child {
    border-bottom: none;
}

.modal__footer {
    text-align: center;
}

.modal__footer .tc-background-tomato,
.shows .tc-background-tomato {
    background: var(--accent) !important;
    color: var(--bg-primary) !important;
    padding: 14px 32px !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    border: none !important;
    opacity: 1 !important;
    filter: none !important;
    text-shadow: none !important;
    -webkit-text-fill-color: var(--bg-primary) !important;
}

.modal__footer .tc-background-tomato:hover,
.shows .tc-background-tomato:hover {
    background: var(--accent-light) !important;
    color: var(--bg-primary) !important;
    -webkit-text-fill-color: var(--bg-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px var(--accent-glow) !important;
    opacity: 1 !important;
    filter: none !important;
}

.modal__footer .tc-background-yellow,
.shows .tc-background-yellow {
    background: #e6b422 !important;
    color: var(--bg-primary) !important;
    padding: 14px 32px !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    border: none !important;
    opacity: 1 !important;
    filter: none !important;
    text-shadow: none !important;
    -webkit-text-fill-color: var(--bg-primary) !important;
}

.modal__footer .tc-background-yellow:hover,
.shows .tc-background-yellow:hover {
    background: #f0c840 !important;
    color: var(--bg-primary) !important;
    -webkit-text-fill-color: var(--bg-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(230, 180, 34, 0.25) !important;
    opacity: 1 !important;
    filter: none !important;
}

/* ===== МОДАЛЬНЫЕ ОКНА АКТЁРОВ ===== */
.modal__content--actor {
    max-width: 560px;
    padding: 32px;
}

.actor-modal {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.actor-modal__photo {
    width: 100px;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

.actor-modal__name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.actor-modal__role {
    font-size: 0.9rem;
    color: var(--accent);
}

.actor-modal__section {
    margin-bottom: 24px;
}

.actor-modal__section:last-child {
    margin-bottom: 0;
}

.actor-modal__section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.actor-modal__section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 8px;
}

.actor-modal__plays {
    list-style: none;
}

.actor-modal__plays li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.actor-modal__plays li:last-child {
    border-bottom: none;
}

/* ===== МЕДИА В МОДАЛЬНЫХ ОКНАХ СПЕКТАКЛЕЙ ===== */
.modal__media {
    margin: 28px 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.modal__media-block + .modal__media-block {
    margin-top: 28px;
}

.modal__media h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 14px;
}

/* --- Видео-тизер --- */
.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-embed__play {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.video-embed__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
    transition: filter 0.3s ease, transform 0.5s ease;
}

.video-embed__play:hover .video-embed__poster {
    filter: brightness(0.72);
    transform: scale(1.03);
}

.video-embed__btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(168, 50, 50, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: var(--transition);
}

.video-embed__btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 53%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 19px;
    border-color: transparent transparent transparent #f0ece4;
}

.video-embed__play:hover .video-embed__btn {
    background: var(--accent-light);
    transform: translate(-50%, -50%) scale(1.08);
}

.video-embed__label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    color: var(--text-primary);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    pointer-events: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

/* --- Фотогалерея --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.gallery__item {
    position: relative;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery__item:hover img {
    transform: scale(1.06);
    opacity: 1;
}

/* --- Лайтбокс --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 76px;
}

.lightbox.active {
    display: flex;
}

.lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
}

.lightbox__figure {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox__caption {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.lightbox__close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.6rem;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    padding-bottom: 4px;
}

.lightbox__nav--prev {
    left: 16px;
}

.lightbox__nav--next {
    right: 16px;
}

.actor-modal__photo .placeholder-avatar {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
}

.actor-modal__photo .placeholder-avatar svg {
    width: 100%;
    height: 100%;
}

/* ===== ADAPTIVE ===== */
@media (max-width: 1024px) {
    .school__content,
    .support__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 24px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
    }

    .nav__links.active {
        right: 0;
    }

    .nav__burger {
        display: flex;
    }

    .section {
        padding: 70px 0;
    }

    .section__subtitle {
        margin-bottom: 40px;
    }

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

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

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

    .team__grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn--outline {
        width: 100%;
        max-width: 280px;
    }

    .modal__content {
        padding: 24px;
    }

    .modal__title {
        font-size: 1.5rem;
    }

    .lightbox {
        padding: 64px 56px;
    }

    .lightbox__img {
        max-height: calc(100vh - 170px);
    }

    .lightbox__nav {
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .video-embed__btn {
        width: 56px;
        height: 56px;
    }

    .video-embed__btn::after {
        border-width: 9px 0 9px 15px;
    }

    .about__tabs {
        gap: 4px;
    }

    .about__tab {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .media__grid {
        grid-template-columns: 1fr;
    }

    .team__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .team__member--lead {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .school__item {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .school__item-author {
        text-align: center;
    }

    .lightbox {
        padding: 56px 8px;
    }

    .lightbox__nav {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }

    .lightbox__nav--prev {
        left: 4px;
    }

    .lightbox__nav--next {
        right: 4px;
    }

    .lightbox__close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }

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

    .actor-modal {
        gap: 14px;
    }

    .actor-modal__photo {
        width: 80px;
        height: 100px;
    }

    .actor-modal__name {
        font-size: 1.3rem;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(168, 50, 50, 0.3);
    color: var(--text-primary);
}