:root {
    --msm-blue: #1a364a;
    --msm-blue-dark: #112330;
    --msm-blue-light: #244b66;
    --msm-gold: #d4a343;
    --msm-gold-dark: #a87320;
    --msm-gold-hover: #bf8f30;
    --msm-telegram: #229ed9;
    --msm-youtube: #dc2626;
    --msm-ink: #17212b;
    --msm-muted: #5e6974;
    --msm-line: #dbe1e6;
    --msm-paper: #ffffff;
    --msm-soft: #f3f5f6;
    --msm-page: #f8fafb;
    --msm-radius: 16px;
    --msm-shadow: 0 18px 50px rgba(17, 35, 48, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body.msm-site {
    margin: 0;
    background: var(--msm-page);
    color: var(--msm-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.msm-site ::selection {
    background: var(--msm-gold);
    color: #fff;
}

.msm-site a {
    color: inherit;
}

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

.msm-site button,
.msm-site .button {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    color: var(--msm-blue) !important;
    font-weight: 800;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

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

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

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

.center {
    text-align: center;
}

.section {
    padding: clamp(72px, 9vw, 112px) 0;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(26, 54, 74, 0.1);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 24px rgba(17, 35, 48, 0.05);
    backdrop-filter: blur(12px);
}

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

.brand {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.36em;
    text-decoration: none;
    font-size: clamp(18px, 2.1vw, 24px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.brand-blue {
    color: var(--msm-blue);
}

.brand-gold {
    color: var(--msm-gold);
}

.brand-white {
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.language-switcher {
    display: flex;
    gap: 3px;
    padding: 4px;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
    background: var(--msm-soft);
}

.language-switcher button {
    min-width: 42px;
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #65717c;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.language-switcher button:hover {
    background: #fff;
    color: var(--msm-blue);
}

.language-switcher button.is-active {
    background: var(--msm-blue);
    color: #fff;
    box-shadow: 0 3px 8px rgba(17, 35, 48, 0.18);
}

.language-switcher button:focus-visible,
.button:focus-visible,
.footer-links a:focus-visible,
.brand:focus-visible {
    outline: 3px solid rgba(212, 163, 67, 0.55);
    outline-offset: 3px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 11px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: transform 170ms ease, box-shadow 170ms ease, background-color 170ms ease, border-color 170ms ease;
}

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

.button-blue {
    background: var(--msm-blue);
    border-color: var(--msm-blue);
    color: #fff !important;
}

.button-blue:hover {
    background: var(--msm-blue-light);
    border-color: var(--msm-blue-light);
    box-shadow: 0 10px 24px rgba(26, 54, 74, 0.19);
}

.button-gold {
    background: var(--msm-gold);
    border-color: var(--msm-gold);
    color: #fff !important;
    box-shadow: 0 10px 26px rgba(191, 143, 48, 0.23);
}

.button-gold:hover {
    background: var(--msm-gold-hover);
    border-color: var(--msm-gold-hover);
    box-shadow: 0 14px 30px rgba(191, 143, 48, 0.3);
}

.button-telegram {
    background: var(--msm-telegram);
    border-color: var(--msm-telegram);
    color: #fff !important;
}

.button-telegram:hover {
    background: #188bc0;
    border-color: #188bc0;
    box-shadow: 0 13px 28px rgba(34, 158, 217, 0.24);
}

.button-large {
    min-height: 58px;
    padding: 16px 30px;
    border-radius: 13px;
    font-size: clamp(16px, 2vw, 18px);
}

.hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(76px, 10vw, 128px);
    padding-bottom: clamp(82px, 11vw, 136px);
    background:
        radial-gradient(circle at 50% -10%, rgba(212, 163, 67, 0.17), transparent 32%),
        linear-gradient(180deg, #fff 0%, #f8fafb 100%);
}

.hero::after {
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(26, 54, 74, 0.07);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 55px rgba(26, 54, 74, 0.025), 0 0 0 110px rgba(26, 54, 74, 0.018);
    pointer-events: none;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    margin-bottom: 30px;
    padding: 8px 14px;
    border: 1px solid rgba(212, 163, 67, 0.35);
    border-radius: 999px;
    background: #fff8e9;
    color: var(--msm-gold-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.trust-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--msm-gold);
    box-shadow: 0 0 0 5px rgba(212, 163, 67, 0.13);
}

.hero h1 {
    max-width: 920px;
    margin: 0 auto;
    color: var(--msm-blue);
    font-size: clamp(36px, 6.1vw, 67px);
    font-weight: 900;
    line-height: 1.07;
    letter-spacing: -0.048em;
    text-wrap: balance;
}

.hero-subtitle {
    max-width: 760px;
    margin: 28px auto 0;
    color: var(--msm-muted);
    font-size: clamp(18px, 2.25vw, 22px);
    line-height: 1.68;
    text-wrap: balance;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 42px;
}

.social-icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    font-size: 17px;
    line-height: 1;
}

.section-blue {
    background: var(--msm-blue);
    color: #fff;
}

.manifesto-inner {
    max-width: 930px;
}

.manifesto-rule {
    padding-left: clamp(24px, 5vw, 46px);
    border-left: 5px solid var(--msm-gold);
}

.manifesto h2 {
    margin: 0;
    color: var(--msm-gold);
    font-size: clamp(21px, 3vw, 30px);
    line-height: 1.25;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.manifesto p {
    margin: 24px 0 0;
    color: #e2e8ec;
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 400;
    line-height: 1.8;
}

.program {
    background: #fff;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 52px;
}

.section-heading h2,
.cta-panel h2 {
    margin: 0;
    color: var(--msm-blue);
    font-size: clamp(30px, 4.5vw, 46px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.section-heading p {
    margin: 18px auto 0;
    color: var(--msm-muted);
    font-size: clamp(17px, 2vw, 19px);
    line-height: 1.65;
}

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

.program-card {
    position: relative;
    min-height: 318px;
    padding: 32px;
    overflow: hidden;
    border: 1px solid var(--msm-line);
    border-radius: var(--msm-radius);
    background: var(--msm-paper);
    box-shadow: 0 8px 28px rgba(17, 35, 48, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.program-card::after {
    position: absolute;
    right: -38px;
    bottom: -54px;
    width: 150px;
    height: 150px;
    border: 22px solid rgba(212, 163, 67, 0.06);
    border-radius: 50%;
    content: "";
}

.program-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 163, 67, 0.45);
    box-shadow: 0 18px 38px rgba(17, 35, 48, 0.1);
}

.card-number {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 25px;
    place-items: center;
    border-radius: 12px;
    background: #eef2f4;
    color: var(--msm-blue);
    font-size: 17px;
    font-weight: 900;
}

.program-card h3 {
    margin: 0 0 13px;
    color: var(--msm-blue);
    font-size: 23px;
    line-height: 1.25;
}

.program-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--msm-muted);
    font-size: 15.5px;
    line-height: 1.72;
}

.section-muted {
    border-block: 1px solid var(--msm-line);
    background: var(--msm-soft);
}

.community-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.button-social {
    min-width: 265px;
    min-height: 58px;
    padding: 15px 25px;
    border-radius: 13px;
    font-size: 16px;
}

.button-youtube {
    border-color: #ccd3d9;
    background: #fff;
    color: var(--msm-ink) !important;
}

.button-youtube:hover {
    border-color: rgba(220, 38, 38, 0.6);
    box-shadow: 0 13px 28px rgba(17, 35, 48, 0.1);
}

.youtube-mark {
    color: var(--msm-youtube);
}

.final-cta {
    background: #fff;
}

.cta-panel {
    position: relative;
    padding: clamp(38px, 7vw, 66px);
    overflow: hidden;
    border: 1px solid var(--msm-blue-light);
    border-radius: 26px;
    background:
        radial-gradient(circle at 85% 10%, rgba(212, 163, 67, 0.16), transparent 25%),
        var(--msm-blue);
    box-shadow: var(--msm-shadow);
    color: #fff;
}

.cta-panel h2 {
    position: relative;
    color: #fff;
}

.cta-panel p {
    position: relative;
    max-width: 650px;
    margin: 18px auto 31px;
    color: #dce4e9;
    font-size: clamp(17px, 2vw, 19px);
}

.cta-panel .button {
    position: relative;
}

.joomla-component,
.module-zone {
    background: #fff;
}

.module-zone {
    padding-top: 42px;
    padding-bottom: 42px;
}

.site-footer {
    padding: 56px 0;
    border-top: 1px solid #26343e;
    background: #111a21;
    color: #aeb7be;
    font-size: 13px;
}

.footer-inner {
    display: grid;
    gap: 27px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    font-size: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 23px;
}

.footer-links a {
    color: #bac2c8;
    text-decoration: none;
    font-weight: 700;
}

.footer-links a:hover {
    color: #fff;
}

.legal-copy {
    margin: 0;
    padding-top: 24px;
    border-top: 1px solid #293640;
    line-height: 1.72;
}

.copyright {
    margin: 0;
    color: #7e8a93;
    text-align: center;
}

.component-view {
    min-height: 100vh;
}

.utility-page {
    min-height: 100vh;
    display: grid;
    padding: 30px;
    place-items: center;
    background: radial-gradient(circle at 50% 0%, rgba(212, 163, 67, 0.16), transparent 33%), var(--msm-page) !important;
}

.utility-panel {
    width: min(660px, 100%);
    padding: clamp(32px, 7vw, 64px);
    border: 1px solid var(--msm-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--msm-shadow);
    text-align: center;
}

.utility-code {
    margin: 38px 0 4px;
    color: var(--msm-gold-dark);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.utility-panel h1 {
    margin: 0;
    color: var(--msm-blue);
    font-size: clamp(31px, 6vw, 48px);
    line-height: 1.14;
}

.utility-panel p:not(.utility-code) {
    margin: 20px 0 30px;
    color: var(--msm-muted);
}

@media (max-width: 860px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        min-height: auto;
    }
}

@media (max-width: 680px) {
    .container,
    .container-narrow,
    .container-cta {
        width: min(100% - 28px, 1160px);
    }

    .nav-inner {
        min-height: 72px;
    }

    .nav-cta {
        display: none;
    }

    .brand {
        font-size: 17px;
    }

    .language-switcher button {
        min-width: 38px;
        padding-inline: 7px;
    }

    .hero h1 {
        font-size: clamp(35px, 10.5vw, 47px);
    }

    .hero-actions,
    .community-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button,
    .community-actions .button,
    .cta-panel .button {
        width: 100%;
    }

    .manifesto-rule {
        padding-left: 21px;
    }

    .program-card {
        padding: 27px;
    }

    .footer-top {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
