:root {
    --navy: #714684;
    --ink: #000;
    --muted: #000;
    --blue: #714684;
    --cyan: #714684;
    --paper: #fff;
    --soft: rgba(113, 70, 132, .07);
    --border: rgba(113, 70, 132, .23);
    --header-height: 110px;
    --font-scale: 1;
    --radius: 18px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
    font-size: calc(16px * var(--font-scale))
}

body {
    margin: 0;
    font-family: Arial, 'Helvetica Neue', sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    overflow-wrap: anywhere
}

button,
input,
textarea {
    font: inherit
}

button {
    cursor: pointer
}

button:disabled {
    cursor: not-allowed
}

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

a:hover {
    text-decoration: underline
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #714684;
    outline-offset: 4px
}

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

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    padding: 12px 22px;
    z-index: 1000;
    background: #fff;
    color: #000
}

.skip-link:focus {
    top: 10px
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 5px 24px rgba(113, 70, 132, 0.071)
}

.header-strip {
    background: var(--navy);
    color: #fff;
    font-size: .72rem
}

.strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 34px
}

.official-status {
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: .03em
}

.status-dot {
    height: 7px;
    width: 7px;
    background: rgba(113, 70, 132, .22);
    border-radius: 50%
}

.access-btn {
    color: #fff;
    background: none;
    border: 0;
    font-size: .73rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    padding: 5px 0
}

.access-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 245px
}

.brand:hover {
    text-decoration: none
}

.brand-logo {
    width: 57px;
    height: 57px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #fff;
    overflow: hidden;
    flex-shrink: 0
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.brand-logo.logo-missing::before {
    content: 'РМЦ';
    font-weight: 900;
    color: var(--navy);
    font-size: 1rem
}

.brand-name strong {
    display: block;
    font-size: .83rem;
    line-height: 1.23;
    letter-spacing: .01em
}

.brand-name small {
    display: block;
    color: var(--muted);
    font-size: .69rem;
    margin-top: 4px
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex: 1;
    flex-wrap: wrap
}

.desktop-nav a {
    font-size: .74rem;
    font-weight: 700;
    white-space: nowrap
}

.desktop-nav a:hover {
    color: var(--blue)
}

.header-call {
    border-left: 1px solid var(--border);
    padding-left: 20px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    line-height: 1.5
}

.header-call span {
    font-size: .7rem;
    color: var(--muted)
}

.header-call strong {
    font-size: .86rem
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 42px;
    height: 42px;
    padding: 9px
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 24px;
    background: var(--ink);
    margin: 5px 0;
    transition: transform .2s
}

.mobile-nav {
    padding: 10px 32px 22px;
    border-top: 1px solid var(--border);
    background: #fff
}

.mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column
}

.mobile-nav a,
.mobile-nav span {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 700
}

.a11y-panel {
    background: #fff;
    border-bottom: 2px solid #714684;
    padding: 14px 0;
    position: relative;
    z-index: 120
}

.a11y-panel[hidden] {
    display: none
}

.a11y-inner,
.a11y-actions {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap
}

.a11y-inner {
    justify-content: space-between
}

.a11y-actions button,
.reset-btn {
    background: #fff;
    border: 2px solid #714684;
    border-radius: 5px;
    padding: 6px 10px
}

.a11y-actions button[aria-pressed="true"] {
    background: #714684;
    color: #fff
}

.a11y-check {
    white-space: nowrap;
    font-size: .85rem
}

.hero {
    min-height: 610px;
    height: min(75vh, 780px);
    position: relative;
    background: #714684;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.hero-video,
.hero-art,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none
}

.hero-video {
    object-fit: cover;
    z-index: 1
}

.hero-art {
    z-index: 0;
    background: radial-gradient(circle at 68% 35%, #714684 0, transparent 40%), linear-gradient(120deg, #714684, #714684)
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px)
}

.glow-one {
    width: 390px;
    height: 390px;
    background: rgba(113, 70, 132, 0.333);
    right: 8%;
    top: 14%
}

.glow-two {
    width: 320px;
    height: 320px;
    border: 55px solid rgba(113, 70, 132, 0.533);
    right: 15%;
    top: 19%
}

.art-ring {
    position: absolute;
    width: 670px;
    height: 670px;
    right: -120px;
    top: 6%;
    border: 2px solid rgba(255, 255, 255, 0.224);
    border-radius: 50%;
    box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.027), 0 0 0 170px rgba(255, 255, 255, 0.024)
}

.hero-shade {
    z-index: 2;
    background: linear-gradient(90deg, rgba(113, 70, 132, 0.867) 0%, rgba(113, 70, 132, 0.667) 45%, rgba(113, 70, 132, 0.267) 100%)
}

.hero-content,
.hero-bottom {
    position: relative;
    z-index: 3
}

.hero-content {
    width: 100%;
    padding-top: 58px;
    padding-bottom: 72px
}

.eyebrow,
.section-kicker {
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .17em;
    font-weight: 800
}

.hero-eyebrow {
    color: rgba(113, 70, 132, .10);
    display: flex;
    align-items: center;
    gap: 12px
}

.line {
    width: 30px;
    height: 2px;
    background: rgba(113, 70, 132, .22)
}

.hero h1 {
    font-size: clamp(3.2rem, 7vw, 7.5rem);
    line-height: 1.02;
    letter-spacing: -.065em;
    font-weight: 900;
    max-width: 960px;
    margin: 24px 0 23px
}

.hero h1 em {
    font-style: normal;
    color: rgba(113, 70, 132, .22)
}

.hero-content p {
    max-width: 610px;
    font-size: 1.17rem;
    line-height: 1.6;
    color: rgba(113, 70, 132, .10)
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 35px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 52px;
    padding: 13px 23px;
    border-radius: 6px;
    font-weight: 800;
    font-size: .84rem;
    transition: transform .2s, background .2s;
    border: 1px solid transparent
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none
}

.btn-light {
    background: #fff;
    color: var(--navy)
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.627);
    color: #fff
}

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

.hero-bottom {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .76rem;
    color: rgba(113, 70, 132, .10)
}

.stats {
    background: #fff;
    border-bottom: 1px solid var(--border)
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 46px;
    padding-bottom: 46px
}

.stat {
    padding: 5px 32px;
    border-right: 1px solid var(--border)
}

.stat:first-child {
    padding-left: 0
}

.stat:last-child {
    border: 0
}

.stat-number {
    font-size: clamp(3.6rem, 6vw, 5.8rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.07em;
    color: var(--navy);
    white-space: nowrap
}

.stat-mark {
    color: var(--blue);
    font-size: .7em
}

.stat p {
    font-size: .9rem;
    line-height: 1.55;
    color: var(--muted);
    margin: 15px 0 0
}

.section {
    padding: 105px 0
}

.section-kicker {
    color: var(--blue);
    display: block;
    margin-bottom: 20px
}

.section h2 {
    font-size: clamp(2.25rem, 4.4vw, 4.25rem);
    letter-spacing: -.055em;
    line-height: 1.13;
    font-weight: 900;
    margin: 0
}

.section h2 span {
    color: var(--blue)
}

.about-grid {
    display: grid;
    grid-template-columns: .85fr 1fr;
    gap: clamp(30px, 7vw, 110px)
}

.about-aside h2 {
    margin-bottom: 40px
}

.about-decoration {
    border-radius: 22px;
    min-height: 230px;
    background: linear-gradient(145deg, #714684, #714684);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative
}

.about-decoration::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 60px solid rgba(255, 255, 255, 0.090);
    border-radius: 50%;
    right: -50px;
    top: -100px
}

.about-decoration>span {
    font-size: 6rem;
    color: #fff;
    font-weight: 900;
    letter-spacing: -.09em
}

.decor-dot {
    color: rgba(113, 70, 132, .22)
}

.about-copy .lead {
    font-size: 1.23rem;
    font-weight: 700;
    color: #714684;
    line-height: 1.75;
    margin-top: 0
}

.about-copy p {
    color: #714684;
    line-height: 1.9;
    margin: 0 0 20px
}

.about-copy p a {
    text-decoration: underline;
    text-decoration-color: #714684;
    text-underline-offset: 4px;
    color: #714684
}

.text-link {
    display: inline-flex;
    gap: 24px;
    font-weight: 900;
    color: var(--navy);
    border-bottom: 2px solid var(--blue);
    padding: 10px 0
}

.text-link:hover {
    text-decoration: none;
    color: var(--blue)
}

.events-section {
    background: var(--soft)
}

.section-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 36px
}

.section-intro {
    max-width: 370px;
    color: var(--muted);
    font-size: .95rem
}

.slider-controls {
    display: flex;
    gap: 10px
}

.slider-controls button {
    width: 49px;
    height: 49px;
    border-radius: 50%;
    border: 1px solid rgba(113, 70, 132, .22);
    background: #fff;
    color: var(--navy);
    font-size: 1.4rem
}

.slider-controls button:disabled {
    opacity: .4
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px
}

.event-card {
    min-width: 0
}

.event-image {
    aspect-ratio: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    padding: 30px;
    text-align: center
}

.event-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.event-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(113, 70, 132, 0.533), transparent 65%);
    pointer-events: none
}

.event-image span {
    position: relative;
    z-index: 1;
    font-size: clamp(1.5rem, 3vw, 2.6rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.05em
}

.event-caption {
    padding: 17px 4px 0
}

.event-caption small {
    font-size: .7rem;
    color: var(--blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em
}

.event-caption h3 {
    font-size: 1.17rem;
    line-height: 1.4;
    margin: 7px 0
}

.slider-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 28px;
    color: var(--muted);
    font-size: .83rem
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px
}

.direction-card {
    position: relative;
    min-height: 360px;
    padding: 29px;
    border-radius: 17px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden
}

.card-blue {
    background: rgba(113, 70, 132, .10)
}

.card-lime {
    background: rgba(113, 70, 132, .10)
}

.card-peach {
    background: rgba(113, 70, 132, .10)
}

.card-purple {
    background: rgba(113, 70, 132, .10)
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: .81rem
}

.card-top span:last-child {
    font-size: 1.4rem
}

.direction-illustration {
    position: absolute;
    font-size: 12rem;
    font-weight: 900;
    right: 20px;
    top: 45px;
    opacity: .18;
    line-height: 1;
    color: #714684
}

.direction-card h3 {
    font-size: 1.75rem;
    line-height: 1.15;
    letter-spacing: -.035em;
    margin: 0 0 8px
}

.direction-card p {
    max-width: 330px;
    font-size: .91rem;
    line-height: 1.6;
    margin: 0 0 15px
}

.soon {
    font-size: .67rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 800;
    border: 1px solid rgba(113, 70, 132, 0.333);
    border-radius: 30px;
    padding: 6px 10px;
    display: inline-block
}

.press {
    background: #fff
}

.press-inner {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 80px;
    align-items: center
}

.press-inner p {
    max-width: 600px;
    color: var(--muted);
    margin: 25px 0 30px
}

.press-art {
    height: 380px;
    border-radius: 17px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 74% 17%, rgba(113, 70, 132, .22), transparent 25%), linear-gradient(135deg, #714684, #714684);
    overflow: hidden;
    color: #fff
}

.press-art::before {
    content: '';
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.259);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    transform: translate(120px, 110px)
}

.press-art>span {
    font-size: clamp(3rem, 6vw, 5.7rem);
    font-weight: 900;
    letter-spacing: -.08em;
    transform: rotate(-9deg);
    z-index: 1
}

.press-art>span span {
    color: rgba(113, 70, 132, .22)
}

.press-art>div {
    position: absolute;
    bottom: 20px;
    left: 22px;
    font-size: .68rem;
    letter-spacing: .16em
}

.contact-section {
    background: var(--soft)
}

.contact-section h2 {
    margin-bottom: 45px
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.contact-panel,
.requisites-panel {
    border-radius: 16px;
    background: #fff;
    padding: 38px;
    min-width: 0
}

.contact-panel h3,
.requisites-panel h3 {
    font-size: 1.45rem;
    margin: 0 0 22px;
    line-height: 1.3
}

.contact-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border)
}

.contact-list a>span:nth-child(2) {
    flex: 1
}

.contact-list small {
    display: block;
    color: var(--muted);
    font-size: .75rem
}

.contact-list strong {
    font-size: .93rem
}

.contact-icon {
    background: #fff;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: .83rem;
    font-weight: 900;
    color: #714684
}

.hours-block {
    display: flex;
    gap: 30px;
    padding-top: 28px;
    justify-content: space-between;
    font-size: .87rem
}

.hours-block span {
    color: var(--muted)
}

.requisites-panel dl {
    margin: 0
}

.requisites-panel dl>div {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border)
}

.requisites-panel dt {
    color: var(--muted);
    font-size: .82rem
}

.requisites-panel dd {
    margin: 0;
    font-size: .87rem;
    font-weight: 700
}

.requisite-warning {
    font-size: .76rem;
    color: #714684;
    margin: 18px 0 0
}

.feedback {
    background: #fff
}

.feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px
}

.feedback-grid>div:first-child p {
    max-width: 460px;
    color: var(--muted);
    margin: 24px 0
}

.feedback-form {
    background: #fff;
    padding: 35px;
    border-radius: 18px
}

.form-alert {
    background: rgba(113, 70, 132, .10);
    color: #714684;
    font-size: .86rem;
    font-weight: 800;
    padding: 13px;
    border-radius: 8px;
    margin-bottom: 22px
}

.feedback-form form {
    display: flex;
    flex-direction: column;
    gap: 9px
}

.feedback-form label {
    font-size: .84rem;
    font-weight: 800
}

.feedback-form input,
.feedback-form textarea {
    border: 1px solid rgba(113, 70, 132, .10);
    background: #fff;
    border-radius: 7px;
    padding: 13px 15px;
    min-width: 0
}

.feedback-form input:disabled,
.feedback-form textarea:disabled {
    opacity: .9;
    color: #714684
}

.feedback-form textarea {
    resize: vertical
}

.feedback-form button {
    margin-top: 10px;
    opacity: .65
}

.form-footnote {
    font-size: .74rem;
    color: var(--muted);
    margin: 8px 0 0
}

.site-footer {
    background: #714684;
    color: #fff
}

.footer-top {
    padding-top: 65px;
    padding-bottom: 65px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 45px
}

.footer-brand {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.09em
}

.footer-brand span {
    color: rgba(113, 70, 132, .22)
}

.footer-top p {
    color: rgba(113, 70, 132, .22)
}

.footer-top nav,
.footer-connect {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: .87rem
}

.footer-top nav strong,
.footer-connect strong {
    margin-bottom: 8px
}

.footer-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px
}

.footer-bottom {
    padding-top: 20px;
    padding-bottom: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.180);
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: .74rem;
    color: white;
}

.theme-bw {
    --navy: #000;
    --ink: #000;
    --muted: #000;
    --blue: #000;
    --soft: #fff;
    --border: #714684;
    --cyan: #fff
}

.theme-dark {
    --navy: #fff;
    --ink: #fff;
    --muted: #fff;
    --blue: rgba(113, 70, 132, .22);
    --soft: #000;
    --paper: #000;
    --border: rgba(113, 70, 132, .22)
}

.theme-dark .site-header,
.theme-dark .mobile-nav,
.theme-dark .stats,
.theme-dark .contact-panel,
.theme-dark .requisites-panel,
.theme-dark .feedback-form,
.theme-dark .events-section,
.theme-dark .press {
    background: #000;
    color: #fff
}

.theme-dark .header-strip,
.theme-dark .site-footer {
    background: #000;
    border-bottom: 1px solid #fff
}

.theme-dark .brand-logo,
.theme-dark .contact-icon {
    background: #714684;
    color: #fff
}

.theme-dark .about-copy .lead,
.theme-dark .stat-number,
.theme-dark .text-link,
.theme-dark .header-call strong {
    color: #fff
}

.theme-dark .direction-card {
    background: #000;
    border: 1px solid #fff
}

.theme-dark .btn-dark {
    background: #fff;
    color: #000
}

.theme-dark .slider-controls button {
    background: #000;
    color: #fff
}

.theme-dark .feedback-form input,
.theme-dark .feedback-form textarea {
    background: #000;
    color: #fff
}

.theme-dark .hero-shade {
    background: rgba(0, 0, 0, 0.933)
}

.theme-dark .a11y-panel {
    color: #000
}

.no-images img,
.no-images .hero-video,
.no-images .hero-art,
.no-images .about-decoration,
.no-images .press-art,
.no-images .direction-illustration {
    visibility: hidden
}

.no-motion *,
.no-motion *::before,
.no-motion *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important
}

@media(max-width:1250px) {
    .desktop-nav {
        gap: 10px
    }

    .desktop-nav a {
        font-size: .69rem
    }

    .brand {
        flex-basis: 225px
    }

    .header-call {
        display: none
    }
}

@media(max-width:1020px) {
    .desktop-nav {
        display: none
    }

    .header-call {
        display: flex;
        margin-left: auto
    }

    .menu-toggle {
        display: block
    }

    .header-main {
        min-height: 75px
    }

    .section {
        padding: 75px 0
    }

    .hero {
        min-height: 540px
    }
}

@media(max-width:700px) {
    .container {
        padding: 0 20px
    }

    .strip-inner {
        flex-wrap: wrap;
        gap: 5px;
        padding-top: 7px;
        padding-bottom: 7px
    }

    .strip-hours {
        display: none
    }

    .official-status {
        font-size: .61rem
    }

    .access-btn {
        font-size: .65rem
    }

    .header-main {
        min-height: 72px
    }

    .brand {
        flex: 1;
        min-width: 0
    }

    .brand-logo {
        width: 45px;
        height: 45px
    }

    .brand-name strong {
        font-size: .68rem
    }

    .brand-name small {
        font-size: .6rem
    }

    .header-call {
        display: none
    }

    .hero {
        min-height: 620px;
        height: calc(85svh - 30px)
    }

    .hero h1 {
        font-size: clamp(3rem, 11vw, 5rem)
    }

    .hero-content {
        padding-top: 0;
        padding-bottom: 55px
    }

    .hero-content p {
        font-size: 1rem
    }

    .hero-bottom {
        bottom: 17px;
        gap: 10px
    }

    .hero-bottom>span {
        font-size: .61rem
    }


.stats-grid {
        grid-template-columns: 1fr;
        padding-top: 20px;
        padding-bottom: 20px
    }

    .stat,
    .stat:first-child {
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding: 24px 0
    }

    .stat:last-child {
        border: 0
    }

    .stat-number {
        font-size: 4.4rem
    }

    .stat p br {
        display: none
    }

    .section {
        padding: 65px 0
    }

    .about-grid,
    .press-inner,
    .contacts-grid,
    .feedback-grid {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .about-decoration {
        min-height: 150px
    }

    .about-decoration>span {
        font-size: 4rem
    }

    .about-copy .lead {
        font-size: 1.08rem
    }

    .section-top {
        align-items: flex-start;
        flex-wrap: wrap
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 25px
    }

    .event-image {
        max-height: none
    }

    .directions-grid {
        grid-template-columns: 1fr
    }

    .direction-card {
        min-height: 280px
    }

    .press-art {
        height: 250px
    }

    .contact-panel,
    .requisites-panel,
    .feedback-form {
        padding: 22px
    }

    .requisites-panel dl>div {
        grid-template-columns: 1fr;
        gap: 4px
    }

    .hours-block {
        flex-direction: column;
        gap: 8px
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px
    }

    .footer-top>div:first-child {
        grid-column: 1/-1
    }

    .footer-bottom {
        flex-direction: column
    }

    .slider-footer {
        flex-direction: column
    }

    .a11y-inner {
        align-items: flex-start;
        flex-direction: column
    }
}

@media(max-width:390px) {
    .brand-name strong {
        font-size: .6rem
    }

    .official-status {
        font-size: .55rem
    }

    .hero h1 {
        font-size: 2.8rem
    }

    .footer-top {
        grid-template-columns: 1fr
    }

    .footer-top>div:first-child {
        grid-column: auto
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important
    }
}

/* Единственная фирменная палитра: фиолетовый #714684, белый #fff и чёрный #000. */
.hero-art {
    background: linear-gradient(120deg, #714684, #000)
}

.hero-shade {
    background: linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(113, 70, 132, .38))
}

.about-decoration,
.press-art {
    background: linear-gradient(140deg, #714684, #000)
}

.card-blue,
.card-lime,
.card-peach,
.card-purple {
    background: rgba(113, 70, 132, .09)
}

.direction-illustration {
    color: #714684
}

.feedback-form,
.a11y-panel {
    background: rgba(113, 70, 132, .07)
}

.form-alert {
    background: rgba(113, 70, 132, .13);
    color: #000;
    border: 1px solid #714684
}

.requisite-warning {
    color: #000
}

.hero h1 em,
.hero-eyebrow,
.hero-content p,
.hero-bottom,
.press-art>span span,
.footer-brand span {
    color: #fff
}

.footer-brand {
    background-color: white;
border-radius: 10px;
}

.theme-dark {
    --navy: #fff;
    --ink: #fff;
    --muted: #fff;
    --blue: #fff;
    --soft: #000;
    --paper: #000;
    --border: #fff;
    --cyan: #fff
}

.theme-dark .a11y-actions button[aria-pressed="true"] {
    background: #000;
    color: #fff
}

.theme-dark .form-alert {
    background: #000;
    color: #fff;
    border-color: #fff
}

.theme-bw {
    --navy: #000;
    --ink: #000;
    --muted: #000;
    --blue: #000;
    --soft: #fff;
    --border: #000;
    --cyan: #fff
}

/* Дополнительные разделы и логотипы */
.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 220px;
    min-height: 65px
}

.footer-brand img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 75px;
    object-fit: contain
}

.about-logo {
    display: block;
    max-width: min(100%, 260px);
    max-height: 230px;
    object-fit: contain;
    margin: 35px auto
}

.staff-section {
    background: #fff
}

.staff-details,
.center-hours {
    border: 1px solid rgba(113, 70, 132, .3);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 25px
}

.staff-details summary,
.center-hours summary {
    padding: 21px 25px;
    cursor: pointer;
    background: rgba(113, 70, 132, .08);
    color: #714684;
    font-weight: 800
}

.staff-details summary:focus-visible,
.center-hours summary:focus-visible {
    outline: 3px solid #714684;
    outline-offset: -3px
}

.staff-body {
    padding: 23px
}

.staff-body h3 {
    font-size: 1.3rem;
    margin: 30px 0 12px
}

.table-scroll {
    overflow: auto;
    max-width: 100%
}

.staff-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    text-align: left;
    font-size: .86rem
}

.staff-table th,
.staff-table td {
    padding: 13px;
    border: 1px solid rgba(113, 70, 132, .2);
    vertical-align: top
}

.staff-table thead {
    background: #714684;
    color: white
}

.staff-table tbody tr:nth-child(even) {
    background: rgba(113, 70, 132, .06)
}

.staff-table th[scope=row] {
    font-weight: 400
}

.staff-table th[scope=row] strong,
.staff-table th[scope=row] span {
    display: block
}

.staff-table a,
.center-card a {
    color: #714684;
    text-decoration: underline;
    overflow-wrap: anywhere
}

.centers-section {
    background: rgba(113, 70, 132, .06)
}

.centers-section>.container>p {
    max-width: 950px;
    line-height: 1.8
}

.center-hours {
    max-width: 700px;
    background: #fff;
    margin-bottom: 32px
}

.center-hours p {
    padding: 5px 22px 22px;
    line-height: 1.8
}

.centers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px
}

.center-card {
    border: 1px solid rgba(113, 70, 132, .22);
    background: #fff;
    border-radius: 14px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.center-card h3 {
    font-size: 1.4rem;
    margin: 0;
    color: #714684
}

.center-card p {
    margin: 0;
    line-height: 1.6
}

.center-card a {
    margin-top: auto;
    font-weight: 800
}

.employment-section {
    background: #714684;
    color: #fff
}

.employment-section h2 {
    color: #fff
}

.employment-section p {
    max-width: 700px;
    line-height: 1.8
}

.employment-section .btn {
    background: #fff;
    color: #000;
    margin-top: 20px
}

.coming-section {
    border-top: 1px solid rgba(113, 70, 132, .2)
}

@media(max-width:900px) {
    .centers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:600px) {
    .centers-grid {
        grid-template-columns: 1fr
    }

    .staff-body {
        padding: 12px
    }

    .footer-brand img {
        height: 62px
    }
}

/* Чистый первый экран: видео без заголовков и затемняющих слоёв. */
.hero {
    height: calc(100svh - 122px);
    min-height: 400px;
    background: #000;
    display: block;
    position: relative;
    overflow: hidden
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none
}

@media(max-width:1020px) {
    .hero {
        height: calc(100svh - 109px);
        min-height: 360px
    }
}

@media(max-width:700px) {
    .hero {
        height: calc(100svh - 110px);
        min-height: 320px
    }
}

.no-images .hero-video {
    visibility: hidden
}

/* Баннер на телефонах: ширина видео целиком видна, обрезаются только верх и низ. */
@media (max-width: 700px) {
  .hero {
    width: 100%;
    height: var(--mobile-hero-height, 50vw);
    max-height: 70svh;
    min-height: 0;
    overflow: hidden;
  }

  .hero-video {
    position: absolute;
    left: 0;
    top: 50%;
    right: auto;
    bottom: auto;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: fill;
    transform: translateY(-50%);
  }
}


/* Единый визуальный ритм уже существующих разделов. */
:root {
    --radius: 14px;
    --section-space: clamp(62px, 6.5vw, 94px);
    --surface-border: rgba(113, 70, 132, .20);
    --surface-tint: rgba(113, 70, 132, .055);
}

.section {
    padding-block: var(--section-space);
}

.section h2 {
    font-size: clamp(2rem, 4.1vw, 3.8rem);
    line-height: 1.16;
    letter-spacing: -.045em;
    margin-bottom: 22px;
}

.section-kicker {
    font-size: .77rem;
    letter-spacing: .12em;
    margin-bottom: 14px;
}

.section p {
    line-height: 1.75;
}

.about-copy {
    max-width: 1050px;
}

.about-copy .lead {
    font-size: clamp(1.1rem, 1.8vw, 1.28rem);
    line-height: 1.72;
    color: #714684;
}

.about-copy p {
    color: var(--ink);
    line-height: 1.78;
}

.stats-grid {
    padding-top: 42px;
    padding-bottom: 42px;
}

.stat-number {
    font-size: clamp(3.4rem, 5.5vw, 5.2rem);
}

.stat p {
    margin-top: 12px;
}

.staff-details,
.center-hours,
.center-card,
.contact-panel,
.requisites-panel,
.press-art {
    border-radius: var(--radius);
}

.staff-details,
.center-hours,
.center-card {
    border: 1px solid var(--surface-border);
}

.staff-details summary,
.center-hours summary {
    padding: 20px 24px;
    background: var(--surface-tint);
    color: #714684;
}

.staff-details summary:hover,
.center-hours summary:hover {
    background: rgba(113, 70, 132, .11);
}

.staff-body h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: clamp(1.12rem, 2vw, 1.38rem);
}

.staff-table th,
.staff-table td {
    padding: 14px 16px;
}

.center-card {
    padding: 26px;
    gap: 12px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.center-card:hover {
    border-color: #714684;
    box-shadow: 0 8px 22px rgba(113, 70, 132, .10);
    transform: translateY(-2px);
}

.center-card h3 {
    font-size: 1.3rem;
}

.contact-panel,
.requisites-panel {
    border: 1px solid var(--surface-border);
    padding: clamp(24px, 3vw, 36px);
}

.contact-panel h3,
.requisites-panel h3 {
    font-size: 1.35rem;
}

.btn {
    border-radius: 8px;
    transition: background .2s, color .2s, transform .2s;
}

.employment-section .section-kicker {
    color: #fff;
}

.site-footer .footer-top p {
    color: #fff;
}

.footer-brand {
    padding: 9px 12px;
}

/* В режиме доступности видео скрывается визуально, кнопок остановки нет. */
.no-motion .hero-video,
.no-images .hero-video {
    visibility: hidden;
}
/* @media (prefers-reduced-motion: reduce) {
    .hero-video { visibility: hidden; }
} */
@media (max-width: 700px) {
    .section { padding-block: 62px; }
    .stats-grid { padding-top: 22px; padding-bottom: 22px; }
    .center-card { padding: 23px; }
    .staff-details summary, .center-hours summary { padding: 18px 20px; }
    .staff-body { padding: 14px; }
}


/* Таблица контактов сотрудников перед разделом «Контакты». */
.directory-section {
    background: var(--paper);
}
.directory-section h2 {
    margin-bottom: 14px;
}
.directory-lead {
    max-width: 860px;
    margin: 0 0 28px;
    color: var(--muted);
    font-weight: 600;
}
.directory-addresses {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}
.directory-address {
    padding: 20px 22px;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 0;
}
.directory-address-label {
    display: block;
    margin-bottom: 9px;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .07em;
    color: var(--blue);
    text-transform: uppercase;
}
.directory-address p { margin: 0; font-size: .91rem; line-height: 1.6; }
.directory-main-contact p { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.directory-address a, .directory-table a { color: #714684; text-decoration: underline; text-underline-offset: 3px; }
.directory-address a:hover, .directory-table a:hover { text-decoration-thickness: 2px; }
.directory-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 12px 34px rgba(113, 70, 132, .055);
}
.directory-table-wrap:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.directory-table {
    width: 100%;
    min-width: 880px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: .88rem;
    line-height: 1.5;
    text-align: left;
}
.directory-col-name { width: 35%; }
.directory-col-office { width: 10%; }
.directory-col-phone { width: 14%; }
.directory-col-ext { width: 13%; }
.directory-col-email { width: 28%; }
.directory-table th,
.directory-table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    vertical-align: middle;
}
.directory-table tr > :last-child { border-right: 0; }
.directory-table tr:last-child > * { border-bottom: 0; }
.directory-table thead th {
    background: #714684;
    color: #fff;
    font-weight: 800;
    text-align: left;
    vertical-align: middle;
    line-height: 1.35;
}
.directory-table thead tr:nth-child(2) th { background: #805491; }
.directory-table tbody tr:not(.directory-group):nth-child(odd) { background: rgba(113, 70, 132, .035); }
.directory-table .directory-group th {
    padding: 13px 16px;
    color: #714684;
    background: rgba(113, 70, 132, .13);
    font-size: .96rem;
    font-weight: 800;
    text-align: left;
}
.directory-table th[scope="row"] { font-weight: normal; }
.directory-role { display: block; font-weight: 800; }
.directory-person { display: block; margin-top: 3px; }
.directory-office, .directory-phone, .directory-ext { text-align: center; }
.directory-email { overflow-wrap: anywhere; }
.directory-hint { margin: 12px 0 0; font-size: .79rem; color: var(--muted); }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.theme-dark .directory-table-wrap,
.theme-dark .directory-address { background: #000; color: #fff; }
.theme-dark .directory-table a,
.theme-dark .directory-address a,
.theme-dark .directory-address-label { color: #fff; }
.theme-dark .directory-table thead th,
.theme-dark .directory-table thead tr:nth-child(2) th { background: #fff; color: #000; }
.theme-dark .directory-table .directory-group th { background: #242424; color: #fff; }
.theme-dark .directory-table tbody tr:not(.directory-group):nth-child(odd) { background: #171717; }
.theme-bw .directory-table thead th,
.theme-bw .directory-table thead tr:nth-child(2) th { background: #000; color: #fff; }
.theme-bw .directory-table .directory-group th { background: #e9e9e9; color: #000; }
.theme-bw .directory-table a, .theme-bw .directory-address a { color: #000; }
@media (max-width: 960px) {
    .directory-addresses { grid-template-columns: 1fr 1fr; }
    .directory-main-contact { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .directory-addresses { grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
    .directory-main-contact { grid-column: auto; }
    .directory-address { padding: 16px 18px; }
    .directory-table { font-size: .85rem; }
    .directory-table th, .directory-table td { padding: 12px 13px; }
}


/* Раздел «Документы» перед справочником контактов. */
.documents-section {
    background: radial-gradient(circle at 94% 5%, rgba(255,255,255,.12), transparent 34%),
                radial-gradient(circle at 5% 105%, rgba(255,255,255,.075), transparent 40%),
                linear-gradient(135deg, #714684 0%, #613673 58%, #4e2b62 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.documents-section .section-kicker { color: #e8caef; }
.documents-section .documents-head h2 { color: #fff; margin-bottom: 8px; }
.documents-section .documents-dot { color: #d4b6df; }
.documents-head > p { margin: 0 0 32px; color: #f0e5f4; font-size: 1.02rem; }
.documents-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.document-category {
    min-width: 0;
    background: #fff;
    color: #271b30;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: var(--radius);
    padding: clamp(22px, 3vw, 34px);
    box-shadow: 0 14px 35px rgba(28,11,39,.11);
}
.document-category-top { display: flex; align-items: center; gap: 17px; margin-bottom: 22px; }
.document-category-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 14px;
    color: #714684;
    background: rgba(113,70,132,.095);
}
.document-category-icon svg { width: 29px; height: 29px; }
.document-category-kicker {
    display: block;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #805491;
    margin-bottom: 3px;
}
.document-category h3 { font-size: clamp(1.15rem, 2.1vw, 1.55rem); line-height: 1.25; letter-spacing: -.02em; margin: 0; }
.document-links { display: grid; gap: 10px; }
.document-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    background: #f7f3f9;
    border: 1px solid rgba(113,70,132,.15);
    border-radius: 10px;
    color: #3a2646;
    transition: background .2s, border-color .2s;
}
.document-link:hover { color: #542d66; background: #f0e7f5; border-color: rgba(113,70,132,.45); text-decoration: none; }
.document-link-name { font-weight: 700; line-height: 1.5; }
.document-link-format { flex: 0 0 auto; color: #714684; font-size: .8rem; font-weight: 800; }
.document-link:focus-visible { outline-color: #714684; }
.document-empty {
    margin: 0;
    padding: 18px 19px;
    border-radius: 10px;
    background: #f7f3f9;
    border: 1px dashed rgba(113,70,132,.24);
    color: #6a5874;
    font-size: .93rem;
}
.theme-bw .documents-section { background: #000; color: #fff; }
.theme-bw .documents-section .section-kicker,
.theme-bw .documents-head > p { color: #fff; }
.theme-bw .documents-dot { color: #fff; }
.theme-bw .document-category { border-color: #000; background: #fff; color: #000; }
.theme-bw .document-link { color: #000; background: #fff; border-color: #000; }
.theme-bw .document-link-format, .theme-bw .document-category-kicker { color: #000; }
.theme-dark .documents-section { background: #000; color: #fff; border-block: 1px solid #fff; }
.theme-dark .documents-section .section-kicker,
.theme-dark .documents-head > p { color: #fff; }
.theme-dark .document-category { background: #000; color: #fff; border-color: #fff; }
.theme-dark .document-category-icon { color: #fff; background: #222; }
.theme-dark .document-category-kicker, .theme-dark .document-link-format { color: #fff; }
.theme-dark .document-empty { background: #111; color: #fff; border-color: #fff; }
.theme-dark .document-link { background: #111; color: #fff; border-color: #fff; }
.theme-dark .document-link:hover { background: #242424; }
@media (max-width: 700px) {
    .documents-grid { grid-template-columns: 1fr; gap: 16px; }
    .documents-head > p { margin-bottom: 24px; }
    .document-category { padding: 22px 20px; }
    .document-category-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 12px; }
    .document-category-icon svg { width: 25px; height: 25px; }
    .document-category-top { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .document-link { transition: none; } }
