:root {
    --bg: rgba(8, 8, 8, 1);
    --bg-alt: rgba(8, 8, 8, 1);
    --card: #111111;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.55);
    --accent: #FFD400;
    --line: rgba(255, 255, 255, 0.09);
    --gold-line: rgba(232, 184, 0, 0.18);
    --font: "Inter", system-ui, sans-serif;
    --serif: "Playfair Display", Georgia, serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    background: rgba(8, 8, 8, 1);
    overflow-x: clip;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-weight: 300;
}

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

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

a:hover {
    opacity: 0.85;
}

a.btn:hover,
.ob-program a:hover,
.ot-cta__link:hover {
    opacity: 1;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 212, 0, 0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.logo {
    display: flex;
    flex-direction: column;
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
    min-width: 0;
    flex-shrink: 1;
}

.logo__img {
    display: block;
    height: 50px;
    width: auto;
    max-width: min(252px, 100%);
    object-fit: contain;
}

.logo__mark {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
}

.logo__sub {
    font-size: 9px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 4px;
}

.site-nav {
    flex: 1;
}

.site-nav .menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-bottom: 1px solid transparent;
}

.site-nav .current-menu-item>a,
.site-nav .current_page_item>a,
.site-nav .current-menu-ancestor>a {
    color: var(--accent);
    border-bottom-color: var(--accent);
    width: fit-content;
}

.site-nav .menu>.menu-item-has-children {
    position: relative;
}

.site-nav .submenu-toggle {
    display: none;
}

.site-nav .sub-menu {
    position: absolute;
    top: calc(100% - 0px);
    left: 0;
    z-index: 50;
    min-width: auto;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    background: #111;
    border: 1px solid var(--gold-line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.site-nav .menu>.menu-item-has-children:hover>.sub-menu,
.site-nav .menu>.menu-item-has-children:focus-within>.sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.site-nav .sub-menu a {
    display: block;
    padding: 5px 0px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    margin: 0 10px;
}

.site-nav .sub-menu a:hover {
    color: var(--accent);
}

.header-aside {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.header-phone__icon {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.header-phone__icon svg {
    display: block;
}

.header-socials {
    display: flex;
    gap: 8px;
}

.header-socials a {
    color: #fff;
    border: 1px solid var(--line);
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    font-size: 11px;
}

.header-socials svg {
    display: block;
}

.ot-visual picture,
.og-visual picture,
.oc-visual picture,
.oc-hero__visual picture,
.op-visual picture,
.os-hero__visual picture {
    display: contents;
}

.nav-toggle {
    display: none;
    margin: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    color: var(--accent);
    border: 1px solid rgb(232 184 0 / 0%);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 0;
    background: var(--accent);
    color: #080808;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.76px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--accent);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    transition: color 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.btn:hover {
    color: #080808;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(232, 184, 0, 0.22);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn span[aria-hidden] {
    display: inline-block;
    transition: transform 0.35s ease;
}

.btn:hover span[aria-hidden] {
    transform: translateX(5px);
}

.btn--ghost,
.btn--outline {
    background: transparent;
    color: var(--accent);
}

.btn--ghost::before,
.btn--outline::before {
    background: var(--accent);
}

.btn--ghost:hover,
.btn--outline:hover {
    color: #080808;
    border-color: var(--accent);
}

.btn--ghost-w {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn--ghost-w::before {
    background: #fff;
}

.btn--ghost-w:hover {
    color: #080808;
    border-color: #fff;
}

.btn--nav {
    padding: 10px 16px;
    font-size: 10px;
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .btn::before,
    .btn span[aria-hidden] {
        transition: none;
    }
    .btn:hover {
        transform: none;
    }
}

.page-hero {
    padding: 50px 0 12px;
}

.breadcrumbs {
    margin: 0 0 16px;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.breadcrumbs__list li:not(:last-child)::after {
    content: "/";
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.28);
}

.breadcrumbs__list a {
    color: var(--muted);
}

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

.breadcrumbs__list [aria-current="page"] {
    color: var(--text);
}

.page-hero h1,
.hero__inner h1 {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 6vw, 2.4rem);
    line-height: 1.05;
    margin: 0 0 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-intro,
.hero__lead {
    max-width: 42rem;
    color: var(--muted);
}

.eyebrow {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    font-size: 0.78rem;
}

.hero__actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.section {
    padding: 64px 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 24px;
}

.section-head h2 {
    font-family: var(--serif);
    font-size: 2rem;
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card__media {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #111;
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__placeholder {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, #2a241c, #151515);
}

.card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card__title {
    font-family: var(--serif);
    font-size: 1.35rem;
    margin: 0;
}

.card__title a {
    color: var(--text);
}

.card__excerpt {
    color: var(--muted);
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.card__more {
    font-size: 0.9rem;
}

.card__meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: #080808;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.cat-card {
    display: block;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--card);
    color: inherit;
}

.cat-card h2 {
    font-family: var(--serif);
    margin: 0 0 8px;
    color: var(--text);
}

.prose {
    max-width: 720px;
}

.prose :where(h2, h3) {
    font-family: var(--serif);
}

.article-cover {
    margin: 12px auto 32px;
}

.article-cover img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.article-body {
    padding-bottom: 64px;
    color: var(--text);
}

.article-body :where(p, span, li, td, strong, em, h1, h2, h3, h4, div) {
    color: inherit;
}

.article-body a {
    color: var(--accent);
}

.contacts-layout,
.course-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 32px;
    padding-bottom: 64px;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 24px;
    height: fit-content;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.contact-list li {
    margin-bottom: 12px;
}

.socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.socials a {
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer {
    border-top: 1px solid var(--gold-line);
    padding: 28px 0 0;
    background: var(--bg);
}

.footer-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 24px 32px;
    align-items: center;
}

.footer-bar__side {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-bar__side--left {
    justify-content: flex-start;
}

.footer-bar__side--right {
    justify-content: flex-end;
}

.footer-phone {
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    justify-self: center;
    text-align: center;
}

.footer-tagline {
    margin: 0;
    max-width: 220px;
    padding-left: 20px;
    border-left: 1px solid var(--gold-line);
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    line-height: 20px;
}

.footer-nav .footer-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav .footer-menu li:not(:last-child)::after {
    content: "·";
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 700;
    pointer-events: none;
}

.footer-nav a {
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.footer-nav a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-nav .current-menu-item>a,
.footer-nav .current_page_item>a,
.footer-nav .current-menu-ancestor>a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.footer-socials {
    display: flex;
    gap: 8px;
    justify-self: end;
}

.footer-socials a {
    color: #fff;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
}

.footer-socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
    opacity: 1;
}

.footer-socials svg {
    display: block;
}

.copyright {
    margin-top: 28px;
    border-top: 1px solid var(--gold-line);
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.78rem;
}

.copyright__inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
}

.copyright a {
    color: inherit;
}

.muted {
    color: var(--muted);
}

.pagination {
    margin-top: 32px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    color: var(--text);
}

.gallery-page .wp-block-gallery,
.gallery-page .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-page img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.teatr-form {
    display: grid;
    gap: 12px;
    margin-top: 0;
    max-width: 520px;
    width: 100%;
}

.ob-modal {
    border: 1px solid var(--gold-line);
    padding: 0;
    background: transparent;
    max-width: 520px;
    width: calc(100% - 32px);
    color: inherit;
}

.ob-modal::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.ob-modal__panel {
    position: relative;
    background: #111;
    padding: 36px 28px 28px;
    border: 1px solid var(--gold-line);
}

.ob-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.ob-modal .teatr-form__title {
    padding-right: 28px;
    text-transform: uppercase;
    font-weight: 800;
}

body.ob-modal-open {
    overflow: hidden;
}

.teatr-form__title {
    font-family: var(--serif);
    font-size: 1.6rem;
    margin: 0 0 4px;
}

.teatr-form__choice {
    margin: 0 0 12px;
    padding: 10px 12px;
    background: rgba(232, 184, 0, 0.14);
    border-left: 3px solid #FFD400;
    font-size: 0.9rem;
}

.teatr-form label {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
}

.teatr-form input,
.teatr-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font: inherit;
}

.teatr-form__check {
    display: flex!important;
    gap: 10px;
    align-items: flex-start;
}

.teatr-form__check input {
    width: auto;
    margin-top: 4px;
}

.teatr-form__hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.teatr-form__notice {
    padding: 10px 12px;
    margin: 0;
}

.teatr-form__notice--ok {
    background: #16351d;
    color: #b8e6c2;
}

.teatr-form__notice--error {
    background: #3a1616;
    color: #f0b4b4;
}

.contact-card .teatr-form {
    margin-top: 8px;
    max-width: 100%;
}

.search-form {
    margin-top: 24px;
    display: flex;
    gap: 8px;
}

.search-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
}

.search-form input[type="submit"] {
    background: var(--accent);
    color: #080808;
    border: 0;
    padding: 10px 16px;
}

@media (max-width: 1100px) {
    .header-aside {
        gap: 30px;
    }
    .logo__img {
        height: 42px;
        max-width: min(216px, 100%);
    }
    .header-aside {
        margin-left: auto;
        gap: 10px;
    }
    .header-phone__num {
        display: none;
    }
    .header-phone__icon {
        display: inline-flex;
    }
    .header-aside .btn--nav {
        display: none;
    }
    .nav-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        background: #111;
        padding: 16px;
        border: 1px solid var(--line);
        max-height: calc(100dvh - 80px);
        overflow: auto;
    }
    .site-nav.is-open {
        display: block;
    }
    .site-nav .menu {
        flex-direction: column;
        align-items: stretch;
    }
    .site-nav a {
        padding: 10px 0;
        display: block;
    }
    .site-nav .menu>.menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0 8px;
    }
    .site-nav .menu>.menu-item-has-children>a {
        flex: 1;
        min-width: 0;
    }
    .site-nav .submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        margin: 0;
        padding: 0;
        border: 1px solid var(--line);
        background: transparent;
        color: #fff;
        cursor: pointer;
    }
    .site-nav .submenu-toggle span {
        display: block;
        width: 8px;
        height: 8px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        transition: transform 0.2s ease;
    }
    .site-nav .menu-item-has-children.is-open>.submenu-toggle span {
        transform: rotate(225deg) translateY(-2px);
    }
    .site-nav .sub-menu {
        position: static;
        flex-basis: 100%;
        min-width: 0;
        margin: 0;
        padding: 0 0 8px 12px;
        border: 0;
        background: transparent;
        opacity: 1;
        visibility: visible;
        pointer-events: none;
        transform: none;
        display: none;
        transition: none;
    }
    .site-nav .menu-item-has-children.is-open>.sub-menu {
        display: block;
        pointer-events: auto;
    }
    .site-nav .sub-menu a {
        padding: 8px 0;
        white-space: normal;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .header-aside .btn--nav {
        display: inline-flex;
    }
}

@media (max-width: 900px) {
    .container {
        width: min(1200px, calc(100% - 24px));
    }
    .section {
        padding: 40px 0;
    }
    .page-hero {
        padding: 72px 0 8px;
    }
    .btn {
        gap: 7px;
        padding: 10px 15px;
        font-size: 9px;
        letter-spacing: 1.2px;
    }
    .btn--nav {
        padding: 7px 11px;
        font-size: 8px;
    }
    .header-inner {
        min-height: 64px;
        gap: 12px;
    }
    .logo__img {
        height: 40px;
        max-width: min(168px, 52vw);
    }
    .logo__sub {
        display: none;
    }
    .grid-3,
    .footer-bar,
    .contacts-layout,
    .course-layout,
    .gallery-page .wp-block-gallery,
    .gallery-page .gallery {
        grid-template-columns: 1fr;
    }
    .footer-bar__side--left,
    .footer-bar__side--right,
    .footer-socials {
        justify-content: center;
        justify-self: center;
    }
    .footer-bar__side--left {
        flex-wrap: nowrap;
        align-items: center;
        gap: 12px;
        max-width: 100%;
    }
    .footer-bar__side--left .logo {
        flex-shrink: 0;
    }
    .footer-bar__side--left .logo__img {
        height: 32px;
        max-width: 120px;
    }
    .footer-tagline {
        max-width: none;
        flex: 1;
        min-width: 0;
        border-left: 1px solid var(--gold-line);
        padding-left: 12px;
        text-align: left;
        font-size: 12px;
        line-height: 16px;
    }
    .ob-modal__panel {
        padding: 32px 18px 20px;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(1200px, calc(100% - 24px));
    }
    .copyright__inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .page-hero {
        padding: 50px 0 8px;
    }
}