body.app.app-login {
    padding-top: 0;
    background: #f8faff;
}

.msk-landing {
    padding: 0 0 1.5rem;
    background:
        radial-gradient(circle at top left, rgba(30, 81, 204, 0.08), transparent 22rem),
        linear-gradient(180deg, #f9fbff 0%, #f4f7fc 100%);
}

.msk-landing,
.msk-landing * {
    box-sizing: border-box;
}

.msk-shell {
    width: 100%;
    margin: 0;
}

.msk-hero {
    position: relative;
    display: grid;
    grid-template-areas:
        "content"
        "highlights";
    grid-template-columns: minmax(0, 1fr);
    column-gap: clamp(1rem, 2.4vw, 2rem);
    row-gap: 1.15rem;
    min-height: clamp(26rem, 52vh, 34rem);
    padding: clamp(1.15rem, 2.8vw, 1.85rem) clamp(1rem, 3.8vw, 2rem) clamp(1.1rem, 2vw, 1.3rem);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 26%, rgba(255, 255, 255, 0.65) 47%, rgba(255, 255, 255, 0.18) 65%, rgba(255, 255, 255, 0.02) 100%),
        url("../images/msk-bg.png") right center / cover no-repeat;
    overflow: hidden;
}

.msk-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.75), transparent 18rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent 40%);
    pointer-events: none;
}

.msk-hero__content,
.msk-hero__highlights {
    position: relative;
}

.msk-hero__content,
.msk-hero__highlights {
    z-index: 1;
}

.msk-hero__content {
    grid-area: content;
    max-width: min(100%, 620px);
    min-width: 0;
}

.msk-hero__eyebrow {
    margin: 0;
    color: #173581;
    font-size: 1rem;
    font-weight: 700;
}

.msk-hero__title {
    margin: 0.3rem 0 0;
    color: #173992;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.msk-hero__copy {
    margin: 1rem 0 0;
    max-width: 540px;
    color: #23395f;
    font-size: clamp(0.95rem, 1.25vw, 1.06rem);
    line-height: 1.55;
}

.msk-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1rem;
    margin-top: 1.15rem;
}

.msk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-width: 0;
    flex: 1 1 13rem;
    padding: 0.95rem 1.35rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.msk-btn i {
    font-size: 1.05rem;
}

.msk-btn:hover,
.msk-btn:focus {
    transform: translateY(-1px);
    text-decoration: none;
}

.msk-btn--primary {
    background: linear-gradient(135deg, #1840b4 0%, #0f2f96 100%);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(19, 53, 147, 0.24);
}

.msk-btn--primary:hover,
.msk-btn--primary:focus {
    color: #ffffff;
}

.msk-btn--secondary {
    border: 1px solid rgba(20, 59, 159, 0.22);
    background: rgba(255, 255, 255, 0.95);
    color: #1840b4;
    box-shadow: 0 14px 30px rgba(19, 53, 147, 0.08);
}

.msk-btn--secondary:hover,
.msk-btn--secondary:focus {
    color: #1840b4;
}

.msk-hero__highlights {
    grid-area: highlights;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 0;
    width: 100%;
    max-width: 56rem;
    justify-self: start;
}

.msk-highlight {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.msk-highlight > div {
    min-width: 0;
}

.msk-highlight__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid rgba(30, 72, 184, 0.16);
    background: rgba(255, 255, 255, 0.92);
    color: #1d4bd2;
    font-size: 1.1rem;
    box-shadow: 0 8px 18px rgba(20, 59, 159, 0.08);
}

.msk-highlight__icon i {
    margin: 0;
    line-height: 1;
}

.msk-highlight h3 {
    margin: 0;
    color: #173992;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
}

.msk-highlight p {
    margin: 0.18rem 0 0;
    color: #3a4e72;
    font-size: 0.85rem;
    line-height: 1.25;
}

.msk-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 360px);
    gap: clamp(1rem, 2vw, 1.9rem);
    align-items: start;
    margin-top: 1.1rem;
    padding-inline: clamp(1rem, 4vw, 4rem);
    box-sizing: border-box;
}

.msk-content-grid__main {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    min-width: 0;
}

.msk-section-block,
.msk-access-panel {
    background: transparent;
    min-width: 0;
}

.msk-access-panel {
    display: flex;
    flex-direction: column;
    align-self: start;
    justify-self: end;
    width: 100%;
    max-width: 100%;
    gap: 1rem;
}

.msk-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.msk-section-title span {
    flex: 1 1 auto;
    max-width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(27, 69, 189, 0.2), #1d4bd2, rgba(27, 69, 189, 0.2));
    border-radius: 999px;
}

.msk-section-title h2 {
    margin: 0;
    color: #173992;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
}

.msk-section-title--compact {
    margin-top: 0.2rem;
    margin-bottom: 0;
}

.msk-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.msk-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 13.6rem;
    min-width: 0;
    padding: 1.25rem 1rem 1rem;
    border: 1px solid rgba(19, 56, 145, 0.08);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(17, 43, 102, 0.05);
    text-align: center;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.msk-service-card:hover,
.msk-service-card:focus {
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(17, 43, 102, 0.1);
}

.msk-service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 20px;
    font-size: 2rem;
}

.msk-service-card__icon--blue {
    background: rgba(37, 92, 229, 0.1);
    color: #2054d6;
}

.msk-service-card__icon--green {
    background: rgba(42, 154, 92, 0.11);
    color: #19814a;
}

.msk-service-card__icon--orange {
    background: rgba(240, 143, 24, 0.12);
    color: #d97b0e;
}

.msk-service-card__icon--violet {
    background: rgba(132, 63, 221, 0.12);
    color: #6f2ed1;
}

.msk-service-card__icon--teal {
    background: rgba(34, 161, 164, 0.12);
    color: #168185;
}

.msk-service-card__icon--gray {
    background: rgba(69, 88, 127, 0.08);
    color: #46577e;
}

.msk-service-card h3 {
    margin: 1rem 0 0;
    color: #162d6b;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.32;
}

.msk-service-card p {
    margin: 0.65rem 0 0;
    color: #36486f;
    font-size: 0.86rem;
    line-height: 1.55;
}

.msk-service-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    margin-top: auto;
    border: 1px solid rgba(26, 69, 188, 0.2);
    border-radius: 999px;
    color: #1d4bd2;
    font-size: 0.86rem;
}

.msk-access-list {
    display: grid;
    gap: 0.7rem;
    width: 100%;
    align-content: start;
}

.msk-access-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.6rem;
    min-width: 0;
    padding: 0.7rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(16, 39, 97, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.msk-access-card:hover,
.msk-access-card:focus {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(16, 39, 97, 0.08);
}

.msk-access-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    font-size: 1.2rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.msk-access-card__icon i {
    margin: 0;
    line-height: 1;
}

.msk-access-card__content {
    min-width: 0;
}

.msk-access-card__content h3 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
}

.msk-access-card__content p {
    margin: 0.18rem 0 0;
    color: #304564;
    font-size: 0.74rem;
    line-height: 1.35;
}

.msk-access-card__arrow {
    font-size: 0.82rem;
    justify-self: end;
}

.msk-access-card--citizen {
    background: #eef3ff;
    border-color: rgba(41, 94, 223, 0.14);
    color: #2054d6;
}

.msk-access-card--citizen .msk-access-card__icon,
.msk-access-card--citizen .msk-access-card__arrow {
    color: #2054d6;
}

.msk-access-card--seva {
    background: #eef9f4;
    border-color: rgba(34, 132, 90, 0.16);
    color: #16724d;
}

.msk-access-card--seva .msk-access-card__icon,
.msk-access-card--seva .msk-access-card__arrow {
    color: #16724d;
}

.msk-access-card--rto {
    background: #fff6eb;
    border-color: rgba(219, 132, 28, 0.15);
    color: #cb7a12;
}

.msk-access-card--rto .msk-access-card__icon,
.msk-access-card--rto .msk-access-card__arrow {
    color: #cb7a12;
}

.msk-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
}

.msk-step-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: start;
    min-height: 5.2rem;
    padding: 0.35rem 0.35rem 0.25rem 1.05rem;
}

.msk-step-card > div:last-child,
.msk-stat > div {
    min-width: 0;
}

.msk-step-card::after {
    content: "\2192";
    position: absolute;
    top: 2rem;
    right: -0.38rem;
    color: rgba(29, 75, 210, 0.55);
    font-size: 0.72rem;
    font-weight: 700;
}

.msk-step-card:last-child::after {
    display: none;
}

.msk-step-card__number {
    position: absolute;
    top: 0.1rem;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: #173992;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(23, 57, 146, 0.18);
}

.msk-step-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    margin-top: 0.3rem;
    border-radius: 999px;
    background: #f4f7fe;
    color: #1d4bd2;
    font-size: 1.05rem;
    box-shadow: inset 0 0 0 1px rgba(29, 75, 210, 0.08);
}

.msk-step-card__icon i {
    margin: 0;
    line-height: 1;
}

.msk-step-card h3 {
    margin: 0;
    color: #173992;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.24;
}

.msk-step-card p {
    margin: 0.18rem 0 0;
    color: #33486c;
    font-size: 0.72rem;
    line-height: 1.42;
}

.msk-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    align-items: center;
    margin: 1rem clamp(1.5rem, 4vw, 4rem) 0;
    padding: 0.95rem 1.1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #0c2d88 0%, #12389d 55%, #153f9f 100%);
    box-shadow: 0 16px 34px rgba(14, 42, 118, 0.16);
    box-sizing: border-box;
    overflow: hidden;
    color: #ffffff;
}

.msk-stat {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 0;
    min-width: 0;
    padding: 0 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.17);
}

.msk-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.msk-stat__icon i {
    display: inline-block;
    font-size: 2rem !important;
    line-height: 1;
}

.msk-stat__icon i::before {
    font-size: 2rem !important;
}

.msk-stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.05;
}

.msk-stat span {
    display: block;
    margin-top: 0.12rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.74rem;
    line-height: 1.28;
}

.msk-highlight h3,
.msk-highlight p,
.msk-service-card h3,
.msk-service-card p,
.msk-access-card__content h3,
.msk-access-card__content p,
.msk-step-card h3,
.msk-step-card p,
.msk-stat span {
    overflow-wrap: anywhere;
}

.msk-stat:last-child {
    border-right: 0;
}

@media (max-width: 1399.98px) {
    .msk-hero__highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .msk-service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .msk-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .msk-step-card:nth-child(3)::after {
        display: none;
    }

}

@media (max-width: 1199.98px) {
    .msk-content-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "services"
            "access"
            "steps";
        padding-inline: 1.25rem;
    }

    .msk-content-grid__main {
        display: contents;
    }

    .msk-section-block--services {
        grid-area: services;
    }

    .msk-section-block--steps {
        grid-area: steps;
    }

    .msk-access-panel {
        grid-area: access;
        max-width: none;
    }

    .msk-stats-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        margin-inline: 1.25rem;
    }

    .msk-stat:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 991.98px) {
    .msk-shell {
        width: 100%;
    }

    .msk-hero {
        grid-template-areas:
            "content"
            "highlights";
        grid-template-columns: 1fr;
        gap: 1.15rem;
        min-height: 24rem;
        padding: 1.35rem 1.25rem 1.1rem;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 42%, rgba(255, 255, 255, 0.62) 100%),
            url("../images/msk-bg.png") center center / cover no-repeat;
    }

    .msk-hero__content {
        width: 100%;
        max-width: none;
    }

    .msk-hero__copy {
        width: 100%;
        max-width: none;
    }

    .msk-hero__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
        width: 100%;
        max-width: none;
        align-self: stretch;
    }

    .msk-btn {
        width: 100%;
        flex: none;
    }

    .msk-hero__highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
        margin-top: 0;
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }

    .msk-highlight {
        align-items: center;
        gap: 0.8rem;
        min-height: 4.7rem;
        padding: 0.8rem 0.9rem;
        border: 1px solid rgba(29, 75, 210, 0.1);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.62));
        box-shadow: 0 14px 28px rgba(16, 39, 97, 0.08);
        backdrop-filter: blur(10px);
    }

    .msk-highlight__icon {
        width: 2.65rem;
        height: 2.65rem;
        background: rgba(255, 255, 255, 0.98);
        box-shadow:
            inset 0 0 0 1px rgba(30, 72, 184, 0.08),
            0 8px 18px rgba(20, 59, 159, 0.08);
    }

    .msk-highlight h3 {
        font-size: 0.95rem;
    }

    .msk-highlight p {
        margin-top: 0.14rem;
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .msk-content-grid {
        padding-inline: 1.25rem;
    }

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

    .msk-service-card {
        min-height: 0;
    }

    .msk-step-card {
        padding-right: 0.5rem;
    }

    .msk-step-card::after,
    .msk-step-card:nth-child(3)::after {
        display: none;
    }

    .msk-stat {
        padding: 0.15rem 0;
    }
}

@media (max-width: 767.98px) {
    .msk-landing {
        padding-top: 0;
        padding-bottom: 1.1rem;
    }

    .msk-shell {
        width: 100%;
    }

    .msk-hero {
        gap: 1rem;
        min-height: 22rem;
        padding: 1.15rem 1rem 1rem;
    }

    .msk-hero__title {
        font-size: 1.7rem;
        line-height: 1.06;
        letter-spacing: -0.02em;
    }

    .msk-hero__copy {
        margin-top: 0.85rem;
        font-size: 0.95rem;
    }

    .msk-hero__content {
        max-width: none;
        margin-inline: 0;
    }

    .msk-hero__highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        margin-top: 1.1rem;
    }

    .msk-highlight {
        min-height: 0;
        padding: 0.72rem 0.8rem;
    }

    .msk-content-grid {
        margin-top: 0.9rem;
        gap: 1.1rem;
        padding-inline: 1rem;
    }

    .msk-service-grid,
    .msk-steps,
    .msk-stats-bar {
        grid-template-columns: 1fr;
    }

    .msk-btn {
        min-width: 0;
    }

    .msk-service-card {
        min-height: 0;
        padding: 1rem 0.9rem 0.9rem;
    }

    .msk-service-card__icon {
        width: 3.7rem;
        height: 3.7rem;
        border-radius: 18px;
        font-size: 1.8rem;
    }

    .msk-access-card {
        padding: 0.8rem 0.85rem;
    }

    .msk-access-card__content p {
        font-size: 0.78rem;
    }

    .msk-step-card {
        gap: 0.65rem;
        min-height: 0;
        padding: 0.45rem 0.2rem 0.25rem 1.45rem;
    }

    .msk-step-card__icon {
        width: 2.45rem;
        height: 2.45rem;
        margin-top: 0.35rem;
        font-size: 1rem;
    }

    .msk-step-card h3 {
        font-size: 0.88rem;
    }

    .msk-step-card p {
        font-size: 0.76rem;
    }

    .msk-stats-bar {
        margin: 0.9rem 1rem 0;
        padding: 0.9rem 0.95rem;
        gap: 0.75rem;
    }

    .msk-stat {
        border-right: 0;
        padding: 0;
        min-height: 0;
    }

    .msk-stat strong {
        font-size: 1.18rem;
    }

    .msk-stat span {
        font-size: 0.74rem;
    }

    .msk-section-title {
        gap: 0.65rem;
        margin-bottom: 0.85rem;
    }

    .msk-section-title span {
        max-width: 2rem;
    }

    .msk-section-title h2 {
        font-size: 0.94rem;
    }
}

@media (max-width: 575.98px) {
    .msk-hero {
        min-height: 20rem;
        padding: 1rem 0.9rem 0.95rem;
    }

    .msk-hero__title {
        font-size: 1.7rem;
    }

    .msk-hero__actions {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .msk-hero__highlights {
        grid-template-columns: 1fr;
    }

    .msk-highlight__icon {
        width: 2.55rem;
        height: 2.55rem;
        font-size: 1rem;
    }

    .msk-highlight {
        padding: 0.68rem 0.75rem;
        border-radius: 16px;
    }

    .msk-content-grid {
        gap: 1rem;
        padding-inline: 0.85rem;
    }

    .msk-service-grid {
        gap: 0.8rem;
    }

    .msk-service-card h3 {
        font-size: 0.96rem;
    }

    .msk-service-card p {
        font-size: 0.82rem;
    }

    .msk-access-card {
        grid-template-columns: auto 1fr;
    }

    .msk-access-card__arrow {
        display: none;
    }

    .msk-access-card__icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 12px;
        font-size: 1.08rem;
    }

    .msk-stats-bar {
        margin-inline: 0.85rem;
        padding: 0.8rem 0.85rem;
    }

    .msk-stat {
        gap: 0.7rem;
    }

    .msk-stat__icon {
        width: 2.65rem;
        height: 2.65rem;
        font-size: 1.75rem;
    }

    .msk-stat__icon i,
    .msk-stat__icon i::before {
        font-size: 1.75rem !important;
    }

    .msk-stat strong {
        font-size: 1.12rem;
    }
}

@media (max-width: 419.98px) {
    .msk-btn {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    .msk-service-card__icon {
        width: 3.35rem;
        height: 3.35rem;
        font-size: 1.6rem;
    }

    .msk-step-card {
        padding-left: 1.3rem;
    }

    .msk-step-card__number {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.65rem;
    }

    .msk-stats-bar {
        margin-inline: 0.75rem;
    }
}
