@font-face {
    font-family: "SF Compact Text";
    src: url("../Font/SFCompactText-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SF Compact Text";
    src: url("../Font/SFCompactText-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SF Compact Text";
    src: url("../Font/SFCompactText-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Public website */
body.site-page {
    min-width: 0;
    background: #101010;
    color: #FFFFFF;
    font-family: "SF Compact Text", Arial, sans-serif;
}

.site-page > .site-hero,
.site-page > .topup-hero,
.site-page > main,
.site-page > .site-footer {
    width: min(1440px, 100%);
    margin-right: auto;
    margin-left: auto;
}

.site-page > .site-hero { width: 100%; }

.site-container { width: 1110px; margin: 0 auto; }

.site-hero {
    height: 822px;
    position: relative;
    overflow: hidden;
    background: #101010;
}

.site-hero-image-placeholder { position: absolute; inset: 0; background: url("./assets/Головний Екран.png") center / cover no-repeat; }
.site-hero-overlay { position: absolute; inset: 0; background: rgba(16, 16, 16, 0.7); }
.site-hero-content { height: 100%; position: relative; z-index: 1; }

.site-navigation {
    height: 40px;
    position: absolute;
    top: 50px;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: max-content;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.site-brand > span:last-child {
    color: #FFFFFF;
}

.site-brand:hover > span:last-child, .site-brand:focus-visible > span:last-child {
    background: linear-gradient(100deg, #FF4B4B 0%, #FF3888 50%, #FF4B4B 100%);
    background-position: 0 50%;
    background-size: 160% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: site-logo-shine 2.8s ease-in-out infinite alternate;
}

.site-icon-placeholder { display: block; flex: 0 0 auto; background: #FFFFFF; }
.site-brand-mark { width: 32px; height: 21px; background: url("./assets/logo.svg") center / contain no-repeat; }
.site-brand:hover .site-brand-mark, .site-brand:focus-visible .site-brand-mark {
    filter: brightness(0) saturate(100%) invert(42%) sepia(88%) saturate(2422%) hue-rotate(319deg) brightness(102%) contrast(100%);
}

.site-navigation-links { display: flex; align-items: center; gap: 30px; }

.site-navigation-link {
    position: relative;
    padding: 0;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.site-navigation-link::after {
    width: 0;
    height: 2px;
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    margin: auto;
    background: #FFFFFF;
    content: "";
    transition: width 180ms ease;
}

.site-navigation-link:hover::after, .site-navigation-link:focus-visible::after { width: 100%; }
.site-navigation-link-active, .site-navigation-link:hover { color: #FFFFFF; }

.site-profile {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    text-decoration: none;
}

.site-profile-info { display: flex; align-items: center; }
.site-profile-name { font-size: 20px; font-weight: 700; line-height: 1.2; }
.site-icon-currency { width: 18px; height: 17px; background: url("./assets/donat_coin.svg") center / contain no-repeat; }
.site-avatar-placeholder { width: 32px; height: 32px; background: url("./assets/player_skin.png") center / cover no-repeat; }

.site-hero-copy {
    width: 728px;
    position: absolute;
    top: 269.88px;
    left: 0;
}

.site-hero-copy h1, .server-hero-copy h1 { width: 728px; font-size: 32px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.site-hero-copy p, .server-hero-copy p { width: 728px; margin-top: 20px; color: #FFFFFF; font-size: 16px; font-weight: 400; line-height: 1.2; }
.site-hero-actions { width: 540px; margin-top: 44.83px; display: flex; align-items: center; gap: 30px; }

.site-primary-action, .site-secondary-action {
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11.21px;
    padding: 0 11.21px;
    border-radius: 11.21px;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.site-primary-action { width: 350px; background: linear-gradient(180deg, #FF4B4B 0%, #FF3888 100%); }
.site-secondary-action { width: 160px; background: #262626; }
.site-primary-action, .site-secondary-action { transition: background 200ms ease, box-shadow 200ms ease; }
.site-primary-action:hover, .site-primary-action:focus-visible {
    background: linear-gradient(180deg, #FF4B4B 0%, #F3206D 100%);
    box-shadow: 0 8px 24px rgba(243, 32, 109, 0.45);
}
.site-secondary-action:hover, .site-secondary-action:focus-visible {
    background: #5865F2;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
}
.site-action-icon { width: 24px; height: 24px; }
.site-primary-action .site-action-icon { width: 42px; height: 28px; background: url("./assets/logo.svg") center / contain no-repeat; }
.site-secondary-action .site-action-icon { width: 32px; height: 25px; background: url("./assets/discord.svg") center / contain no-repeat; }

.site-servers { height: 698px; position: relative; padding: 50px 0 0; }
.site-servers h2, .site-faq h2 { font-size: 28px; font-weight: 700; line-height: 1.2; }
.site-servers h2, .site-faq h2 { font-size: 32px; }
.site-server-grid { width: 1110px; position: absolute; top: 118px; left: 0; display: grid; grid-template-columns: repeat(3, 350px); gap: 30px; }

.site-server-card { width: 350px; height: 275px; position: relative; overflow: hidden; border-radius: 10px; background: #1C1C1C; transition: box-shadow 220ms ease; }
.site-server-image-placeholder { width: 350px; height: 200px; background: url("./assets/cobblemon_previv.png") center / cover no-repeat; transition: transform 280ms ease; }

.site-server-details {
    width: 100%;
    height: 75px;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #1C1C1C;
}

.site-server-name, .site-server-players { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 700; line-height: 1.2; }
.site-server-players { margin-top: 5px; color: #FFFFFF; font-size: 16px; }
.site-status-dot { width: 10px; height: 10px; border-radius: 50%; background: #68FF5A; }
.site-player-icon { width: 17px; height: 17px; background: url("./assets/online.svg") center / contain no-repeat; }

.site-server-open {
    width: 44px;
    height: 45px;
    border: 0;
    background: url("./assets/cobblemon_icon.svg") center / contain no-repeat;
    cursor: pointer;
    color: transparent;
    font-size: 0;
}

.site-server-card:hover, .site-server-card:focus-within { box-shadow: 0 0 24px rgba(255, 75, 75, 0.62); }
.site-server-card:hover .site-server-image-placeholder, .site-server-card:focus-within .site-server-image-placeholder { transform: scale(1.07); }
.site-server-card:hover .site-server-open, .site-server-card:focus-within .site-server-open {
    filter: brightness(0) saturate(100%) invert(42%) sepia(88%) saturate(2422%) hue-rotate(319deg) brightness(102%) contrast(100%);
}

.site-faq { height: 432px; position: relative; padding: 50px 0 0; }
.site-faq-grid { width: 1110px; position: absolute; top: 118px; left: 0; display: grid; grid-template-columns: repeat(3, 350px); gap: 30px; }

.site-faq-item { width: 350px; min-height: 132px; padding: 15px; background: #1C1C1C; border-radius: 10px; }

.site-faq-item h3 { min-height: 38px; font-size: 16px; font-weight: 700; line-height: 1.2; }
.site-faq-item p { margin-top: 10px; padding-top: 10px; border-top: 3px solid #FF254F; color: #FFFFFF; font-size: 14px; line-height: 1.2; }

.site-footer { height: 255px; margin-top: 50px; padding: 30px 0 0; background: #101010; overflow: hidden; }
.site-footer-content { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.site-footer-brand { width: 137px; display: flex; flex: 0 0 auto; flex-direction: column; gap: 10px; }
.site-footer-brand .site-brand { gap: 5px; font-size: 24px; }
.site-footer-brand .site-brand > span:last-child { color: #FF254F; }
.site-footer-brand .site-brand:hover > span:last-child, .site-footer-brand .site-brand:focus-visible > span:last-child { background: none; -webkit-background-clip: initial; background-clip: initial; color: #FF254F; animation: none; }
.site-footer-brand .site-brand-mark, .site-footer-brand .site-brand:hover .site-brand-mark, .site-footer-brand .site-brand:focus-visible .site-brand-mark { width: 42px; height: 28px; filter: brightness(0) saturate(100%) invert(34%) sepia(93%) saturate(2537%) hue-rotate(328deg) brightness(105%) contrast(101%); }
.site-footer-brand p { color: #B7B7B7; font-size: 11px; font-weight: 700; line-height: 1.2; }
.site-footer-links { display: flex; gap: 30px; }
.site-footer-links section, .site-footer-links section:nth-child(2) { width: auto; display: flex; flex: 0 0 auto; flex-direction: column; gap: 10px; }
.site-footer-links h2 { margin-bottom: 0; color: #FFFFFF; font-size: 17px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.site-footer-links a { color: #FFFFFF; font-size: 12px; line-height: 1.2; text-decoration: none; }
.site-footer-links a:hover { color: #FFFFFF; }
.site-footer-payments { width: 65px; display: flex; flex: 0 0 auto; flex-direction: column; gap: 8px; }
.site-payment-card { width: 65px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #1C1C1C; }
.site-payment-card img { display: block; max-width: 29px; max-height: 18px; }

@keyframes site-logo-shine {
    from { background-position: 0 50%; }
    to { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .site-brand > span:last-child { animation: none; }
    .site-primary-action, .site-secondary-action, .site-server-card, .site-server-image-placeholder, .site-server-open, .site-navigation-link::after { transition: none; }
}

/* Server details page */
.server-hero .site-hero-image-placeholder { background-image: url("./assets/Cobblemon Головний Екран.png"); }
.server-hero .site-primary-action .site-action-icon { width: 28px; height: 28px; background-image: url("./assets/cobblemon_icon.svg"); }
.server-hero-copy { top: 295.88px; }
.server-hero-copy h1 { text-transform: none; }

.server-main { width: 1440px; height: 943px; }

.server-modifications {
    height: 943px;
    position: relative;
    padding-top: 50px;
}

.server-modifications h2 { color: #FFFFFF; font-size: 32px; font-weight: 700; line-height: 1.2; }

.server-modification-grid {
    width: 1110px;
    position: absolute;
    top: 118px;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 255px);
    gap: 30px;
}

.server-modification-card {
    width: 255px;
    height: 255px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: 10px;
    background: #1C1C1C;
}

.server-modification-image-placeholder { width: 135px; height: 135px; flex: 0 0 auto; background: url("./assets/mod_icon.png") center / cover no-repeat; }
.server-modification-card h3 { color: #FFFFFF; font-size: 16px; font-weight: 700; line-height: 1.2; }
.server-modification-card p { margin-top: 5px; color: #FFFFFF; font-size: 14px; line-height: 1.2; }

.site-server-card { cursor: pointer; }
.site-server-card:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }

/* Account top-up page */
.topup-hero { width: 1440px; height: 822px; position: relative; overflow: hidden; }
.topup-hero > .site-container { height: 100%; position: relative; }

.topup-card {
    width: 731px;
    padding: 50px;
    position: absolute;
    top: 194px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    border-radius: 5px;
    background: #1C1C1C;
}

.topup-card-content { width: 489px; display: flex; flex-direction: column; align-items: center; gap: 50px; }
.topup-heading { width: 489px; text-align: center; white-space: nowrap; }
.topup-heading h1 { color: #FFFFFF; font-size: 32px; font-weight: 700; line-height: 1.2; }
.topup-heading p { margin-top: 4px; color: #86898C; font-size: 20px; line-height: 1.2; }

.topup-form { width: 489px; display: flex; flex-direction: column; gap: 30px; }
.topup-fields { display: flex; flex-direction: column; gap: 16px; }

.topup-amount-field, .topup-email-field {
    width: 489px;
    min-height: 40px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #262626;
    border-radius: 5px;
    background: #222222;
    color: #86898C;
    font-size: 16px;
    line-height: 1.2;
}

.topup-amount-value { display: flex; align-items: center; gap: 5px; padding-left: 5px; }
.topup-amount-value::before { content: "="; color: #FFFFFF; font-size: 16px; font-weight: 700; }
.topup-amount-input, .topup-email-field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #FFFFFF;
    font: 400 16px/1.2 "SF Compact Text", Arial, sans-serif;
    text-align: left;
}

.topup-amount-entry { min-width: 0; flex: 0 0 auto; display: flex; align-items: center; gap: 0; }
.topup-amount-input { width: 1ch; min-width: 1px; flex: 0 0 auto; text-align: left; }
.topup-amount-currency { color: #FFFFFF; font-size: 16px; font-weight: 700; gap: 5px; }
.topup-amount-input { appearance: textfield; -moz-appearance: textfield; }
.topup-amount-input::-webkit-outer-spin-button, .topup-amount-input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.topup-amount-result { color: #FFFFFF; font: 700 16px/1.2 "SF Compact Text", Arial, sans-serif; }
.topup-email-field input { text-align: left; font-weight: 400; }
.topup-email-field input::placeholder { color: #86898C; opacity: 1; }

.topup-terms { display: flex; align-items: flex-start; gap: 10px; color: #FFFFFF; font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; }
.topup-terms input { position: absolute; opacity: 0; }
.topup-checkbox {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    position: relative;
    border-radius: 4px;
    background: #222222;
}

.topup-checkbox::after {
    width: 12px;
    height: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 2px;
    background: #FF254F;
    content: "";
    transform: translate(-50%, -50%) scale(0);
    transition: transform 150ms ease;
}

.topup-terms input:checked + .topup-checkbox::after { transform: translate(-50%, -50%) scale(1); }
.topup-terms input:focus-visible + .topup-checkbox { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.topup-terms a { color: #FF254F; font-size: 14px; font-weight: 500; text-decoration: none; }

.topup-submit-button {
    width: 489px;
    height: 44px;
    border: 0;
    border-radius: 11.21px;
    background: linear-gradient(180deg, #FF4B4B 0%, #FF3888 100%);
    color: #FFFFFF;
    cursor: pointer;
    font: 700 20px/1.2 "SF Compact Text", Arial, sans-serif;
    transition: background 200ms ease, box-shadow 200ms ease;
}

.topup-submit-button:hover, .topup-submit-button:focus-visible {
    background: linear-gradient(180deg, #FF4B4B 0%, #F3206D 100%);
    box-shadow: 0 8px 24px rgba(243, 32, 109, 0.45);
}

.topup-footer { margin-top: 0; }

@media (max-width: 1000px) {
    .site-profile .site-profile-info { display: none; }
}

@media (max-width: 900px) {
    body.site-page { min-width: 320px; }
    .site-page > .site-hero, .site-page > .topup-hero, .site-page > main, .site-page > .site-footer { width: 100%; }
    .site-container { width: min(1110px, calc(100% - 48px)); }
    .site-navigation { height: auto; padding: 24px 0; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; }
    .site-navigation-links { justify-content: center; gap: 12px; white-space: nowrap; }
    .site-hero-copy { top: 260px; }
    .site-server-grid { grid-template-columns: repeat(2, 350px); justify-content: center; }
    .site-faq-grid { grid-template-columns: 1fr; }
    .site-footer-content { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 3fr); gap: 24px; }
    .site-footer-brand { gap: 14px; }
    .site-footer-brand p, .site-footer-links h2, .site-footer-links a { font-size: 16px; }
    .site-footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .site-footer-links section, .site-footer-links section:nth-child(2) { width: auto; min-width: 0; }
    .site-footer-links h2, .site-footer-links a { overflow-wrap: anywhere; }
}

@media (max-width: 520px) {
    .site-container { width: calc(100% - 32px); }
    .site-hero { height: 760px; }
    .site-profile-info { display: none; }
    .site-hero-copy { top: 230px; }
    .site-hero-copy h1 { font-size: 30px; }
    .site-hero-copy p { font-size: 18px; }
    .site-hero-actions { flex-direction: column; align-items: stretch; }
    .site-primary-action, .site-secondary-action { width: 100%; }
    .site-servers { padding-top: 48px; }
    .site-server-grid { grid-template-columns: 1fr; }
    .site-server-card { width: 100%; }
    .site-server-image-placeholder { width: 100%; }
    .site-footer-links { width: auto; flex: 1 1 0; flex-direction: row; gap: 30px; }
    .site-footer-links section, .site-footer-links section:nth-child(2) { width: auto; flex: 1 1 0; min-width: 0; }
}

/* Responsive layout: preserve the 1440px design on wide screens, reflow below it. */
@media (max-width: 1439px) {
    body.site-page { min-width: 0; overflow-x: hidden; }

    .site-page > .site-hero,
    .site-page > .topup-hero,
    .site-page > main,
    .site-page > .site-footer { width: 100%; }

    .site-container { width: min(1110px, calc(100% - 64px)); }
    .site-hero { width: 100%; }
    .site-servers, .site-faq { width: min(1110px, calc(100% - 64px)); height: auto; min-height: 0; padding: 50px 0; }
    .site-server-grid, .site-faq-grid {
        width: 100%;
        position: static;
        margin-top: 30px;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        justify-content: start;
    }

    .site-server-card, .site-server-image-placeholder { width: 100%; }
    .site-faq-item { width: 100%; }

    .site-footer { width: 100%; height: auto; min-height: 255px; }
    .server-main { width: 100%; height: auto; min-height: 0; }
    .server-modifications { width: min(1110px, calc(100% - 64px)); height: auto; min-height: 0; }
    .server-modifications { padding: 50px 0; }
    .server-modification-grid {
        width: 100%;
        position: static;
        margin-top: 30px;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        justify-content: start;
    }

    .server-modification-card { width: 100%; }
    .server-modification-image-placeholder { align-self: center; }

    .topup-hero { width: 100%; }
    .topup-card { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 900px) {
    .site-container { width: calc(100% - 48px); }
    .site-hero { height: 760px; }
    .site-navigation {
        height: auto;
        position: static;
        padding: 50px 0 0;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 24px;
    }

    .site-navigation-links { justify-content: center; white-space: nowrap; }
    .site-navigation-link { font-size: 20px; }
    .site-hero-copy, .server-hero-copy { width: min(728px, 100%); top: 230px; }
    .site-hero-copy h1, .server-hero-copy h1 { width: 100%; font-size: 32px; }
    .site-hero-copy p, .server-hero-copy p { width: min(728px, 100%); font-size: 18px; }
    .site-hero-actions { width: auto; }

    .site-server-grid, .site-faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer-content { flex-direction: row; }

    .topup-card { width: min(731px, calc(100% - 48px)); }
}

/* Keep the same single-row navigation on narrow screens. */
@media (max-width: 700px) {
    .site-navigation { grid-template-columns: auto minmax(0, 1fr) auto; gap: 15px; }
    .site-navigation .site-brand > span:last-child { display: none; }
    .site-navigation-links { justify-content: center; min-width: 0; gap: 15px; white-space: nowrap; }
    .site-navigation-link { font-size: 15px; }
    .site-navigation .site-brand-mark { width: 30px; height: 20px; }
    .site-navigation .site-avatar-placeholder { width: 30px; height: 30px; }
}

@media (max-width: 600px) {
    .site-container { width: calc(100% - 32px); }
    .site-hero { height: 720px; }
    .site-navigation { padding: 24px 0 0; }
    .site-brand { font-size: 20px; }
    .site-brand-mark { width: 28px; height: 19px; }
    .site-navigation .site-brand > span:last-child { display: none; }
    .site-profile .site-profile-info { display: none; }
    .site-navigation-link { font-size: 15px; }

    .site-hero-copy, .server-hero-copy { top: 190px; }
    .site-hero-copy h1, .server-hero-copy h1 { font-size: 26px; }
    .site-hero-copy p, .server-hero-copy p { font-size: 16px; }
    .site-hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .site-primary-action, .site-secondary-action { width: 100%; font-size: 18px; }

    .site-servers, .site-faq, .server-modifications { padding: 40px 0; }
    .site-servers h2, .site-faq h2, .server-modifications h2 { font-size: 26px; }
    .site-server-grid, .site-faq-grid, .server-modification-grid { grid-template-columns: 1fr; gap: 30px; }
    .site-server-card, .site-server-image-placeholder { width: 100%; }
    .site-faq-item { width: 100%; }
    .server-modification-card { width: 100%; max-width: none; justify-self: stretch; }

    .topup-hero { height: auto; min-height: 822px; padding-bottom: 48px; }
    .topup-card {
        width: calc(100% - 32px);
        padding: 24px;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 110px auto 0;
    }

    .topup-card-content { gap: 32px; }
    .topup-card-content, .topup-form, .topup-amount-field, .topup-email-field, .topup-submit-button { width: 100%; }
    .topup-heading { width: 100%; }
    .topup-heading h1 { font-size: 20px; }
    .topup-heading p { font-size: 17px; }
    .topup-terms { font-size: 14px; }
    .topup-terms a { font-size: 14px; }
    .topup-amount-result { font-size: 14px; }

    .site-footer { margin-top: 0; padding: 30px 0; }
    .site-footer-content { grid-template-columns: minmax(76px, 0.9fr) minmax(0, 3fr); gap: 12px; }
    .site-footer-brand { gap: 12px; }
    .site-footer-brand .site-brand { gap: 3px; font-size: 14px; }
    .site-footer-brand .site-brand-mark { width: 22px; height: 15px; }
    .site-footer-brand p, .site-footer-links h2, .site-footer-links a { font-size: 12px; }
    .site-footer-links { width: auto; gap: 10px; }
    .site-footer-links section { gap: 10px; }
}

/* Footer responsive layout */
@media (max-width: 1439px) {
    .site-footer { height: 255px; min-height: 0; }
}

@media (max-width: 900px) {
    .site-footer { padding-top: 30px; }
    .site-footer-content { display: grid; grid-template-columns: minmax(110px, 137px) minmax(0, 1fr) 56px; gap: 20px; }
    .site-footer-brand { width: auto; gap: 10px; }
    .site-footer-brand .site-brand { font-size: 20px; }
    .site-footer-brand .site-brand-mark, .site-footer-brand .site-brand:hover .site-brand-mark, .site-footer-brand .site-brand:focus-visible .site-brand-mark { width: 34px; height: 23px; }
    .site-footer-brand p { font-size: 10px; }
    .site-footer-links { width: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .site-footer-links section, .site-footer-links section:nth-child(2) { width: auto; min-width: 0; gap: 10px; }
    .site-footer-links h2 { font-size: 14px; overflow-wrap: anywhere; }
    .site-footer-links a { font-size: 11px; overflow-wrap: anywhere; }
    .site-footer-payments { width: 56px; gap: 8px; }
    .site-payment-card { width: 56px; height: 34px; border-radius: 8px; }
}

@media (max-width: 600px) {
    .site-footer-content { grid-template-columns: 78px minmax(0, 1fr) 42px; gap: 10px; }
    .site-footer-brand .site-brand { gap: 3px; font-size: 14px; }
    .site-footer-brand .site-brand-mark, .site-footer-brand .site-brand:hover .site-brand-mark, .site-footer-brand .site-brand:focus-visible .site-brand-mark { width: 22px; height: 15px; }
    .site-footer-brand p { font-size: 9px; }
    .site-footer-links { gap: 8px; }
    .site-footer-links section, .site-footer-links section:nth-child(2) { gap: 8px; }
    .site-footer-links h2 { font-size: 10px; }
    .site-footer-links a { font-size: 9px; }
    .site-footer-payments { width: 42px; gap: 6px; }
    .site-payment-card { width: 42px; height: 28px; border-radius: 6px; }
    .site-payment-card img { transform: scale(0.7); }
}

@media (max-width: 400px) {
    .site-navigation { gap: 5px; }
    .site-navigation-links { gap: 5px; }
    .site-navigation-link { font-size: 10px; }
}
