/* ============================================================
   base.css — zmienne :root, reset, typografia, layout, utility
   Ładowany na KAŻDEJ stronie (site + app).

   Zmiana marki = edycja sekcji BRAND TOKENS w :root.
   ============================================================ */

/* === BRAND TOKENS === */
:root {
    /* Kolory marki */
    --accent:            #fa4004;
    --accent-hover:      #fa4004f0;
    --primary:           #1a1a1a;

    /* Skala szarości */
    --white:             #FFFFFF;
    --gray-50:           #FAFAFA;
    --gray-100:          #F5F5F5;
    --gray-200:          #E5E5E5;
    --gray-400:          #A3A3A3;
    --gray-600:          #525252;
    --gray-700:          #404040;

    /* Typografia */
    --font-family:       'Roboto', sans-serif;

    /* Kolory semantyczne — tekst na białym tle */
    --error:             #f30b0b;
    --success:           #039639;

    /* Alerty — tło + tekst wewnątrz + obramowanie */
    --alert-error-bg:      #f30b0b;
    --alert-error-text:    #fff;
    --alert-error-border:  #f30b0b;
    --alert-success-bg:    #039639;
    --alert-success-text:  #fff;
    --alert-success-border:#039639;

    /* Zaokrąglenia */
    --radius:            7px;   /* elementy inline: buttony, inputy, alerty */
    --radius-card:       30px;  /* kontenery: karty cennikowe, badge */

    /* Spacing */
    --section-padding-h: 2rem;
    --container-max:     1600px;
}

@media (max-width: 768px) {
    :root {
        --section-padding-h: 1rem;
    }
}


/* === RESET === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--accent);
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

@media (min-width: 900px)  { html { font-size: 16px; } }
@media (min-width: 1200px) { html { font-size: 17px; } }

body {
    font-family: var(--font-family);
    background: var(--white);
    color: var(--primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}


/* === TYPOGRAFIA === */
h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--primary);
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--primary);
    margin-bottom: 4rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 1rem 0;
}

sup {
    font-size: 0.67em;
    color: var(--accent);
    padding-left: 8px;
}


/* === LAYOUT === */
body > .container {
    flex: 1;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-padding-h);
    width: 100%;
}

.section-wrapper {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-family);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}


/* === UTILITY === */
.hidden {
    display: none !important;
}

.text-muted {
    color: var(--gray-600);
}

.text-center {
    text-align: center;
}

.js-ready .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-ready .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
