@media (max-width: 1180px) {
    :root {
        --container: 1000px;
    }

    .container {
        width: min(calc(100% - 40px), var(--container));
    }

    .header-cta {
        min-width: 180px;
        padding-inline: 20px;
    }

    .advantages-grid {
        gap: 14px;
    }

    .advantage-card {
        padding: 22px;
    }
}

@media (max-width: 1099px) {
    :root {
        --header-offset: 104px;
    }

    .desktop-nav,
    .header-cta {
        display: none;
    }

    .nav-shell__inner {
        justify-content: space-between;
    }

    .nav-shell,
    .nav-shell__inner {
        min-height: 84px;
    }

    .brand__logo {
        height: 82px;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 640px;
    }

    .hero__grid {
        min-height: 640px;
        padding-top: 32px;
    }

    .feature-strip article {
        gap: 10px;
        padding: 22px 14px;
    }

    .feature-strip article > img {
        width: 42px;
        height: 42px;
    }

    .feature-strip strong {
        font-size: 14px;
    }

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

    .advantage-card {
        min-height: 420px;
    }

    .advantage-card__icon {
        height: 200px;
        margin-bottom: 22px;
    }

    .bilingual-grid {
        gap: 16px;
    }

    .bilingual-card__body {
        padding: 28px 26px 30px;
    }

    .bilingual-card h3 {
        font-size: 25px;
    }

    .parents-message {
        grid-template-columns: minmax(0, 1fr) 150px;
        gap: 32px;
        padding: 64px;
    }

    .visit-card {
        gap: 36px;
        padding: 48px;
    }

    .contacts__grid {
        gap: 38px;
    }
}

@media (max-width: 850px) {
    :root {
        --header-offset: 100px;
    }

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

    .nav-shell,
    .nav-shell__inner {
        min-height: 80px;
    }

    .brand__logo {
        height: 80px;
    }

    .hero__grid {
        grid-template-columns: 1fr 0.9fr;
    }

    .hero__lead {
        font-size: 16px;
    }

    .feature-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-strip article:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .feature-strip article:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .section-heading--split,
    .section-heading--button {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .section-heading--split > p {
        max-width: 620px;
        margin: 0;
    }

    .section-heading--button .button {
        justify-self: start;
    }

    .bilingual-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-inline: auto;
    }

    .bilingual-card__image {
        aspect-ratio: 1.42 / 1;
    }

    .visit-card,
    .contacts__grid {
        grid-template-columns: 1fr;
    }

    .map-card {
        min-height: 420px;
    }

    .parents-message {
        position: relative;
        grid-template-columns: 1fr;
    }

    .parents-message__content {
        z-index: 2;
        max-width: 100%;
    }

    .parents-message__mark {
        position: absolute;
        top: 50%;
        right: 24px;
        width: 140px;
        padding: 12px;
        transform: translateY(-50%);
        opacity: 0.1;
    }

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

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

    .footer-contacts {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    :root {
        --section-space: clamp(42px, 12vw, 56px);
        --header-offset: 100px;
        --radius: 18px;
    }

    .site-header {
        top: -49px;
    }

    body {
        font-size: 15px;
    }

    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .topbar {
        min-height: 48px;
    }

    .topbar__inner {
        min-height: 48px;
        justify-content: center;
    }

    .topbar__contacts {
        display: none;
    }

    .accessibility-trigger {
        width: 100%;
        min-height: 38px;
        font-size: 12px;
    }

    .nav-shell,
    .nav-shell__inner {
        min-height: 72px;
    }

    .brand__logo {
        width: auto;
        height: 66px;
    }

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

    .menu-toggle {
        width: 46px;
        height: 46px;
    }

    .hero {
        min-height: auto;
        background:
            radial-gradient(circle at 75% 42%, rgba(255, 255, 255, 0.76) 0 19%, transparent 19.4%),
            linear-gradient(145deg, #fff 2%, #f2e3ff 54%, #ead6ff 100%);
    }

    .hero__grid {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 27px;
        padding-block: 28px 68px;
    }

    .status-badge {
        margin-bottom: 18px;
        font-size: 11px;
    }

    .hero h1 {
        margin-bottom: 17px;
        font-size: clamp(32px, 8.6vw, 42px);
        line-height: 1.02;
    }

    .hero__lead {
        margin-bottom: 18px;
        font-size: 14px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .button {
        width: 100%;
    }

    .hero__note {
        justify-content: center;
        font-size: 11px;
        text-align: center;
    }

    .hero__visual {
        justify-content: center;
        border-radius: 36px;
    }

    .hero__visual img {
        width: min(100%, 390px);
        border-radius: 36px;
    }

    .feature-strip {
        width: calc(100% - 32px);
        min-height: 0;
        margin-top: -42px;
        border-radius: 17px;
    }

    .feature-strip article {
        min-height: 108px;
        padding: 16px 13px;
    }

    .feature-strip article > img {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 20px;
    }

    .feature-strip strong {
        font-size: 12px;
    }

    .feature-strip small {
        font-size: 9px;
    }

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

    h2 {
        font-size: clamp(33px, 9.2vw, 41px);
    }

    h3 {
        font-size: 20px;
    }

    .eyebrow {
        margin-bottom: 14px;
        font-size: 10px;
    }

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

    .section-heading--split,
    .section-heading--button {
        gap: 20px;
    }

    .section-heading--split > p {
        font-size: 14px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .advantage-card {
        display: flex;
        min-height: 0;
        flex-direction: column;
        padding: 20px;
        border-radius: 15px;
    }

    .advantage-card__icon {
        width: 100%;
        height: clamp(210px, 60vw, 240px);
        margin: 0 0 18px;
        border-radius: 13px;
    }

    .advantage-card h3 {
        margin: 0 0 8px;
        font-size: 17px;
    }

    .advantage-card p {
        font-size: 12px;
    }

    .section-heading--button .button {
        display: none;
    }

    .bilingual-grid {
        gap: 18px;
    }

    .bilingual-card {
        border-radius: 18px;
    }

    .bilingual-card__image {
        aspect-ratio: 1.32 / 1;
    }

    .bilingual-card__body {
        padding: 24px 20px 26px;
    }

    .bilingual-card h3 {
        margin-bottom: 12px;
        font-size: 23px;
    }

    .bilingual-card p {
        font-size: 14px;
    }

    .parents-message {
        padding: 38px 28px;
        border-radius: 20px;
    }

    .parents-message__mark {
        right: 16px;
        width: 110px;
        padding: 8px;
    }

    .parents-message h2 {
        margin-bottom: 22px;
        font-size: 35px;
    }

    .parents-message__content > p:not(.eyebrow),
    .parents-message footer {
        font-size: 13px;
    }

    .visit-card {
        gap: 28px;
        padding: 36px 24px;
        border-radius: 20px;
    }

    .visit-card h2 {
        font-size: 40px;
    }

    .visit-card__copy > p:last-child {
        font-size: 13px;
    }

    .visit-form {
        padding: 20px;
    }

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

    .contacts__copy > p:not(.eyebrow) {
        margin: 20px 0 26px;
        font-size: 14px;
    }

    .contact-list {
        gap: 14px;
    }

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

    .map-card {
        min-height: 340px;
        border-width: 6px;
        border-radius: 20px;
    }

    .map-pin {
        width: 56px;
        height: 56px;
    }

    .map-pin::after {
        top: 16px;
        left: 16px;
        width: 24px;
        height: 24px;
    }

    .site-footer {
        padding-top: 48px;
    }

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

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

    .footer-contacts {
        grid-column: auto;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 38px;
    }

    .legal-page {
        padding: 54px 0 74px;
    }

    .legal-page__container {
        padding: 30px 22px;
    }

    .legal-page h1 {
        font-size: 38px;
    }

    .legal-page h2 {
        font-size: 23px;
    }

    .accessibility-panel__dialog {
        max-height: calc(100vh - 20px);
        padding: 22px 16px;
        border-radius: 16px;
    }

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

    .option-grid {
        grid-template-columns: 1fr 1fr;
    }

    .toggle-list {
        grid-template-columns: 1fr;
    }

    .speech-actions {
        grid-template-columns: 1fr 1fr;
    }

    .speech-actions button:first-child,
    .speech-actions button:last-child {
        grid-column: 1 / -1;
    }

    .speech-settings {
        grid-template-columns: 1fr;
    }

    .accessibility-panel__actions {
        flex-direction: column;
    }

    .accessibility-panel__actions .button {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .container {
        width: calc(100% - 24px);
    }

    .brand__logo {
        width: auto;
        height: 64px;
    }

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

    .hero h1 {
        font-size: 32px;
    }

    .feature-strip {
        width: calc(100% - 24px);
    }

    .feature-strip article {
        gap: 7px;
        padding: 13px 9px;
    }

    .feature-strip article > img {
        width: 32px;
        height: 32px;
    }

    .feature-strip small {
        font-size: 8px;
    }

    .visit-card {
        padding-inline: 18px;
    }

    .visit-form {
        padding: 16px;
    }
}
