:root {
    --ink: #2f263d;
    --muted: #716b78;
    --purple: #69449f;
    --purple-dark: #543582;
    --purple-soft: #eadcfa;
    --surface: #ffffff;
    --tint: #faf8fd;
    --line: #ece8f1;
    --mint: #dff3eb;
    --yellow: #ffe89c;
    --pink: #f8dce8;
    --shadow: 0 18px 40px rgba(75, 50, 112, 0.1);
    --radius: 24px;
    --container: 1184px;
    --header-offset: 112px;
    --section-space: clamp(56px, 6vw, 88px);
}

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

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--surface);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.is-locked {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

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

button {
    color: inherit;
}

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

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;
    padding: 12px 18px;
    transform: translateY(-160%);
    border-radius: 10px;
    color: #fff;
    background: var(--purple-dark);
}

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

.skip-link:focus {
    transform: none;
}

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

.section {
    position: relative;
    padding-block: var(--section-space);
    scroll-margin-top: var(--header-offset);
}

.section--white + .section--white {
    padding-top: 0;
}

.section--white {
    background: var(--surface);
}

.section--tint {
    background: var(--tint);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(42px, 4.1vw, 58px);
    font-weight: 800;
}

h3 {
    font-size: 24px;
    font-weight: 800;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--purple);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 2px;
    content: "";
    background: var(--purple);
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: #fff;
    background: var(--purple);
    box-shadow: 0 12px 24px rgba(105, 68, 159, 0.22);
}

.button--primary:hover {
    background: var(--purple-dark);
    box-shadow: 0 16px 30px rgba(105, 68, 159, 0.28);
}

.button--secondary {
    border-color: var(--line);
    background: #fff;
}

.button--secondary:hover {
    border-color: #cfc2dd;
}

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

.button--accessibility {
    border: 2px solid #221a2f;
    color: #221a2f;
    background: #ffd957;
}

.site-header {
    position: sticky;
    top: -43px;
    z-index: 1000;
    background: #fff;
}

.topbar {
    min-height: 42px;
    color: #fff;
    background: var(--purple);
    font-size: 12px;
}

.topbar__inner {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topbar__contacts {
    display: flex;
    align-items: center;
    gap: 34px;
}

.topbar__contacts a,
.accessibility-trigger {
    opacity: 0.94;
}

.topbar__contacts a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.topbar__contacts img {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    object-fit: cover;
}

.topbar__contacts a:hover,
.accessibility-trigger:hover {
    opacity: 1;
    text-decoration: underline;
}

.accessibility-trigger {
    min-height: 34px;
    padding: 5px 12px;
    border: 2px solid #ffe26c;
    border-radius: 8px;
    color: #241a32;
    background: #ffe26c;
    cursor: pointer;
    font-weight: 800;
    white-space: nowrap;
}

.nav-shell {
    position: relative;
    min-height: 92px;
    border-bottom: 1px solid #f1edf5;
    background: #fff;
    box-shadow: 0 6px 20px rgba(61, 43, 96, 0.08);
}

.nav-shell__inner {
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: clamp(18px, 2vw, 36px);
}

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

.brand picture {
    display: block;
    line-height: 0;
}

.brand__logo {
    display: block;
    width: auto;
    height: 92px;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 1.65vw, 29px);
}

.desktop-nav a {
    flex: 0 0 auto;
    font-size: clamp(11px, 0.93vw, 14px);
    font-weight: 800;
    white-space: nowrap;
}

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

.header-cta {
    min-width: 207px;
    flex: 0 0 auto;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    padding: 12px;
    border: 0;
    border-radius: 14px;
    background: #f2edf8;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 3px auto;
    border-radius: 2px;
    background: var(--purple-dark);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1100;
}

.mobile-menu__backdrop,
.accessibility-panel__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 22, 43, 0.64);
    backdrop-filter: blur(3px);
}

.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(90vw, 400px);
    height: 100%;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -20px 0 60px rgba(32, 22, 45, 0.2);
    animation: slide-in 220ms ease-out;
}

.mobile-menu__head,
.accessibility-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.mobile-menu__head strong {
    font-size: 24px;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu nav a {
    min-height: 52px;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
}

.icon-button {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f0ebf6;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

@keyframes slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background:
        radial-gradient(circle at 83% 30%, rgba(255, 255, 255, 0.8) 0 19%, transparent 19.2%),
        radial-gradient(circle at 94% 20%, rgba(229, 206, 251, 0.55) 0 34%, transparent 34.2%),
        linear-gradient(120deg, #fff 3%, #f5ebff 38%, #ead7ff 100%);
}

.hero::after {
    position: absolute;
    right: -120px;
    bottom: -250px;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: rgba(214, 180, 246, 0.25);
    content: "";
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 680px;
    grid-template-columns: 0.94fr 1.06fr;
    align-items: center;
    gap: 26px;
    padding-block: 44px 73px;
}

.hero__content {
    padding-bottom: 4px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 26px;
    padding: 8px 14px;
    border: 1px solid rgba(95, 63, 142, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 22px rgba(76, 49, 107, 0.08);
    font-size: 13px;
    font-weight: 800;
}

.status-badge span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #51c695;
    box-shadow: 0 0 0 5px rgba(81, 198, 149, 0.13);
}

.hero h1 {
    margin-bottom: 26px;
    font-size: clamp(41px, 4.3vw, 67px);
    font-weight: 800;
    line-height: 1.01;
    letter-spacing: -0.048em;
}

.hero h1 em {
    color: var(--purple);
    font-style: normal;
}

.hero__lead {
    max-width: 560px;
    margin-bottom: 26px;
    color: #655d6d;
    font-size: 18px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero__note {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 0;
    font-size: 13px;
    font-weight: 700;
}

.color-dots {
    display: flex;
    align-items: center;
}

.color-dots i {
    width: 18px;
    height: 28px;
    margin-right: -4px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.color-dots i:nth-child(1) { background: #ffd868; }
.color-dots i:nth-child(2) { background: #f2bed3; }
.color-dots i:nth-child(3) { background: #b7ead8; }

.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 44% 44% 30% 30%;
    filter: drop-shadow(0 28px 24px rgba(94, 61, 141, 0.12));
}

.hero__visual img {
    width: min(100%, 620px);
    aspect-ratio: 620 / 590;
    border-radius: 44% 44% 30% 30%;
    object-fit: cover;
    object-position: 50% 22%;
    transform: scale(1.14);
    transform-origin: 50% 60%;
}

.feature-strip {
    position: relative;
    z-index: 5;
    display: grid;
    min-height: 126px;
    grid-template-columns: repeat(4, 1fr);
    margin-top: -64px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #eee8f4;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.feature-strip article {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 26px 24px;
}

.feature-strip article + article {
    border-left: 1px solid var(--line);
}

.feature-strip article > img {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 14px;
    object-fit: cover;
}

.feature-strip strong,
.feature-strip small {
    display: block;
}

.feature-strip strong {
    margin-bottom: 5px;
    font-size: 17px;
}

.feature-strip small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.section-heading {
    margin-bottom: 60px;
}

.section-heading--split,
.section-heading--button {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    gap: 90px;
}

.section-heading--split > p {
    max-width: 470px;
    margin: 0 0 5px auto;
    color: var(--muted);
    font-size: 18px;
}

.section-heading--button .button {
    justify-self: end;
    align-self: center;
}

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

.advantage-card {
    display: flex;
    min-width: 0;
    min-height: 460px;
    height: 100%;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(63, 45, 86, 0.05);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.advantage-card:hover {
    transform: translateY(-4px);
    border-color: #dcd2e7;
    box-shadow: 0 18px 38px rgba(63, 45, 86, 0.1);
}

.advantage-card__icon {
    width: 100%;
    height: 220px;
    margin-bottom: 26px;
    border-radius: 16px;
    object-fit: cover;
    object-position: 50% 45%;
}

.advantage-card__image--english-environment {
    object-position: 50% 18%;
}

.advantage-card__image--health {
    object-position: 50% 15%;
}

.advantage-card__image--safety {
    object-position: 50% 18%;
}

.advantage-card__image--teachers {
    object-position: 50% 20%;
}

.advantage-card__image--territory {
    object-position: 50% 32%;
}

.advantage-card h3 {
    margin-bottom: 18px;
    overflow-wrap: anywhere;
}

.advantage-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

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

.bilingual-card {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(73, 50, 100, 0.09);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.bilingual-card:hover {
    transform: translateY(-4px);
    border-color: #d7cbe4;
    box-shadow: 0 22px 44px rgba(73, 50, 100, 0.14);
}

.bilingual-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.4 / 1;
    background: #f0e7fb;
}

.bilingual-card--english .bilingual-card__image {
    background: #fff0bd;
}

.bilingual-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%;
}

.bilingual-card--russian .bilingual-card__image img {
    object-position: 50% 25%;
}

.bilingual-card--english .bilingual-card__image img {
    object-position: 50% 20%;
}

.bilingual-card__body {
    padding: 32px 34px 36px;
}

.bilingual-card h3 {
    margin-bottom: 16px;
    font-size: 29px;
    overflow-wrap: anywhere;
}

.bilingual-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 16px;
    overflow-wrap: anywhere;
}

.parents-message {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 820px) minmax(140px, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 60px);
    margin: 0 auto;
    padding: 75px 86px;
    overflow: hidden;
    border-radius: 30px;
    color: #fff;
    background: #624094;
    box-shadow: 0 24px 50px rgba(76, 50, 112, 0.16);
}

.parents-message__content,
.parents-message__mark {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.parents-message__content {
    max-width: 820px;
}

.parents-message__mark {
    width: clamp(150px, 15vw, 200px);
    padding: 18px;
    justify-self: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 38px rgba(39, 23, 63, 0.16);
}

.parents-message__mark img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.parents-message::before,
.parents-message::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    background: rgba(255, 255, 255, 0.05);
}

.parents-message::before {
    top: -200px;
    left: -160px;
    width: 420px;
    height: 420px;
}

.parents-message::after {
    right: -150px;
    bottom: -260px;
    width: 500px;
    height: 500px;
}

.parents-message .eyebrow {
    color: #e8dafa;
}

.parents-message .eyebrow::before {
    background: #e8dafa;
}

.parents-message h2 {
    margin-bottom: 30px;
    font-size: clamp(40px, 4.2vw, 58px);
}

.parents-message__content > p:not(.eyebrow) {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.72;
    text-align: left;
}

.parents-message footer {
    position: relative;
    z-index: 1;
    max-width: 820px;
    font-size: 16px;
}

.parents-message footer {
    margin-top: 24px;
    font-weight: 800;
}

.parents-message footer::before {
    display: inline-block;
    width: 42px;
    height: 1px;
    margin-right: 15px;
    vertical-align: middle;
    content: "";
    background: rgba(255, 255, 255, 0.8);
}

.visit-card {
    position: relative;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 70px;
    padding: 58px 72px;
    overflow: hidden;
    border-radius: 28px;
    color: #fff;
    background: #6a45a0;
    box-shadow: var(--shadow);
}

.visit-card::after {
    position: absolute;
    right: -80px;
    bottom: -230px;
    width: 520px;
    height: 520px;
    border: 80px solid rgba(255, 255, 255, 0.045);
    border-radius: 50%;
    content: "";
}

.visit-card__copy,
.visit-form {
    position: relative;
    z-index: 1;
}

.visit-card .eyebrow {
    color: #e4d4f8;
}

.visit-card .eyebrow::before {
    background: #e4d4f8;
}

.visit-card h2 {
    margin-bottom: 20px;
    font-size: clamp(44px, 4.4vw, 62px);
}

.visit-card__copy > p:last-child {
    margin-bottom: 0;
    color: #e6ddf0;
}

.visit-form {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

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

.field input {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
}

.field input[aria-invalid="true"] {
    border-color: #d92b55;
}

.field-error {
    display: block;
    min-height: 18px;
    margin: 4px 3px 0;
    color: #fff2a8;
    font-size: 11px;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 8px 0 4px;
    color: #f2eafb;
    cursor: pointer;
    font-size: 11px;
}

.consent input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
    accent-color: #ffe26c;
}

.consent a {
    text-decoration: underline;
}

.form-submit {
    width: 100%;
}

.form-submit[disabled] {
    cursor: wait;
    opacity: 0.72;
}

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.form-submit.is-loading .spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(1turn); }
}

.form-status {
    min-height: 20px;
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 700;
}

.form-status.is-success { color: #d9ffbf; }
.form-status.is-error { color: #fff0a7; }

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contacts__grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    align-items: center;
    gap: 70px;
}

.contacts__copy > p:not(.eyebrow) {
    max-width: 490px;
    margin: 28px 0;
    color: var(--muted);
    font-size: 17px;
}

.contact-list {
    display: grid;
    gap: 18px;
    font-style: normal;
}

.contact-list > * {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-list > * > img:first-child {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

.contact-list small,
.contact-list strong {
    display: block;
}

.contact-list small {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 10px;
}

.contact-list strong {
    font-size: 16px;
}

.map-card {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    border: 8px solid #fff;
    border-radius: 28px;
    background:
        linear-gradient(33deg, transparent 43%, #fff 43% 47%, transparent 47%),
        linear-gradient(100deg, transparent 35%, #fff 35% 39%, transparent 39%),
        linear-gradient(162deg, transparent 55%, #fff 55% 60%, transparent 60%),
        #ece9f1;
    box-shadow: var(--shadow);
}

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

.map-card__placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.map-pin {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 24px;
    transform: rotate(45deg);
    border-radius: 50% 50% 50% 0;
    background: var(--purple);
}

.map-pin::after {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    content: "";
    background: #fff;
}

.map-card__placeholder strong,
.map-card__placeholder small {
    display: block;
    max-width: 320px;
}

.map-card__placeholder small {
    margin: 5px 0 18px;
}

.map-card__placeholder a {
    padding: 9px 15px;
    border-radius: 999px;
    color: #fff;
    background: var(--purple);
    font-size: 12px;
    font-weight: 800;
}

.site-footer {
    padding: clamp(48px, 5vw, 64px) 0 32px;
    scroll-margin-top: var(--header-offset);
    color: #e9e4ef;
    background: #2e253e;
}

.site-footer .brand {
    color: #fff;
}

.site-footer .brand__logo {
    height: 118px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.7fr 0.95fr;
    align-items: start;
    column-gap: clamp(32px, 4.2vw, 56px);
    row-gap: 32px;
}

.footer-grid > div:first-child p {
    margin: 22px 0 0;
    color: #bcb4c6;
    font-size: 13px;
}

.footer-grid nav,
.footer-contacts {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.footer-grid nav {
    gap: 0;
}

.footer-contacts {
    gap: 11px;
}

.footer-nav__links {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
}

.footer-grid strong {
    display: block;
    margin-bottom: 0;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-contacts strong {
    margin-bottom: 7px;
}

.footer-grid nav a,
.footer-contacts a,
.footer-contacts span {
    color: #bcb4c6;
    font-size: 13px;
}

.footer-grid nav a:hover,
.footer-contacts a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 58px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #8f879b;
    font-size: 10px;
}

.legal-page {
    padding: 90px 0 120px;
    background: var(--tint);
}

.legal-page__container {
    max-width: 900px;
    padding: 60px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.legal-page h1 {
    margin-bottom: 36px;
    font-size: clamp(42px, 5vw, 66px);
}

.legal-page h2 {
    margin: 42px 0 16px;
    font-size: 28px;
}

.legal-page p {
    color: #5f5965;
}

.legal-notice {
    padding: 20px;
    border-left: 5px solid #d5a928;
    color: #2b2515 !important;
    background: #fff4c7;
}

.accessibility-panel {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.accessibility-panel__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(calc(100% - 32px), 820px);
    max-height: min(90vh, 820px);
    padding: 32px;
    overflow-y: auto;
    transform: translate(-50%, -50%);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 100px rgba(23, 15, 34, 0.34);
}

.accessibility-panel__head {
    margin-bottom: 26px;
}

.accessibility-panel h2 {
    font-size: 34px;
}

.accessibility-panel fieldset {
    margin: 0 0 22px;
    padding: 20px;
    border: 1px solid #d9d4df;
    border-radius: 14px;
}

.accessibility-panel legend {
    padding: 0 8px;
    font-weight: 800;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.option-grid button {
    min-height: 50px;
    padding: 10px;
    border: 2px solid #d8d2df;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.option-grid button.is-active {
    border-color: var(--purple);
    color: #fff;
    background: var(--purple);
}

.toggle-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.toggle-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    cursor: pointer;
}

.toggle-list input {
    width: 20px;
    height: 20px;
}

.speech-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.speech-actions button {
    min-height: 52px;
    padding: 10px;
    border: 2px solid #d8d2df;
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.speech-actions button:hover:not(:disabled) {
    border-color: var(--purple);
}

.speech-actions button[aria-pressed="true"] {
    border-color: var(--purple);
    color: #fff;
    background: var(--purple);
}

.speech-actions button:disabled,
.speech-settings select:disabled,
.speech-settings input:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.speech-actions button:focus-visible,
.speech-settings select:focus-visible,
.speech-settings input:focus-visible {
    outline: 3px solid #d5a928;
    outline-offset: 3px;
}

.speech-settings {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.4fr;
    gap: 14px;
    margin-top: 16px;
}

.speech-settings label {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
}

.speech-settings select {
    width: 100%;
    min-height: 44px;
    padding: 8px 36px 8px 10px;
    border: 2px solid #d8d2df;
    border-radius: 9px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.speech-settings input[type="range"] {
    width: 100%;
    min-height: 32px;
    accent-color: var(--purple);
}

.speech-status {
    min-height: 24px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.speech-status[data-state="speaking"],
.speech-status[data-state="paused"] {
    color: var(--purple-dark);
}

.accessibility-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 550ms ease, transform 550ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

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

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}
