:root {
    /* brand */
    --accent: #00E0FF;
    --accent-2: #7DF0FF;
    --accent-ink: #04141C;
    --accent-soft: rgba(0, 224, 255, 0.10);
    --accent-glow: rgba(0, 224, 255, 0.35);

    /* surfaces */
    --bg: #08090B;
    --bg-2: #0D1014;
    --surface: #14181E;
    --surface-2: #1B2129;
    --line: rgba(255, 255, 255, 0.12);

    /* text */
    --text: #FFFFFF;
    --muted: #9AA4B0;
    --muted-2: #6E7885;
    --dim: #454E59;

    /* status */
    --ok: #5FE3A1;

    /* type */
    --ui-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', Arial, sans-serif;

}


html, body {
    width: 100%;
    margin: 0;
    overflow-x: hidden;
}

html {
    scrollbar-width: none;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body {
    background: var(--bg);
    color: #fff;
    font-family: var(--ui-font);
    opacity: 1;
    transition: opacity .6s ease;
}

.js body {
    opacity: 0;
}

.js body.loaded {
    opacity: 1;
}

h1, h2, h3 {
    font-family: var(--ui-font);
}


.header {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 20px;
    align-items: center;
    padding: 24px 8%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    user-select: none;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
    user-select: none;
    pointer-events: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    user-select: none;
}

.logo-text span {
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.logo-text span:first-child {
    color: var(--accent);
}

.logo-text span:last-child {
    color: #fff;
}

.header__online {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    background: linear-gradient(180deg, #1C222A 0%, #141A21 100%);
    color: #fff;
    font-family: var(--ui-font);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.header__online--icon {
    flex: 0 0 auto;
    opacity: .75;
}

.header__online_text {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.header__online_count {
    color: #fff;
    font-weight: 600;
}

nav {
    display: flex;
    gap: 22px;
    justify-self: center;
}

a {
    text-decoration: none;
}

nav a {
    position: relative;
    font-family: var(--ui-font);
    font-size: 13px;
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #D5DBE3;
    text-decoration: none;
    transition: .3s;
}

nav a:hover {
    color: #fff;
}

nav a::after {
    display: none;
}

nav a:hover::after {
    display: none;
}

.right-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-self: end;
}

.socials {
    display: flex;
    gap: 18px;
    align-items: center;
}

.socials a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(180deg, #1C222A 0%, #141A21 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D5DBE3;
    text-decoration: none;
    font-size: 20px;
    transition: .25s ease;
    backdrop-filter: blur(10px);
}

.socials a i {
    font-size: 20px;
}

.socials a:hover {
    color: var(--accent);
    transform: translateY(-2px);
    background: linear-gradient(180deg, #242C35 0%, var(--line) 100%);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 8% 40px;
    margin-bottom: 100px;
    overflow: hidden;
    isolation: isolate;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 9, 11, 0) 68%, var(--bg) 100%),
        linear-gradient(90deg, rgba(8, 9, 11, 0.88) 0%, rgba(8, 9, 11, 0.62) 42%, rgba(8, 9, 11, 0.24) 100%);
    z-index: -1;
}

.content {
    position: relative;
    z-index: 1;
    max-width: 880px;
    transform: translateY(-55px);
}


h1 {
    font-size: 60px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

h1 span {
    color: var(--accent);
}

.hero p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.actions {
    display: flex;
    gap: 15px;
}

.btn {
    background: var(--accent);
    color: var(--accent-ink);
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 18px;
    transition: .2s;
}

.btn:hover {
    opacity: .85;
    transform: translateY(-2px);
}


.hero .actions {
    margin-top: 25px;
}

section {
    scroll-margin-top: 80px;
    padding: 100px 8%;
}

/* ! новости */
.news {
    position: relative;
    padding: 100px 8%;
    margin-bottom: 60px;
    background: url('../assets/img/image136.png') center center/cover no-repeat;
    overflow: hidden;
}

.news::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, var(--bg) 0%, rgba(8, 9, 11, 0.55) 8%, rgba(8, 9, 11, 0.16) 20%, rgba(8, 9, 11, 0) 34%, rgba(8, 9, 11, 0) 66%, rgba(8, 9, 11, 0.16) 80%, rgba(8, 9, 11, 0.55) 92%, var(--bg) 100%),
        linear-gradient(90deg, var(--bg) 0%, rgba(8, 9, 11, 0.38) 7%, rgba(8, 9, 11, 0.08) 16%, rgba(8, 9, 11, 0) 24%, rgba(8, 9, 11, 0) 76%, rgba(8, 9, 11, 0.08) 84%, rgba(8, 9, 11, 0.38) 93%, var(--bg) 100%);
    z-index: 0;
    pointer-events: none;
}

.news > * {
    position: relative;
    z-index: 1;
}

.news h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.news-slider {
    position: relative;
    overflow: hidden;
}

.news-track {
    display: flex;
    gap: 20px;
    transition: transform .6s ease;
}

.news-card {
    min-width: calc((100% - 60px) / 4);
    display: flex;
    flex-direction: column;
    background: rgba(13, 16, 20, 0.62);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.news-img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: transform .25s ease;
    will-change: transform;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.news-content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-date {
    font-size: 13px;
    color: var(--muted-2);
    font-weight: 500;
}

.news-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity .2s;
}

.news-link span {
    transition: transform .2s;
}

.news-link:hover {
    opacity: .8;
}

.news-link:hover span {
    transform: translateX(4px);
}

/* !  плавный скролл */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-2);
    background-clip: content-box;
}

::-webkit-scrollbar-button,
::-webkit-scrollbar-button:start,
::-webkit-scrollbar-button:end,
::-webkit-scrollbar-button:single-button,
::-webkit-scrollbar-button:vertical:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

.custom-scrollbar {
    position: fixed;
    top: 0;
    right: 2px;
    width: 6px;
    height: 100vh;
    z-index: 10000;
    pointer-events: none;
}

.custom-scrollbar__thumb {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    min-height: 42px;
    border-radius: 999px;
    background: var(--accent);
}

/* !  о проекте  */
.media-section {
    position: relative;
    padding: 100px 8%;
    display: flex;
    gap: 50px;
    align-items: flex-start;
    background: url('../assets/img/group814.png') center center/cover no-repeat;
    overflow: hidden;
}

.media-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 9, 11, 0.72) 0%, rgba(8, 9, 11, 0.46) 18%, rgba(8, 9, 11, 0.14) 44%, rgba(8, 9, 11, 0.08) 100%),
        linear-gradient(180deg, var(--bg) 0%, rgba(8, 9, 11, 0.36) 16%, rgba(8, 9, 11, 0.08) 34%, rgba(8, 9, 11, 0.08) 66%, rgba(8, 9, 11, 0.36) 84%, var(--bg) 100%);
    pointer-events: none;
    z-index: 0;
}

.media-section > * {
    position: relative;
    z-index: 1;
}

.media-info {
    flex: 1;
    max-width: 350px;   
}

.media-info h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.media-info p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.media-grid {
    flex: 2.5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.media-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(13, 16, 20, 0.62);
    backdrop-filter: blur(12px);
    transition: .3s ease;
    aspect-ratio: 16 / 10;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-item:hover {
    transform: scale(1.03);
    border-color: rgba(0, 224, 255, 0.55);
}

@media (max-width: 1024px) {
    .media-section {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }
    .media-info {
        max-width: 100%;
        text-align: center;
    }
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ! футер */


.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 45px;
}


/* ! скрытие */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-btn.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ! адаптация на моб */
@media (max-width: 900px) {
    .burger-btn {
        display: flex;
        position: relative;
        z-index: 10001;
    }

    .right-panel {
        display: none;
    }

    nav {
        position: fixed;
        inset: 0;
        background: var(--accent);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transform: scale(1.05);
        transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
    }

    nav.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    nav a {
        font-family: var(--ui-font);
        font-size: 24px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--accent-ink);
        opacity: 0;
        transform: translateY(25px);
        transition: opacity .4s ease, transform .4s ease;
    }

    nav.active a {
        opacity: 1;
        transform: translateY(0);
    }

    nav a:nth-child(1) { transition-delay: .1s; }
    nav a:nth-child(2) { transition-delay: .2s; }
    nav a:nth-child(3) { transition-delay: .3s; }
    nav a:nth-child(4) { transition-delay: .4s; }

    nav a::after {
        display: none;
    }

    .burger-btn.active span {
        background: var(--accent-ink);
    }


    
    
    
    
    
    
    
}

@media (max-width: 768px) {
    .header {
        padding: 16px 5%;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo img {
        height: 45px;
    }
    
    .logo-text span {
        font-size: 16px;
    }

    .header-left {
        gap: 14px;
    }

    .header__online {
        padding: 7px 10px;
        font-size: 12px;
    }
    
    .right-panel {
        gap: 15px;
    }
    
    .socials {
        gap: 12px;
    }
    
    .terms-text {
        font-size: 12px;
        margin-top: 18px;
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    

    

    

    
}

@media (max-width: 480px) {
    .header {
        padding: 12px 4%;
    }
    
    .logo img {
        height: 38px;
    }
    
    .logo-text span {
        font-size: 14px;
    }
    
    .logo {
        gap: 8px;
    }

    .header-left {
        gap: 10px;
    }

    .header__online {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    nav {
        gap: 15px;
    }
    
    nav a {
        font-size: 10px;
    }
    
    .right-panel {
        gap: 10px;
    }
    
    .right-panel .btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .socials a i {
        font-size: 18px;
    }
    
    .terms-text {
        font-size: 10px;
        margin-top: 14px;
    }
    
    
    
    .footer-logo img {
        height: 35px;
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
}


@media (max-width: 360px) {
    .donate-title {
        font-size: 20px;
    }
    
    .methods-grid {
        gap: 8px;
    }
    
    
    
    
    
    
}

/* Footer override */


.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    user-select: none;
}

.footer-logo img {
    height: 36px;
    width: auto;
}

.footer-logo .logo-text span {
    font-size: 20px;
    line-height: .86;
}


@media (max-width: 560px) {
    

    .footer-logo img {
        height: 48px;
    }

    

    
}

/* Majestic footer port */
.majestic-footer {
    width: min(100%, 1520px);
    min-height: 235px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 300px 1fr 240px;
    column-gap: 84px;
    align-items: start;
    margin: 0 auto;
    padding: 48px 56px 42px;
    background: var(--bg);
    color: #fff;
    font-family: var(--ui-font);
}

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

.majestic-footer .company {
    min-width: 0;
}

.majestic-footer .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    user-select: none;
    pointer-events: none;
}

.majestic-footer .footer-logo img {
    width: 75px;
    height: auto;
    display: block;
}

.majestic-footer .footer-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: .85;
}

.majestic-footer .footer-logo .logo-text span {
    font-size: 20px;
    font-weight: 800;
    line-height: .9;
}

.majestic-footer .company p {
    margin: 0;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
}

.majestic-footer nav {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    display: block;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.majestic-footer nav > ul {
    list-style: none;
    display: grid;
    grid-template-columns: 112px 282px 220px;
    column-gap: 46px;
    align-items: start;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.majestic-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.majestic-footer .nav-block {
    min-width: 0;
}

.majestic-footer .nav-block .title {
    display: block;
    margin: 3px 0 18px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.majestic-footer .nav-block ul {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.majestic-footer .nav-link {
    display: inline;
    padding: 0;
    margin: 0;
    color: var(--muted-2);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    opacity: 1;
    transform: none;
    transition: color .2s ease;
}

.majestic-footer .nav-link::after {
    display: none;
}

.majestic-footer .nav-link:hover {
    color: #ffffff;
}

.majestic-footer .footer-mail {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.majestic-footer .payments {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 0;
    min-width: 240px;
}

.majestic-footer .payment-method-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.majestic-footer .payment-method-list li {
    width: 75px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--surface-2) 0%, #12171D 100%);
    color: rgba(255, 255, 255, .55);
}

.majestic-footer .payment-method-list svg {
    display: block;
    max-width: 52px;
    height: 16px;
}

.majestic-footer .payment-method-list li[aria-label="Mastercard"] svg {
    height: 20px;
}

.majestic-footer .payment-method-list li[aria-label="СБП"] svg {
    height: 18px;
}

.majestic-footer .system-status {
    position: relative;
    margin-top: 26px;
    padding-left: 20px;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.majestic-footer .system-status::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--ok);
    transform: translateY(-50%);
}

@media (max-width: 1520px) {
    .majestic-footer {
        grid-template-columns: 1fr;
        row-gap: 30px;
        width: min(100%, 1180px);
        padding: 42px 32px 38px;
    }

    .majestic-footer nav > ul {
        grid-template-columns: repeat(3, minmax(0, max-content));
        column-gap: 48px;
        justify-content: start;
    }

    .majestic-footer .payments {
        justify-self: start;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .majestic-footer {
        width: 100%;
        padding: 36px 18px;
    }

    .majestic-footer nav > ul {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .majestic-footer .payment-method-list {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

/* Mobile polish */
@media (max-width: 900px) {
    .header {
        top: 0;
        grid-template-columns: 1fr auto;
        padding: 16px 20px;
        gap: 14px 18px;
        align-items: center;
    }

    .header-left {
        min-width: 0;
        gap: 12px;
    }

    .logo img {
        height: 42px;
    }

    .logo-text span {
        font-size: 15px;
        letter-spacing: 0;
    }

    .header__online {
        padding: 8px 10px;
        font-size: 11px;
        gap: 5px;
    }

    .hero {
        min-height: 88vh;
        padding: 112px 20px 32px;
        margin-bottom: 56px;
        align-items: flex-end;
    }

    .content {
        max-width: 100%;
        transform: none;
    }

    h1 {
        max-width: 11ch;
        font-size: clamp(38px, 10vw, 56px);
        line-height: 0.98;
        margin-bottom: 18px;
    }

    .hero p {
        max-width: 520px;
        font-size: 15px;
        line-height: 1.55;
        margin-bottom: 24px;
    }

    .actions,
    .hero .actions {
        width: 100%;
        margin-top: 0;
    }

    .hero .btn {
        width: 100%;
        min-height: 54px;
        font-size: 16px;
        border-radius: 10px;
    }

    .news {
        display: block;
        padding: 72px 20px;
        margin-bottom: 36px;
    }

    .news h2 {
        margin-bottom: 26px;
        font-size: 28px;
        line-height: 1.05;
    }

    .news-slider {
        overflow: visible;
    }

    .news-track {
        flex-direction: column;
        gap: 16px;
    }

    .news-card {
        min-width: 100%;
        border-radius: 14px;
    }

    .news-img-wrap {
        height: 210px;
    }

    .news-content {
        padding: 18px;
    }

    .news-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .news-content p {
        font-size: 14px;
        -webkit-line-clamp: 5;
        margin-bottom: 20px;
    }

    .media-section {
        padding: 72px 20px;
        gap: 28px;
    }

    .media-info {
        max-width: 100%;
    }

    .media-info h2 {
        font-size: 28px;
        margin-bottom: 18px;
    }

    .media-info p {
        max-width: 520px;
        font-size: 15px;
        margin-bottom: 0;
    }

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

    .media-item {
        aspect-ratio: 16 / 10;
        border-radius: 14px;
    }
}

@media (max-width: 560px) {
    .header {
        padding: 14px 16px;
    }

    .header-left {
        gap: 10px;
    }

    .logo img {
        height: 36px;
    }

    .logo-text span {
        font-size: 13px;
    }

    .header__online {
        padding: 7px 8px;
        font-size: 10px;
    }

    nav {
        gap: 22px;
        padding: 24px 18px;
    }

    nav a {
        font-size: 19px;
        letter-spacing: 1px;
    }

    .hero {
        min-height: 82vh;
        padding: 96px 16px 24px;
    }

    h1 {
        font-size: clamp(32px, 12vw, 42px);
        max-width: 9ch;
    }

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

    .hero .btn {
        min-height: 50px;
        font-size: 15px;
        padding: 12px 16px;
    }

    .news,
    .media-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .news h2,
    .media-info h2 {
        font-size: 24px;
    }

    .news-img-wrap {
        height: 188px;
    }

    .majestic-footer {
        padding: 28px 16px 32px;
        row-gap: 24px;
    }

    .majestic-footer .footer-logo img {
        width: 62px;
    }

    .majestic-footer .footer-logo .logo-text span {
        font-size: 17px;
    }

    .majestic-footer .nav-block .title {
        margin-bottom: 12px;
        font-size: 15px;
    }

    .majestic-footer .payment-method-list li {
        width: 68px;
    }

    .majestic-footer .system-status {
        margin-top: 18px;
        white-space: normal;
    }
}

@media (max-width: 900px) {
    #mainNav {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        padding: 104px 24px 36px;
        justify-content: center;
        align-items: center;
        gap: 22px;
        background: var(--accent);
        overflow-y: auto;
        justify-self: stretch;
    }

    #mainNav a {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .burger-btn {
        justify-self: end;
    }
}

@media (max-width: 560px) {
    #mainNav {
        padding: 92px 20px 28px;
        gap: 18px;
    }

    #mainNav a {
        max-width: 260px;
        font-size: 17px;
    }

    .header__online {
        max-width: 124px;
    }
}

/* !  появление секций */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, .7, .26, 1);
}

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

.js .news-card:nth-child(2) { transition-delay: .08s; }
.js .news-card:nth-child(3) { transition-delay: .16s; }
.js .media-item:nth-child(2) { transition-delay: .06s; }
.js .media-item:nth-child(3) { transition-delay: .12s; }
.js .media-item:nth-child(4) { transition-delay: .18s; }
.js .media-item:nth-child(5) { transition-delay: .24s; }
.js .media-item:nth-child(6) { transition-delay: .30s; }

/* !  акцентные состояния */
::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.btn {
    box-shadow: 0 10px 28px rgba(0, 224, 255, .16);
}

.btn:hover {
    box-shadow: 0 14px 36px rgba(0, 224, 255, .30);
}

@media (min-width: 901px) {
    nav a.nav-donate {
        color: var(--accent);
    }

    nav a.nav-donate:hover {
        color: var(--accent-2);
    }
}

/* !  сетка новостей: три карточки на всю ширину */
.news-card {
    min-width: calc((100% - 40px) / 3);
}

@media (max-width: 1200px) {
    .news-card {
        min-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 900px) {
    .news-card {
        min-width: 100%;
    }
}

/* !  адаптивная шапка: дублирующий CTA прячем, пока есть кнопка справа */
@media (min-width: 901px) and (max-width: 1500px) {
    nav a.nav-donate {
        display: none;
    }
}