:root {
  --black: #070707;
  --black-soft: #101010;
  --paper: #f2efe8;
  --white: #fff;
  --red: #e21b23;
  --header-height: 92px;
  --max-width: 1240px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; color: var(--black); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.55; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.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; z-index: 999; left: 1rem; top: 1rem; padding: .8rem 1rem; color: var(--white); background: var(--red); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; min-height: var(--header-height); color: var(--white); background: rgba(7, 7, 7, .96); border-bottom: 1px solid rgba(255,255,255,.1); transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.header-inner { width: min(calc(100% - 48px), var(--max-width)); min-height: inherit; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { display: block; color: var(--white); text-decoration: none; transform: skew(-5deg); }
.wordmark-name { display: flex; gap: .32em; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(1.35rem,2.25vw,2rem); line-height: .95; letter-spacing: .045em; }
.wordmark-name strong { color: var(--red); font-weight: inherit; }
.wordmark-caption { margin-top: .3rem; color: #aaa; font-size: .57rem; font-weight: 800; letter-spacing: .24em; }
.main-nav { display: flex; align-items: center; gap: clamp(1.25rem,3vw,3rem); }
.main-nav a { position: relative; padding: 2.2rem 0; color: #e9e9e9; text-decoration: none; text-transform: uppercase; font-size: .76rem; font-weight: 900; letter-spacing: .09em; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 1.7rem; height: 2px; background: var(--red); transition: right .25s var(--ease); }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 9px; border: 0; color: var(--white); background: transparent; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 6px 0; background: currentColor; transition: transform .25s ease, opacity .25s ease; }

.hero { position: relative; min-height: 100svh; padding-top: var(--header-height); color: var(--white); background: var(--black); overflow: hidden; }
.hero-triptych { position: absolute; inset: var(--header-height) 0 0; display: grid; grid-template-columns: repeat(3,1fr); }
.hero-panel { position: relative; min-width: 0; overflow: hidden; border-right: 1px solid rgba(255,255,255,.15); isolation: isolate; }
.hero-panel:last-child { border-right: 0; }
.hero-panel--road { --photo: url("../images/hero/kolumna.webp"); }
.hero-panel--crew { --photo: url("../images/hero/ekipa.webp"); }
.hero-panel--adv { --photo: url("../images/hero/adv-bloto.webp"); }
.hero-panel::before { content: ""; position: absolute; inset: -5%; z-index: -2; background-image: linear-gradient(150deg,rgba(255,255,255,.08),transparent 42%), var(--photo,linear-gradient(135deg,#292929,#080808 68%)); background-position: center; background-size: cover; filter: grayscale(1) contrast(1.12); transform: scale(1.05); }
.hero-panel--crew::before { background-image: linear-gradient(180deg,rgba(255,255,255,.08),transparent), var(--photo,linear-gradient(135deg,#3b3b3b,#101010 70%)); }
.hero-panel--adv::before { background-image: linear-gradient(210deg,rgba(226,27,35,.16),transparent 40%), var(--photo,linear-gradient(145deg,#222,#050505 65%)); }
.hero-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.76)); }
.panel-placeholder { position: absolute; inset: 0; display: grid; place-content: center; color: rgba(255,255,255,.18); text-align: center; }
.hero-panel.has-photo .panel-placeholder { display: none; }
.panel-number { display: block; font-family: Impact,sans-serif; font-size: clamp(7rem,15vw,15rem); line-height: .8; letter-spacing: -.05em; }
.panel-icon { margin-top: 1.5rem; color: rgba(226,27,35,.5); font-weight: 900; letter-spacing: .45em; }
.panel-label { position: absolute; top: 2rem; left: 2rem; padding-left: .8rem; border-left: 3px solid var(--red); opacity: .7; transition: opacity .3s ease, transform .3s var(--ease); }
.panel-label span, .panel-label strong { display: block; }
.panel-label span { color: #aaa; font-size: .62rem; font-weight: 900; letter-spacing: .16em; }
.panel-label strong { margin-top: .18rem; font-size: .85rem; text-transform: uppercase; }
.hero-panel:hover .panel-label, .hero-panel:focus-visible .panel-label { opacity: 1; transform: translateX(5px); }
.hero-panel:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; }
.hero-shade { position: absolute; inset: var(--header-height) 0 0; background: linear-gradient(90deg,rgba(0,0,0,.58),transparent 54%), linear-gradient(0deg,rgba(0,0,0,.82),transparent 62%); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; width: min(calc(100% - 48px),var(--max-width)); margin: 0 auto; padding-top: clamp(13rem,34vh,23rem); padding-bottom: 8rem; }
.eyebrow, .section-kicker { margin: 0 0 1rem; color: var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .25em; }
.hero h1 { max-width: 820px; margin: 0; font-family: Impact,"Arial Narrow",sans-serif; font-size: clamp(4.3rem,10vw,9rem); font-weight: 900; line-height: .82; letter-spacing: .015em; text-transform: uppercase; text-wrap: balance; }
.hero h1 em { display: block; color: var(--red); font-style: normal; }
.hero-lead { margin: 1.5rem 0 0; color: #ddd; font-size: clamp(1rem,1.5vw,1.2rem); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .9rem 1.35rem; border: 2px solid transparent; color: var(--white); text-decoration: none; text-transform: uppercase; font-size: .72rem; font-weight: 900; letter-spacing: .12em; transition: color .25s ease,background .25s ease,border-color .25s ease,transform .25s var(--ease); }
.button:hover, .button:focus-visible { transform: translateY(-3px); }
.button--primary { background: var(--red); }
.button--primary:hover, .button--primary:focus-visible { background: var(--white); color: var(--black); }
.button--ghost { border-color: rgba(255,255,255,.65); }
.button--ghost:hover, .button--ghost:focus-visible { border-color: var(--white); background: var(--white); color: var(--black); }
.button--large { min-width: 220px; min-height: 60px; }
.scroll-cue { position: absolute; z-index: 3; right: max(24px,calc((100% - var(--max-width))/2)); bottom: 2rem; display: flex; align-items: center; gap: .7rem; color: #ccc; text-decoration: none; font-size: .6rem; font-weight: 900; letter-spacing: .2em; }
.scroll-cue i { position: relative; width: 44px; height: 1px; background: #777; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: translateX(-100%); animation: scan 2s ease infinite; }

.section { padding: clamp(5rem,9vw,9rem) 0; }
.section-inner { width: min(calc(100% - 48px),var(--max-width)); margin: 0 auto; }
.about { position: relative; background: var(--paper); overflow: hidden; }
.about-grid { display: grid; grid-template-columns: minmax(280px,.8fr) 1.2fr; gap: clamp(3rem,8vw,8rem); align-items: center; }
.club-seal { width: min(100%,470px); aspect-ratio: 1; margin: 0 auto; }
.club-seal img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; filter: drop-shadow(0 24px 34px rgba(0,0,0,.24)); }
.about-copy { position: relative; z-index: 1; max-width: 680px; }
.about-copy h2, .section-heading h2, .cta h2 { margin: 0; font-family: Impact,"Arial Narrow",sans-serif; font-size: clamp(3rem,6vw,5.8rem); font-weight: 900; line-height: .93; letter-spacing: .02em; text-transform: uppercase; }
.about-copy h2 span, .section-heading h2 span, .cta h2 span { color: var(--red); }
.red-rule { width: 76px; height: 5px; margin: 2rem 0; background: var(--red); }
.about-copy p { max-width: 64ch; color: #333; }
.about-copy .lead { color: var(--black); font-size: 1.18rem; font-weight: 700; }
.about-copy blockquote { margin: 2rem 0 0; padding: 1.2rem 0 1.2rem 1.4rem; border-left: 4px solid var(--red); font-family: Georgia,serif; font-size: clamp(1.15rem,2vw,1.45rem); font-style: italic; }

.section--dark { color: var(--white); background: var(--black); }
.section-heading { display: flex; justify-content: space-between; gap: 3rem; align-items: flex-end; margin-bottom: clamp(3rem,6vw,5rem); }
.section-heading > p { max-width: 500px; margin: 0 0 .7rem; color: #777; }
.section--dark .section-heading > p { color: #aaa; }
.route-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: #333; border: 1px solid #333; }
.route-card { position: relative; min-height: 520px; padding: clamp(2rem,4vw,4rem); background: var(--black-soft); overflow: hidden; }
.route-card::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 5px; background: var(--red); transition: width .45s var(--ease); }
.route-card:hover::after { width: 100%; }
.route-art { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; margin: 0 0 3rem; background: #080808; overflow: hidden; }
.route-art::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 -70px 70px rgba(0,0,0,.45); pointer-events: none; }
.route-art img { width: 100%; height: 100%; padding: 10px; object-fit: contain; filter: grayscale(.82) contrast(1.12) brightness(.78); transform: scale(.94); transition: filter .55s ease,transform .65s var(--ease); }
.route-card:hover .route-art img { filter: grayscale(.15) contrast(1.06) brightness(.94); transform: scale(.99); }
.route-tag { margin: 0; color: var(--red); font-size: .7rem; font-weight: 900; letter-spacing: .17em; }
.route-card h3 { margin: .5rem 0 1rem; font-family: Impact,sans-serif; font-size: clamp(3.6rem,6vw,6rem); line-height: 1; text-transform: uppercase; }
.route-card > p:last-child { max-width: 48ch; color: #aaa; }

.values { display: grid; grid-template-columns: repeat(3,1fr); color: var(--white); background: var(--red); }
.value { display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 120px; padding: 1.5rem; border-right: 1px solid rgba(0,0,0,.25); text-transform: uppercase; }
.value:last-child { border-right: 0; }
.value span { color: rgba(0,0,0,.45); font-family: Impact,sans-serif; font-size: 2.4rem; }
.value strong { font-size: clamp(1rem,2vw,1.5rem); letter-spacing: .12em; }

.gallery { background: var(--paper); }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: 260px; gap: 1rem; }
.gallery-slot { position: relative; margin: 0; background: #171717; overflow: hidden; }
.gallery-slot--wide { grid-column: span 2; }
.gallery-slot--tall { grid-row: span 2; }
.slot-art { position: absolute; inset: 0; display: grid; place-content: center; padding: 2rem; color: #555; text-align: center; background: linear-gradient(135deg,transparent 0 48%,rgba(255,255,255,.035) 49% 51%,transparent 52%), repeating-linear-gradient(45deg,#101010 0 16px,#151515 17px 18px); transition: transform .6s var(--ease),filter .6s ease; }
.slot-art::before { content: ""; position: absolute; inset: 1rem; border: 1px solid #303030; }
.slot-art span { font-family: Impact,sans-serif; font-size: 4.5rem; line-height: 1; }
.slot-art strong { margin-top: .6rem; font-size: .65rem; letter-spacing: .22em; }
.gallery-slot figcaption { position: absolute; left: 1.5rem; bottom: 1.3rem; z-index: 2; padding-left: .7rem; color: var(--white); border-left: 3px solid var(--red); font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.gallery-slot:hover .slot-art { transform: scale(1.04); filter: brightness(1.25); }
.gallery-slot > img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter .5s ease,transform .6s var(--ease); }
.gallery-slot:hover > img { filter: grayscale(.2) contrast(1.05); transform: scale(1.04); }

.cta { position: relative; min-height: 590px; display: grid; align-items: center; color: var(--white); background: radial-gradient(circle at 75% 20%,#292929,transparent 30%), linear-gradient(115deg,#111,#050505); overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; opacity: .25; background: repeating-linear-gradient(115deg,transparent 0 40px,rgba(255,255,255,.07) 41px 42px); }
.cta-mark { position: absolute; right: -3vw; top: 50%; color: rgba(255,255,255,.035); font-family: Consolas,monospace; font-size: clamp(9rem,25vw,26rem); font-weight: 900; transform: translateY(-50%) rotate(-7deg); }
.cta-inner { position: relative; z-index: 1; }
.cta-inner > p:not(.section-kicker) { max-width: 600px; color: #aaa; font-size: 1.05rem; }
.cta .button { margin-top: 1rem; }
.site-footer { color: #aaa; background: #030303; border-top: 1px solid #222; }
.footer-inner { width: min(calc(100% - 48px),var(--max-width)); min-height: 150px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; color: var(--white); }
.footer-brand img { width: 62px; height: 62px; object-fit: contain; border-radius: 50%; }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand strong { font-family: Impact,sans-serif; font-size: 1.25rem; letter-spacing: .04em; }
.footer-brand strong span { color: var(--red); }
.footer-brand small { margin-top: .25rem; color: #777; font-size: .57rem; letter-spacing: .16em; }
.site-footer p, .site-footer > a { font-size: .72rem; }
.site-footer a { color: var(--white); text-decoration-color: var(--red); text-underline-offset: .35em; }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease),transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes scan { 0% { transform: translateX(-100%); } 55%,100% { transform: translateX(100%); } }

@media (max-width: 900px) {
  :root { --header-height: 78px; }
  .header-inner { width: min(calc(100% - 32px),var(--max-width)); }
  .menu-toggle { display: block; position: relative; z-index: 3; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-8px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 7rem 2rem 3rem; background: rgba(4,4,4,.985); transform: translateX(100%); transition: transform .35s var(--ease); }
  .main-nav.is-open { transform: none; }
  .main-nav a { width: 100%; padding: 1rem 0; border-bottom: 1px solid #252525; font-family: Impact,sans-serif; font-size: 2rem; letter-spacing: .04em; }
  .main-nav a::after { display: none; }
  .hero-triptych { grid-template-columns: 1fr; grid-template-rows: repeat(3,1fr); }
  .hero-panel { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .panel-placeholder { place-content: center end; padding-right: 1.5rem; }
  .panel-number { font-size: 6rem; }
  .panel-label { top: 1rem; left: 1rem; }
  .hero-copy { display: flex; min-height: calc(100svh - var(--header-height)); flex-direction: column; justify-content: flex-end; padding-top: 10rem; padding-bottom: 5rem; }
  .hero h1 { font-size: clamp(3.8rem,17vw,6rem); }
  .scroll-cue { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .club-seal { width: min(75vw,420px); }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 1.3rem; }
  .route-grid { grid-template-columns: 1fr; }
  .route-card { min-height: 480px; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-slot--wide { grid-column: span 2; }
  .footer-inner { flex-wrap: wrap; padding: 2.5rem 0; }
}

@media (max-width: 580px) {
  .section-inner, .hero-copy, .footer-inner { width: min(calc(100% - 32px),var(--max-width)); }
  .wordmark-caption { display: none; }
  .wordmark-name { display: grid; gap: 0; font-size: 1.15rem; }
  .hero-copy { padding-bottom: 3rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .values { grid-template-columns: 1fr; }
  .value { min-height: 88px; border-right: 0; border-bottom: 1px solid rgba(0,0,0,.25); }
  .gallery-grid { display: block; }
  .gallery-slot { min-height: 260px; margin-bottom: 1rem; }
  .gallery-slot--tall { min-height: 380px; }
  .footer-inner { display: grid; }
}

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