:root {
    --bg: #060b12;
    --bg-soft: #0a111d;
    --panel: #0f1825;
    --panel-2: #111e2d;
    --line: rgba(255,255,255,.10);
    --line-strong: rgba(255,255,255,.17);
    --text: #f4f7fb;
    --muted: #9ca9ba;
    --blue: #2d74c7;
    --blue-light: #6eaff4;
    --yellow: #ffd02e;
    --yellow-2: #ffb900;
    --max: 1240px;
    --radius: 22px;
    --shadow: 0 28px 80px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: clip; }
body {
    margin: 0;
    min-width: 320px;
    max-width: 100%;
    overflow-x: clip;
    background:
        radial-gradient(circle at 14% 4%, rgba(45,116,199,.14), transparent 25rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 999; padding: 12px 16px; background: var(--yellow); color: #111; border-radius: 8px; font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6,11,18,.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    color: #07101d; background: linear-gradient(145deg, var(--yellow), var(--yellow-2));
    font-size: 25px; font-weight: 950; border-radius: 12px 12px 12px 3px;
    box-shadow: 0 10px 30px rgba(255,208,46,.16);
}
.brand strong { display: block; font-size: 19px; line-height: 1.1; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 10px 13px; border-radius: 10px; color: #d6deea; text-decoration: none; font-size: 14px; font-weight: 650; transition: .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: #fff; background: rgba(255,255,255,.07); outline: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; background: #fff; transition: .2s ease; }

.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to right, #000, transparent 82%); }
.hero-copy { min-width: 0; }
.eyebrow, .section-kicker, .card-label { display: inline-block; color: var(--yellow); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 15px 0 20px; max-width: 760px; font-size: clamp(48px, 7vw, 88px); line-height: .94; letter-spacing: -.065em; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.62); }
.hero p { max-width: 670px; margin: 0; color: #b5c1d0; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 13px; text-decoration: none; font-weight: 800; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--yellow); color: #111722; box-shadow: 0 16px 34px rgba(255,208,46,.13); }
.button--ghost { border: 1px solid var(--line-strong); background: rgba(255,255,255,.035); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero-tags span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: #97a8bc; font-size: 12px; }

.top-ad-wrap { padding-top: 30px; }
.bottom-ad-wrap { padding: 0 0 54px; }
.ad-slot { overflow: hidden; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; min-height: 110px; border: 1px dashed rgba(255,255,255,.20); border-radius: 16px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 12px, rgba(255,255,255,.045) 12px 24px); color: #7f8b9b; text-align: center; }
.ad-slot__label { padding: 3px 7px; border-radius: 4px; background: rgba(255,255,255,.08); color: #b9c3d0; font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.ad-slot strong { color: #a9b5c4; font-size: 14px; }
.ad-slot small { font-size: 11px; }
.ad-slot a { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.ad-slot img { width: 100%; height: 100%; object-fit: contain; }
.ad-slot--filled { border-style: solid; background: #0b111a; }
.ad-slot--top { width: min(970px, 100%); min-height: clamp(130px, 25vw, 250px); margin-inline: auto; }
.ad-slot--inline { min-height: 100px; margin-top: 10px; }
.ad-slot--sidebar { min-height: 250px; }
.ad-slot--long { min-height: 600px; }
.ad-slot--footer { width: min(970px, 100%); min-height: 100px; margin-inline: auto; }

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 42px; padding-block: 64px; align-items: start; }
.content-column { min-width: 0; }
.section { scroll-margin-top: 100px; margin-bottom: 78px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin-bottom: 24px; }
.section-heading h2, .quick-links h2 { margin: 6px 0 0; font-size: clamp(27px, 4vw, 40px); line-height: 1.05; letter-spacing: -.035em; }
.section-intro { max-width: 390px; margin: 0; color: var(--muted); font-size: 14px; text-align: right; }
.text-link { flex: 0 0 auto; color: #dce5f0; text-decoration: none; font-weight: 760; font-size: 14px; }
.text-link span { color: var(--yellow); }

.feature-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 108px 1fr; gap: 27px; min-height: 280px; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(120deg, rgba(45,116,199,.20), rgba(15,24,37,.92) 44%, #0d1520); box-shadow: var(--shadow); text-decoration: none; transition: transform .25s ease, border-color .25s ease; }
.feature-card::before { content: ""; position: absolute; width: 400px; height: 400px; right: -220px; top: -210px; border-radius: 50%; background: radial-gradient(circle, rgba(255,208,46,.13), transparent 66%); }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(110,175,244,.42); }
.feature-card__icon { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 25px; background: linear-gradient(145deg, var(--blue), #17477e); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.feature-card__icon svg { width: 52px; fill: none; stroke: #fff; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-card__content { position: relative; z-index: 1; }
.feature-card h3 { margin: 9px 0 13px; font-size: clamp(28px, 4vw, 43px); line-height: 1.05; letter-spacing: -.04em; }
.feature-card p { max-width: 670px; margin: 0; color: #aab6c6; }
.feature-card__number { position: absolute; right: 25px; bottom: -36px; color: rgba(255,255,255,.035); font-size: 152px; font-weight: 950; line-height: 1; }
.card-cta { display: inline-flex; gap: 10px; align-items: center; margin-top: 24px; color: #fff; font-size: 14px; font-weight: 800; }
.card-cta b { color: var(--yellow); }
.card-cta--muted { color: var(--muted); }

.counter-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.counter-card { position: relative; isolation: isolate; overflow: hidden; min-height: 440px; padding: 27px 24px 25px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); text-decoration: none; transition: transform .25s ease, border-color .25s ease; }
.counter-card::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--yellow)); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.counter-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.21); }
.counter-card:hover::after { transform: scaleX(1); }
.counter-card__glow { position: absolute; z-index: -1; width: 280px; height: 280px; top: -155px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(45,116,199,.24), transparent 68%); }
.counter-card__logo-wrap { height: 172px; display: grid; place-items: center; margin-bottom: 16px; }
.counter-card img { max-width: 158px; max-height: 158px; filter: drop-shadow(0 18px 26px rgba(0,0,0,.30)); transition: transform .25s ease; }
.counter-card:hover img { transform: scale(1.035); }
.counter-card h3 { margin: 8px 0 11px; font-size: 23px; letter-spacing: -.025em; }
.counter-card p { margin: 0; color: var(--muted); font-size: 13px; }

.tools-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.tool-card { position: relative; overflow: hidden; min-height: 340px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-decoration: none; }
.tool-card::after { content: ""; position: absolute; width: 240px; height: 240px; right: -125px; bottom: -125px; border-radius: 50%; background: radial-gradient(circle, rgba(45,116,199,.20), transparent 68%); }
.tool-card--song { background: linear-gradient(145deg, rgba(255,208,46,.11), var(--panel) 52%); transition: transform .25s ease, border-color .25s ease; }
.tool-card--song:hover { transform: translateY(-4px); border-color: rgba(255,208,46,.35); }
.tool-card__icon { display: grid; place-items: center; width: 59px; height: 59px; margin-bottom: 25px; border: 1px solid var(--line-strong); border-radius: 17px; background: rgba(255,255,255,.045); color: var(--yellow); font-size: 28px; font-weight: 800; }
.tool-card h2 { margin: 8px 0 12px; font-size: 30px; letter-spacing: -.035em; }
.tool-card p { margin: 0; color: var(--muted); font-size: 14px; }

.sidebar { position: sticky; top: 100px; display: grid; gap: 24px; }
.quick-links { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.quick-links h2 { margin-bottom: 18px; font-size: 27px; }
.quick-links a { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-top: 1px solid var(--line); color: #d3dce8; text-decoration: none; font-size: 13px; }
.quick-links a b { color: var(--yellow); transition: transform .2s ease; }
.quick-links a:hover b { transform: translateX(3px); }

.site-footer { border-top: 1px solid var(--line); background: #05080d; }
.footer-inner { min-height: 155px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner strong { font-size: 20px; }
.footer-inner p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 17px; }
.footer-links a { color: #c7d1dd; font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }

:focus-visible { outline: 3px solid rgba(255,208,46,.8); outline-offset: 3px; }

@media (max-width: 1180px) {
    .hero h1 { font-size: clamp(48px, 6.3vw, 72px); }
}

@media (max-width: 1060px) {
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .sidebar .ad-slot--long { display: none; }
    .quick-links { min-height: 250px; }
}

@media (max-width: 980px) {
}

@media (max-width: 820px) {
    .container { width: min(calc(100% - 28px), var(--max)); }
    .menu-toggle { display: block; }
    .main-nav { position: absolute; left: 14px; right: 14px; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; padding: 9px; border: 1px solid var(--line); border-radius: 15px; background: rgba(7,13,22,.98); box-shadow: var(--shadow); }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 12px; }
    .hero h1 { font-size: clamp(44px, 12vw, 70px); }
    .page-layout { padding-block: 48px; }
    .counter-grid { grid-template-columns: 1fr; }
    .counter-card { min-height: 0; display: grid; grid-template-columns: 120px 1fr; column-gap: 22px; align-items: center; }
    .counter-card__logo-wrap { grid-row: 1 / span 5; height: auto; margin: 0; }
    .counter-card img { max-width: 115px; max-height: 115px; }
    .counter-card .card-label, .counter-card h3, .counter-card p, .counter-card .card-cta { grid-column: 2; }
    .counter-card .card-cta { margin-top: 13px; }
    .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .brand small { display: none; }
    .header-inner { min-height: 68px; }
    .hero p { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .button { width: 100%; }
    .section { margin-bottom: 58px; }
    .section-heading { display: block; }
    .section-intro { margin-top: 12px; text-align: left; }
    .text-link { display: inline-block; margin-top: 13px; }
    .feature-card { grid-template-columns: 1fr; padding: 28px 24px; }
    .feature-card__icon { width: 72px; height: 72px; border-radius: 20px; }
    .feature-card__icon svg { width: 40px; }
    .counter-card { display: block; padding: 25px; text-align: center; }
    .counter-card__logo-wrap { height: 145px; margin-bottom: 15px; }
    .counter-card .card-cta { justify-content: center; }
    .tool-card { padding: 27px 24px; }
    .sidebar { grid-template-columns: 1fr; }
    .ad-slot--top { min-height: 150px; }
    .footer-inner { min-height: 170px; flex-direction: column; align-items: flex-start; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* === Hero v5: ruchome tło z okna pociągu === */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #06101d;
}
.hero::before,
.hero::after { display: none; }
.hero-media {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    background: #06101d url('../img/wyjazdowo-pociag-poster-chorzow-batory.jpg') center/cover no-repeat;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.025);
    filter: saturate(.92) contrast(1.04) brightness(.88);
}
.hero-media__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3,9,17,.98) 0%, rgba(4,13,24,.91) 28%, rgba(5,16,28,.61) 49%, rgba(3,10,18,.23) 72%, rgba(3,8,15,.34) 100%),
        linear-gradient(180deg, rgba(4,10,18,.23), transparent 36%, rgba(2,7,13,.47));
}
.hero-grid {
    z-index: -1;
    opacity: .045;
    mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.85) 45%, transparent 76%);
}
.hero-inner {
    min-height: 640px;
    display: flex;
    align-items: center;
    padding-block: 90px;
}
.hero-copy {
    width: min(720px, 67%);
    position: relative;
    z-index: 3;
    text-shadow: 0 3px 24px rgba(0,0,0,.45);
}
.hero h1 { max-width: 800px; }
.hero p { color: #c5d0de; }
.hero-travel-note {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    color: rgba(221,231,242,.72);
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.hero-travel-note span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 0 rgba(255,208,46,.44);
    animation: travelPulse 2.1s ease-out infinite;
}

.hero-poles {
    position: absolute;
    inset: -8% 0 -8% 43%;
    overflow: hidden;
    opacity: .24;
    filter: blur(1.5px);
    mask-image: linear-gradient(to right, transparent, #000 16%, #000);
}
.hero-poles span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 118%;
    width: 15px;
    background: linear-gradient(90deg, transparent, rgba(3,8,13,.88) 38%, rgba(9,14,20,.97) 58%, transparent);
    box-shadow: 80px 0 28px rgba(2,6,11,.22);
    transform: skewX(-2deg);
    animation: passingPole 15.5s linear infinite;
}
.hero-poles span:nth-child(2) { animation-delay: -2.45s; width: 9px; opacity: .75; }
.hero-poles span:nth-child(3) { animation-delay: -4.95s; width: 21px; opacity: .55; }
.hero-speed-lines {
    position: absolute;
    left: 48%;
    right: -10%;
    bottom: -2%;
    height: 38%;
    opacity: .12;
    transform: skewY(-5deg);
    background-image: repeating-linear-gradient(98deg, transparent 0 62px, rgba(225,237,248,.27) 65px 67px, transparent 72px 110px);
    filter: blur(2.5px);
    animation: speedLines 6.6s linear infinite;
    mask-image: linear-gradient(to top, #000, transparent 78%);
}
.hero-fog {
    position: absolute;
    left: -5%;
    bottom: -24%;
    width: 48%;
    height: 66%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(183,198,213,.18), rgba(119,139,158,.06) 47%, transparent 72%);
    filter: blur(25px);
    opacity: .62;
    animation: fogDrift 10s ease-in-out infinite;
}
.hero-fog--two {
    left: 12%;
    bottom: -31%;
    width: 34%;
    height: 52%;
    opacity: .37;
    animation-delay: -5s;
    animation-duration: 13s;
}
@keyframes passingPole {
    from { transform: translateX(0) skewX(-2deg); }
    to { transform: translateX(-122vw) skewX(-2deg); }
}
@keyframes speedLines {
    from { background-position-x: 0; }
    to { background-position-x: -440px; }
}
@keyframes fogDrift {
    0%,100% { transform: translate3d(-2%,2%,0) scale(.94); opacity: .42; }
    50% { transform: translate3d(10%,-9%,0) scale(1.08); opacity: .68; }
}
@keyframes travelPulse {
    0% { box-shadow: 0 0 0 0 rgba(255,208,46,.42); }
    70%,100% { box-shadow: 0 0 0 10px rgba(255,208,46,0); }
}

@media (max-width: 980px) {
    .hero-inner { min-height: 590px; padding-block: 75px 64px; }
    .hero-copy { width: min(720px, 82%); }
    .hero-video { object-position: 58% center; }
}
@media (max-width: 620px) {
    .hero-inner { min-height: 620px; align-items: flex-end; padding-block: 86px 52px; }
    .hero-copy { width: 100%; }
    .hero-video { object-position: 66% center; transform: scale(1.06); }
    .hero-media__shade {
        background:
            linear-gradient(180deg, rgba(3,9,17,.37) 0%, rgba(3,10,19,.50) 33%, rgba(3,10,19,.94) 69%, rgba(2,7,13,.98) 100%),
            linear-gradient(90deg, rgba(3,9,17,.72), rgba(3,9,17,.18));
    }
    .hero-poles { left: 28%; opacity: .23; }
    .hero-speed-lines { left: 22%; opacity: .13; }
    .hero-travel-note { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
    .hero-poles, .hero-speed-lines, .hero-fog { display: none; }
}


/* === Sekcja trasa / zdjęcia === */
.route-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 16px;
}
.route-card {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.route-card--wide { min-height: 360px; }
.route-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform .35s ease;
}
.route-card:hover img { transform: scale(1.045); }
.route-card__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 24px 22px 22px;
    background: linear-gradient(180deg, rgba(3,10,19,0) 0%, rgba(3,10,19,.35) 20%, rgba(3,10,19,.92) 100%);
}
.route-card__overlay h3 {
    margin: 8px 0 10px;
    font-size: 26px;
    line-height: 1.06;
    letter-spacing: -.03em;
}
.route-card__overlay p {
    margin: 0;
    color: #c5d0de;
    font-size: 14px;
}
@media (max-width: 1060px) {
    .route-grid { grid-template-columns: 1fr 1fr; }
    .route-card--wide { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
    .route-grid { grid-template-columns: 1fr; }
    .route-card, .route-card--wide { min-height: 300px; }
}
