:root{
  --brand:#83101d;
  --brand-hover:#8a1e2b;
  --brand-active:#760e1a;
}

*,
*::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: 120px; /* default */
}

@media (max-width: 768px){
    section{ scroll-margin-top: 80px; }
}

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

a {
    color: #9b1b2a;
    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;
    /* Białe tło nagłówka – logo „wtapia się” w tło (bez przezroczystości) */
    background: #ffffff;
    border-bottom: 1px solid #e9e9e9;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    backdrop-filter: none;
}

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

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

.logo-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 0;
}

/* Jeśli gdzieś przypadkiem jest dopisek pod logiem – ukryj go */
.logo-wrap .logo-name,
.logo-wrap .logo-caption,
.logo-wrap .logo-subtitle {
    display: none;
}

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

.nav a {
    color: #111111;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 999px;
    background: transparent;
    transition: color 0.2s ease, text-decoration-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.nav a:hover {
    /* czerwony z logo */
    color: #9b1b2a;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    text-decoration-color: rgba(155, 27, 42, 0.75);
    box-shadow: none;
    transform: translateY(-1px);
}

.header-phone {
    color: #9b1b2a;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(155, 27, 42, 0.35);
    background: rgba(155, 27, 42, 0.06);
}

/* 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;
    position: relative;
    overflow: hidden;
    background: none;
}

/* Tło hero (zdjęcie) + overlay dla czytelności */
.hero::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:0;
    background-image:url("bg-hero.jpg");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    filter: brightness(0.58) contrast(1.06) saturate(0.95);
    transform: scale(1.03);
}

.hero::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    background: rgba(0,0,0,0.55);
}

/* Treść nad overlay */
.hero > *{
    position: relative;
    z-index: 2;
}


.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: #b42335;
    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: #c43849;
}

/* 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: var(--brand);
  color: #fff;
  border: 2px solid var(--brand);
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--brand);
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn-secondary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  transform: translateY(-1px);
}

/* SECTIONS */

.section {
    padding: 60px 0;
}

.section-alt {
    background: #1F232B;
}

.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: #1F232B;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #2B313C;
}

.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: #1F232B;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #2B313C;
}

.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 #2B313C;
    background: #181B20;
    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: #9b1b2a;
    box-shadow: 0 0 0 1px rgba(155, 27, 42, 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 #2B313C;
    background: #181B20;
    box-shadow: none;
}

.checkbox-row input[type="checkbox"]:focus {
    outline: 2px solid #9b1b2a;
    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 #1F232B;
    background: #1F232B;
    text-align: center;
    font-size: 0.8rem;
    color: #aaaaaa;
}

.footer a {
    color: #c43849;
}

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

body.thankyou {
    background: #181B20;
    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, #2B313C 0%, #181B20 60%);
    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, #2B313C 0%, #181B20 60%);
}

.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;
}

/* Miniatury w galerii – zawsze mieszczą się w kolumnie */
.gallery-item a {
    display: block;
}

.gallery-item img {
    width: 100%;
    max-width: 420px;
    height: 240px;
    object-fit: contain;          /* desktop: show whole photo (no cropping) */
    object-position: center;
    background: #0f1216;          /* letterbox background */
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.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: 80px;
    }

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

    .logo {
        height: 48px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        background: transparent;
        padding: 0;
        border-radius: 0;
        gap: 8px;
        font-size: 0.85rem;
    }

    .nav a{
        padding: 3px 7px;
    }

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

    .hero {
        padding-top: 80px;
    }

    .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-item img {
        max-width: 100%;
        height: 220px;
        object-fit: cover; /* mobile: dynamic crop looks good */
    }

    body {
        overflow-x: hidden;
    }
  white-space: nowrap;
}

/* Hero badges */
.hero-badges{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:16px;
}
.badge{
    display:inline-flex;
    align-items:center;
    padding:6px 10px;
    border-radius:999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color:#fff;
    font-size:0.86rem;
    line-height:1;
    backdrop-filter: blur(6px);
}


/* Równe wysokości kafelków */
.cards .card,
.reasons .reason{
    height:100%;
}
.cards .card,
.reasons .reason{
    display:flex;
    flex-direction:column;
}
.cards .card p,
.reasons .reason p{
    margin-top: 10px;
}


/* Lightbox (galeria) */
.no-scroll{ overflow:hidden; }

.lightbox{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    padding: 20px;
}
.lightbox.is-open{ display:flex; }

.lightbox-img{
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-btn{
    position:absolute;
    border:0;
    background: rgba(255,255,255,0.12);
    color:#fff;
    width:44px;
    height:44px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 44px;
    cursor:pointer;
    backdrop-filter: blur(6px);
}
.lightbox-btn:hover{ background: rgba(255,255,255,0.18); }

.lightbox-close{ top: 18px; right: 18px; font-size: 32px; }
.lightbox-prev{ left: 18px; }
.lightbox-next{ right: 18px; }

@media (max-width: 700px){
    .lightbox-prev{ left: 10px; }
    .lightbox-next{ right: 10px; }
    .lightbox-close{ top: 10px; right: 10px; }
}



@media (max-width: 900px) and (orientation: landscape){
  /* Ensure the white header spans the full screen width in landscape on phones */
  .header{ width: 100%; margin-left: 0; left: 0; right: 0; }
  html, body{ overflow-x: hidden; }
  .header-inner{ padding: 2px 0; gap: 8px; }
  .logo{ height: 48px; }
  .nav{ font-size: 0.82rem; gap: 8px; row-gap: 6px; }
  .nav a{ padding: 3px 7px; }
  .lang-switch{ gap: 16px; }
}


/* Language switch (PL | EN | DE) */
.header-right{
  display:flex;
  align-items:center;
  gap:18px;
}


/* Language switch
/* Language switch (SVG flags) */
.lang-switch{
  display:flex;
  align-items:center;
  gap:14px;
}
.lang-switch a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:24px;
  border-radius:6px;
  border:1px solid rgba(0,0,0,0.14);
  overflow:hidden;
  background:#fff;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.lang-switch a:hover{
  transform: translateY(-1px);
  border-color: var(--brand-red);
}
.lang-switch a.active{
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(155,27,42,0.18);
}
.lang-switch img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}



@media (max-width: 480px){
  .lang-switch{ gap: 16px; }
}

@media (max-width: 900px) and (orientation: landscape){
  /* Avoid elements forcing a wider layout than the screen */
  *, *::before, *::after{ max-width: 100%; }
}
