/* ========================================
   СТРАНИЦА "О ТЕАТРЕ"
   ======================================== */

/* ----- ХЕДЕР ----- */
.page-header-o-teatre {
    background: #94A8A0;
    padding: 16px 0 0;
    position: relative;
}

.header-top-o-teatre {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 120px;
    height: 59px;
}

.header-top-o-teatre .theater-name {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 14px;
    color: #202020;
}

.header-top-o-teatre .logo {
    width: 68px;
    height: 59px;
    flex-shrink: 0;
}

.header-top-o-teatre .header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-top-o-teatre .header-actions .icon-btn {
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-top-o-teatre .lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    cursor: pointer;
    letter-spacing: 0.20px;
}

/* ----- НАВИГАЦИЯ ----- */
.main-nav-o-teatre {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 120px;
    margin-top: 28px;
}

.main-nav-o-teatre .nav-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 10px;
}

.main-nav-o-teatre .nav-left .nav-item {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 14px;
    color: var(--color-text-default);
    cursor: pointer;
}

.main-nav-o-teatre .nav-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 10px;
}

.main-nav-o-teatre .nav-right .nav-item {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 14px;
    color: var(--color-text-default);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav-o-teatre .nav-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 21px;
}

.main-nav-o-teatre .nav-center .page-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 52px;
    line-height: 62.4px;
    color: #1D1D1D;
}

.btn-appeal {
    background: var(--color-primary);
    color: #CEE0D9;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-appeal:hover {
    opacity: 0.85;
}

/* ----- ОРНАМЕНТ ----- */
.ornament-wrapper-o-teatre {
    display: flex;
    gap: 3px;
    overflow: hidden;
    width: 100%;
    margin-top: 0;
}

/* ----- ОСНОВНОЙ КОНТЕНТ ----- */
.main-content-o-teatre {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 120px 80px;
    display: flex;
    gap: 60px;
    /*align-items: flex-start;*/
}

/* ----- БОКОВОЕ МЕНЮ (слева) ----- */
.sidebar-o-teatre {
    width: 180px;
    flex-shrink: 0;
    padding-top: 16px;
}

.sidebar-o-teatre.information-sidebar {
    width: 250px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav ul li {
    margin-bottom: 15px;
}

.sidebar-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 14px;
    color: var(--color-text-tertiary);
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
    cursor: pointer;
    position: relative;
    padding-left: 24px;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    width: 12px;
    height: 4px;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-link.active {
    color: var(--color-text-default);
}

.sidebar-link.active::before {
    opacity: 1;
}

.sidebar-link:hover {
    color: var(--color-text-default);
}

/* ----- КОНТЕНТ ТАБОВ (центр) ----- */
.tab-content-wrapper {
    flex: 1;
    min-width: 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ----- САЙДБАР С КНИГОЙ (справа) ----- */
.content-sidebar {
    width: 200px;
    flex-shrink: 0;
}

.sidebar-card {
    background: var(--color-white);
    border-radius: 4px;
    padding: 16px;
}

.sidebar-card-image {
    width: 100%;
    height: 200px;
    background: #D9D9D9;
    border-radius: 4px;
    margin-bottom: 8px;
}

.sidebar-card-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 14px;
    color: var(--color-text-tertiary);
    margin-bottom: 8px;
}

.sidebar-card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    color: var(--color-text-default);
    margin-bottom: 16px;
}

.btn-primary-green {
    background: var(--color-primary);
    color: var(--color-white) !important;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.btn-primary-green:hover {
    opacity: 0.85;
}

.sidebar-card-book {
    width: 100%;
    max-width: 167px;
    height: auto;
    margin-bottom: 16px;
}

/* ----- ПЛЕЙСХОЛДЕР ----- */
.tab-placeholder {
    text-align: center;
    padding: 80px 20px;
    background: var(--color-white);
    border-radius: 4px;
}

.tab-placeholder h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 32px;
    line-height: 38.4px;
    color: var(--color-text-default);
    margin-bottom: 16px;
}

.tab-placeholder p {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-text-tertiary);
}

.placeholder-icon {
    font-size: 64px;
    margin-top: 24px;
}

/* ==========================================================
   ТАБ 1: ИСТОРИЯ
   ========================================================== */
.history-block {
    flex: 1;
    min-width: 0;
}

.history-header {
    margin-bottom: 64px;
}

.history-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 32px;
    line-height: 38.4px;
    margin-bottom: 24px;
}

.history-title .title-main {
    color: #202020;
}

.history-title .title-sub {
    color: var(--color-text-tertiary);
}

.history-intro {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 22.4px;
    color: var(--color-text-default);
}

.history-section {
    margin-bottom: 64px;
}

.history-section:last-child {
    margin-bottom: 0;
}

.history-section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 32px;
    line-height: 38.4px;
    color: #202020;
    margin-bottom: 24px;
}

.history-section-content p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 22.4px;
    color: #080808;
    margin-bottom: 16px;
}

.history-section-content p:last-child {
    margin-bottom: 0;
}

.history-section-content strong {
    font-weight: 600;
    text-decoration: underline;
}

.history-highlight {
    background: var(--color-white);
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 16px;
}

.highlight-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    line-height: 22.4px;
    color: var(--color-text-secondary);
}

.highlight-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 22.4px;
    color: var(--color-text-secondary);
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-list li {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 22.4px;
    color: #080808;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.history-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.history-list li strong {
    font-weight: 600;
}

.history-subsection {
    margin-top: 16px;
}

.subsection-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: var(--color-text-default);
    margin-bottom: 8px;
}

.history-awards {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-awards li {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 22.4px;
    color: var(--color-text-default);
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.history-awards li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.history-awards li strong {
    font-weight: 600;
}

/* Галерея с Swiper */
.history-gallery {
    margin-top: 16px;
}

.history-gallery .gallery-swiper {
    overflow: hidden;
    border-radius: 4px;
}

.history-gallery .gallery-swiper .swiper-slide img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}

.gallery-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.gallery-nav .nav-btn {
    padding: 10px 12px;
    border: 1px solid var(--color-border-dark);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav .nav-btn:hover {
    background: var(--color-border-dark);
}

.gallery-nav .nav-btn:hover svg path {
    stroke: var(--color-white);
}

.gallery-counter {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 24px;
    line-height: 28.8px;
    color: #202020;
}

.gallery-counter .total {
    color: #A8A8A8;
}

/* ==========================================================
   ТАБ 2: ПРОЕКТЫ
   ========================================================== */
.projects-block {
    flex: 1;
    min-width: 0;
}

.projects-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.projects-row:last-child {
    margin-bottom: 0;
}

.project-card {
    display: block;
    width: 100%;
    flex-shrink: 0;
    text-decoration: none !important;
    transition-duration: .3s;
}

.project-card:hover {
    opacity: .8;
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 4px;
    overflow: hidden;
}

.project-image-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.project-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 8px 12px;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    line-height: 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.project-badge.video::before {
    content: '';
    width: 16px;
    height: 16px;
    background: #F4F1F1;
    display: inline-block;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.project-badge.audio::before {
    content: '';
    width: 16px;
    height: 16px;
    background: #F4F1F1;
    display: inline-block;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.project-info {
    padding-right: 8px;
    margin-top: 8px;
}

.project-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    color: var(--color-text-default);
}

.project-title .project-sub {
    color: var(--color-text-tertiary);
}

.project-desc {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 19.6px;
    color: var(--color-text-secondary);
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================
   АДАПТИВ
   ========================================================== */
@media (max-width: 1200px) {
    .main-content-o-teatre {
        padding: 40px 40px 80px;
        gap: 60px;
    }
    .partners-grid {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .main-content-o-teatre {
        flex-direction: column;
        padding: 30px 20px 60px;
        gap: 30px;
    }

    .sidebar-o-teatre {
        width: 100%;
        padding-top: 0;
    }

    .sidebar-o-teatre.information-sidebar {
        width: 100%;
    }

    .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .sidebar-nav ul li {
        margin-bottom: 0;
    }

    .sidebar-link {
        font-size: 12px;
        padding-left: 18px;
    }

    .content-sidebar {
        width: 100%;
        margin-left: 0;
    }

    .projects-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .project-card {
        width: 100%;
    }

    .history-gallery .gallery-swiper .swiper-slide img {
        height: 250px;
    }

    .partners-grid {
        justify-content: center;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .main-content-o-teatre {
        padding: 35px 15px 40px;
    }

    .header-top-o-teatre,
    .main-nav-o-teatre {
        padding: 0 15px;
    }

    .main-nav-o-teatre .nav-center .page-title {
        font-size: 28px;
        line-height: 34px;
    }

    .history-title {
        font-size: 24px;
        line-height: 30px;
    }

    .history-section-title {
        font-size: 24px;
        line-height: 30px;
    }

    .history-gallery .gallery-swiper .swiper-slide img {
        height: 180px;
    }

    .project-card {
        max-width: 100%;
    }

    .project-image,
    .project-image-wrapper {
        height: 180px;
    }

    .partners-grid {
        gap: 15px;
    }

    .gallery-counter {
        font-size: 18px;
    }
}


.project-header .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-header .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.35) 100%);
    z-index: 1;
}

.project-header .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
    max-width: 797px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
}

.project-header .hero-title-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-header .hero-title-group .hero-title-inner {
    display: flex;
    flex-direction: column;
    gap: 37px;
}

.project-header .hero-text-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-header .hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 52px;
    line-height: 52px;
    color: var(--color-white);
}

.project-header .hero-subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 24px;
    line-height: 24px;
    color: var(--color-white);
}

.video-project {
    width: 100%;
    max-width: 760px;
}

.o-teatre-page-text p,
.o-teatre-page-text ol,
.o-teatre-page-text ul {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-text-default);
}

.o-teatre-page-text ol,
.o-teatre-page-text ul {
    padding-left: 15px;
}

.o-teatre-page-text p img {
    width: 100% !important;
    max-width: 580px;
    max-height: 850px;
    object-fit: cover;
    margin: 15px auto;
}

.o-teatre-page-text blockquote {
    background: var(--color-white);
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 16px;
}

.o-teatre-page-text blockquote p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-text-secondary);
}

.o-teatre-page-text blockquote p:last-child {
    margin-bottom: 0;
}

.o-teatre-page-text h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 24px;
    line-height: 30px;
    color: #202020;
    margin-bottom: 24px;
}

.costume-card {
    width: 100%;
    height: 100%;
    padding: 22px 19px 24px;
}

.costume-card__gallery {
    width: 188px;
}

/* Главный слайдер */
.costume-card__main {
    width: 188px;
    overflow: hidden;
}

.costume-card__image {
    display: block;
    width: 188px;
    height: 138px;
    object-fit: cover;
}

/* Миниатюры */
.costume-card__thumbs {
    width: 188px;
    overflow: hidden;
}

.costume-card__thumbs .swiper-slide {
    width: 56px;
    cursor: pointer;
    opacity: .5;
    transition: opacity .15s ease;
}

.costume-card__thumbs .swiper-slide-thumb-active {
    opacity: 1;
}
.costume-card__thumb {
    display: block;
    width: 56px;
    height: 42px;
    object-fit: cover;
}

.costume-card__body {
    width: 100%;
    height: 100%;
    align-items: start !important;
}

.costume-card__title {
    color: #303030;
    font-family: 'Spectral', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
}

.costume-card__text {
    color: #5A5A5A;
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    width: 100%;
}

.costume-card__button {
    width: 168px;
    padding: 10px 16px;
    background: #304E42;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-transform: uppercase;
    transition: opacity .15s ease;
}
.costume-card__button:hover { opacity: .9; color: #fff; }

.information-accordion-card {
    background: none;
    border: none;
    margin-bottom: 15px;
}

.information-card-header {
    background: none;
    border: none;
    padding: 0;
}

.information-card-body {
    padding: 15px 0;
}

.information-accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: Spectral;
    padding: 8px 0;
    background: none;
    border: none;
    color: #202020;
    font-size: 29px;
    font-weight: 600;
    line-height: 34px;
    width: 100%;
    text-align: left;
    outline: none !important;
}

.information-accordion-btn:after {
    display: block;
    content: '';
    background: url(../svg/dropdown.svg) no-repeat center / contain;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition-duration: .3s;
    transform: rotate(180deg);
}

.collapsed.information-accordion-btn:after {
    transform: rotate(0);
}

@media (max-width: 560px) {
    .costume-card__body { width: 100%; }

    .costume-card__gallery,
    .costume-card__main,
    .costume-card__thumbs {
        width: 100%;
    }

    .costume-card__image {
        width: 100%;
        height: 220px;
    }

    .costume-card__thumbs .swiper-slide {
        width: calc((100% - 20px) / 3);
    }

    .costume-card__thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

@media (min-width: 768px) {
    .o-teatre-page-text h4 {
        font-size: 32px;
        line-height: 38.4px;

    }

    .o-teatre-page-text p,
    .o-teatre-page-text ol,
    .o-teatre-page-text ul {
        font-size: 16px;
        line-height: 23px;
    }

    .o-teatre-page-text blockquote p {
        font-size: 16px;
        line-height: 23px;
    }
}
