@font-face {
    font-family: "jost";
    src: url('/fonts/jost.ttf') format('truetype');
}
@font-face {
    font-family: "finlandica";
    src: url('/fonts/finlandica.ttf') format('truetype');
}
@font-face {
    font-family: "mulish";
    src: url('/fonts/mulish.ttf') format('truetype');
}
@font-face {
    font-family: "oswald";
    src: url('/fonts/oswald.ttf') format('truetype');
}
@font-face {
    font-family: "roboto";
    src: url('/fonts/roboto.ttf') format('truetype');
}

body {
    font-family: "jost", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

.content-page h2 {
    margin-top: 2.5rem;
    font-size: 1.75rem;
    line-height: 1.2;
}

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

.content-image {
    margin: 0;
}

.content-image img {
    width: 100%;
    max-height: 32rem;
    object-fit: contain;
}

.content-grid,
.content-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.content-card {
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 0.5rem;
}

.content-card > :first-child {
    margin-top: 0;
}

.content-card > :last-child {
    margin-bottom: 0;
}

.content-card h2,
.content-card h3,
.content-card h4,
.content-card h5,
.content-card h6 {
    margin-block: 1rem 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.documentation-page {
    max-width: 64rem;
}

.document-years {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-block: 1.5rem 2.5rem;
}

.document-years a {
    min-width: 3.75rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 0.4rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.document-years a:hover,
.document-years a:focus-visible {
    color: #fff;
    background: var(--text-color);
}

.document-year {
    scroll-margin-top: 2rem;
}

.document-list {
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin-block: 1rem 2.5rem;
    list-style: none;
}

.document-list li {
    margin: 0;
}

.document-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 0.45rem;
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.document-link:hover {
    border-color: currentColor;
}

.document-meta {
    flex: 0 0 auto;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.content-accordion {
    display: grid;
    gap: 0.75rem;
    margin-block: 1.5rem;
}

.content-details {
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 0.45rem;
}

.content-details summary {
    padding: 0.9rem 1rem;
    font-weight: 600;
    cursor: pointer;
}

.content-details__body {
    padding: 0 1rem 1rem;
}

.documentation-page table {
    width: 100%;
    border-collapse: collapse;
}

.documentation-page :is(th, td) {
    padding: 0.65rem;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

@media (max-width: 36rem) {
    .document-link {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Афиша и главная */
.afisha-showcase {
    display: grid;
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

.afisha-showcase:not(.afisha-showcase--home) .page-heading {
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background: rgb(249 250 246 / 92%);
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
}

.page-heading h1 {
    max-width: 18ch;
    margin-block: 0 0.7rem;
    font-family: "finlandica", "jost", sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.page-heading > :last-child {
    max-width: 46rem;
    margin-bottom: 0;
    color: var(--muted-color);
    font-size: 1.08rem;
}

.afisha-hero {
    position: relative;
    min-height: clamp(34rem, 56vw, 45rem);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 71% 23%, rgb(55 123 157 / 40%), transparent 30rem),
        linear-gradient(135deg, #041d32, var(--navy));
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 2rem 2rem 46% 14% / 2rem 2rem 12% 10%;
    box-shadow: 0 2rem 5rem rgb(4 39 63 / 24%);
    isolation: isolate;
}

.afisha-hero::after {
    position: absolute;
    right: 5%;
    bottom: 8%;
    width: 12rem;
    height: 12rem;
    background:
        radial-gradient(circle, rgb(255 255 255 / 10%) 0 0.12rem, transparent 0.16rem) 0 0 / 1.1rem 1.1rem;
    content: "";
    opacity: 0.7;
    transform: rotate(-12deg);
}

.afisha-hero__image {
    position: absolute;
    z-index: -2;
    top: 0;
    right: 0;
    width: min(63%, 52rem);
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    transform: scale(1.02);
}

.afisha-hero__shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, #041d32 0 40%, rgb(4 29 50 / 87%) 46%, transparent 78%),
        linear-gradient(0deg, rgb(3 23 39 / 75%), transparent 55%);
}

.afisha-hero__ornaments {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 48%;
    color: #4c7893;
    opacity: 0.72;
    pointer-events: none;
}

.afisha-hero__symbol,
.afisha-empty__symbol,
.afisha-card__symbol {
    position: absolute;
    display: block;
    overflow: visible;
}

.afisha-hero__symbol--bird {
    top: 2%;
    left: 3%;
    width: 6rem;
    height: 7rem;
    transform: rotate(72deg);
}

.afisha-hero__symbol--mountain {
    bottom: 17%;
    left: 32%;
    width: 4.2rem;
    height: 3.4rem;
}

.afisha-hero__symbol--deer {
    top: 19%;
    left: 28%;
    width: 10rem;
    height: 5.5rem;
}

.afisha-hero__symbol--branch {
    right: -1.5rem;
    bottom: -1.5rem;
    width: 12rem;
    height: 14rem;
    transform: rotate(-8deg);
}

.afisha-hero__symbol--water {
    bottom: 2%;
    left: 4%;
    width: 11rem;
    height: 9rem;
    transform: rotate(-5deg);
}

.afisha-hero__symbol--star {
    top: 28%;
    right: 34%;
    width: 2.8rem;
    height: 2.8rem;
    transform: rotate(18deg);
}

.afisha-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: clamp(34rem, 56vw, 45rem);
    width: min(55%, 44rem);
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 6vw, 5.5rem);
}

.afisha-label {
    align-self: flex-start;
    padding: 0.38rem 0.8rem;
    margin-block: 0 1.25rem;
    background: var(--accent-color);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.afisha-hero h1,
.afisha-hero h2 {
    max-width: 13ch;
    margin: 0;
    font-family: "finlandica", "jost", sans-serif;
    font-size: clamp(2.6rem, 5.5vw, 5.6rem);
    font-weight: 550;
    line-height: 0.92;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.age-restriction {
    display: inline-flex;
    min-width: 1.9rem;
    min-height: 1.35rem;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.42rem;
    color: #fff;
    background: rgb(3 25 42 / 48%);
    border: 1px solid rgb(255 255 255 / 42%);
    border-radius: 999px;
    box-shadow: 0 0.3rem 0.8rem rgb(3 25 42 / 18%);
    font-family: 'jost', sans-serif;
    font-size: clamp(0.65rem, 0.8vw, 0.76rem);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1;
    text-shadow: none;
    vertical-align: super;
    white-space: nowrap;
    backdrop-filter: blur(0.4rem);
}

.afisha-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-block: 1.3rem 0;
    color: rgb(255 255 255 / 72%);
    font-size: 0.9rem;
}

.afisha-hero__meta span + span {
    padding-left: 1rem;
    border-left: 1px solid rgb(255 255 255 / 35%);
}

.afisha-hero__schedule {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.85rem;
    margin-block: 0.55rem 0;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 650;
}

.afisha-hero__schedule span {
    padding-left: 0.85rem;
    border-left: 1px solid rgb(255 255 255 / 32%);
    color: rgb(255 255 255 / 76%);
    font-size: 0.8em;
    font-weight: 500;
}

.afisha-hero__description {
    max-width: 35rem;
    margin-block: 1.4rem 0;
    color: rgb(255 255 255 / 84%);
}

.afisha-hero__location {
    display: flex;
    gap: 0.65rem;
    max-width: 34rem;
    align-items: flex-start;
    margin-block: 1rem 0;
    color: rgb(255 255 255 / 72%);
    font-size: 0.9rem;
}

.afisha-hero__location span {
    color: var(--accent-hover);
    font-size: 1.4rem;
    line-height: 1;
}

.afisha-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    min-height: 3.35rem;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.75rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    font-weight: 650;
    text-align: center;
    text-decoration: none;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.button:hover {
    transform: translateY(-0.15rem);
}

.button--accent {
    color: #fff;
    background: var(--accent-color);
    box-shadow: 0 0.75rem 1.75rem rgb(189 93 11 / 25%);
}

.button--accent:hover {
    background: var(--accent-hover);
    box-shadow: 0 1rem 2.2rem rgb(189 93 11 / 34%);
}

.button--outline {
    color: #fff;
    border-color: rgb(255 255 255 / 55%);
    background: rgb(255 255 255 / 4%);
    backdrop-filter: blur(0.5rem);
}

.button--outline:hover {
    border-color: #fff;
    background: rgb(255 255 255 / 11%);
}

.button--dark {
    color: #fff;
    background: var(--navy);
}

.button--dark:hover {
    background: var(--navy-soft);
}

.section-heading,
.home-panel__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
}

.section-heading h2,
.home-panel__heading h2,
.home-about h2 {
    margin: 0;
    font-family: "finlandica", "jost", sans-serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.035em;
}

.section-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.75rem;
    color: var(--navy);
    font-weight: 650;
    text-decoration: none;
}

.section-link span {
    color: var(--accent-color);
    transition: transform 180ms ease;
}

.section-link:hover span {
    transform: translateX(0.25rem);
}

.afisha-empty {
    position: relative;
    min-height: clamp(22rem, 45vw, 34rem);
    overflow: hidden;
    padding: clamp(2rem, 6vw, 5rem);
    color: #fff;
    background:
        radial-gradient(circle at 82% 24%, rgb(68 128 154 / 40%), transparent 20rem),
        radial-gradient(circle, rgb(255 255 255 / 9%) 0 0.12rem, transparent 0.16rem) 92% 80% / 1.1rem 1.1rem,
        var(--navy);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    isolation: isolate;
}

.afisha-empty > :not(.afisha-empty__ornaments) {
    position: relative;
    z-index: 1;
}

.afisha-empty__ornaments {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    width: min(58%, 36rem);
    height: 100%;
    color: #6d93aa;
    opacity: 0.62;
    pointer-events: none;
}

.afisha-empty__symbol--bird {
    top: 12%;
    left: 7%;
    width: 5rem;
    height: 6rem;
    transform: rotate(68deg);
}

.afisha-empty__symbol--deer {
    top: 20%;
    right: 8%;
    width: 10rem;
    height: 5.5rem;
}

.afisha-empty__symbol--mountain {
    bottom: 21%;
    left: 34%;
    width: 4rem;
    height: 3rem;
}

.afisha-empty__symbol--branch {
    right: -2rem;
    bottom: -2rem;
    width: 15rem;
    height: 17rem;
    transform: rotate(-7deg);
}

.afisha-empty__symbol--water {
    bottom: 5%;
    left: 5%;
    width: 12rem;
    height: 9rem;
    transform: rotate(-6deg);
}

.afisha-empty__symbol--star {
    top: 46%;
    left: 45%;
    width: 2.6rem;
    height: 2.6rem;
    transform: rotate(16deg);
}

.afisha-empty h1,
.afisha-empty h2 {
    max-width: 12ch;
    margin-block: 0 1rem;
    font-family: "finlandica", "jost", sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.afisha-empty > p:last-child {
    max-width: 34rem;
    color: rgb(255 255 255 / 72%);
    font-size: 1.05rem;
}

.afisha-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.75rem, 2vw, 1.25rem);
}

.afisha-card {
    position: relative;
    min-height: clamp(23rem, 34vw, 31rem);
    overflow: hidden;
    color: #fff;
    background: var(--navy);
    border-radius: 1.2rem;
    box-shadow: var(--shadow-card);
    isolation: isolate;
    transition: box-shadow 250ms ease, transform 250ms ease;
}


.afisha-card:hover {
    box-shadow: 0 1.6rem 3.5rem rgb(4 39 63 / 18%);
    transform: translateY(-0.4rem);
}

.afisha-card__image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.afisha-card:hover .afisha-card__image {
    transform: scale(1.045);
}

.afisha-card__shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(0deg, rgb(3 25 42 / 98%) 0, rgb(3 25 42 / 72%) 38%, transparent 72%),
        linear-gradient(180deg, rgb(3 25 42 / 30%), transparent 35%);
}

.afisha-card--paper .afisha-card__shade {
    background: linear-gradient(0deg, rgb(36 44 45 / 96%) 0, rgb(36 44 45 / 62%) 64%, transparent 75%);
}

.afisha-card--sand .afisha-card__shade {
    background: linear-gradient(0deg, rgb(58 48 35 / 97%) 0, rgb(58 48 35 / 62%) 64%, transparent 75%);
}

.afisha-card--ochre .afisha-card__shade {
    background: linear-gradient(0deg, rgb(94 42 6 / 98%) 0, rgb(122 54 7 / 64%) 64%, transparent 75%);
}

.afisha-card__ornaments {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    height: 62%;
    color: #dce2db;
    opacity: 0.68;
    pointer-events: none;
    transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.afisha-card--ochre .afisha-card__ornaments {
    color: #f4d9c1;
}

.afisha-card__symbol--1 {
    top: 17%;
    left: 8%;
    width: min(47%, 9rem);
    height: 8rem;
    transform: rotate(-5deg);
}

.afisha-card__symbol--2 {
    right: 8%;
    bottom: 2%;
    width: min(32%, 6rem);
    height: 6rem;
    transform: rotate(7deg);
}

.afisha-card__symbol--3 {
    top: 12%;
    right: 16%;
    width: 2.6rem;
    height: 2.6rem;
    transform: rotate(18deg);
}

.afisha-card:hover .afisha-card__ornaments {
    transform: translateY(-0.35rem) scale(1.02);
}

.afisha-card__content {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    padding: clamp(1.15rem, 2.4vw, 1.75rem);
}

.afisha-pushkin {
    position: absolute;
    z-index: 2;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.65rem;
    color: #fff;
    background: rgb(189 93 11 / 90%);
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 999px;
    box-shadow: 0 0.5rem 1.25rem rgb(4 29 50 / 25%);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(0.5rem);
}

.afisha-card__date {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 0.8rem;
    color: rgb(255 255 255 / 78%);
}

.afisha-card__day {
    font-family: "finlandica", "jost", sans-serif;
    font-size: 2rem;
    font-weight: 650;
    line-height: 0.9;
}

.afisha-card__month {
    display: grid;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
}

.afisha-card__month small {
    margin-top: 0.15rem;
    color: rgb(255 255 255 / 52%);
    font-size: 0.68rem;
}

.afisha-card__time {
    padding-left: 0.55rem;
    border-left: 1px solid rgb(255 255 255 / 28%);
    font-size: 1rem;
    font-weight: 700;
}

.afisha-card h3 {
    margin: 0;
    font-family: "finlandica", "jost", sans-serif;
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    font-weight: 600;
    line-height: 1.06;
}

.afisha-card__content > p {
    margin-block: 0.7rem 0;
    color: rgb(255 255 255 / 72%);
    font-size: 0.86rem;
}

.afisha-card__description {
    display: -webkit-box;
    overflow: hidden;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.afisha-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 1rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.afisha-card__links a {
    text-decoration-color: rgb(255 255 255 / 45%);
    text-underline-offset: 0.2em;
}

.afisha-card__links a:hover {
    text-decoration-color: var(--accent-hover);
}

.home-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(18rem, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: clamp(1.5rem, 4vw, 3.5rem);
}

.home-panel {
    min-width: 0;
    padding: clamp(1.35rem, 3vw, 2.5rem);
    background: rgb(249 250 246 / 86%);
    border: 1px solid rgb(255 255 255 / 80%);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-card);
}

.home-about {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 105% 100%, rgb(74 133 158 / 52%) 0 7rem, transparent 18rem),
        var(--navy);
    border-color: rgb(255 255 255 / 8%);
}

.home-about::after {
    position: absolute;
    right: -2rem;
    bottom: -2.5rem;
    width: 11rem;
    height: 11rem;
    background: radial-gradient(circle, rgb(255 255 255 / 12%) 0 0.11rem, transparent 0.15rem) 0 0 / 1rem 1rem;
    content: "";
    opacity: 0.7;
    transform: rotate(12deg);
}

.home-about > * {
    position: relative;
    z-index: 1;
}

.home-about .page-kicker {
    color: #ef9a4f;
}

.home-about > p:not(.page-kicker) {
    color: rgb(255 255 255 / 75%);
    line-height: 1.65;
}

.home-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-block: 2rem;
}

.home-facts div {
    padding-inline: 0.75rem;
    border-left: 1px solid rgb(255 255 255 / 19%);
}

.home-facts div:first-child {
    padding-left: 0;
    border-left: 0;
}

.home-facts dt {
    font-family: "finlandica", "jost", sans-serif;
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 650;
}

.home-facts dd {
    margin: 0.15rem 0 0;
    color: rgb(255 255 255 / 58%);
    font-size: 0.76rem;
}

.home-about .button--dark {
    color: var(--navy);
    background: #fff;
}

.home-about .button--dark:hover {
    background: #f0d9c5;
}

/*
 * Корневой блок появляется при загрузке страницы. Карточки ниже по странице
 * используют CSS view timeline; без её поддержки контент остаётся видимым.
 */
@keyframes reveal-in {
    from {
        opacity: 0;
        transform: translateY(1.4rem);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .page-content:not(.page-content--home) > * {
        animation: reveal-in 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    @supports (animation-timeline: view()) {
        :is(
            .afisha-card,
            .home-panel,
            .content-card,
            .document-year
        ) {
            animation: reveal-in 1ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
            animation-timeline: view();
            animation-range: entry 10% entry 50%;
        }
    }
}

.afisha-hero__content {
    animation: hero-content-in 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.afisha-hero__image {
    animation: hero-image-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.afisha-hero::after,
.home-about::after {
    animation: pattern-drift 9s ease-in-out infinite alternate;
}

.afisha-empty__ornaments,
.afisha-card__ornaments {
    animation: pattern-drift 3s ease-in-out infinite alternate;
}

.afisha-hero__symbol:nth-child(1) {
    animation: hero-ornament-float-a 7.2s ease-in-out -1.4s infinite alternate;
}

.afisha-hero__symbol:nth-child(2) {
    animation: hero-ornament-float-b 8.6s ease-in-out -4.1s infinite alternate;
}

.afisha-hero__symbol:nth-child(3) {
    animation: hero-ornament-float-c 6.8s ease-in-out -2.7s infinite alternate;
}

.afisha-hero__symbol:nth-child(4) {
    animation: hero-ornament-float-d 9.4s ease-in-out -5.3s infinite alternate;
}

.afisha-card:nth-child(even) .afisha-card__ornaments {
    animation-direction: alternate-reverse;
    animation-duration: 10s;
}

@keyframes hero-content-in {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }
}

@keyframes hero-image-in {
    from {
        opacity: 0;
        transform: scale(1.08);
    }
}

@keyframes pattern-drift {
    to {
        translate: 0 -0.75rem;
        rotate: 2deg;
    }
}

@keyframes hero-ornament-float-a {
    45% {
        translate: 0.45rem -0.65rem;
        rotate: -2deg;
    }

    100% {
        translate: -0.25rem -1rem;
        rotate: 1.5deg;
    }
}

@keyframes hero-ornament-float-b {
    35% {
        translate: -0.55rem -0.25rem;
        rotate: 2.5deg;
    }

    100% {
        translate: 0.3rem -0.8rem;
        rotate: -1deg;
    }
}

@keyframes hero-ornament-float-c {
    55% {
        translate: 0.2rem -0.9rem;
        rotate: 1deg;
    }

    100% {
        translate: -0.45rem -0.4rem;
        rotate: -2.5deg;
    }
}

@keyframes hero-ornament-float-d {
    40% {
        translate: -0.3rem -0.7rem;
        rotate: -1.5deg;
    }

    100% {
        translate: 0.5rem -0.25rem;
        rotate: 2deg;
    }
}

@media (max-width: 68rem) {
    .afisha-hero__image {
        width: 70%;
    }

    .afisha-hero__content {
        width: 63%;
    }

    .afisha-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .afisha-card {
        min-height: 34rem;
    }

}

@media (max-width: 52rem) {
    .page-content:not(.page-content--home) > :not(.afisha-showcase),
    .afisha-showcase:not(.afisha-showcase--home) .page-heading {
        border-radius: 1.3rem;
    }

    .afisha-hero {
        min-height: 43rem;
        border-radius: 1.5rem 1.5rem 28% 8% / 1.5rem 1.5rem 7% 5%;
    }

    .afisha-hero__image {
        width: 100%;
        opacity: 0.82;
        object-position: center top;
    }

    .afisha-hero__shade {
        background:
            linear-gradient(0deg, #041d32 0 23%, rgb(4 29 50 / 91%) 55%, rgb(4 29 50 / 20%) 100%),
            linear-gradient(90deg, rgb(4 29 50 / 50%), transparent);
    }

    .afisha-hero__ornaments {
        top: 20%;
        bottom: auto;
        width: 100%;
        height: 65%;
        opacity: 0.48;
    }

    .afisha-hero__symbol:nth-child(n + 3),
    .afisha-empty__symbol:nth-child(n + 3),
    .afisha-card__symbol:nth-child(n + 3) {
        display: none;
    }

    .afisha-hero__symbol:nth-child(1),
    .afisha-empty__symbol:nth-child(1) {
        top: 8%;
        right: auto;
        bottom: auto;
        left: 8%;
        width: 7rem;
        height: 6rem;
        transform: rotate(-5deg);
    }

    .afisha-hero__symbol:nth-child(2),
    .afisha-empty__symbol:nth-child(2) {
        top: auto;
        right: 7%;
        bottom: 5%;
        left: auto;
        width: 8rem;
        height: 6rem;
        transform: rotate(6deg);
    }

    .afisha-empty {
        min-height: 31rem;
    }

    .afisha-empty__ornaments {
        top: auto;
        bottom: 0;
        width: 100%;
        height: 45%;
        opacity: 0.52;
    }

    .afisha-empty__symbol--branch {
        width: 11rem;
        height: 12rem;
    }

    .afisha-hero__content {
        min-height: 43rem;
        width: 100%;
        justify-content: flex-end;
        padding: clamp(1.5rem, 7vw, 3rem);
    }

    .afisha-hero h1,
    .afisha-hero h2 {
        font-size: clamp(2.5rem, 12vw, 4.2rem);
    }

    .afisha-hero__description {
        display: none;
    }

    .afisha-grid {
        grid-auto-columns: minmax(15.5rem, 78vw);
        grid-auto-flow: column;
        grid-template-columns: none;
        padding: 0.5rem 0.1rem 1.5rem;
        margin-inline: calc(var(--page-padding) * -0.4);
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 0.5rem;
        scroll-snap-type: inline mandatory;
        scrollbar-width: thin;
    }

    .afisha-card,
    .afisha-card:nth-child(even) {
        min-height: 29rem;
        margin-top: 0;
        scroll-snap-align: start;
    }

    .home-dashboard {
        grid-template-columns: 1fr;
    }

    .home-about {
        min-height: 27rem;
    }
}

@media (max-width: 38rem) {
    :root {
        --header-height: 4.75rem;
    }

    .site-logo img {
        width: 8.25rem;
    }

    .header-search,
    .mobile-navigation__toggle {
        width: 2.65rem;
        height: 2.65rem;
    }

    .section-heading,
    .home-panel__heading {
        align-items: flex-start;
    }

    .section-link {
        font-size: 0.88rem;
    }

    .afisha-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .afisha-hero__location {
        font-size: 0.82rem;
    }

    .home-facts {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .home-facts div,
    .home-facts div:first-child {
        display: grid;
        grid-template-columns: 5rem 1fr;
        align-items: baseline;
        padding: 0.7rem 0 0;
        border-top: 1px solid rgb(255 255 255 / 16%);
        border-left: 0;
    }

    .document-link {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .afisha-hero__content,
    .afisha-hero__image,
    .afisha-hero__ornaments,
    .afisha-hero__symbol,
    .afisha-empty__ornaments,
    .afisha-card__ornaments,
    .afisha-hero::after,
    .home-about::after {
        animation: none;
    }

    .afisha-card__ornaments {
        transition: none;
    }

    .afisha-card:hover .afisha-card__ornaments {
        transform: none;
    }
}

:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

:root {
    --canvas: #eef1ec;
    --surface: #f9faf6;
    --surface-muted: #e7ebe5;
    --navy: #062a44;
    --navy-soft: #123f5e;
    --header-background: #f7f9f5;
    --menu-background: #fbfcf8;
    --text-color: #0d3550;
    --muted-color: #587080;
    --accent-color: #bd5d0b;
    --accent-hover: #d36a11;
    --focus-color: #006fc9;
    --border-color: rgb(18 60 90 / 15%);
    --shadow-soft: 0 1.5rem 4rem rgb(4 39 63 / 10%);
    --shadow-card: 0 0.8rem 2.5rem rgb(4 39 63 / 9%);
    --radius-large: 2rem;
    --radius-medium: 1.25rem;
    --header-height: 5.75rem;
    --page-padding: clamp(1rem, 4vw, 3rem);
}

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

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    margin: 0;
    color: var(--text-color);
    background:
        radial-gradient(circle at 9% 9%, rgb(255 255 255 / 88%) 0 9rem, transparent 28rem),
        radial-gradient(circle at 88% 26%, rgb(22 80 111 / 7%) 0 8rem, transparent 28rem),
        var(--canvas);
}

a {
    color: inherit;
}

.page-content {
    width: min(100%, 80rem);
    flex: 1;
    padding: clamp(1.5rem, 4vw, 3rem) var(--page-padding);
    margin-inline: auto;
}

.page-content--home {
    width: min(100%, 92rem);
    padding-top: clamp(0.75rem, 2vw, 1.5rem);
}

.page-content:not(.page-content--home) > :not(.afisha-showcase) {
    padding: clamp(1.25rem, 4vw, 3.5rem);
    background: rgb(249 250 246 / 92%);
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
}

.page-section + .page-section {
    margin-top: 3rem;
}

.page-section > :first-child {
    margin-top: 0;
}

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

.page-section h1 {
    font-size: clamp(2.25rem, 6vw, 4.75rem);
    line-height: 1.15;
}

.page-kicker {
    margin-block: 0 0.5rem;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

:is(.content-page, .page-section, .documentation-page) h1 {
    max-width: 18ch;
    margin-block: 0 1.5rem;
    font-family: "finlandica", "jost", sans-serif;
    font-size: clamp(2.25rem, 6vw, 4.75rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

:is(.content-page, .page-section, .documentation-page) h2 {
    color: var(--navy);
    font-family: "finlandica", "jost", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.page-lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
}

.prose-page p,
.prose-page li {
    hyphens: auto;
    overflow-wrap: break-word;
    text-wrap: pretty;
}

.prose-page > p,
.prose-page > section > p {
    margin-block: 0 1.15rem;
}

.prose-page > ul,
.prose-page > ol,
.prose-page > section > ul,
.prose-page > section > ol,
.prose-page .content-details__body > ul,
.prose-page .content-details__body > ol {
    padding-left: 1.4rem;
}

.prose-page li + li {
    margin-top: 0.55rem;
}

.prose-page h3 {
    max-width: 55ch;
    margin-block: 2rem 0.75rem;
    color: var(--navy);
    font-family: "finlandica", "jost", sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.25;
}

.etiquette-page ol > li::marker {
    color: var(--accent-color);
    font-weight: 750;
}

.etiquette-page li > p {
    margin-block: 0.35rem 0;
}

.etiquette-page__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 14rem));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.etiquette-page__links a {
    display: grid;
    gap: 0.75rem;
    color: var(--navy);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.etiquette-page__links img {
    width: 11.25rem;
    padding: 0.5rem;
    border: 1px solid rgb(0 0 0 / 12%);
    border-radius: 0.75rem;
    background: #fff;
}

.etiquette-page__links a:hover span {
    text-decoration: underline;
}

.etiquette-page__thanks {
    margin-top: 2.5rem;
    color: var(--navy);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 700;
}

.institution-facts {
    max-width: 75ch;
    padding: 0;
    margin-block: 1.5rem 3rem;
    border-top: 1px solid var(--border-color);
}

.institution-facts > div {
    display: grid;
    grid-template-columns: minmax(11rem, 0.8fr) minmax(0, 1.5fr);
    gap: 1rem 2rem;
    padding-block: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.institution-facts dt {
    color: var(--muted-color);
    font-weight: 650;
}

.institution-facts dd {
    margin: 0;
}

.about-page__intro,
.contacts-page__intro {
    max-width: 62rem;
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.about-page__intro .page-lead,
.contacts-page__intro .page-lead {
    margin-bottom: 0;
    color: var(--muted-color);
}

.about-facts {
    display: grid;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-block: clamp(2rem, 5vw, 3.5rem);
}

.about-facts > div {
    padding: 1.25rem;
    background: rgb(255 255 255 / 72%);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
}

.about-facts dt {
    color: var(--navy);
    font-family: "finlandica", "jost", sans-serif;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 650;
    line-height: 1.15;
}

.about-facts dd {
    margin: 0.45rem 0 0;
    color: var(--muted-color);
    line-height: 1.45;
}

.about-links {
    margin-top: clamp(3rem, 7vw, 5rem);
}

.about-links__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.about-links__grid a {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    color: var(--navy);
    background: rgb(255 255 255 / 72%);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    text-decoration: none;
}

.about-links__grid a:hover,
.about-links__grid a:focus-visible {
    border-color: var(--accent-color);
}

.about-links__grid span {
    color: var(--muted-color);
    font-size: 0.92rem;
    line-height: 1.45;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: clamp(3rem, 7vw, 5rem);
}

.contact-card {
    min-width: 0;
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    background: rgb(255 255 255 / 76%);
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
}

.contact-card h2 {
    margin-block: 0 1rem;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.contact-card p {
    margin-block: 0.35rem;
    text-align: left;
}

.contact-card__primary {
    color: var(--navy);
    font-family: "finlandica", "jost", sans-serif;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 650;
    overflow-wrap: anywhere;
}

.contact-card__primary--mail {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.contact-location {
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-block: 0 clamp(3rem, 7vw, 5rem);
    background: rgb(9 50 76 / 5%);
    border-left: 0.3rem solid var(--accent-color);
    border-radius: 0 0.75rem 0.75rem 0;
}

.contact-location h2 {
    margin-top: 0;
}

.contact-location address {
    display: grid;
    gap: 0.35rem;
    font-style: normal;
    line-height: 1.6;
}

.contact-location address span {
    color: var(--muted-color);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    margin-top: 1.25rem;
}

.contact-directory,
.contact-requisites {
    padding: 0;
    margin-block: 1.5rem 3rem;
    border-top: 1px solid var(--border-color);
}

.contact-directory > div,
.contact-requisites > div {
    display: grid;
    grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 1.4fr);
    gap: 1rem 2rem;
    padding-block: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-directory dt,
.contact-requisites dt {
    color: var(--muted-color);
    font-weight: 650;
}

.contact-directory dd,
.contact-requisites dd {
    display: grid;
    gap: 0.3rem;
    margin: 0;
}

.contact-directory dd span {
    color: var(--muted-color);
    line-height: 1.5;
}

.contact-links {
    max-width: 75ch;
}

.festival-schedule {
    display: grid;
    max-width: none;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1rem;
    padding: 0;
    list-style: none;
}

.festival-schedule > li {
    max-width: none;
    padding: 1rem;
    margin: 0;
    white-space: pre-line;
    background: rgb(255 255 255 / 72%);
    border: 1px solid rgb(9 50 76 / 12%);
    border-radius: 0.75rem;
}

.festival-schedule > li > p {
    margin: 0.75rem 0 0;
    color: var(--muted-color);
    white-space: normal;
}

.studio-page > .content-image {
    max-width: 28rem;
    margin-block: 1.5rem 2.5rem;
}

@media (min-width: 48rem) {
    .prose-page > p,
    .prose-page > section > p,
    .prose-page > ul > li,
    .prose-page > ol > li,
    .prose-page > section > ul > li,
    .prose-page > section > ol > li,
    .prose-page .content-details__body > p,
    .prose-page .content-details__body > ul > li,
    .prose-page .content-details__body > ol > li,
    .staff-profile__text > p,
    .staff-profile__text > ul > li,
    .staff-profile__text > ol > li {
        text-align: justify;
        text-justify: inter-word;
    }
}

@media (max-width: 40rem) {
    .institution-facts > div,
    .contact-directory > div,
    .contact-requisites > div {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .about-facts,
    .about-links__grid,
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

.content-card,
.content-details,
.document-link,
.document-years a {
    background: rgb(255 255 255 / 72%);
    border-color: rgb(9 50 76 / 12%);
    border-radius: 1rem;
    box-shadow: 0 0.4rem 1.25rem rgb(4 39 63 / 5%);
}

.content-card,
.document-link {
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.content-card:hover,
.document-link:hover {
    border-color: rgb(189 93 11 / 42%);
    box-shadow: var(--shadow-card);
    transform: translateY(-0.2rem);
}

.content-image img,
.content-gallery img,
.content-card img {
    border-radius: 1rem;
}

.document-years a:hover,
.document-years a:focus-visible {
    background: var(--navy);
}

.document-meta {
    color: var(--accent-color);
}

.site-footer {
    position: relative;
    margin-top: clamp(2rem, 6vw, 5rem);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 15% 105%, rgb(69 125 151 / 35%) 0 9rem, transparent 26rem),
        radial-gradient(circle at 88% -20%, rgb(255 255 255 / 8%) 0 5rem, transparent 22rem),
        var(--navy);
    border: 0;
    border-radius: 48% 48% 0 0 / 2rem 2rem 0 0;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(11rem, 1.5fr) repeat(3, minmax(9rem, 1fr));
    gap: clamp(1.5rem, 4vw, 4rem);
    width: min(100%, 90rem);
    padding: clamp(3rem, 6vw, 5.5rem) var(--page-padding) 2.5rem;
    margin-inline: auto;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    text-decoration-color: rgb(255 255 255 / 40%);
    text-underline-offset: 0.2em;
}

.site-footer a:hover {
    text-decoration-color: var(--accent-hover);
}

.site-footer__brand {
    display: inline-flex;
    align-self: start;
}

.site-footer__brand img {
    width: min(11.25rem, 100%);
    height: auto;
    filter: brightness(0) invert(1);
}

.site-footer__column {
    display: grid;
    align-content: start;
    gap: 0.45rem;
    margin: 0;
    color: rgb(255 255 255 / 76%);
    font-style: normal;
}

.site-footer__column .site-footer__title {
    margin-bottom: 0.35rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: min(100%, 90rem);
    padding: 1.25rem var(--page-padding) 2rem;
    margin-inline: auto;
    color: rgb(255 255 255 / 60%);
    border-top: 1px solid rgb(255 255 255 / 14%);
    font-size: 0.9rem;
}

@media (max-width: 68rem) {
    .site-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 38rem) {
    .site-footer {
        border-radius: 1.5rem 1.5rem 0 0;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom {
        flex-direction: column;
    }
}

button,
a,
summary {
    -webkit-tap-highlight-color: transparent;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.75rem 1rem;
    color: #fff;
    background: var(--text-color);
    border-radius: 0.4rem;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip-path: inset(50%);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: rgb(247 249 245 / 89%);
    border-bottom: 1px solid rgb(9 50 76 / 8%);
    box-shadow: 0 0.35rem 1.5rem rgb(4 39 63 / 5%);
    backdrop-filter: blur(1rem);
}

.site-header__inner {
    position: relative;
    display: flex;
    min-height: var(--header-height);
    align-items: center;
    gap: 1rem;
    width: min(100%, 90rem);
    margin-inline: auto;
    padding-inline: var(--page-padding);
}

.site-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.site-logo img {
    display: block;
    width: clamp(8.5rem, 30vw, 11.25rem);
    height: auto;
}

.header-search,
.mobile-navigation__toggle {
    transition: color 180ms ease, background 180ms ease;
}

.header-search:hover,
.mobile-navigation__toggle:hover {
    color: var(--accent-color);
    background: rgb(189 93 11 / 8%);
}

.header-ticket,
.mobile-menu__ticket {
    box-shadow: 0 0.65rem 1.5rem rgb(189 93 11 / 22%);
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.header-ticket:hover,
.mobile-menu__ticket:hover {
    background: var(--accent-hover);
    box-shadow: 0 0.85rem 2rem rgb(189 93 11 / 30%);
    transform: translateY(-0.1rem);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.header-search,
.mobile-navigation__toggle {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    background: transparent;
    border: 0;
    border-radius: 0.5rem;
    cursor: pointer;
}

.header-search svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.header-ticket {
    display: none;
}

.desktop-navigation {
    display: none;
}

.mobile-navigation {
    position: static;
}

.mobile-navigation summary {
    list-style: none;
}

.mobile-navigation summary::-webkit-details-marker {
    display: none;
}

.mobile-navigation summary::marker {
    content: "";
}

.burger {
    position: relative;
    display: flex;
    width: 1.6rem;
    height: 1.25rem;
    flex-direction: column;
    justify-content: space-between;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transform-origin: center;
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.mobile-navigation[open] .burger span:nth-child(1) {
    transform: translateY(0.5625rem) rotate(45deg);
}

.mobile-navigation[open] .burger span:nth-child(2) {
    opacity: 0;
}

.mobile-navigation[open] .burger span:nth-child(3) {
    transform: translateY(-0.5625rem) rotate(-45deg);
}

.mobile-navigation__panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100dvh - var(--header-height));
    padding:
        0.75rem
        var(--page-padding)
        max(1.5rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--menu-background);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1.5rem 2.5rem rgb(0 25 45 / 18%);
}

.mobile-menu,
.desktop-menu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-menu {
    display: grid;
    text-transform: uppercase;
}

.mobile-menu__item {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu__link {
    display: flex;
    min-height: 3.5rem;
    align-items: center;
    padding-block: 0.75rem;
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
}

.mobile-menu__link::after {
    margin-left: auto;
    content: "→";
    font-size: 1.3rem;
    font-weight: 400;
}

.mobile-menu__link[aria-current="page"],
.mobile-menu__item--active > .mobile-menu__link {
    color: var(--accent-color);
}

.mobile-menu__ticket {
    display: flex;
    min-height: 3.5rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    color: #fff;
    background: var(--accent-color);
    border-radius: 0.45rem;
    font-weight: 600;
    text-decoration: none;
}

:is(
    .skip-link,
    .site-logo,
    .header-search,
    .header-ticket,
    .mobile-navigation__toggle,
    .mobile-menu__link,
    .mobile-menu__ticket,
    .desktop-menu__link
):focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
}

.mobile-menu:not(.mobile-menu--level-0) {
    padding-left: 1rem;
}

.mobile-menu:not(.mobile-menu--level-0)
    > .mobile-menu__item
    > .mobile-menu__link {
    min-height: 3rem;
    font-size: 1rem;
    font-weight: 500;
}

.mobile-menu {
    text-transform: none;
}

.mobile-menu__item {
    border-bottom: 0;
}

.mobile-menu--level-0 > .mobile-menu__item {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu__summary,
.mobile-menu--level-0 > .mobile-menu__item > .mobile-menu__link {
    min-height: 3.5rem;
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.mobile-menu__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.75rem;
    cursor: pointer;
    list-style: none;
    transition: color 180ms ease;
}

.mobile-menu__summary::-webkit-details-marker {
    display: none;
}

.mobile-menu__summary::marker {
    content: '';
}

.mobile-menu__summary:hover,
.mobile-menu__summary:focus-visible,
.mobile-menu__item--active > .mobile-menu__group > .mobile-menu__summary {
    color: var(--accent-color);
}

.mobile-menu__chevron,
.desktop-menu__chevron {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    flex: 0 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.mobile-menu__chevron {
    margin-right: 0.3rem;
    transform: rotate(45deg) translateY(-0.15rem);
    transition: transform 180ms ease;
}

.mobile-menu__group[open]
    > .mobile-menu__summary
    .mobile-menu__chevron {
    transform: rotate(225deg) translate(-0.1rem, -0.1rem);
}

.mobile-menu__link::after {
    display: none;
}

.mobile-menu--level-0
    > .mobile-menu__item
    > .mobile-menu__link::after {
    display: block;
    content: '→';
}

.mobile-menu:not(.mobile-menu--level-0) {
    gap: 0.15rem;
    padding: 0 0 0.85rem 1rem;
}

.mobile-menu:not(.mobile-menu--level-0)
    > .mobile-menu__item
    > .mobile-menu__link {
    min-height: 2.7rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.45rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
}

.mobile-menu:not(.mobile-menu--level-0)
    > .mobile-menu__item
    > .mobile-menu__link:hover,
.mobile-menu:not(.mobile-menu--level-0)
    > .mobile-menu__item
    > .mobile-menu__link:focus-visible {
    color: var(--accent-color);
    background: rgb(189 93 11 / 8%);
}

.mobile-menu__summary:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
}

@media (min-width: 75rem) {
    .site-header__inner {
        gap: clamp(1.5rem, 3vw, 3rem);
    }

    .desktop-navigation {
        display: block;
        min-width: 0;
        margin-left: auto;
        text-transform: uppercase;
    }

    .desktop-menu--level-0 {
        display: flex;
        align-items: center;
        gap: clamp(1rem, 1.5vw, 1.75rem);
    }

    .desktop-menu__item {
        position: relative;
    }

    .desktop-menu__link {
        position: relative;
        display: inline-flex;
        min-height: 2.75rem;
        align-items: center;
        gap: 0.55rem;
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }

    .desktop-menu__link::after {
        position: absolute;
        right: 0;
        bottom: 0.25rem;
        left: 0;
        height: 2px;
        background: var(--accent-color);
        content: "";
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 180ms ease;
    }

    .desktop-menu__link:hover::after,
    .desktop-menu__link:focus-visible::after,
    .desktop-menu__link[aria-current="page"]::after,
    .desktop-menu--level-0
        > .desktop-menu__item--active
        > .desktop-menu__link::after {
        transform: scaleX(1);
        transform-origin: left;
    }

    .desktop-menu:not(.desktop-menu--level-0) {
        position: absolute;
        z-index: 20;
        display: none;
        width: max-content;
        min-width: 13rem;
        max-width: min(22rem, calc(100vw - 2rem));
        padding: 0.5rem 0;
        background: var(--menu-background);
        border: 1px solid var(--border-color);
        border-radius: 0.9rem;
        box-shadow: 0 1rem 2rem rgb(0 25 45 / 14%);
    }

    .desktop-menu--level-1 {
        top: 100%;
        left: 0;
    }

    .desktop-menu--level-0
        > .desktop-menu__item:nth-last-child(-n + 2)
        > .desktop-menu--level-1 {
        right: 0;
        left: auto;
    }

    .desktop-menu:not(.desktop-menu--level-0):not(.desktop-menu--level-1) {
        top: 0;
        left: 100%;
    }

    .desktop-menu__item--has-children:hover > .desktop-menu:not(.desktop-menu--level-0),
    .desktop-menu__item--has-children:focus-within > .desktop-menu:not(.desktop-menu--level-0) {
        display: grid;
    }

    .desktop-menu:not(.desktop-menu--level-0) .desktop-menu__link {
        width: 100%;
        min-height: 2.5rem;
        padding: 0.6rem 1rem;
        font-weight: 500;
        white-space: normal;
    }

    .desktop-menu:not(.desktop-menu--level-0) .desktop-menu__link::after {
        display: none;
    }

    .desktop-menu:not(.desktop-menu--level-0) .desktop-menu__link:hover,
    .desktop-menu:not(.desktop-menu--level-0) .desktop-menu__link:focus-visible,
    .desktop-menu:not(.desktop-menu--level-0) .desktop-menu__link[aria-current="page"],
    .desktop-menu:not(.desktop-menu--level-0)
        .desktop-menu__item--active
        > .desktop-menu__link {
        color: var(--accent-color);
        background: rgb(189 93 11 / 8%);
    }

    .desktop-menu__chevron {
        width: 0.4rem;
        height: 0.4rem;
        margin-top: -0.2rem;
        transform: rotate(45deg);
    }

    .desktop-menu__item--wide-menu > .desktop-menu--level-1 {
        width: min(34rem, calc(100vw - 2rem));
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 0.25rem;
    }

    .mobile-navigation {
        display: none;
    }

    .header-ticket {
        display: inline-flex;
        min-height: 2.75rem;
        align-items: center;
        padding-inline: 1.25rem;
        color: #fff;
        background: var(--accent-color);
        border-radius: 0.4rem;
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Новости */
.news-showcase {
    min-width: 0;
}

.news-showcase:not(.news-showcase--home) .page-heading {
    margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.4vw, 1.75rem);
}

.news-showcase--home .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.5rem;
}

.news-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: rgb(255 255 255 / 82%);
    border: 1px solid rgb(9 50 76 / 12%);
    border-radius: 1.15rem;
    box-shadow: 0 0.7rem 2rem rgb(4 39 63 / 7%);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.news-card:hover {
    border-color: rgb(189 93 11 / 38%);
    box-shadow: var(--shadow-card);
    transform: translateY(-0.25rem);
}

.news-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 25%, rgb(82 143 169 / 55%), transparent 45%),
        var(--navy);
}

.news-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.news-card:hover .news-card__media img {
    transform: scale(1.025);
}

.news-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgb(255 255 255 / 82%);
    font-family: "finlandica", "jost", sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1rem, 2vw, 1.35rem);
}

.news-card__date {
    margin-bottom: 0.6rem;
    color: var(--accent-color);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-card__text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    line-clamp: 6;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

.news-showcase--home .news-card__text {
    line-clamp: 5;
    -webkit-line-clamp: 5;
}

.news-card__text a {
    color: var(--accent-color);
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.news-card__text a:hover {
    text-decoration-thickness: 2px;
}

.news-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 1rem;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.news-card__link span {
    color: var(--accent-color);
    transition: transform 180ms ease;
}

.news-card__link:hover span {
    transform: translateX(0.25rem);
}

.news-empty {
    padding: clamp(1.5rem, 4vw, 3rem);
    color: var(--muted-color);
    background: rgb(255 255 255 / 55%);
    border: 1px dashed rgb(9 50 76 / 22%);
    border-radius: 1rem;
}

.news-empty > :first-child {
    margin-top: 0;
}

.news-empty > :last-child {
    margin-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .news-card {
            animation: reveal-in 1ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
            animation-timeline: view();
            animation-range: entry 10% entry 50%;
        }
    }
}

@media (max-width: 68rem) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 38rem) {
    .news-grid,
    .news-showcase--home .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card__media {
        aspect-ratio: 16 / 10;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-card,
    .news-card__media img {
        transition: none;
    }

    .news-card:hover {
        transform: none;
    }

    .news-card:hover .news-card__media img {
        transform: none;
    }
}

/* Люди театра */
.staff-page__header {
    max-width: 52rem;
}

.staff-page__lead {
    max-width: 46rem;
    margin: 0;
    color: var(--muted-color);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
}

.staff-directory {
    padding: 1rem;
    margin-top: clamp(2rem, 5vw, 3.5rem);
    background: rgb(255 255 255 / 70%);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
}

.staff-directory__title {
    margin: 0 0 0.65rem;
    color: var(--muted-color);
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.staff-directory ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.staff-directory li {
    margin: 0;
}

.staff-directory a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    padding: 0.55rem 0.85rem;
    color: var(--navy);
    background: var(--canvas);
    border: 1px solid rgb(9 50 76 / 12%);
    border-radius: 0.65rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
}

.staff-directory a:hover,
.staff-directory a:focus-visible {
    color: #fff;
    background: var(--navy);
}

.staff-sections {
    display: grid;
    gap: clamp(3rem, 7vw, 5.5rem);
    margin-top: clamp(3rem, 7vw, 5.5rem);
}

.staff-group {
    scroll-margin-top: calc(var(--header-height) + 2rem);
}

.staff-group__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.staff-group__heading h2 {
    margin: 0 0 0.45rem;
}

.staff-group__heading p {
    margin: 0;
    color: var(--muted-color);
    line-height: 1.6;
}

.staff-group__count {
    display: grid;
    min-width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    place-items: center;
    color: var(--accent-color);
    background: rgb(189 93 11 / 9%);
    border-radius: 50%;
    font-weight: 750;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.staff-card {
    min-width: 0;
    overflow: hidden;
    background: rgb(255 255 255 / 78%);
    border: 1px solid rgb(9 50 76 / 12%);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgb(4 39 63 / 6%);
}

.staff-card--director {
    display: grid;
    grid-column: span 2;
    grid-template-columns: minmax(10rem, 0.9fr) minmax(12rem, 1.1fr);
    color: #fff;
    background: var(--navy);
    border-color: var(--navy);
}

.staff-card__media {
    display: grid;
    aspect-ratio: 1;
    overflow: hidden;
    place-items: center;
    color: rgb(255 255 255 / 92%);
    background: radial-gradient(circle at 70% 20%, rgb(82 143 169 / 65%), transparent 42%), var(--navy-soft);
}

.staff-card--director .staff-card__media {
    aspect-ratio: 1;
}

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

.staff-card__placeholder {
    font-family: "finlandica", "jost", sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.staff-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.1rem;
}

.staff-card--director .staff-card__content {
    align-self: center;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.staff-card h3 {
    margin: 0;
    font-family: "finlandica", "jost", sans-serif;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 650;
    line-height: 1.15;
}

.staff-card__role {
    margin: 0.65rem 0 0;
    color: var(--muted-color);
    font-size: 0.95rem;
    line-height: 1.45;
}

.staff-card--director .staff-card__role {
    color: rgb(255 255 255 / 76%);
}

.staff-card__birthday,
.staff-profile__birthday {
    display: grid;
    gap: 0.15rem;
    margin: 0.85rem 0 0;
    color: var(--muted-color);
    font-size: 0.95rem;
    font-weight: 650;
}

.staff-card__birthday span,
.staff-profile__birthday span {
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.staff-card--director .staff-card__birthday {
    color: rgb(255 255 255 / 75%);
}

.staff-card--director .staff-card__birthday span {
    color: #ffc58f;
}

.staff-card__actions {
    display: grid;
    width: 100%;
    gap: 0.65rem;
    align-items: start;
    justify-items: start;
    margin-top: auto;
    padding-top: 1rem;
}

.staff-card__mail {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 650;
    text-underline-offset: 0.2em;
}

.staff-card--director .staff-card__mail {
    color: #ffc58f;
}

.staff-card__profile {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.75rem;
    color: #fff;
    background: var(--navy);
    border-radius: 0.55rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.staff-card--director .staff-card__profile {
    color: var(--navy);
    background: #fff;
}

.staff-card__mail:focus-visible,
.staff-card__profile:focus-visible,
.staff-directory a:focus-visible {
    outline: 0.2rem solid var(--focus-color);
    outline-offset: 0.2rem;
}

.staff-card--director .staff-card__mail:focus-visible,
.staff-card--director .staff-card__profile:focus-visible {
    outline-color: #fff;
}

.staff-empty {
    padding: 2rem;
    margin-top: 2rem;
    border: 1px dashed var(--border-color);
    border-radius: 1rem;
}

.staff-profile__back {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.55rem;
    color: var(--accent-color);
    font-weight: 700;
    text-underline-offset: 0.2em;
}

.staff-profile__hero {
    display: grid;
    grid-template-columns: minmax(16rem, 28rem) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    margin-top: clamp(1.5rem, 4vw, 3rem);
}

.staff-profile__media {
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    place-items: center;
    color: rgb(255 255 255 / 92%);
    background: radial-gradient(circle at 70% 20%, rgb(82 143 169 / 65%), transparent 42%), var(--navy-soft);
    border-radius: 1.25rem;
}

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

.staff-profile__media > span {
    font-family: "finlandica", "jost", sans-serif;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.staff-profile__heading h1 {
    margin-bottom: 1rem;
}

.staff-profile__role {
    max-width: 40rem;
    margin: 0;
    color: var(--muted-color);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.5;
}

.staff-profile__birthday {
    margin-top: 1.25rem;
}

.staff-profile__mail {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    margin-top: 1.25rem;
    color: var(--accent-color);
    font-weight: 700;
    text-underline-offset: 0.2em;
}

.staff-profile__biography {
    max-width: 100%;
    padding-top: clamp(2rem, 5vw, 1rem);
    margin-top: clamp(2rem, 6vw, 1rem);
    border-top: 1px solid var(--border-color);
}

.staff-profile__biography h2 {
    margin-top: 0;
}

.staff-profile__text {
    color: var(--text-color);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.75;
}

.staff-profile__text > :first-child {
    margin-top: 0;
}

.staff-profile__text > :last-child {
    margin-bottom: 0;
}

.staff-profile__text li {
    margin-bottom: 0.5rem;
}

.staff-profile__back:focus-visible,
.staff-profile__mail:focus-visible {
    outline: 0.2rem solid var(--focus-color);
    outline-offset: 0.2rem;
}

@media (max-width: 68rem) {
    .staff-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 52rem) {
    .staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-profile__hero {
        grid-template-columns: 1fr;
    }

    .staff-profile__media {
        max-width: 32rem;
    }
}

@media (max-width: 38rem) {
    .staff-grid {
        grid-template-columns: 1fr;
    }

    .staff-card--director {
        display: block;
        grid-column: auto;
    }

    .staff-card--director .staff-card__media {
        aspect-ratio: 1;
    }

    .staff-group__heading {
        align-items: center;
    }
}

.projects h2 {
    font-size: 1.5rem;
}
