/* ===============================
   Styl CSS — "Zawodowy styl fabryki traktorów"
   Autor: Maciej Skarżyński Website
   =============================== */

/* Reset i podstawy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #1b1b1b;
    color: #eaeaea;
    scroll-behavior: smooth;
}

/* Kolorystyka inspirowana fabryką traktorów:
   ciemny metal, stal, żółty ostrzegawczy i pomarańcz przemysłowy */
:root {
    --metal-dark: #2b2b2b;
    --metal-light: #3f3f3f;
    --steel-gray: #606060;
    --industrial-yellow: #d4a017;
    --industrial-orange: #e65c00;
    --accent-silver: #c0c0c0;
    --text-light: #f2f2f2;
    --text-dark: #111;
}

/* Nagłówki */
h1, h2, h3 {
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.6em;
}

/* Ogólne style sekcji */
section {
    padding: 60px 20px;
    text-align: center;
}

/* Blok 1 — powitanie i oferta */
#oferta {
    background: var(--industrial-orange);
    color: var(--text-dark);
    font-weight: 600;
}

#oferta a.button {
    display: inline-block;
    background: var(--metal-dark);
    color: var(--text-light);
    padding: 12px 28px;
    margin-top: 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

#oferta a.button:hover {
    background: var(--metal-light);
}

/* Blok 2 — formularz subskrypcji */
#formularz {
    background: var(--metal-dark);
    color: var(--text-light);
}

#formularz form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

#formularz input[type="email"],
#formularz textarea {
    width: 90%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid var(--accent-silver);
    border-radius: 4px;
    background: var(--metal-light);
    color: var(--text-light);
}

#formularz button {
    background: var(--industrial-yellow);
    color: var(--text-dark);
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#formularz button:hover {
    background: var(--industrial-orange);
}

/* Blok 3 — produkty i artykuł */
#produkty {
    background: var(--metal-light);
    color: var(--text-light);
    text-align: left;
}

#produkty ul {
    list-style-type: square;
    margin: 20px auto;
    max-width: 600px;
    padding-left: 40px;
}

#produkty li {
    margin-bottom: 8px;
}

#produkty article {
    max-width: 700px;
    margin: 40px auto 0;
    background: var(--steel-gray);
    padding: 25px;
    border-radius: 6px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Blok 4 — specjaliści */
#specjalisci {
    background: var(--industrial-yellow);
    color: var(--text-dark);
}

#specjalisci ul {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

#specjalisci li {
    background: var(--accent-silver);
    color: var(--text-dark);
    margin: 10px 0;
    padding: 12px;
    border-radius: 5px;
    font-weight: 500;
}

/* Blok 4.1 — edukacja */
#edukacja {
    background: var(--metal-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* Blok 5 — opinie */
#opinie {
    background: var(--metal-light);
    color: var(--text-light);
}

#opinie ul {
    max-width: 700px;
    margin: 0 auto;
    list-style-type: none;
}

#opinie li {
    background: var(--steel-gray);
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

#zostaw-opinie {
    margin-top: 30px;
}

#zostaw-opinie form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#zostaw-opinie textarea {
    width: 90%;
    max-width: 400px;
    padding: 10px;
    background: var(--metal-dark);
    border: 1px solid var(--accent-silver);
    color: var(--text-light);
}

/* Blok 6 — kontakt i mapa */
#kontakt {
    background: var(--industrial-orange);
    color: var(--text-dark);
}

#kontakt iframe {
    margin-top: 20px;
    border: 3px solid var(--metal-dark);
    border-radius: 5px;
}

/* Stopka */
footer {
    background: var(--metal-dark);
    color: var(--text-light);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Efekt przemysłowego cienia */
section, footer {
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* ===============================
   Responsywność — wersja mobilna
   =============================== */
@media (max-width: 768px) {

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    section {
        padding: 40px 15px;
    }

    #produkty article {
        padding: 18px;
    }

    #formularz input[type="email"],
    #formularz textarea,
    #zostaw-opinie textarea {
        max-width: 100%;
    }

    #oferta a.button {
        padding: 10px 18px;
        font-size: 0.95rem;
    }
}

/* ===============================
   Efekty hover i przejścia
   =============================== */
a.button, button {
    transition: all 0.3s ease-in-out;
}

button:hover, a.button:hover {
    transform: translateY(-2px);
}

/* ===============================
   Koniec stylów
   =============================== */
