/* ============================================
   PLANSY — Design System
   Motyw: karta pokładowa / bilet podróżny
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Kolory — ziemiste, podróżnicze, wyciągnięte z logo */
  --paper: #F2EAD9;
  --paper-soft: #EBE1CC;
  --ink: #23201B;
  --ink-soft: #58524A;
  --terracotta: #C1442B;
  --terracotta-dark: #9E3620;
  --sand: #E8B968;
  --jade: #2F5D4F;
  --jade-soft: #DDE8E2;
  --footer-bg: #1C1712;
  --line: rgba(35, 32, 27, 0.16);

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 4px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--terracotta);
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: var(--paper); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ============ NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 234, 217, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  padding: 10px 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; flex-shrink: 0; }
.nav-logo img { height: 80px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li { list-style: none; position: relative; }
.nav-links > li > a, .nav-links > li > button.nav-trigger {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
}
.nav-links > li > a:hover, .nav-links > li > button.nav-trigger:hover { color: var(--terracotta); }
.nav-links > li > a.active { color: var(--terracotta); }

/* Lista nawigacji: zaczyna się od połowy paska nawigacji i rozkłada się
   proporcjonalnie aż do koszyka po prawej stronie */
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 0 auto;
  padding: 0;
  width: 50%;
  max-width: 460px;
}
.nav-list > li > a { padding: 10px 0; }

.nav-trigger svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.has-dropdown:hover .nav-trigger svg,
.has-dropdown.open .nav-trigger svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(28, 23, 18, 0.14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: var(--radius);
  gap: 2px;
}
.dropdown a:hover { background: var(--paper-soft); }
.dropdown .d-title { font-weight: 600; font-size: 0.92rem; }
.dropdown .d-desc { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); }

.nav-right { display: flex; align-items: center; gap: 10px; margin-left: 28px; flex-shrink: 0; }
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.cart-btn:hover { border-color: var(--ink); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--terracotta);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.cart-count[data-count="0"] { display: none; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-logo img { height: 80px; }
  .nav-list { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-list.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    width: auto;
    max-width: none;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
    gap: 2px;
  }
  .nav-list.mobile-open > li > a { padding: 12px 4px; }
  .nav-list.mobile-open .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: var(--paper-soft); margin-top: 4px; display: none;
  }
  .nav-list.mobile-open .has-dropdown.open .dropdown { display: flex; flex-direction: column; }
}

/* ============ TICKET / BOARDING PASS COMPONENTS ============ */
.ticket {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  position: relative;
  box-shadow: 6px 6px 0 var(--terracotta);
}

.perforation {
  border: none;
  border-top: 2px dashed var(--line);
  margin: 0;
  position: relative;
}
.perforation::before, .perforation::after {
  content: '';
  position: absolute;
  top: -10px;
  width: 20px; height: 20px;
  background: var(--paper);
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.perforation::before { left: -34px; }
.perforation::after { right: -34px; }

.route {
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}
.route .code { font-weight: 600; color: var(--ink); font-size: 1.1rem; }
.route .plane { color: var(--terracotta); }

.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border: 2px solid var(--jade);
  border-radius: 50%;
  color: var(--jade);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(-8deg);
  line-height: 1.2;
}

/* ============ HERO ============ */
.hero {
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.15rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.boarding-pass {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 10px 10px 0 var(--terracotta);
  overflow: hidden;
}
.bp-top { padding: 26px 28px 22px; display: flex; justify-content: space-between; gap: 20px; }
.bp-field { font-family: var(--font-mono); }
.bp-field .label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); display: block; margin-bottom: 4px; }
.bp-field .value { font-size: 1rem; font-weight: 600; }
.bp-route { padding: 0 28px 22px; display: flex; align-items: center; gap: 16px; }
.bp-route .city { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; }
.bp-route .path { flex: 1; height: 1px; border-top: 2px dashed var(--line); position: relative; }
.bp-route .path svg { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; color: var(--terracotta); }
.bp-perf { border-top: 2px dashed var(--line); margin: 0 0; position: relative; }
.bp-perf::before, .bp-perf::after {
  content: ''; position: absolute; top: -11px; width: 22px; height: 22px;
  background: var(--paper); border-radius: 50%;
}
.bp-perf::before { left: -11px; }
.bp-perf::after { right: -11px; }
.bp-bottom { padding: 20px 28px 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.bp-barcode { display: flex; gap: 3px; align-items: flex-end; height: 34px; }
.bp-barcode span { width: 3px; background: var(--ink); display: block; }

/* ============ SECTION HELPERS ============ */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--paper-soft); }
.section-dark { background: var(--footer-bg); color: var(--paper); }
.section-dark p { color: rgba(242,234,217,0.72); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============ SERVICE CARDS ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--terracotta); }
.service-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--jade);
  color: var(--jade);
  border-radius: 20px;
}
.service-card h3 { margin-bottom: 4px; }
.service-card .price-note { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============ ABOUT / TEASER ============ */
.about-teaser { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.stat-row { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.stat { font-family: var(--font-mono); }
.stat .n { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--terracotta); display: block; }
.stat .l { font-size: 0.75rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 900px) {
  .hero-grid, .about-teaser { grid-template-columns: 1fr; }
}

/* ============ FAQ ============ */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq-q .plus { font-family: var(--font-mono); font-size: 1.3rem; color: var(--terracotta); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding-bottom: 22px; max-width: 68ch; }

/* ============ FORMS ============ */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--terracotta);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 110px; }

/* ============ CARDS / GRID GENERIC ============ */
.card {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 24px;
}

.itin-day {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.itin-day .d-num { font-family: var(--font-mono); color: var(--terracotta); font-weight: 600; }

/* ============ FOOTER ============ */
.site-footer { background: var(--footer-bg); color: var(--paper); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.footer-logo img { height: 34px; filter: brightness(0) invert(1); opacity: 0.92; }
.site-footer p { color: rgba(242,234,217,0.62); font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sand); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(242,234,217,0.78); font-size: 0.92rem; }
.footer-col a:hover { color: var(--sand); }
.footer-bottom { border-top: 1px solid rgba(242,234,217,0.14); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 0.75rem; color: rgba(242,234,217,0.5); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ PAGE HERO (inner pages) ============ */
.page-hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--terracotta); }

/* ============ CART DRAWER ============ */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(420px, 92vw);
  background: var(--paper);
  border-left: 1.5px solid var(--ink);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-overlay {
  position: fixed; inset: 0; background: rgba(28,23,18,0.4);
  z-index: 190; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-head { padding: 22px 24px; border-bottom: 1.5px dashed var(--line); display: flex; justify-content: space-between; align-items: center; }
.cart-close { background: none; border: none; cursor: pointer; font-size: 1.4rem; line-height: 1; padding: 4px; }
.cart-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-empty { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); text-align: center; padding: 60px 10px; }
.cart-line { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cart-line .cl-title { font-weight: 600; font-size: 0.92rem; }
.cart-line .cl-price { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); }
.cart-line button { background: none; border: none; color: var(--terracotta); font-family: var(--font-mono); font-size: 0.75rem; cursor: pointer; padding: 4px 0; }
.cart-foot { padding: 20px 24px 26px; border-top: 1.5px dashed var(--line); }
.cart-total { display: flex; justify-content: space-between; font-family: var(--font-mono); margin-bottom: 16px; font-size: 0.95rem; }
.cart-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 12px; }

/* ============ MISC ============ */
.divider-dashed { border: none; border-top: 2px dashed var(--line); margin: 48px 0; }
.center { text-align: center; }
.mt-0{margin-top:0} .mb-0{margin-bottom:0}
