/* ===== Beskidy Cup 2027 ===== */
:root {
  --forest: #173a2e;
  --forest-2: #214a3a;
  --forest-3: #2c5a46;
  --orange: #f26b1d;
  --orange-dark: #d4560c;
  --paper: #f6f1e7;
  --paper-2: #ece4d3;
  --ink: #1d2420;
  --muted: #5c665f;
  --line: #d9cfbb;
  --contour: #b9763b;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(23, 58, 46, .25);
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font: 400 16px/1.65 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--forest); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h2, h3, p, dd, li { overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px;
  font-weight: 600; text-decoration: none; line-height: 1;
  border: 2px solid transparent; transition: transform .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--small { padding: .6em 1.1em; font-size: .9rem; }
.btn--accent { background: var(--orange); color: #fff; }
.btn--accent:hover { background: var(--orange-dark); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--light { background: #fff; color: var(--orange-dark); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline { border-color: var(--forest); color: var(--forest); }
.btn--outline:hover { background: var(--forest); color: #fff; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 58, 46, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff;
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand__flag { width: 30px; height: 30px; border-radius: 4px; }
.brand__text { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: .01em; }
.brand__text b { color: var(--orange); }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a:not(.btn) {
  color: rgba(255,255,255,.85); text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: .5em .7em; border-radius: 8px; white-space: nowrap;
}
.nav__links a:not(.btn):hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__links .btn { margin-left: 8px; }
.lang { position: relative; flex-shrink: 0; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: #fff;
  padding: .45em .7em; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border: solid rgba(255,255,255,.7); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); margin-left: 2px; }
.lang[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang summary:hover { background: rgba(255,255,255,.1); }
.lang summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; z-index: 60;
  list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 12px;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.35);
}
.lang__menu a { display: block; padding: .55em .8em; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.lang__menu a:hover { background: var(--paper); }
.lang__menu a[aria-current="page"] { color: var(--orange-dark); font-weight: 700; }
.lang__menu a[aria-current="page"]::after { content: " ✓"; }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; margin-left: auto; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 80% 10%, #2a5b47 0%, var(--forest) 55%, #10291f 100%);
  color: #fff;
  padding: clamp(56px, 9vw, 110px) 0 clamp(130px, 16vw, 210px);
}
.hero__contours { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero__content { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.hero__content > *:not(.countdown) { grid-column: 1; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 600;
  color: #f8b98f; margin-bottom: 1.2em;
}
.hero__title {
  font-size: clamp(3.6rem, 11vw, 8.5rem); font-weight: 800; line-height: .88;
  letter-spacing: -.035em; margin-bottom: .3em;
}
.hero__title span { color: var(--orange); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 500; margin-bottom: 1.6em; }
.hero__meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero__meta svg { width: 22px; height: 22px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ridges { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(90px, 14vw, 200px); z-index: 1; }

.countdown {
  grid-column: 2; grid-row: 1 / span 4; align-self: end;
  background: rgba(10, 30, 22, .45); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 22px 24px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.countdown__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.countdown__grid b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__grid span { font-size: .75rem; color: rgba(255,255,255,.65); }

/* ===== Facts ===== */
.facts {
  position: relative; z-index: 3; margin-top: -40px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.fact { padding: 22px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--forest); line-height: 1.1; }
.fact span { font-size: .88rem; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--forest); color: #fff; position: relative; overflow: hidden; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section__head h2 { margin-bottom: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--orange-dark); margin-bottom: .9em;
}
.kicker::before { content: ""; width: 12px; height: 12px; background: linear-gradient(135deg, var(--orange) 50%, #fff 50%); border: 1px solid var(--orange); }
.kicker--light { color: #f8b98f; }
.lead { font-size: 1.15rem; color: var(--ink); }
.narrow { max-width: 640px; }
.note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }

.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 0 var(--line); border: 1px solid var(--line); }
.card p:last-child { margin-bottom: 0; }
.card--quiet { background: transparent; }
.icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fde7d9; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--orange-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* About map card */
.card--map { padding: 14px; }
.mapframe { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #fbf7ec; }
.mapframe svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-dl { margin: 14px 10px 0; }
.mini-dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.mini-dl div:last-child { border-bottom: 0; }
.mini-dl dt { color: var(--muted); }
.mini-dl dd { margin: 0; font-weight: 600; text-align: right; }
.card--map .note { margin: 4px 10px 6px; }

/* News */
.news { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.news time { font-size: .8rem; font-weight: 600; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.news p { color: var(--muted); flex: 1; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--forest); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Program tabs */
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--paper-2); border-radius: 999px; margin: 18px 0 30px; flex-wrap: wrap; }
.tabs button {
  border: 0; background: transparent; padding: .7em 1.3em; border-radius: 999px; cursor: pointer;
  font: 600 .95rem var(--font-body); color: var(--muted);
}
.tabs button[aria-selected="true"] { background: var(--forest); color: #fff; }
.timeline { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px dashed var(--line); position: relative; }
.timeline time { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--forest); font-variant-numeric: tabular-nums; }
.timeline b { display: block; font-size: 1.05rem; }
.timeline span { color: var(--muted); font-size: .95rem; }
.timeline .is-key { background: linear-gradient(90deg, #fde7d9, transparent); border-radius: 10px; padding-left: 14px; margin-left: -14px; border-bottom-color: transparent; }
.timeline .is-key time { color: var(--orange-dark); }

/* Stages */
.section--dark::before {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background: repeating-radial-gradient(circle at 85% 20%, transparent 0 22px, #fff 22px 23px);
}
.section--dark .wrap { position: relative; }
.stages { margin-top: 30px; }
.stage { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 26px; transition: background .2s, transform .2s; overflow: hidden; }
.stage__map {
  display: block; position: relative; margin: -26px -26px 22px; aspect-ratio: 4 / 3; overflow: hidden;
  background: #fff; border-bottom: 1px solid rgba(255,255,255,.14);
}
.stage__map img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.stage__map:hover img { transform: scale(1.06); }
.stage__map span {
  position: absolute; left: 12px; bottom: 12px; padding: .35em .75em; border-radius: 999px;
  background: rgba(16, 41, 31, .85); color: #fff; font-size: .78rem; font-weight: 600;
}
.stage__map span::after { content: " ↗"; }
.stage:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.stage__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.stage__no { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--orange); }
.tag { font-size: .78rem; font-weight: 600; padding: .35em .8em; border-radius: 999px; background: rgba(255,255,255,.12); }
.stage h3 { font-size: 1.6rem; }
.stage p { color: rgba(255,255,255,.75); }
.stage dl { margin: 18px 0 0; }
.stage dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.stage dt { color: rgba(255,255,255,.6); }
.stage dd { margin: 0; font-weight: 600; text-align: right; }
.embargo {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 36px;
  border: 2px dashed rgba(242,107,29,.6); border-radius: var(--radius); padding: 22px 24px;
}
.embargo svg { width: 36px; height: 36px; flex-shrink: 0; fill: none; stroke: var(--orange); stroke-width: 2.2; }
.embargo h3 { margin-bottom: .3em; }
.embargo p { margin: 0; color: rgba(255,255,255,.8); }
.embargo a { color: #f8b98f; }

/* Fees */
.table-wrap { overflow-x: auto; margin: 26px 0; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.fees { width: 100%; border-collapse: collapse; min-width: 560px; }
.fees th, .fees td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.fees thead th { background: var(--forest); color: #fff; font-weight: 600; font-size: .95rem; vertical-align: bottom; }
.fees thead th small { display: block; font-weight: 400; font-size: .78rem; opacity: .7; }
.fees thead .fees__period { text-align: center; border-left: 1px solid rgba(255,255,255,.15); }
.fees .fees__sub th { background: var(--forest-2); font-size: .82rem; font-weight: 500; padding-top: 8px; padding-bottom: 8px; }
.fees .fees__sub th:nth-child(odd) { border-left: 1px solid rgba(255,255,255,.15); }
.fees tbody td:nth-child(even) { border-left: 1px solid var(--line); }
.fees tbody td b { font-weight: 700; color: var(--forest); }
.fees tbody th { font-weight: 600; }
.fees tbody td { font-variant-numeric: tabular-nums; }
.fees tbody tr:last-child > * { border-bottom: 0; }
.fees tbody tr:nth-child(even) { background: #faf7f0; }
.fees td[colspan] { color: var(--muted); }
.small-cards .card p { color: var(--muted); }

/* CTA */
.cta { background: linear-gradient(120deg, var(--orange) 0%, #e2531a 100%); color: #fff; padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; background: linear-gradient(135deg, rgba(255,255,255,.18) 50%, transparent 50%); }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta h2 { margin-bottom: .3em; }
.cta p { max-width: 620px; margin: 0; opacity: .95; hyphens: manual; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta p.cta__stages { margin-top: 12px; font-size: .92rem; opacity: 1; }
.cta__stages a { color: #fff; font-weight: 700; text-underline-offset: 3px; padding: 0 2px; }
.cta__stages a:hover { text-decoration-thickness: 2px; }

/* Travel */
.travel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; margin-top: 28px; }
.travel__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: var(--paper-2); }
.travel__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.travel__list { list-style: none; margin: 0; padding: 0; }
.travel__list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.travel__list li:first-child { padding-top: 0; }
.travel__list b { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.travel__list span { color: var(--muted); font-size: .95rem; }

/* Docs */
.docs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.docs li { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.docs__type { font-size: .7rem; font-weight: 700; letter-spacing: .06em; padding: .45em .6em; border-radius: 6px; background: var(--forest); color: #fff; min-width: 46px; text-align: center; }
.docs b { display: block; }
.docs li span:not(.docs__type) { font-size: .85rem; color: var(--muted); }
.docs .is-soon { opacity: .6; }
.docs .is-soon .docs__type { background: var(--muted); }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.partner {
  overflow-wrap: anywhere; hyphens: auto;
  aspect-ratio: 3 / 2; display: grid; place-items: center; text-align: center; padding: 12px;
  border: 1.5px dashed var(--line); border-radius: 12px; font-size: .82rem; font-weight: 600; color: var(--muted);
}

/* Contact */
.contact { list-style: none; padding: 0; margin: 24px 0 0; }
.contact li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.contact span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact a { color: var(--orange-dark); font-weight: 600; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Footer */
.footer { background: #10291f; color: rgba(255,255,255,.75); padding: 40px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer p { margin: 0; }
.footer__small { font-size: .85rem; width: 100%; opacity: .7; }
.footer a { color: inherit; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1240px) {
  .nav__links a:not(.btn) { padding: .5em .5em; font-size: .88rem; }
}
@media (max-width: 1100px) {
  .lang { margin-left: auto; }
  .nav__toggle { display: block; margin-left: 4px; }
  .nav__links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--forest); padding: 8px 16px 20px;
    transform: translateY(-110%); visibility: hidden; transition: transform .25s, visibility .25s;
    box-shadow: 0 20px 30px -10px rgba(0,0,0,.35);
  }
  .nav__links.is-open { transform: none; visibility: visible; }
  .nav__links a:not(.btn) { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav__links .btn { margin: 16px 0 0; }
}
@media (max-width: 960px) {
  .hero__content { grid-template-columns: 1fr; }
  .countdown { grid-column: 1; grid-row: auto; margin-top: 18px; max-width: 460px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split, .split--even, .travel { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0 !important; border-top: 1px solid var(--line); padding: 16px 20px; }
  .fact:first-child { border-top: 0; }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline li { grid-template-columns: 64px 1fr; gap: 14px; }
  .timeline time { font-size: 1.1rem; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .hero__cta .btn { flex: 1; }
  .nav__inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand__flag { width: 26px; height: 26px; }
  .brand__text { font-size: 1.05rem; }
  .nav__toggle { padding: 8px; margin-right: -8px; }
}
