/* ==========================================================================
   Wagner Transport - frontend 2026
   Wlasny, lekki arkusz zastepujacy motyw MultiPurpose (style.css + ui.css).
   Wtyczki jQuery (datepicker, dialog, stepy, validationEngine, timepicker)
   sa stylowane na dole pliku.
   ========================================================================== */

:root {
    --brand: #f07800;
    --brand-600: #d96a00;
    --brand-700: #b85900;
    --brand-50: #fff4e8;
    --brand-100: #ffe3c4;

    --ink: #171b22;
    --ink-2: #2a303b;
    --muted: #5d6573;
    --line: #e4e7ec;
    --line-2: #d3d8df;
    --bg: #f5f6f8;
    --surface: #ffffff;
    --dark: #12151b;
    --dark-2: #1c2029;

    --ok: #1f9d55;
    --ok-50: #e8f7ee;
    --info: #1c6fd1;
    --info-50: #eaf2fc;
    --warn: #b76e00;
    --warn-50: #fff6e0;
    --err: #c62f2f;
    --err-50: #fdecec;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
    --shadow-lg: 0 20px 50px rgba(16, 24, 40, .18);

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --container: 1200px;
    --header-h: 72px;
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: var(--brand-600); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-700); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
ul.tick { list-style: none; padding-left: 0; }
ul.tick li { position: relative; padding-left: 26px; margin: 4px 0; }
ul.tick li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.08rem; }
h5, h6 { font-size: 1rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
strong, b { font-weight: 700; color: var(--ink); }
small { font-size: .85em; }
table { border-collapse: collapse; width: 100%; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.visually-hidden, .sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }
.clear, .clear_fix { clear: both; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
:focus-visible { outline: 3px solid rgba(240, 120, 0, .45); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
@media (max-width: 480px) { .container { padding: 0 16px; } }

/* ---------- Siatki ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px; align-items: start; }
.layout-rev { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 960px) { .layout, .layout-rev { grid-template-columns: 1fr; gap: 24px; } }
.sticky-col { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .sticky-col { position: static; } }

/* ---------- Naglowek ---------- */
.topbar { background: var(--dark); color: #c3c8d1; font-size: .85rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #e8ebf0; }
.topbar a:hover { color: #fff; }
.topbar-contact, .topbar-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar i { color: var(--brand); margin-right: 6px; }
.topbar .lang { display: inline-flex; gap: 6px; align-items: center; }
.topbar .lang img { width: 20px; height: auto; border-radius: 2px; opacity: .85; }
.topbar .lang a:hover img { opacity: 1; }
.topbar .user { color: #9aa2af; }
.topbar .callback-link { color: #ffb45e; font-weight: 600; }
@media (max-width: 760px) {
    .topbar .hide-sm { display: none; }
    .topbar .container { justify-content: center; }
}

.site-header {
    position: sticky; top: 0; z-index: 900;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 50px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
    display: block; padding: 10px 14px; border-radius: 10px;
    color: var(--ink-2); font-weight: 600; font-size: .95rem;
}
.main-nav a:hover { background: var(--bg); color: var(--ink); }
.main-nav li.active > a { color: var(--brand-600); background: var(--brand-50); }
.header-cta { flex-shrink: 0; }
.nav-toggle {
    display: none; margin-left: auto;
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; cursor: pointer; align-items: center; justify-content: center;
    color: var(--ink); font-size: 1.2rem;
}
.nav-mobile-extra { display: none; }

@media (max-width: 1020px) {
    .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .site-header .container { gap: 12px; }
    .brand img { height: 42px; }
    .nav-toggle { display: inline-flex; }
    .site-header .header-cta { display: none; }
    .main-nav {
        position: fixed; left: 0; right: 0; top: var(--nav-top, 112px); bottom: 0;
        background: #fff; margin: 0; padding: 16px 20px 32px;
        overflow-y: auto; transform: translateX(100%); visibility: hidden;
        transition: transform .25s ease, visibility .25s;
        border-top: 1px solid var(--line);
    }
    .nav-open .main-nav { transform: none; visibility: visible; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .main-nav a { padding: 14px 12px; font-size: 1.05rem; }
    .nav-mobile-extra { display: block; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
    .nav-mobile-extra .btn { width: 100%; margin-bottom: 10px; }
    body.nav-open { overflow: hidden; }
}

/* ---------- Naglowek podstrony ---------- */
.page-head {
    position: relative; overflow: hidden;
    background: radial-gradient(1200px 400px at 85% -20%, rgba(240, 120, 0, .35), transparent 60%), linear-gradient(135deg, #171b22 0%, #242a35 100%);
    color: #d6dae1; padding: 36px 0 40px;
}
.page-head h1 { color: #fff; margin: 6px 0 0; }
.page-head p.lead { margin: 10px 0 0; color: #b8bfca; max-width: 720px; }
.breadcrumb { font-size: .85rem; color: #9aa2af; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: #d6dae1; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }

.section { padding: 48px 0; }
.section-sm { padding: 28px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.section-title p { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 8px; }
@media (max-width: 640px) { .section { padding: 32px 0; } }

/* ---------- Karty ---------- */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 20px; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 16px; }
.card-title i { color: var(--brand); }
.card-muted { background: var(--bg); box-shadow: none; }
@media (max-width: 480px) { .card { padding: 18px; border-radius: 12px; } }

/* ---------- Przyciski ---------- */
.btn, button.btn, input.btn, a.btn,
input[type="submit"], button[type="submit"],
.button-back, .button-next {
    -webkit-appearance: none; appearance: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 10px 22px;
    border-radius: 12px; border: 1px solid transparent;
    background: var(--brand-600); color: #fff;
    font: 700 .98rem/1.2 var(--font); letter-spacing: .01em;
    text-align: center; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .15s, box-shadow .15s, transform .05s, border-color .15s, color .15s;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}
.btn:hover, input[type="submit"]:hover, button[type="submit"]:hover, .button-next:hover { background: var(--brand-700); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.disabled, input[type="submit"][disabled], button[disabled] {
    background: #c9ced6 !important; border-color: #c9ced6 !important; color: #fff !important;
    cursor: not-allowed; box-shadow: none;
}
.btn.btn-secondary, .btn.green, .btn.turquoise, .btn.azure {
    background: var(--ink); color: #fff;
}
.btn.btn-secondary:hover, .btn.green:hover, .btn.turquoise:hover, .btn.azure:hover { background: #000; color: #fff; }
.btn.btn-ghost, .btn.light-gray, .button-back {
    background: #fff; color: var(--ink); border-color: var(--line-2);
}
.btn.btn-ghost:hover, .btn.light-gray:hover, .button-back:hover { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.btn.btn-success { background: var(--ok); }
.btn.btn-success:hover { background: #17824a; }
.btn-lg, .btn.large { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: .9rem; border-radius: 10px; }
.btn-block, .btn.block { display: flex; width: 100%; }
.btn-link { background: none; border: 0; color: var(--brand-600); padding: 0; min-height: 0; font-weight: 600; box-shadow: none; cursor: pointer; font: 600 .95rem var(--font); }
.btn-link:hover { background: none; color: var(--brand-700); text-decoration: underline; }
.btn img { width: 18px; height: 18px; }

/* ---------- Formularze ---------- */
label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin: 0 0 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="tel"], input[type="search"], input[type="date"], input:not([type]),
select, textarea {
    -webkit-appearance: none; appearance: none;
    display: block; width: 100%; min-height: 46px;
    padding: 10px 14px;
    font: 500 1rem/1.4 var(--font); color: var(--ink);
    background: #fff; border: 1px solid var(--line-2); border-radius: 12px;
    transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
select {
    padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235d6573' stroke-width='2' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(240, 120, 0, .15); }
input[disabled], select[disabled], textarea[disabled] { background-color: #f1f3f6; color: #8a919d; cursor: not-allowed; }
input[readonly]:not([disabled]) { cursor: pointer; }
input::placeholder, textarea::placeholder { color: #9aa1ad; }
input[type="checkbox"], input[type="radio"] {
    width: 20px; height: 20px; margin: 0; accent-color: var(--brand-600); cursor: pointer; flex-shrink: 0;
}
.ui-state-error { border-color: var(--err) !important; background: var(--err-50) !important; }

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field-hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid, .form-grid-3 { grid-template-columns: 1fr; } }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }

.input-group { display: flex; gap: 8px; align-items: stretch; }
.input-group > input, .input-group > select { min-width: 0; }
.input-group > .grow { flex: 1 1 auto; }
.phone-group select { flex: 0 0 170px; width: 170px; }
.phone-group input[type="text"]:not(.grow) { flex: 0 0 90px; width: 90px; }
@media (max-width: 420px) { .phone-group select { flex-basis: 130px; width: 130px; } }

.check {
    display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
    font-weight: 400; font-size: .85rem; line-height: 1.5; color: var(--muted); margin: 0;
}
.check input { margin-top: 1px; }
.check.lg { font-size: 1rem; font-weight: 600; color: var(--ink); align-items: center; }
.consent { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; }

.captcha { margin: 4px 0; min-height: 78px; }
@media (max-width: 360px) { .captcha > div { transform: scale(.88); transform-origin: 0 0; } }

/* ---------- Komunikaty ---------- */
.alert, .box, .msg {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
    margin: 0 0 16px; font-size: .95rem;
}
.alert > i { margin-top: 3px; font-size: 1.05rem; }
.alert h4, .box h4 { margin: 0 0 4px; font-size: 1rem; }
.alert p, .box p, .msg p { margin: 0; }
.alert p + p { margin-top: 6px; }
.box, .msg { display: block; }
.alert-info, .box.info, .msg.info { background: var(--info-50); border-color: #cfe0f6; }
.alert-info > i { color: var(--info); }
.alert-warning, .box.alert, .box.warning, .msg.notice { background: var(--warn-50); border-color: #f5dfa8; }
.alert-warning > i { color: var(--warn); }
.alert-error, .msg.error { background: var(--err-50); border-color: #f4c7c7; color: #7d1d1d; }
.alert-error > i { color: var(--err); }
.alert-success, .box.confirm, .msg.success { background: var(--ok-50); border-color: #bfe6cf; }
.alert-success > i { color: var(--ok); }
.form-error { color: var(--err); font-size: .9rem; margin-top: 6px; }

/* ---------- Tabele ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; font-size: .95rem; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th, .table tr.head th { background: var(--bg); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.kv { width: 100%; font-size: .95rem; }
.kv th, .kv td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.kv th { width: 42%; font-weight: 500; color: var(--muted); padding-right: 16px; }
.kv td { color: var(--ink); font-weight: 600; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.kv.wide th { width: 30%; }
@media (max-width: 480px) {
    .kv.stack th, .kv.stack td { display: block; width: 100%; padding: 0; border: 0; }
    .kv.stack th { padding-top: 10px; font-size: .85rem; }
    .kv.stack td { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
}

/* ---------- Strona glowna: hero ---------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: #12151b;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center 60%;
    opacity: .55;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(18, 21, 27, .95) 0%, rgba(18, 21, 27, .75) 45%, rgba(18, 21, 27, .25) 100%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); line-height: 1.1; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 1.12rem; color: #d2d7df; max-width: 560px; margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: center; color: #e8ebf0; }
.hero-points i { color: var(--brand); width: 20px; text-align: center; }
.hero-phone { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 1.15rem; }
.hero-phone:hover { color: #fff; }
.hero-phone span.ico { width: 46px; height: 46px; border-radius: 50%; background: rgba(240, 120, 0, .2); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.hero-phone small { display: block; font-weight: 500; color: #aeb5c0; font-size: .8rem; }
@media (max-width: 960px) {
    .hero .container { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 48px; }
    .hero::after { background: linear-gradient(180deg, rgba(18, 21, 27, .85) 0%, rgba(18, 21, 27, .95) 100%); }
}

/* Karta wyszukiwarki */
.booking-card {
    background: #fff; color: var(--ink-2); border-radius: 20px; padding: 26px;
    box-shadow: var(--shadow-lg);
}
.booking-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.booking-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.booking-card .field { margin-bottom: 14px; }
.booking-card-plain { box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (max-width: 480px) { .booking-card { padding: 20px; border-radius: 16px; } }

.direction-list { display: grid; gap: 12px; }
.direction {
    display: flex; align-items: center; gap: 14px; width: 100%;
    padding: 16px 18px; border-radius: 14px; cursor: pointer; text-align: left;
    border: 1.5px solid var(--line); background: #fff; color: var(--ink);
    font: inherit; transition: border-color .15s, background .15s, box-shadow .15s;
}
.direction:hover { border-color: var(--brand); background: var(--brand-50); }
.direction .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.direction strong { display: block; font-size: 1.02rem; }
.direction small { display: block; color: var(--muted); font-size: .85rem; }
.direction .arrow { margin-left: auto; color: var(--muted); }
.direction.is-active { border-color: var(--brand); background: var(--brand-50); cursor: default; }
.direction.is-active .arrow { display: none; }
.dir-back { margin: 4px 0 14px; }

/* ---------- Kafelki / cechy ---------- */
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; height: 100%; }
.feature .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 14px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.feature-lang { display: flex; flex-direction: column; }
.feature-lang p { color: var(--muted); font-size: .95rem; margin: 0 0 8px; text-align: left !important; }
.feature-lang p.cta { margin: auto 0 0; padding-top: 8px; }
.feature-lang .cta a.button { font-weight: 700; color: var(--brand-600); }
.feature-lang .cta a.button::after { content: " \2192"; }
.photo-card .body h3 a { pointer-events: none; }

.photo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.photo-card .img { aspect-ratio: 4 / 3; overflow: hidden; background: #e9ecf0; }
.photo-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-card:hover .img img { transform: scale(1.04); }
.photo-card .body { padding: 20px; flex: 1; }
.photo-card .body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.photo-card .body h3 a { color: inherit; }
.photo-card .body p { color: var(--muted); margin: 0; font-size: .95rem; }

.route-card { display: flex; flex-direction: column; gap: 6px; }
.route-card .route { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.route-card .route i { color: var(--brand); font-size: .85rem; }

.cta-band { background: linear-gradient(135deg, var(--brand-600), #f59a2f); color: #fff; border-radius: 20px; padding: 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 4px; }
.cta-band p { margin: 0; color: #fff4e8; }
.cta-band .btn { background: #fff; color: var(--brand-700); }
.cta-band .btn:hover { background: var(--ink); color: #fff; }
.cta-band .btn.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }

/* ---------- Wyniki wyszukiwania kursow ---------- */
.route-summary { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.route-summary .stop { display: flex; flex-direction: column; min-width: 0; }
.route-summary .stop small { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.route-summary .stop strong { font-size: 1.02rem; }
.route-summary .to { color: var(--brand); font-size: 1.1rem; }

.courses { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin: 8px 0 12px; }
.courses th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; text-align: left; padding: 0 16px 2px; }
.courses td { background: #fff; padding: 14px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: middle; }
.courses td:first-child { border-left: 1px solid var(--line); border-radius: 12px 0 0 12px; width: 52px; text-align: center; }
.courses td:last-child { border-right: 1px solid var(--line); border-radius: 0 12px 12px 0; }
.courses tr.course { cursor: pointer; }
.courses tr.course:hover td { border-color: var(--brand-100); background: #fffaf4; }
.courses tr.course.is-selected td { border-color: var(--brand); background: var(--brand-50); }
.courses .time { font-size: 1.1rem; font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.courses .time .arr { color: var(--brand); margin: 0 6px; font-weight: 600; }
.courses .date { color: var(--muted); font-size: .92rem; white-space: nowrap; }
.courses tr.note td { background: transparent; border: 0; padding: 0 16px 6px; font-size: .85rem; color: var(--muted); }
.courses tr.note td i { color: var(--brand); margin-right: 6px; }
.courses tr.day-break td { background: transparent; border: 0; padding: 14px 4px 2px; font-weight: 700; color: var(--ink); font-size: .9rem; }
.courses i.ttLC { color: var(--warn); cursor: help; margin-right: 6px; }
.courses tr.note td, .courses tr.day-break td { width: auto !important; text-align: left; border-radius: 0 !important; }
.courses tr.day-break td { text-align: center; }
@media (max-width: 640px) {
    .courses thead { display: none; }
    .courses, .courses tbody { display: block; }
    .courses tr.course { display: grid; grid-template-columns: 44px 1fr; grid-template-areas: "radio time" "radio date" "radio badge"; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
    .courses tr.course.is-selected { border-color: var(--brand); background: var(--brand-50); }
    .courses tr.course td { display: block; border: 0 !important; border-radius: 0 !important; background: transparent !important; padding: 4px 12px; }
    .courses tr.course td:nth-child(1) { grid-area: radio; display: flex; align-items: center; justify-content: center; width: auto; padding: 0; }
    .courses tr.course td:nth-child(2) { grid-area: time; padding-top: 12px; }
    .courses tr.course td:nth-child(3) { grid-area: date; }
    .courses tr.course td:nth-child(4) { grid-area: badge; padding-bottom: 12px; }
    .courses tr.course td:nth-child(4):empty { display: none; }
    .courses tr.note, .courses tr.day-break { display: block; }
    .courses tr.note td, .courses tr.day-break td { display: block; }
}
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    font-size: .8rem; font-weight: 700; line-height: 1.3; white-space: nowrap;
    background: var(--bg); color: var(--ink-2);
}
.badge-hh, .courses .badge-hh { background: linear-gradient(135deg, #e85d00, #f59a2f); color: #fff; cursor: help; }
.badge-hh i { color: #fff; }
.badge-ok { background: var(--ok-50); color: var(--ok); }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-muted { background: #eef0f3; color: #7b8391; }
.badge-brown { background: #f7ece5; color: #833106; }

.choose-bar { display: flex; justify-content: flex-end; margin: 8px 0 20px; }
@media (max-width: 640px) {
    .choose-bar { position: sticky; bottom: 0; z-index: 50; margin: 0 -16px; padding: 12px 16px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
    .choose-bar .btn { width: 100%; }
}

/* Okno wyboru: gosc / klient */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.choice-grid > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.choice-grid > div.guest { background: var(--brand-50); border-color: var(--brand-100); }
.choice-grid h4 { margin-bottom: 12px; }
.choice-grid .foot { margin-top: auto; padding-top: 12px; }
.choice-grid .foot .btn { width: 100%; }
@media (max-width: 600px) { .choice-grid { grid-template-columns: 1fr; } }

/* ---------- Kreator rezerwacji ---------- */

.passenger-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.passenger-col { display: flex; flex-direction: column; justify-content: flex-end; }
@media (max-width: 700px) { .passenger-row { grid-template-columns: 1fr 1fr; } .passenger-row .passenger-col:last-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .passenger-row { grid-template-columns: 1fr; } }

.pax-count { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg); margin-bottom: 18px; }
.pax-count label { margin: 0; font-size: 1rem; }
.pax-count select { width: 120px; }

.invoice-box { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.invoice-box .inner { margin-top: 16px; }

.pickup-box { margin-top: 18px; padding: 16px; border-radius: var(--radius-sm); background: var(--bg); }
.pickup-box #map { border-radius: 12px; overflow: hidden; }
#surcharge_info { margin: 8px 0 0; color: var(--brand-700); }

.nieletni-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; }
.nieletni-item .who { margin-bottom: 10px; }
#nieletni_dodatki .col1 { float: none !important; padding: 0 !important; margin: 0 0 8px !important; }
#nieletni_dodatki .columns { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border: 0 !important; padding-bottom: 14px; margin-bottom: 14px !important; border-bottom: 1px dashed var(--line) !important; }
#nieletni_dodatki .columns input { width: 100% !important; display: block !important; }
#nieletni_dodatki .col3 { margin: 0 !important; }
@media (max-width: 600px) { #nieletni_dodatki .columns { grid-template-columns: 1fr; } }

.summary-price { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin: 0; }

/* stepy */
.stepy-titles { list-style: none; margin: 0 0 24px; padding: 0; display: flex; gap: 8px; counter-reset: step; }
.stepy-titles li {
    flex: 1 1 0; min-width: 0; position: relative; counter-increment: step;
    padding: 12px 12px 12px 50px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
    color: var(--muted); font-weight: 700; font-size: .9rem; line-height: 1.25; cursor: default;
}
.stepy-titles li::before {
    content: counter(step); position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2);
    display: flex; align-items: center; justify-content: center; font-size: .85rem; color: var(--muted);
}
.stepy-titles li span { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepy-titles li.current-step { background: var(--brand-50); border-color: var(--brand); color: var(--ink); }
.stepy-titles li.current-step::before { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.stepy-titles li.error-image { border-color: var(--err); }
@media (max-width: 760px) {
    .stepy-titles li { padding: 10px 6px; text-align: center; font-size: .72rem; }
    .stepy-titles li::before { position: static; transform: none; margin: 0 auto 6px; }
    .stepy-titles li span { display: none; }
}
.step legend { display: block; float: left; width: 100%; font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 0 0 18px; padding: 0; }
.step legend + * { clear: both; }
.step > .footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.step > .footer .button-next, .step > .footer .finish { margin-left: auto; }
.step > .footer .finish img { display: none; }
.stepy-error { margin-top: 12px; }
.button-back::before { content: "\2190"; }
.button-next::after { content: "\2192"; }
@media (max-width: 480px) {
    .step > .footer > * { flex: 1 1 100%; }
    .step > .footer .button-next, .step > .footer .finish { order: -1; }
}
.loader { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: wt-spin .7s linear infinite; }
@keyframes wt-spin { to { transform: rotate(360deg); } }

/* ---------- Panel klienta ---------- */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.subnav a { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.subnav a:hover { border-color: var(--line-2); color: var(--ink); }
.subnav a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.subnav a i { margin-right: 6px; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filter-bar .field { margin: 0; flex: 1 1 160px; }

.res-list { display: grid; gap: 12px; }
.res { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.res > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto 20px; gap: 12px; align-items: center; padding: 16px 20px; }
.res > summary::-webkit-details-marker { display: none; }
.res > summary .route { font-weight: 700; color: var(--ink); }
.res > summary .when { color: var(--muted); font-size: .92rem; }
.res > summary .chev { color: var(--muted); transition: transform .2s; }
.res[open] > summary .chev { transform: rotate(180deg); }
.res[open] > summary { border-bottom: 1px solid var(--line); }
.res .res-body { padding: 16px 20px 20px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
.res .res-body.single { grid-template-columns: 1fr; }
.res .pay-box { background: var(--bg); border-radius: var(--radius-sm); padding: 16px; align-self: start; }
.res .pay-box form, .pay-box form { margin: 0; }
@media (max-width: 760px) {
    .res > summary { grid-template-columns: 1fr auto; }
    .res > summary .when { grid-column: 1 / 2; }
    .res > summary .status { grid-column: 1 / 2; grid-row: 3; justify-self: start; }
    .res > summary .chev { grid-column: 2; grid-row: 1 / span 3; }
    .res .res-body { grid-template-columns: 1fr; }
}

.settings-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: 0; }
.settings-row .k { color: var(--muted); font-weight: 600; padding-top: 2px; }
.settings-row .v { font-weight: 700; color: var(--ink); min-width: 0; }
.settings-row .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) {
    .settings-row { grid-template-columns: 1fr; gap: 8px; }
    .settings-row .acts { justify-content: flex-start; }
}

/* ---------- Galeria ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font: 600 .9rem var(--font); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.vehicle .img { position: relative; }
.vehicle .img .count { position: absolute; right: 12px; bottom: 12px; background: rgba(18, 21, 27, .8); color: #fff; font-size: .8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.vehicle .meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 10px; }
.vehicle .thumbs { display: none; }

/* ---------- Cennik / promocje ---------- */
.price-card h3 { display: flex; align-items: center; gap: 10px; }
.price-card .hours { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.price-card .hours strong { color: var(--ink); }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list .price { font-weight: 800; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.price-list .price small { font-weight: 600; color: var(--muted); font-size: .8rem; }

/* ---------- Regulamin ---------- */
.prose { color: var(--ink-2); }
.prose ol { counter-reset: par; list-style: none; padding: 0; }
.prose > ol > li { counter-increment: par; margin-bottom: 28px; }
.prose > ol > li > .paragraf_nazwa { display: block; font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.prose > ol > li > .paragraf_nazwa::before { content: counter(par) ". "; color: var(--brand-600); }
.prose ol.paragraf_tresc { counter-reset: pkt; }
.prose ol.paragraf_tresc > li { counter-increment: pkt; position: relative; padding-left: 44px; margin-bottom: 10px; }
.prose ol.paragraf_tresc > li::before { content: counter(par) "." counter(pkt); position: absolute; left: 0; top: 0; font-weight: 700; color: var(--muted); font-size: .9rem; }
.prose ul { margin: 8px 0; }

/* ---------- Kontakt ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; }
.contact-list a, .contact-list strong { font-weight: 700; color: var(--ink); }
.contact-list a:hover { color: var(--brand-600); }

.social-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.social-tile { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 700; transition: box-shadow .2s, transform .2s; }
.social-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.social-tile i { font-size: 2.6rem; }
.social-tile .fa-facebook { color: #1877f2; }
.social-tile .fa-instagram { color: #d62976; }
.social-tile .fa-tiktok { color: #111; }
@media (max-width: 640px) { .social-grid { grid-template-columns: 1fr; } }

/* ---------- Stopka ---------- */
.site-footer { background: var(--dark); color: #aab1bd; margin-top: 0; font-size: .95rem; }
.site-footer .container { padding-top: 56px; padding-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #d6dae1; }
.site-footer a:hover { color: var(--brand); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; }
.site-footer .footer-logo img { height: 40px; }
.site-footer .social { display: flex; gap: 10px; margin-top: 16px; }
.site-footer .social a { width: 40px; height: 40px; border-radius: 10px; background: var(--dark-2); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.site-footer .social a:hover { background: var(--brand-600); color: #fff; }
.footer-bottom { border-top: 1px solid #262b35; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: #7d8594; }
.footer-cb p { color: #aab1bd; }
.footer-cb .btn { margin-top: 4px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .site-footer .container { padding-top: 40px; } }

.go-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 800;
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--ink); color: #fff; box-shadow: var(--shadow);
    display: inline-flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s;
}
.go-top.show { opacity: 1; visibility: visible; transform: none; }
.go-top:hover { background: var(--brand-600); }
@media (max-width: 640px) { .has-choose-bar .go-top { bottom: 90px; } }

/* ==========================================================================
   Wtyczki jQuery UI 1.8 (zamiast ui.css)
   ========================================================================== */
.ui-helper-hidden { display: none; }
.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px); }
.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.ui-state-disabled { cursor: default !important; opacity: .45; }
.ui-icon { display: inline-block; width: 16px; height: 16px; overflow: hidden; text-indent: -99999px; vertical-align: middle; }

/* Okna dialogowe */
.dialog { display: none; }
.ui-widget-overlay { position: fixed !important; inset: 0; width: 100% !important; height: 100% !important; background: rgba(12, 14, 19, .6); }
.ui-dialog {
    /* z-index nadaje jQuery UI inline (overlay N, okno N+1) - nie nadpisywac */
    position: absolute; padding: 0; overflow: hidden;
    max-width: calc(100vw - 24px); background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
    outline: 0; font-family: var(--font);
}
.ui-dialog .ui-dialog-titlebar { position: relative; padding: 18px 56px 14px 22px; border-bottom: 1px solid var(--line); }
.ui-dialog .ui-dialog-title { display: block; font-weight: 800; font-size: 1.1rem; color: var(--ink); min-height: 1.2em; }
.ui-dialog .ui-dialog-titlebar-close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.ui-dialog .ui-dialog-titlebar-close:hover { background: var(--bg); color: var(--ink); }
.ui-dialog .ui-dialog-titlebar-close::before { content: "\00d7"; font-size: 1.7rem; line-height: 1; }
.ui-dialog .ui-dialog-titlebar-close .ui-icon { position: absolute; }
.ui-dialog .ui-dialog-content { position: relative; padding: 20px 22px 22px; overflow: auto; max-height: calc(100vh - 120px); zoom: 1; }
.ui-dialog .ui-dialog-content .alert:last-child, .ui-dialog .ui-dialog-content .box:last-child { margin-bottom: 0; }
.ui-dialog .ui-dialog-buttonpane { padding: 12px 22px 18px; text-align: right; }
.ui-dialog.no-title .ui-dialog-titlebar { border: 0; padding-bottom: 0; }
.ui-dialog .ui-resizable-handle { display: none !important; }
.promo-dialog { padding: 0 !important; }
.promo-dialog img { display: block; width: 100%; }

/* Kalendarz */
.ui-datepicker {
    display: none; width: 300px; max-width: calc(100vw - 24px); padding: 12px; z-index: 1100 !important;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); font-family: var(--font);
}
.ui-datepicker .ui-datepicker-header { position: relative; padding: 6px 0 10px; }
.ui-datepicker .ui-datepicker-title { text-align: center; font-weight: 800; color: var(--ink); line-height: 32px; }
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next {
    position: absolute; top: 6px; width: 32px; height: 32px; border-radius: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.ui-datepicker .ui-datepicker-prev { left: 0; }
.ui-datepicker .ui-datepicker-next { right: 0; }
.ui-datepicker .ui-datepicker-prev:hover, .ui-datepicker .ui-datepicker-next:hover { background: var(--bg); }
.ui-datepicker .ui-datepicker-prev::before { content: "\2039"; font-size: 1.5rem; line-height: 1; }
.ui-datepicker .ui-datepicker-next::before { content: "\203A"; font-size: 1.5rem; line-height: 1; }
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { position: absolute; }
.ui-datepicker .ui-state-disabled.ui-datepicker-prev, .ui-datepicker .ui-state-disabled.ui-datepicker-next { opacity: .25; }
.ui-datepicker table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ui-datepicker th { padding: 6px 0; font-weight: 700; color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.ui-datepicker td { padding: 2px; text-align: center; }
.ui-datepicker td a, .ui-datepicker td span {
    display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 10px;
    color: var(--ink); font-weight: 600; text-decoration: none;
}
.ui-datepicker td a:hover { background: var(--brand-50); color: var(--brand-700); }
.ui-datepicker td.ui-datepicker-other-month a { color: #aab1bd; }
.ui-datepicker td.ui-datepicker-today a { box-shadow: inset 0 0 0 1.5px var(--brand); }
.ui-datepicker td a.ui-state-active { background: var(--brand-600); color: #fff; }
.ui-datepicker td.ui-state-disabled span { color: #c3c8d1; font-weight: 500; }
.ui-datepicker .ui-datepicker-buttonpane { display: flex; justify-content: space-between; padding-top: 8px; }
.ui-datepicker .ui-datepicker-buttonpane button { min-height: 34px; padding: 4px 12px; font-size: .85rem; }
.ui-datepicker-cover { display: none; }

/* Timepicker */
#ui-timepicker-div, .ui-timepicker {
    background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
    padding: 10px; z-index: 1100 !important; font-family: var(--font); font-size: .85rem; max-width: calc(100vw - 24px); overflow-x: auto;
}
.ui-timepicker-table .ui-timepicker-title { font-weight: 700; color: var(--ink); padding: 4px 0; }
.ui-timepicker-table td a {
    display: block; padding: 5px 4px; width: auto !important; text-align: center !important; border-radius: 8px; color: var(--ink); cursor: pointer;
}
.ui-timepicker-table td a:hover { background: var(--brand-50); }
.ui-timepicker-table td a.ui-state-active { background: var(--brand-600); color: #fff; }
.ui-timepicker-table th.periods, .ui-timepicker-table td span { color: var(--muted); }

/* Dymki validationEngine */
.formError .formErrorContent {
    background: var(--err) !important; border: 0 !important; box-shadow: 0 6px 18px rgba(198, 47, 47, .25) !important;
    border-radius: 8px !important; font: 600 12px/1.4 var(--font) !important; padding: 6px 10px !important;
}
.formError .formErrorArrow div { background: var(--err) !important; border: 0 !important; box-shadow: none !important; }

/* qtip */
.qtip { font-family: var(--font) !important; }

/* Lightbox */
.lightboxOverlay { background: #0c0e13 !important; opacity: .9 !important; }
.lightbox .lb-image { border-radius: 8px; }
.lb-data .lb-caption { font-family: var(--font); }

/* Stary likebox FB - ukryty w nowym szablonie */
#facebook-likebox { display: none; }

/* Kursy warszawskie, ktore nie sa realizowane */
.courses tr.course.is-muted td { background: #f3f4f6; color: #8a919d; }
.courses tr.course.is-muted .time { color: #8a919d; }

/* Ramka "zaloguj sie" w kreatorze - tekst z tlumaczenia bywa dlugi */
.alert-login { align-items: center; flex-wrap: wrap; }
.alert-login p { flex: 1 1 260px; font-weight: 500; }
.alert-login label { display: inline; font-weight: inherit; margin: 0; }
@media (max-width: 560px) { .alert-login .btn { width: 100%; } }

/* Galeria - pasek najnowszych zdjec */
.photo-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .photo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.photo-strip a { display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #e9ecf0; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-strip a:hover img { transform: scale(1.05); }
.photo-strip a:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 560px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }
.vehicle a.img { display: block; }

/* Poprawki: karty w siatce nie potrzebuja odstepu z .card + .card, tlumaczenia z <strong> w ciemnym naglowku */
.grid > .card + .card, .layout > .card + .card, .layout > .card + aside, .layout > aside + .card { margin-top: 0; }
.page-head strong, .page-head b { color: #fff; }
.page-head a { color: #ffb45e; }

/* ---------- Walidacja w stylu Bootstrapa (zamiast dymkow validationEngine) ---------- */
input.is-invalid, select.is-invalid, textarea.is-invalid {
    border-color: var(--err) !important;
    background-color: #fff6f6 !important;
}
input.is-invalid:not([type="checkbox"]):not([type="radio"]), textarea.is-invalid {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='none' stroke='%23c62f2f' stroke-width='1.5'/%3E%3Cpath d='M8 4.2v4.6' stroke='%23c62f2f' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.4' r='.95' fill='%23c62f2f'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 16px 16px !important;
}
input.is-invalid:focus, select.is-invalid:focus, textarea.is-invalid:focus { box-shadow: 0 0 0 4px rgba(198, 47, 47, .15); }
input[type="checkbox"].is-invalid { outline: 2px solid var(--err); outline-offset: 2px; }

/* Komunikat validationEngine: zwykly czerwony tekst pod polem (wtyczka wstawia go przed polem, absolutnie) */
.field, .passenger-col, .input-group, .check, .pax-count, .invoice-box, .pickup-box { position: relative; }
.formError {
    position: absolute !important; top: 100% !important; left: 0 !important; right: auto !important;
    margin: 3px 0 0 !important; width: auto !important; max-width: 100%; pointer-events: auto;
}
.formError .formErrorContent {
    background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important;
    padding: 0 !important; width: auto !important; color: var(--err) !important;
    font: 600 12px/1.35 var(--font) !important; white-space: nowrap;
}
.formError .formErrorContent br { display: none; }
.formError .formErrorArrow { display: none !important; }
.field, .passenger-col { margin-bottom: 22px; }
.form-grid .field, .passenger-row .passenger-col { margin-bottom: 6px; }
.check .formError { top: auto !important; bottom: -18px !important; left: 32px !important; }
@media (max-width: 480px) { .formError .formErrorContent { white-space: normal; } }

/* ---------- Nota pod kursem (odbior spod adresu / kurs nierealizowany) ---------- */
.courses tr.note td { padding: 0 16px 10px 64px; font-size: .86rem; }
/* Nota doklejona do karty kursu (klasy nadaje wt.js): dolna czesc tej samej karty */
.courses tr.course.has-note td { border-bottom: 0; }
.courses tr.course.has-note td:first-child { border-radius: 12px 0 0 0; }
.courses tr.course.has-note td:last-child { border-radius: 0 12px 0 0; }
.courses tr.note.note-attached td {
    background: #fff; border: 1px solid var(--line); border-top: 1px dashed var(--line-2);
    border-radius: 0 !important; padding: 9px 16px 11px 68px; color: var(--muted); cursor: pointer;
    transform: translateY(-8px);
}
.courses tr.note.note-attached.note-last td { border-radius: 0 0 12px 12px !important; }
.courses tr.note.note-attached + tr.note.note-attached td { transform: translateY(-16px); border-top-style: dotted; }
.courses tr.course.has-note:hover td, .courses tr.course.has-note.is-hover td, .courses tr.note.note-attached.is-hover td { border-color: var(--brand-100); background: #fffaf4; }
.courses tr.course.has-note.is-selected td, .courses tr.note.note-attached.is-selected td { border-color: var(--brand); background: var(--brand-50); }
.courses tr.course.has-note.is-selected td { border-bottom: 0; }
.courses tr.note.note-attached.is-selected td { border-top: 1px dashed var(--brand-100); }
@media (max-width: 640px) {
    .courses tr.note td { padding: 0 8px 12px 12px; }
    .courses tr.course.has-note { margin-bottom: 0; border-bottom: 0; border-radius: 12px 12px 0 0; }
    .courses tr.note.note-attached { display: block; margin-bottom: 8px; background: #fff; border: 1px solid var(--line); border-top: 1px dashed var(--line-2); border-radius: 0 0 12px 12px; overflow: hidden; }
    .courses tr.note.note-attached:not(.note-last) { margin-bottom: 0; border-radius: 0; border-bottom: 0; }
    .courses tr.note.note-attached td { transform: none !important; border: 0 !important; padding: 8px 12px 10px 44px; background: transparent; }
    .courses tr.course.has-note.is-selected { border-color: var(--brand); }
    .courses tr.note.note-attached.is-selected { border-color: var(--brand); background: var(--brand-50); }
}

/* ---------- Kreator: os trasy (wyjazd -> przyjazd) ---------- */
.route-axis { list-style: none; margin: 4px 0 18px; padding: 0; }
.route-axis li { position: relative; padding: 0 0 18px 30px; }
.route-axis li:last-child { padding-bottom: 0; }
.route-axis li::before {
    content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%;
    border: 3px solid var(--brand); background: #fff; box-sizing: border-box; z-index: 1;
}
.route-axis li.end::before { background: var(--brand); }
.route-axis li:not(:last-child)::after {
    content: ""; position: absolute; left: 7px; top: 21px; bottom: 1px; width: 2px;
    background: repeating-linear-gradient(to bottom, var(--brand-100) 0 5px, transparent 5px 9px);
}
.route-axis small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; margin-bottom: 2px; }
.route-axis strong { display: block; line-height: 1.35; }
.route-axis .stop-name { display: block; color: var(--muted); font-size: .88rem; font-weight: 500; line-height: 1.4; }

/* Zakladka Rezerwacja: sam wybor kierunku, wysrodkowany */
.booking-center { max-width: 520px; margin: 0 auto; }

/* ---------- Cennik: wybor kierunku i tabele cen ---------- */
.price-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.price-switch .direction .arrow { transition: transform .2s; }
.price-switch .direction.is-active { cursor: pointer; }
.price-switch .direction.is-active .arrow { display: inline-block; transform: rotate(180deg); color: var(--brand-600); }
@media (max-width: 640px) { .price-switch { grid-template-columns: 1fr; } }
.hours-line { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.hours-line i { color: var(--brand); margin-right: 4px; }
.price-table { min-width: 620px; }
.price-table thead tr.group th { background: var(--ink); color: #fff; font-size: .8rem; }
.price-table thead tr:not(.group) th { font-size: .72rem; }
.price-table .route-cell { font-weight: 600; color: var(--ink); white-space: nowrap; }
.price-table .route-cell i { color: var(--brand); font-size: .75rem; margin: 0 4px; }
.price-table td.loyal { background: var(--brand-50); }
.price-table tbody tr:hover td { background: #fafbfc; }
.price-table tbody tr:hover td.loyal { background: var(--brand-100); }
.price-list .price small { display: block; text-align: right; }
.price-list li > span:first-child small { color: var(--muted); font-weight: 500; }
.alert-login .alert-login-txt { flex: 1 1 260px; font-weight: 500; }
.alert-login .alert-login-txt p { margin: 0; }
.alert-login .alert-login-txt h5 { margin: 0; font-size: .95rem; font-weight: 500; line-height: 1.5; color: var(--ink-2); }

/* Komunikat walidacji ma szerokosc pola i zawija sie zamiast nachodzic na sasiednia kolumne */
.formError { right: 0 !important; }
.formError .formErrorContent { white-space: normal; }

/* Panel klienta: szkielet listy rezerwacji w trakcie wczytywania AJAX */
.res-skeleton {
    height: 58px; border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(90deg, #fff 0%, #f1f3f6 40%, #fff 80%) 0 0 / 200% 100%;
    animation: wt-skeleton 1.2s ease-in-out infinite;
}
@keyframes wt-skeleton { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.res-loading + p { margin-top: 16px; font-size: .92rem; }

/* Cennik: wyrazne grupy kolumn (Standardowo | Staly klient, Okecie | Modlin) */
.price-table thead tr.group th.grp { text-align: center; font-size: .82rem; letter-spacing: .06em; border-left: 3px solid #fff; }
.price-table thead tr.group th.grp i { margin-right: 4px; }
.price-table thead tr.group th.grp-std { background: #2a303b; }
.price-table thead tr.group th.grp-loyal { background: var(--brand-600); }
.price-table thead tr.group th.grp-alt { background: #3d4757; }
.price-table thead tr:not(.group) th.loyal { background: var(--brand-100); color: var(--brand-700); }
.price-table thead tr:not(.group) th.alt { background: #e9edf2; }
.price-table .grp-start { border-left: 3px solid var(--line-2) !important; }
.price-table td.loyal.grp-start, .price-table th.loyal.grp-start { border-left-color: var(--brand) !important; }
.price-table td.loyal { background: var(--brand-50); color: var(--brand-700); }
.price-table td.loyal strong { color: var(--brand-700); }
.price-table td.alt { background: #f6f8fa; }
.price-table tbody tr:hover td.alt { background: #eef1f5; }
.price-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin: 0 0 16px; font-size: .9rem; color: var(--muted); }
.price-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.price-legend .lg { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.price-legend .lg-std { background: #2a303b; }
.price-legend .lg-loyal { background: var(--brand-600); }

/* Galeria: opisy pojazdow wyjustowane */
.vehicle .body p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

/* Hero: akapit wprowadzajacy wyjustowany */
.hero .lead { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

/* Stopka: logo w proporcjach (atrybuty width/height w HTML), copyright na srodku */
.site-footer .footer-logo { padding: 12px 16px; line-height: 0; }
.site-footer .footer-logo img { width: auto; height: 46px; max-width: 100%; }
.footer-bottom { justify-content: center; text-align: center; }

/* Gorna belka + menu przyklejone razem (kontener .site-top w master.blade.php) */
:root { --topbar-h: 40px; }
.site-top { position: sticky; top: 0; z-index: 900; }
.site-top .site-header { position: static; }
.sticky-col { top: calc(var(--header-h) + var(--topbar-h) + 20px); }

/* Strona glowna: kafelki "Dlaczego Wagner Transport" - jeden format, tekst wyjustowany, link na dole */
.feature-tile { display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; }
.feature-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand-100); }
.feature-tile h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-tile p { flex: 1; text-align: justify; hyphens: auto; -webkit-hyphens: auto; margin: 0 0 16px; }
.feature-tile .more { font-weight: 700; font-size: .92rem; color: var(--brand-600); display: inline-flex; align-items: center; gap: 6px; }
.feature-tile .more i { font-size: .8rem; transition: transform .2s; }
.feature-tile .more:hover i { transform: translateX(3px); }

/* ---------- Wybor przystanku: "Miasto + przystanek" zamiast dlugiego selecta (komponent w wt.js) ---------- */
select.stop-select-native {
    position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0 0 0 0); border: 0 !important; opacity: 0;
}
.stop-select { position: relative; }
.stop-select-btn {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 14px;
    background: #fff; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer;
    font: 500 1rem/1.3 var(--font); color: var(--ink); text-align: left;
    transition: border-color .15s, box-shadow .15s;
}
.stop-select-btn:hover { border-color: #b9c0ca; }
.stop-select-btn:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(240, 120, 0, .15); }
.stop-select.is-open .stop-select-btn { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(240, 120, 0, .15); }
.stop-select-btn[disabled] { background: #f1f3f6; color: #8a919d; cursor: not-allowed; }
.stop-select-btn .ss-placeholder { flex: 1; color: #6b7280; }
.stop-select-btn .ss-caret { margin-left: auto; color: var(--muted); font-size: .8rem; transition: transform .2s; }
.stop-select.is-open .ss-caret { transform: rotate(180deg); }
.ss-content { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.ss-content > i { width: 32px; height: 32px; border-radius: 9px; background: var(--brand-50); color: var(--brand-600); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.ss-txt { display: flex; flex-direction: column; min-width: 0; }
.ss-city { font-weight: 700; color: var(--ink); line-height: 1.25; }
.ss-stop { font-size: .82rem; color: var(--muted); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop-select-list {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
    padding: 6px; max-height: 340px; overflow-y: auto;
}
.stop-select-opt {
    display: flex; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent;
    font: inherit; text-align: left; cursor: pointer; color: var(--ink);
}
.stop-select-opt + .stop-select-opt { margin-top: 2px; }
.stop-select-opt:hover, .stop-select-opt:focus { outline: none; background: var(--bg); }
.stop-select-opt.is-active { background: var(--brand-50); }
.stop-select-opt.is-active .ss-city { color: var(--brand-700); }
.stop-select-opt .ss-stop { white-space: normal; }
/* lista przystankow w karcie hero nie moze byc ucinana przez sekcje */
.hero { overflow: visible; }
.hero-bg, .hero::after { overflow: hidden; }
