/* Responsive homepage content corrections loaded after the legacy adaptive layers. */

@media (max-width: 1199.98px) {
    body.luat-glass .projects__grid {
        align-items: stretch;
        grid-template-rows: none;
    }

    body.luat-glass .projects__card {
        align-self: stretch;
        height: auto !important;
        min-height: 0;
    }
}

@media (max-width: 767.98px) {
    /* Alerts keep icon and copy together; actions occupy a deliberate full row. */
    body.luat-glass :is(.admission-banner__inner, .spo-experiment-banner__inner) {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 16px;
    }

    body.luat-glass :is(.admission-banner__icon, .spo-experiment-banner__icon) {
        grid-column: 1;
        grid-row: 1;
        width: 40px;
        height: 40px;
        min-width: 40px;
        flex-basis: 40px;
    }

    body.luat-glass :is(.admission-banner__icon, .spo-experiment-banner__icon) > img,
    body.luat-glass :is(.admission-banner__icon, .spo-experiment-banner__icon) .modern-svg-icon {
        width: 38px;
        height: 38px;
    }

    body.luat-glass :is(.admission-banner__content, .spo-experiment-banner__content) {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        min-width: 0;
    }

    body.luat-glass .admission-banner__title {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        font-size: 0.875rem;
        line-height: 1.4;
    }

    body.luat-glass .admission-banner__content {
        display: contents;
    }

    body.luat-glass .admission-banner__phone {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0;
        max-width: 100%;
        font-size: clamp(20px, 6vw, 26px);
        line-height: 1.2;
        white-space: nowrap;
        overflow-wrap: normal;
    }

    body.luat-glass .admission-banner__email {
        grid-column: 1 / -1;
        grid-row: 3;
        margin: 0;
        max-width: 100%;
        font-size: 0.875rem;
        overflow-wrap: anywhere;
    }

    body.luat-glass .bvi-body .admission-banner__phone {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    body.luat-glass .spo-experiment-banner__title {
        max-width: none;
        font-size: 1.0625rem;
        line-height: 1.4;
    }

    body.luat-glass .admission-banner__actions {
        display: grid;
        grid-column: 1 / -1;
        grid-row: 4;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    body.luat-glass :is(.admission-banner__btn, .spo-experiment-banner__btn) {
        grid-column: auto;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        flex: none;
        padding: 9px 12px;
        white-space: normal;
        text-align: center;
    }

    body.luat-glass .spo-experiment-banner__btn {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-left: 0;
    }

    body.luat-glass :is(.our__project, .pilot__project) {
        padding-block: 10px 28px;
    }

    body.luat-glass :is(.our__project, .pilot__project) .section__title,
    body.luat-glass .our__news .section__title,
    body.luat-glass .partner__map .title__link {
        margin-bottom: 16px;
    }

    /* Ten cards remain visible in two columns without inheriting the old 260px height. */
    body.luat-glass .projects__grid {
        gap: 10px;
    }

    body.luat-glass .projects__card {
        overflow: hidden;
        border-radius: 14px;
    }

    body.luat-glass .project__link {
        height: auto;
        min-height: 0;
        padding: 7px 7px 10px;
    }

    body.luat-glass .project__thumbnail {
        height: 88px;
        padding: 9px;
        border-radius: 10px;
    }

    body.luat-glass .project__thumbnail img {
        width: 100%;
        max-width: 86px;
        height: 66px;
    }

    body.luat-glass .project__title {
        margin-top: 8px;
        padding-inline: 2px;
        font-size: 0.875rem;
        line-height: 1.35;
    }

    /* News keeps every live item while using a shallower image and tighter article rhythm. */
    body.luat-glass .our__news {
        padding-block: 24px;
    }

    body.luat-glass .news-container {
        padding: 14px;
        border-radius: 14px;
    }

    body.luat-glass :is(.featured-news, .featured-news .news-link) {
        height: auto;
        min-height: 0;
    }

    body.luat-glass .news-image {
        max-height: none;
        aspect-ratio: 16 / 9;
    }

    body.luat-glass .news-image img {
        height: 100%;
        max-height: none;
    }

    body.luat-glass .news-content {
        padding: 14px 0 0;
    }

    body.luat-glass .news-heading {
        margin-bottom: 8px;
        font-size: 1.125rem;
        line-height: 1.35;
    }

    body.luat-glass .news-excerpt {
        font-size: 1rem;
        line-height: 1.55;
    }

    body.luat-glass .news-more-button {
        margin-top: 14px;
    }

    body.luat-glass .more-news-list {
        margin-top: 16px;
    }

    body.luat-glass .compact-news-item {
        padding-block: 13px;
    }

    body.luat-glass .compact-news-link {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
    }

    body.luat-glass .compact-news-thumb {
        aspect-ratio: 1;
    }

    body.luat-glass .compact-news-title {
        font-size: 0.9375rem;
        line-height: 1.4;
    }

    body.luat-glass .compact-news-excerpt {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    body.luat-glass .posts-pagination {
        margin-top: 18px;
    }

    /* Logo ribbons keep their motion/pause behavior; only their mobile footprint changes. */
    body.luat-glass .luat-logo-ribbon {
        --logo-card-width: 160px;
        margin-bottom: 22px;
    }

    body.luat-glass .luat-logo-group {
        gap: 10px;
        padding-right: 10px;
    }

    body.luat-glass .luat-logo-card {
        height: 94px;
        padding: 10px;
        border-radius: 14px;
    }

    body.luat-glass .luat-logo-card img {
        height: 64px;
    }

    /* Map consent gate and live iframe use the same proportional mobile height. */
    body.luat-glass .partner__map {
        padding-block: 24px;
    }

    body.luat-glass .partners__container {
        margin-bottom: 24px;
    }

    body.luat-glass .luat-map-grid {
        gap: 16px;
        margin-bottom: 24px;
    }

    body.luat-glass .map_container,
    body.luat-glass .map_container .luat-external-placeholder,
    body.luat-glass .map_container .luat-map-content,
    body.luat-glass .map_container iframe {
        min-height: 280px;
    }

    body.luat-glass .map_container iframe {
        height: 280px;
    }

    body.luat-glass .luat-contact-panel {
        padding: 15px;
    }

    body.luat-glass .luat-contact-panel > h3 {
        margin-bottom: 14px;
    }

    body.luat-glass .luat-contact-panel .luat-contact-grid {
        gap: 8px;
    }

    body.luat-glass .luat-contact-panel .luat-contact-card {
        padding: 10px;
    }

    body.luat-glass .footer__list {
        gap: 6px 10px;
    }

    body.luat-glass .footer .luat-privacy-links {
        padding-block: 10px;
    }
}

@media (max-width: 767.98px) {
    /* Override the vendor's 310px decorative row with a compact authentic POS banner. */
    body.luat-glass .pilot__project #center.container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding-inline: 0;
    }

    body.luat-glass .pilot__project #js-show-iframe-wrapper {
        min-width: 0;
        overflow: hidden;
        border-radius: 14px;
    }

    body.luat-glass .pilot__project .bf-2 {
        --pos-banner-fluid-2__grid-template-columns: 100%;
        --pos-banner-fluid-2__grid-template-rows: 180px auto;
        --pos-banner-fluid-2__decor-grid-column: initial;
        --pos-banner-fluid-2__decor-grid-row: initial;
        --pos-banner-fluid-2__decor-padding: 18px 18px 0;
        --pos-banner-fluid-2__content-padding: 0 18px 20px;
        --pos-banner-fluid-2__logo-wrap-padding: 14px 18px 18px 30px;
        --pos-banner-fluid-2__logo-wrap-top: 0;
        --pos-banner-fluid-2__logo-wrap-bottom: initial;
        --pos-banner-fluid-2__logo-wrap-border-radius: 0 0 0 64px;
        --pos-banner-fluid-2__slogan-font-size: 18px;
        --pos-banner-fluid-2__slogan-line-height: 1.4;
    }

    body.luat-glass .pilot__project .bf-2__logo {
        width: 108px;
    }

    body.luat-glass .pilot__project .bf-2__description {
        margin-bottom: 16px;
    }

    body.luat-glass .pilot__project .bf-2__text {
        margin-bottom: 8px;
        font-size: 1rem;
        line-height: 1.5;
    }

    body.luat-glass .pilot__project .pos-banner-btn_2 {
        width: 100%;
        max-width: 240px;
        min-height: 48px;
        padding: 10px 14px;
        font-size: 1rem;
        line-height: 1.4;
    }

    body.luat-glass .pilot__project .gosuslugi__text {
        margin: 12px 0 0;
        font-size: 1rem;
        line-height: 1.55;
        text-align: left;
    }
}

@media (max-width: 420px) {
    body.luat-glass .footer__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.luat-glass .footer__link {
        font-size: 0.875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.luat-glass :is(.projects__card, .featured-news, .compact-news-item, .luat-logo-card) {
        transition: none;
    }
}
