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

/* Płynne przewijanie do kotwic (#oferta itd.) */
html {
    scroll-behavior: smooth;
}

/* Odstęp przy przewijaniu, żeby sticky-header nie zasłaniał nagłówków sekcji */
section {
    scroll-margin-top: 130px;
    /* desktop */
}

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #202020;
    color: #f1f1f1;
    line-height: 1.6;
}

a {
    color: #ff7a1a;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 18, 18, 0.96);
    border-bottom: 1px solid #262626;
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 16px;
}

.logo {
    height: 100px;
    width: auto;
}

.nav {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
}

.nav a {
    color: #f1f1f1;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.nav a:hover {
    color: #111111;
    background: rgba(255, 122, 26, 0.85);
    text-decoration: none;
    box-shadow: 0 0 12px rgba(255, 122, 26, 0.7);
    transform: translateY(-1px);
}

.header-phone {
    color: #ff7a1a;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 122, 26, 0.4);
    background: rgba(255, 122, 26, 0.08);
}

/* Ikony SVG – spójne z dark mode, bez emoji */

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-svg {
    width: 16px;
    height: 16px;
}

.icon-whatsapp {
    color: #25D366;
}

/* HERO */

.hero {
    padding: 80px 0 60px;
    background: radial-gradient(circle at top left, #303030 0, #202020 55%);
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 320px;
}

.hero-photo {
    flex: 1 1 280px;
    text-align: right;
}

/* zdjęcie bez „kafelka” – bez zaokrągleń i mocnego cienia */
.hero-photo img {
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
}

/* Pasek "strona w budowie" – już nieużywany, ale zostawiam klasę na wszelki wypadek */

.construction-banner {
    display: none;
}

.tagline {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ff9b42;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.hero h1 {
    font-size: 2.4rem;
    margin: 0 0 12px;
}

.hero-lead {
    margin-bottom: 20px;
    color: #d5d5d5;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.hero-contact-inline {
    font-size: 0.9rem;
    color: #c0c0c0;
}

.hero-contact-inline a {
    color: #ffb36a;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.btn-primary {
    background: rgba(255, 122, 26, 0.95);
    color: #111111;
    box-shadow: 0 0 18px rgba(255, 122, 26, 0.6);
}

.btn-primary:hover {
    background: #ff993d;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.2);
    color: #ffb36a;
    border-color: rgba(255, 122, 26, 0.7);
}

.btn-secondary:hover {
    background: rgba(255, 122, 26, 0.9);
    color: #111111;
    text-decoration: none;
    transform: translateY(-1px);
}

/* SECTIONS */

.section {
    padding: 60px 0;
}

.section-alt {
    background: #262626;
}

.section.section-privacy {
    font-size: 0.9rem;
}

/* OFERTA cards */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: #252525;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333333;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.card ul {
    margin: 0;
    padding-left: 18px;
}

/* REASONS */

.reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.reason {
    background: #252525;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #333333;
}

.reason h3 {
    margin-top: 0;
}

/* FORM */

.quote-form {
    max-width: 680px;
    margin-top: 16px;
}

.form-row {
    margin-bottom: 14px;
}

.form-row label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
    background: #161616;
    color: #f1f1f1;
    font-family: inherit;
    font-size: 0.95rem;
}

/* FOCUS tylko dla zwykłych pól, nie dla checkboxów */
.form-row input:not([type="checkbox"]):focus,
.form-row textarea:focus {
    outline: none;
    border-color: #ff7a1a;
    box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.5);
}

.form-row-two {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-row-two>div {
    flex: 1 1 200px;
}

/* opcje transport / spedycja */

.inline-options {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
}

.inline-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Radio – bez pomarańczowej ramki i bez pełnej szerokości */
.inline-options input[type="radio"] {
    width: auto;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.inline-options input[type="radio"]:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.checkbox-row label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: #bbbbbb;
}

/* Checkbox – osobny wygląd, bez długiej pomarańczowej ramki */
.checkbox-row input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin-top: 3px;
    margin-right: 4px;
    border-radius: 4px;
    border: 1px solid #3a3a3a;
    background: #161616;
    box-shadow: none;
}

.checkbox-row input[type="checkbox"]:focus {
    outline: 2px solid #ff7a1a;
    outline-offset: 2px;
    box-shadow: none;
}

/* Honeypot – ukryte pole antyspamowe */
.hp-row {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* notka dla przewoźników */

.carrier-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #d0d0d0;
}

/* CONTACT */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.contact-grid p {
    margin: 0 0 8px;
}

/* FOOTER */

.footer {
    padding: 20px 0;
    border-top: 1px solid #262626;
    background: #181818;
    text-align: center;
    font-size: 0.8rem;
    color: #aaaaaa;
}

.footer a {
    color: #ffb36a;
}

/* THANK YOU PAGE (send.php) */

body.thankyou {
    background: #202020;
    color: #f1f1f1;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Drobne dopieszczenie tekstu w polityce */

.section-privacy p {
    margin-bottom: 10px;
}

.section-privacy .privacy-note {
    font-size: 0.85rem;
    color: #d0d0d0;
}

/* Polityka – domyślnie schowana, rozwija się po kliknięciu linku w stopce */

.section-privacy {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.section-privacy.open {
    max-height: 1000px;
    padding-top: 60px;
    padding-bottom: 60px;
    opacity: 1;
}

/* GALERIA */

.hero-gallery {
    padding: 80px 0 40px;
    background: radial-gradient(circle at top left, #303030 0, #202020 55%);
    text-align: center;
}

.hero-gallery h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.hero-gallery p {
    max-width: 620px;
    margin: 0 auto;
    color: #dedede;
    font-size: 0.95rem;
}

.gallery-section {
    padding: 40px 0 60px;
    background: radial-gradient(circle at top left, #303030 0, #202020 55%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 24px;
    align-items: end;
}

/* bez kafelków – tylko auta na tle jak w hero */
.gallery-item {
    text-align: center;
    background: transparent;
    border: none;
    padding: 0;
}

.gallery-thumb {
    max-width: 100%;
    margin: 0 auto;
}

.gallery-thumb img {
    width: 100%;
    max-width: 420px;
    display: block;
    margin: 0 auto;
}

.gallery-item figcaption {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #d5d5d5;
}

/* RESPONSIVE – MOBILE */

@media (max-width: 768px) {

    /* header jest wyższy – zwiększamy offset przewijania */
    section {
        scroll-margin-top: 170px;
    }

    .header-inner {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding: 6px 0 10px;
    }

    .logo {
        height: 80px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        background: rgba(0, 0, 0, 0.25);
        padding: 6px 10px;
        border-radius: 999px;
    }

    .header-phone {
        display: none;
        /* na telefonie numer na górze znika; jest w hero i sekcji Kontakt */
    }

    .hero {
        padding-top: 95px;
    }

    .hero-inner {
        flex-direction: column;
    }

    .hero-photo {
        text-align: center;
    }

    .header-phone-text {
        display: none;
    }

    /* Galeria – 1 kolumna na telefonie, brak poziomego scrolla */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gallery-thumb img {
        max-width: 100%;
        height: auto;
    }

    body {
        overflow-x: hidden;
    }
}