/* ================= RESPONSIVE: VERY SMALL ================= */

@media screen and (max-width: 379px) {
    html {
        font-size: 14px;
    }

    .menu-container,
    .hero-section,
    .sklep,
    .dc-section,
    .section-shell {
        width: calc(100% - 1rem);
    }

    .menu-container {
        top: 8px;
        padding: 0.7rem 0.8rem;
    }

    .logo {
        gap: 0.65rem;
    }

    .logo-image {
        width: 2.2rem;
        height: 2.2rem;
    }

    .dropdown-nav {
        width: calc(100vw - 1rem);
        right: -0.15rem;
    }

    .hero-section {
        min-height: auto;
        padding-top: 3.2rem;
        padding-bottom: 1.8rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .hero-copy h1 {
        max-width: 7.2ch;
    }

    .hero-actions,
    .footer-links,
    .footer-socials {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions > *,
    .footer-socials > *,
    .ip-box,
    .nav-button,
    .button-primary,
    .button-secondary,
    .dc-button-modern,
    .button-f,
    #powrotBtn,
    .kup-teraz {
        width: 100%;
    }

    .hero-visual-media {
        min-height: 18rem;
    }

    .hero-placeholder img {
        width: min(100%, 180px);
        margin-inline: auto;
    }

    .oferty {
        grid-template-columns: 1fr;
    }

    .oferta,
    .zakup-container,
    .discord-card,
    .loader-content {
        padding: 1rem;
    }

    .rank-media {
        min-height: 10.5rem;
        padding: 0.8rem;
    }

    .rank-media::before {
        width: 7rem;
        height: 7rem;
    }

    .rank-img {
        width: min(100%, 156px);
        height: 132px;
    }

    .loader-logo {
        max-width: 4.3rem;
        max-height: 4.3rem;
    }

    .discord-copy {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* ================= RESPONSIVE: MOBILE ================= */

@media screen and (min-width: 380px) and (max-width: 719px) {
    .menu-container {
        width: calc(100% - 1rem);
    }

    .logo-image {
        width: 2.35rem;
        height: 2.35rem;
    }

    .hero-section {
        min-height: auto;
        padding-top: 3.6rem;
        padding-bottom: 2rem;
    }

    .hero-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: 8.5ch;
    }

    .hero-visual {
        order: 2;
    }

    .hero-visual-media {
        min-height: clamp(20rem, 70vw, 28rem);
    }

    .hero-visual-caption,
    .discord-copy {
        gap: 0.85rem;
    }

    .oferty {
        grid-template-columns: 1fr;
    }

    .rank-media {
        min-height: 11rem;
    }

    .rank-img {
        width: min(100%, 168px);
        height: 144px;
    }

    .dc-content {
        grid-template-columns: 1fr;
    }

    .discord-copy {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links,
    .footer-socials {
        width: 100%;
    }
}

/* ================= RESPONSIVE: TABLET ================= */

@media screen and (min-width: 720px) and (max-width: 1023px) {
    .hero-grid,
    .dc-content,
    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-section {
        min-height: auto;
        padding-top: 4.4rem;
    }

    .hero-grid {
        gap: 1.4rem;
    }

    .hero-visual-media {
        min-height: clamp(20rem, 48vw, 28rem);
    }

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

    .rank-img {
        width: min(100%, 172px);
        height: 150px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-socials {
        grid-column: 1 / -1;
    }
}

/* ================= RESPONSIVE: LAPTOP ================= */

@media screen and (min-width: 1024px) and (max-width: 1399px) {
    .menu-toggle {
        display: none;
    }

    .dropdown-nav {
        position: static;
        width: auto;
        padding: 0;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        display: flex;
        align-items: center;
        gap: 1rem;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .nav-list {
        flex-direction: row;
        gap: 0.3rem;
    }

    .nav-actions {
        margin-top: 0;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        gap: 1.8rem;
    }

    .hero-section {
        padding-top: clamp(4rem, 7vw, 5.5rem);
    }

    .hero-visual-media {
        min-height: clamp(24rem, 44vw, 32rem);
    }

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

    .dc-content {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    }

    .footer-top {
        grid-template-columns: 1fr auto auto;
    }
}

/* ================= RESPONSIVE: DESKTOP ================= */

@media screen and (min-width: 1400px) {
    .menu-toggle {
        display: none;
    }

    .dropdown-nav {
        position: static;
        width: auto;
        padding: 0;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        display: flex;
        align-items: center;
        gap: 1rem;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .nav-list {
        flex-direction: row;
        gap: 0.3rem;
    }

    .nav-actions {
        margin-top: 0;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 2.4rem;
    }

    .hero-visual-media {
        min-height: clamp(28rem, 42vw, 38rem);
    }

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

    .dc-content {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    }

    .footer-top {
        grid-template-columns: 1fr auto auto;
    }
}

/* ================= RESPONSIVE: REDUCED MOTION ================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

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