/* ============================================================
   TaniaPaczka.co.uk — style.css
   Struktura:
    1. Zmienne i reset
    2. Layout bazowy (.wrap, .section, .box, przyciski)
    3. Nagłówek serwisu
    4. Reklamy
    5. Hero (strona główna)
    6. Bileciki przewoźników (.ticket)
    7. Strona przewoźnika (carrier-page)
    8. Strona informacji (info-page)
    9. Stopka
   10. Panel admina
   11. Lightbox
   12. Responsive (wszystkie @media w jednym miejscu)
   ============================================================ */

/* ── 1. ZMIENNE I RESET ─────────────────────────────────────── */

:root {
  --navy:  #062b5f;
  --navy2: #031b3f;
  --red:   #e6192a;
  --green: #2caf24;
  --text:  #0b1733;
  --muted: #6f7a8d;
  --line:  #d9e1ee;
  --bg:    #f4f7fb;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }


/* ── 2. LAYOUT BAZOWY ───────────────────────────────────────── */

.wrap {
  width: min(1220px, 92vw);
  margin: auto;
}

.section { padding: 55px 0; }

.section h2 {
  text-align: center;
  font-size: 32px;
  margin: 0;
  color: var(--navy);
  font-weight: 1000;
}

.eyebrow {
  text-align: center;
  margin: 0 0 8px;
  color: var(--red);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13px;
}

.section-lead {
  max-width: 720px;
  margin: 14px auto 0;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.6;
}

.box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  box-shadow: 0 7px 22px rgba(0,0,0,.06);
}

.box h2,
.box h3 { color: var(--navy); margin-top: 0; }

.red-line {
  width: 80px;
  height: 7px;
  background: var(--red);
  border-radius: 99px;
  margin: 28px auto;
}

.red-line.small { width: 65px; height: 5px; margin-top: 10px; }
.red-line.left  { margin-left: 0; }

.red-button {
  display: block;
  background: var(--red);
  color: var(--white);
  border-radius: 5px;
  padding: 11px;
  font-weight: 1000;
  text-align: center;
}

.red-button:hover { background: #b91220; }

.navy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  padding: 14px 24px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.navy-button:hover { background: var(--navy2); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li { margin: 10px 0; font-weight: 800; }

.check-list li::before {
  content: '✓';
  color: var(--navy);
  font-weight: 1000;
  margin-right: 10px;
}


/* ── 3. NAGŁÓWEK SERWISU ────────────────────────────────────── */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-grid {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 30px;
  align-items: center;
  min-height: 86px;
}

.brand { display: flex; gap: 12px; align-items: center; }

.brand-icon {
  width: 54px;
  height: 42px;
  border: 4px solid var(--navy);
  border-radius: 18px 18px 8px 8px;
  display: grid;
  place-items: center;
  color: var(--red);
  font-weight: 900;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: .5px;
}

.brand em {
  display: block;
  color: var(--red);
  font-style: normal;
  font-weight: 900;
  font-size: 19px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 36px;
  font-weight: 900;
}

.main-nav a:hover { color: var(--red); }


/* ── 4. REKLAMY ─────────────────────────────────────────────── */

.ad-box {
  background: var(--white);
  border: 0 dashed #c8d2df;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #818b9d;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ad-box img    { max-width: 100%; height: auto; display: block; }
.ad-box strong { font-size: 18px; }
.ad-box span   { font-size: 14px; margin-top: 8px; }
.ad-bottom     { margin-top: 42px; min-height: 70px; }


/* ── 5. HERO ────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.88)),
              url('/assets/images/przewoz_paczek2_pl_uk.png') center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  text-align: center;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 70px 0;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  margin: 0;
  color: var(--navy);
  font-weight: 1000;
  max-width: 780px;
}

.hero p {
  font-size: 19px;
  line-height: 1.6;
  font-weight: 800;
  max-width: 680px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 70px;
  width: 100%;
  max-width: 820px;
}

.hero-features div    { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-features span   { font-size: 38px; color: var(--navy); }
.hero-features strong { font-size: 16px; }
.hero-features small  { font-size: 13px; font-weight: 700; }

/* Subhero */
.subhero {
  background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.92)),
              url('/assets/images/transport_paczek.png') center/cover no-repeat;
  border-bottom: 1px solid var(--line);
  padding: 70px 0;
  text-align: center;
}

.subhero h1 {
  font-size: 54px;
  line-height: 1.05;
  margin: 0;
  color: var(--navy);
  font-weight: 1000;
}

.subhero p {
  max-width: 740px;
  margin: 18px auto 0;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 800;
}

.info-hero h1 {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}


/* ── 6. BILECIKI PRZEWOŹNIKÓW ───────────────────────────────── */

.all-carriers-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
}

.all-carriers-cta small { color: var(--muted); font-weight: 800; }

.tickets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 36px;
}

.all-grid { margin-top: 0; }

.ticket {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  min-width: 0;
}

.ticket-head {
  background: var(--navy);
  color: var(--white);
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-areas:
    "photo title"
    "photo phone";
  align-items: center;
  gap: 6px 16px;
  padding: 18px 20px;
  min-height: 122px;
}

.ticket-head img {
  grid-area: photo;
  width: 76px;
  height: 54px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid rgba(255,255,255,.45);
}

.ticket-title {
  grid-area: title;
  min-width: 0;
}

.ticket-title h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: .006em;
  overflow-wrap: break-word;
}

.ticket-title span {
  display: block;
  margin-top: 6px;
  color: var(--white);
  font-size: 13px;
  line-height: 1.15;
  font-weight: 1000;
  letter-spacing: .12em;
}

.ticket-phone {
  grid-area: phone;
  justify-self: start;
  align-self: start;
  color: var(--red);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.05;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .002em;
}

.ticket-phone:hover { color: var(--white); }


.empty-ticket {
  border: 2px dashed var(--red);
  background: transparent;
}

.empty-ticket-head {
  background: var(--navy);
}

.empty-ticket-icon {
  grid-area: photo;
  width: 76px;
  height: 54px;
  border-radius: 5px;
  border: 2px dashed rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 42px;
  line-height: 1;
  font-weight: 1000;
}

.empty-ticket-body .services {
  color: var(--navy);
}

.empty-ticket-button {
  cursor: default;
   background: var(--navy);
}

.ticket-body  { padding: 18px; text-align: center; }
.services     { font-weight: 900; line-height: 1.4; }
.route        { font-weight: 800; font-size: 14px; line-height: 1.5; margin: 18px 0; }

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.quick-links a     { font-size: 22px; color: var(--navy); font-weight: 900; }
.quick-links small { display: block; font-size: 11px; margin-top: 4px; }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head-row h2 { text-align: left; }

.count-pill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--navy);
  font-weight: 1000;
  white-space: nowrap;
}


/* ── 7. STRONA PRZEWOŹNIKA (carrier-page) ───────────────────── */

.breadcrumbs {
  font-size: 13px;
  margin: 28px 0;
  color: #62718b;
  font-weight: 700;
}

.breadcrumbs a { color: var(--navy); }

.carrier-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 28px;
}

.carrier-main { display: flex; flex-direction: column; gap: 25px; }
.carrier-side { display: flex; flex-direction: column; gap: 22px; }

.carrier-hero-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 7px 22px rgba(0,0,0,.07);
  padding: 22px;
}

.carrier-hero-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--navy);
}

.carrier-hero-card h1 {
  font-size: 32px;
  color: var(--navy);
  margin: 8px 0;
}

.carrier-hero-card p { font-weight: 900; }

.carrier-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.carrier-phones-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.carrier-phones-top a {
  color: var(--red);
  font-size: 22px;
  font-weight: 1000;
  white-space: nowrap;
}

.map-graphic {
  position: relative;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  min-height: 330px;
}

.map-graphic img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.15);
}

.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--white);
  font-size: 44px;
  font-weight: 1000;
  text-shadow: 0 4px 18px rgba(0,0,0,.55);
}

.map-overlay span { color: var(--red); }

.route-line { font-weight: 900; }
.map-link   { color: #1671c9; font-weight: 900; }

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.city-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.city-cols h3 { font-size: 15px; }
.city-cols li { margin: 8px 0; font-weight: 700; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item { border: 0; padding: 0; background: transparent; cursor: pointer; }

.gallery-item img {
  width: 100%;
  height: 105px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: 0 7px 22px rgba(0,0,0,.06);
  border-radius: 6px;
}

.contact-card h3 { text-align: center; margin-top: 0; }

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--white);
  border-radius: 5px;
  margin: 12px 0;
  padding: 14px 12px;
  font-size: 24px;
  font-weight: 1000;
}

.contact-btn span  { font-size: 15px; }
.contact-btn small { display: block; font-size: 12px; }

.contact-btn.navy    { background: var(--navy); }
.contact-btn.red     { background: var(--red); }
.contact-btn.green   { background: var(--green); }
.contact-btn.outline { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }


/* ── 8. STRONA INFORMACJI ───────────────────────────────────── */

.info-page { display: grid; gap: 24px; max-width: 980px; }

.info-box h2 { text-align: left; margin-bottom: 14px; }

.info-box p {
  line-height: 1.8;
  font-weight: 600;
  color: #26364f;
}


/* ── 9. STOPKA ──────────────────────────────────────────────── */

.site-footer {
  background: var(--navy2);
  color: #dbe7f7;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding: 45px 0;
}

.site-footer h3,
.site-footer h4 { color: var(--white); margin: 0 0 16px; }

.site-footer p { line-height: 1.7; font-size: 14px; }
.site-footer a { display: block; margin: 10px 0; font-size: 14px; }

.copyright {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 20px 0;
  color: #9fb3d1;
  font-size: 13px;
}


/* ── 10. PANEL ADMINA ───────────────────────────────────────── */

.admin-body { background: #f3f6fb; }

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar { background: #061f47; color: var(--white); padding: 25px; }
.admin-sidebar h1 { font-size: 22px; }

.admin-sidebar a {
  display: block;
  padding: 12px 0;
  color: #dce8f7;
  font-weight: 800;
}

.admin-content { padding: 30px; }

.admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.admin-table { width: 100%; border-collapse: collapse; }

.admin-table th,
.admin-table td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field               { display: flex; flex-direction: column; gap: 6px; }
.field.full          { grid-column: 1 / -1; }
.field label         { font-weight: 900; }

.field input,
.field textarea,
.field select { border: 1px solid #cfd8e5; border-radius: 6px; padding: 12px; font: inherit; }

.field textarea { min-height: 120px; }

.admin-btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: 6px;
  padding: 11px 16px;
  font-weight: 900;
  cursor: pointer;
}

.admin-btn.red { background: var(--red); }

.notice {
  background: #fff7d1;
  border: 1px solid #ecd36d;
  padding: 12px;
  border-radius: 6px;
  margin: 12px 0;
}


/* ── 11. LIGHTBOX ───────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  border: 6px solid var(--white);
}

.lightbox-close {
  position: absolute;
  right: 30px;
  top: 20px;
  background: var(--white);
  border: 0;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 30px;
  cursor: pointer;
}


/* ── 12. RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 1100px) {
  .ticket-head {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 6px 13px;
    padding: 16px;
  }

  .ticket-head img  { width: 68px; height: 50px; }
  .ticket-title h3  { font-size: 22px; }
  .ticket-phone     { font-size: 18px; }
}

@media (max-width: 900px) {
  .header-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px 0;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 18px;
    flex-wrap: wrap;
  }

  .hero h1        { font-size: 42px; }
  .hero-features  { grid-template-columns: 1fr; }

  .subhero h1     { font-size: 40px; }

  .tickets-grid       { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr; }
  .carrier-layout     { grid-template-columns: 1fr; }
  .carrier-hero-card  { grid-template-columns: 1fr; }
  .two-cols           { grid-template-columns: 1fr; }
  .gallery            { grid-template-columns: repeat(2, 1fr); }

  .section-head-row   { display: block; }
  .count-pill         { display: inline-block; margin-top: 14px; }

  .carrier-title-row  { grid-template-columns: 1fr; }
  .carrier-phones-top { align-items: flex-start; }
  .carrier-phones-top a { font-size: 19px; }

  .ticket-phone {
    grid-column: auto;
    text-align: left;
    border-top: 0;
    padding-top: 0;
  }

  .admin-shell  { grid-template-columns: 1fr; }
  .form-grid    { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .ticket-head {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 15px;
  }

  .ticket-head img  { width: 62px; height: 46px; }
  .ticket-title h3  { font-size: 20px; }
  .ticket-phone     { font-size: 16px; }
}
