/* Art direction: prosta drukarnia internetowa — nowocześnie, konkretnie i bez zbędnych ozdobników. */
:root {
    --granat: #1A2341;
    --granat-ciemny: #11182d;
    --czerwony: #e3343f;
    --czerwony-ciemny: #c6232f;
    --tlo: #f5f6f8;
    --bialy: #ffffff;
    --tekst: #182033;
    --tekst-jasny: #626a7a;
    --obramowanie: #dfe3ea;
    --cien: 0 20px 50px rgba(26, 35, 65, 0.12);
    --promien: 16px;
}

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

html, body {
    margin: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 145px;
}

body {
    min-width: 320px;
    min-height: 100vh;
    color: var(--tekst);
    background: var(--tlo);
    font-family: "Arial", sans-serif;
    line-height: 1.5;
}

button, input, select {
    font: inherit;
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 14px;
    color: var(--bialy);
    background: var(--czerwony);
    border-radius: 8px;
    transform: translateY(-160%);
}

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

header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    min-height: 120px;
    padding: 0 clamp(20px, 5vw, 72px);
    background-color: #1A2341;
    box-shadow: 0 4px 24px rgba(7, 11, 24, 0.14);
}

.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
}

.logo img {
    display: block;
    width: auto;
    height: 120px;
    max-width: min(52vw, 420px);
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 28px);
}

nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 10px;
    color: var(--bialy);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: lowercase;
    border-bottom: 2px solid transparent;
    transition: color 180ms ease, border-color 180ms ease;
}

nav a:hover,
nav a:focus-visible {
    color: #ffd7d9;
    border-bottom-color: var(--czerwony);
}

.oferta {
    display: grid;
    place-items: center;
    align-content: center;
    gap: clamp(28px, 5vh, 48px);
    min-height: calc(100svh - 120px);
    padding: clamp(48px, 8vh, 88px) 20px;
}

.oferta__naglowek {
    width: min(100%, 850px);
    text-align: center;
}

.nadtytul {
    margin: 0 0 10px;
    color: var(--czerwony);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    margin-bottom: 14px;
    color: var(--granat);
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.oferta__naglowek h2 {
    max-width: 680px;
    margin: 0 auto;
    color: var(--tekst-jasny);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 500;
}

.formularz {
    width: min(100%, 860px);
    padding: clamp(22px, 4vw, 36px);
    background: var(--bialy);
    border: 1px solid var(--obramowanie);
    border-radius: var(--promien);
    box-shadow: var(--cien);
}

.formularz h3 {
    margin-bottom: 22px;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

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

.pole {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.pole label {
    color: var(--tekst-jasny);
    font-size: 0.84rem;
    font-weight: 700;
}

select,
input[type="number"] {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    color: var(--tekst);
    background: var(--bialy);
    border: 1px solid var(--obramowanie);
    border-radius: 9px;
    outline: none;
}

select:hover,
input[type="number"]:hover {
    border-color: #aeb5c2;
}

select:focus,
input[type="number"]:focus {
    border-color: var(--czerwony);
    box-shadow: 0 0 0 3px rgba(227, 52, 63, 0.14);
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 18px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.checkbox input {
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: var(--czerwony);
}

.podsumowanie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding-top: 20px;
    border-top: 1px solid var(--obramowanie);
}

.wynik {
    margin: 0;
    color: var(--granat);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 800;
}

.zamow {
    min-height: 48px;
    padding: 11px 22px;
    color: var(--bialy);
    background: var(--czerwony);
    border: 0;
    border-radius: 9px;
    font-weight: 800;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

.zamow:hover {
    background: var(--czerwony-ciemny);
}

.zamow:active {
    transform: translateY(1px);
}

.zamow:focus-visible,
a:focus-visible,
.checkbox input:focus-visible {
    outline: 3px solid rgba(227, 52, 63, 0.45);
    outline-offset: 3px;
}

.regulamin {
    display: grid;
    place-items: center;
    min-height: 75svh;
    padding: clamp(64px, 10vw, 120px) 20px;
    color: var(--bialy);
    background: var(--granat);
    scroll-margin-top: 120px;
}

.regulamin__tresc {
    width: min(100%, 760px);
}

.regulamin h2 {
    margin-bottom: 28px;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.regulamin ol {
    margin: 0;
    padding-left: 22px;
}

.regulamin li {
    padding: 8px 0 8px 8px;
    color: #e7eaf2;
}

.uwaga {
    margin: 28px 0 0;
    padding-top: 18px;
    color: #aeb6ca;
    font-size: 0.88rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px clamp(20px, 5vw, 72px);
    color: #bac1d1;
    background: var(--granat-ciemny);
    font-size: 0.85rem;
}

footer p {
    margin: 0;
}

footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 700px) {
    html {
        scroll-padding-top: 86px;
    }

    header {
        min-height: 76px;
        gap: 10px;
        padding-inline: 14px;
    }

    .logo img {
        height: 72px;
        max-width: 52vw;
    }

    nav {
        gap: 2px;
    }

    nav a {
        padding-inline: 7px;
        font-size: 0.82rem;
    }

    .oferta {
        min-height: calc(100svh - 76px);
        padding: 42px 16px 56px;
    }

    .pola-formularza {
        grid-template-columns: 1fr;
    }

    .podsumowanie {
        align-items: stretch;
        flex-direction: column;
    }

    .zamow {
        width: 100%;
    }

    .regulamin {
        min-height: auto;
        scroll-margin-top: 76px;
    }

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

@media (max-width: 390px) {
    header {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding-top: 2px;
    }

    .logo {
        align-self: center;
    }

    .logo img {
        max-width: 220px;
        height: 62px;
    }

    nav {
        justify-content: center;
        min-height: 44px;
    }

    .oferta {
        min-height: calc(100svh - 108px);
    }
}

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

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}
