
.header nav.mobile_nav {
    display: none;
}


/* ========== Tablet ========== */

@media (max-width: 1024px) {
    .main .features {
        grid-template-columns: repeat(3, 1fr);
    }
    .main .specials {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .main div#me-photo img {
        width: 45%;
    }
}


/* ========== Mobile ========== */

@media (max-width: 765px) {
    html, body {
        background: var(--accent-color-3);
    }

    /* ---------- Header ---------- */
    .header {
        position: relative;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        min-height: 112px;
        padding: 0.55rem 1rem 0.55rem;
        gap: 0.4rem;
        border-radius: 0 0 var(--global-radius-mobile) var(--global-radius-mobile);
        transition: border-radius 250ms;
    }
    .header.menu-open {
        border-radius: 0;
    }

    /* Poziom 1: Zgrabne, proporcjonalne logo na 100% szerokości */
    .header div:first-child {
        width: 100%;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 52px;
        padding: 0.15rem 0;
    }
    .header img#svg {
        position: absolute;
        width: clamp(8rem, 28vw, 10.2rem);
        height: auto;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 1;
        opacity: 0.9;
    }
    .header h1 {
        position: relative;
        z-index: 2;
        width: 100%;
        text-align: center;
        font-size: clamp(1.6rem, 5.5vw, 2rem);
        padding: 0;
        margin: 0;
        white-space: nowrap;
        cursor: pointer;
        line-height: 1.1;
    }

    /* Poziom 2: Estetyczny, symetryczny pasek przycisków na dole */
    .header div:nth-child(2) {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 3;
        margin: 0;
    }
    .buttons {
        border-radius: var(--global-radius-mobile);
    }

    .header nav.mobile_nav {
        display: flex;
        width: 100%;
        max-width: 290px;
        justify-content: center;
        gap: 0.65rem;
        padding: 0;
    }
    .header nav.mobile_nav .buttons {
        flex: 1;
        height: 36px;
        min-height: 36px;
        padding: 0.35rem 0.75rem;
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 18px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }
    .header nav.mobile_nav .buttons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: inherit;
        gap: 0.35rem;
    }
    .header nav.mobile_nav .buttons a svg{
        transform: translateY(0) translateX(-0.1rem);
    }
    .header nav.mobile_nav .buttons a::after {
        content: "Zadzwoń";
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--accent-color-3);
    }
    .header nav.mobile_nav .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
    }
    .header nav.mobile_nav .menu-toggle::after {
        content: "Menu";
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--accent-color-3);
    }

    .header nav.nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 10;
        flex-direction: column;
        gap: 8px;
        padding: 0 10px;
        max-height: 0;
        overflow: hidden;
        background: var(--accent-color-2);
        border-radius: 0 0 var(--global-radius-mobile) var(--global-radius-mobile);
        transition: max-height 250ms, padding 250ms;
    }
    .header.menu-open nav.nav {
        max-height: 400px;
        padding: 10px;
    }
    .header nav.nav button {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 12px;
    }
    .header div::first-letter {
        margin-bottom: 0.2rem;
    }


    /* ---------- Main ---------- */
    .main {
        padding: 0.5rem;
    }
    .main p {
        font-size: 0.9rem;
    }
    .main span {
        font-size: 1.8rem;
    }

    /* ---------- Hero ---------- */
    .main section#hero {
        min-height: 300px;
        padding: 1.25rem;
        border-radius: var(--global-radius-mobile);
    }
    .main section#hero .actions {
        gap: 0.4rem;
    }
    .main section#hero .actions .buttons {
        flex: 1 1 auto;
        margin: 0;
        font-size: 0.85rem;
        padding: 0.6rem 0.75rem;
    }
    .main section#hero h1 {
        font-size: 2.2rem;
        padding: 0.75rem 0;
        margin: 0;
        text-underline-offset: 0.25rem;
    }
    .main section#hero p {
        width: 85%;
        font-size: 0.88rem;
    }

    /* ---------- Gallery ---------- */
    .main #gallery {
        border-radius: var(--global-radius-mobile);
        gap: 0.3rem;
    }
    .main #gallery img {
        height: clamp(100px, 30vw, 180px);
    }

    /* ---------- Cards / Features / Specials ---------- */
    .main .section-title {
        font-size: 2rem;
    }
    .main .cards {
        gap: 0.75rem;
    }
    .main .features {
        grid-template-columns: 1fr;
    }
    .main .features li {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        padding: 1rem;
    }
    .main .features li svg {
        flex-shrink: 0;
    }
    .main .features li div {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    .main .features li,
    .main .specials a {
        border-radius: var(--global-radius-mobile);
    }
    .main .specials {
        grid-template-columns: repeat(2, 1fr);
    }

    .main .specials li:last-child:nth-child(odd) {
        grid-column: span 2;
    }

    /* ---------- About Us ---------- */
    .main div#me-photo {
        flex-direction: column;
    }
    .main div#me-photo img {
        width: 100%;
        float: none;
        margin: 0 0 1rem 0;
        border-radius: var(--global-radius-mobile);
    }
    .main div#me-photo p {
        text-align: left;
    }

    /* ---------- Order CTA ---------- */
    .main section#order-cta {
        border-radius: var(--global-radius-mobile);
    }

    /* ---------- Tabela ---------- */
    table {
        font-size: 0.85rem;
    }
    th, td {
        padding: 10px 8px;
    }

    /* ---------- Footer ---------- */
    .footer {
        font-size: 0.8rem;
        gap: 0.3rem 1rem;
        padding: 1rem;
    }
}


/* ========== (< 470px) ========== */

@media (max-width: 470px) {
    .main section#hero p {
        width: 100%;
    }
    .main section#hero h1 {
        font-size: 2rem;
        text-align: center;
    }
    .header h1 {
        font-size: clamp(1.4rem, 5.5vw, 1.7rem);
    }
    .header img#svg {
        width: clamp(7.5rem, 26vw, 9rem);
        height: auto;
    }
}
