/* latin-ext */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonts/baloo2-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonts/baloo2-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Kolejarz — the offer page. The palette and shapes come from the game: the navy station boards,
   the yellow of the train doors, the green signal, the red whistle button, the sunny seaside platform. */
:root {
  --navy: #1d2b53;
  --navy-deep: #142040;
  --yellow: #ffd400;
  --green: #2fbf4a;
  --green-dark: #1f8f35;
  --red: #d91e2a;
  --orange: #f59a1b;
  --sky: #7fc4ef;
  --sky-light: #cdeafc;
  --sand: #f4e3bf;
  --cream: #fff8ea;
  --grass: #7fb24a;
  --ink: #1a2238;
  --muted: #4c5675;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(20, 32, 64, .18);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 18px/1.6 Nunito, "Trebuchet MS", sans-serif; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: "Baloo 2", "Trebuchet MS", sans-serif; line-height: 1.1; margin: 0 0 .4em; }
h2 { font-size: clamp(32px, 5vw, 52px); color: var(--navy); }
h3 { font-size: 22px; color: var(--navy); }
p { margin: 0 0 1em; }
a { color: var(--navy); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------------------------------------------------------------- buttons (the game's round green play button) */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 56px; padding: 12px 28px; border-radius: 999px; background: var(--green); color: #fff; font: 800 20px/1.1 "Baloo 2", sans-serif; text-decoration: none; box-shadow: 0 6px 0 var(--green-dark), 0 12px 24px rgba(31, 143, 53, .35); transition: transform .12s, box-shadow .12s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--green-dark); }
.button-ghost { background: #fff; color: var(--navy); box-shadow: 0 6px 0 #b9c3dc, 0 12px 24px rgba(20, 32, 64, .15); }
.button-small { min-height: 44px; padding: 8px 20px; font-size: 17px; box-shadow: 0 4px 0 var(--green-dark); }

/* ---------------------------------------------------------------- top bar (station board) */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 10px max(16px, (100% - 1160px) / 2); background: var(--navy); color: #fff; border-bottom: 4px solid var(--yellow); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 26px/1 "Baloo 2", sans-serif; }
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--yellow); }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: #fff; text-decoration: none; font-weight: 700; opacity: .9; }
.menu a:hover { color: var(--yellow); }
@media (max-width: 900px) { .menu { display: none; } .topbar .button-small { margin-left: auto; } }

/* ---------------------------------------------------------------- hero (sunny seaside platform) */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; background: linear-gradient(180deg, var(--sky) 0%, var(--sky-light) 62%, var(--sand) 62%, var(--sand) 100%); }
.hero-sky { position: absolute; inset: 0; background: url("img/platform-wide.jpg") center bottom / cover no-repeat; opacity: .55; }
.hero-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 248, 234, .92) 0%, rgba(255, 248, 234, .7) 45%, rgba(255, 248, 234, 0) 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.board { display: inline-block; margin-bottom: 18px; padding: 8px 18px; border-radius: 10px; background: var(--navy); color: #fff; font: 800 22px/1.1 "Baloo 2", sans-serif; box-shadow: 0 0 0 3px #fff, var(--shadow); }
.board small { display: block; font: 600 13px/1.2 Nunito, sans-serif; opacity: .8; }
.hero h1 { font-size: clamp(46px, 7.4vw, 88px); color: #fff; text-shadow: 0 .05em 0 var(--navy), 0 .09em .25em rgba(0, 0, 0, .35); transform: rotate(-2deg); transform-origin: left; -webkit-text-stroke: 2px var(--navy); paint-order: stroke fill; }
.hero h1 span { display: block; color: var(--yellow); font-size: 1.12em; }
.lead { max-width: 560px; font-size: 20px; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 26px 0 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.facts li { padding: 8px 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-size: 16px; }
.facts b { color: var(--red); }
.hero-photo { margin: 0; transform: rotate(2deg); }
.hero-photo img { border-radius: var(--radius); border: 8px solid #fff; box-shadow: 0 20px 50px rgba(20, 32, 64, .35); max-height: 640px; width: auto; margin-inline: auto; }
.hero-photo figcaption { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font-weight: 700; color: var(--navy); }
@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-sky::after { background: rgba(255, 248, 234, .75); }
  .hero-photo img { max-height: 480px; }
}

/* the platform signal from the game: red over green */
.signal { display: inline-flex; flex-direction: column; gap: 3px; padding: 4px; border-radius: 8px; background: #2b3138; }
.signal i { width: 12px; height: 12px; border-radius: 50%; background: #5a1d22; }
.signal i + i { background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ---------------------------------------------------------------- sections */
.section { padding: 84px 0; }
.kicker { display: inline-block; margin-bottom: 10px; padding: 4px 14px; border-radius: 999px; background: var(--yellow); color: var(--navy); font: 800 15px/1.4 Nunito, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.section-lead { max-width: 760px; font-size: 20px; color: var(--muted); }

/* the track along the top of every section: rails on sleepers */
.section + .section { position: relative; }
.section + .section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 16px; background:
  linear-gradient(#8c8f96, #8c8f96) 0 3px / 100% 3px no-repeat,
  linear-gradient(#8c8f96, #8c8f96) 0 10px / 100% 3px no-repeat,
  repeating-linear-gradient(90deg, #7a5532 0 10px, transparent 10px 34px); opacity: .55; }

/* ---------------------------------------------------------------- steps (station stops on a line) */
.steps-section { background: #fff; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0; margin: 40px 0 48px; list-style: none; }
.steps::before { content: ""; position: absolute; top: 30px; left: 12%; right: 12%; height: 8px; border-radius: 4px; background: var(--navy); }
.steps li { position: relative; padding: 0 8px; text-align: center; }
.step-number { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--yellow); color: var(--navy); border: 6px solid var(--navy); font: 800 28px/1 "Baloo 2", sans-serif; }
.steps p { color: var(--muted); font-size: 17px; }
.story { margin: 0; }
.story img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.story figcaption { margin-top: 12px; text-align: center; font-weight: 700; color: var(--navy); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .steps::before { top: 0; bottom: 0; left: 30px; right: auto; width: 8px; height: auto; }
  .steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; text-align: left; padding: 0 0 18px; }
  .step-number { grid-row: span 2; margin: 0; }
}

/* ---------------------------------------------------------------- characters (photos pinned to a board) */
.characters-section { background: linear-gradient(180deg, var(--sky-light), var(--cream)); }
.characters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.card-photo { margin: 0; padding: 12px 12px 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); border: 4px solid var(--orange); }
.card-photo img { border-radius: 10px; width: 100%; }
.card-photo figcaption { margin-top: 12px; text-align: center; color: var(--muted); }
.card-photo b { display: block; color: var(--navy); font: 800 21px/1.2 "Baloo 2", sans-serif; }
.tilt-left { transform: rotate(-2.5deg); }
.tilt-right { transform: rotate(2.5deg); }
@media (max-width: 900px) { .characters { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ---------------------------------------------------------------- features */
.features-section { background: var(--grass); background-image: radial-gradient(rgba(255, 255, 255, .08) 2px, transparent 2px); background-size: 26px 26px; }
.features-section h2 { color: #fff; text-shadow: 0 3px 0 var(--navy); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.feature { overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature h3 { margin: 18px 22px 8px; }
.feature p { margin: 0 22px 22px; color: var(--muted); font-size: 17px; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- reel (9:16, Harry meets his game) */
.reel-section { background: linear-gradient(180deg, var(--sand), var(--cream)); }
.reel-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center; }
.reel { overflow: hidden; border-radius: 28px; border: 6px solid var(--navy); box-shadow: 0 20px 50px rgba(20, 32, 64, .35); background: #000; transform: rotate(1.5deg); }
.reel video { width: 100%; aspect-ratio: 9 / 16; }
@media (max-width: 900px) { .reel-grid { grid-template-columns: 1fr; } .reel { max-width: 340px; margin: 0 auto; } }

/* ---------------------------------------------------------------- film */
.film-section { background: var(--navy); color: #fff; }
.film-section h2 { color: #fff; }
.film { overflow: hidden; margin-top: 28px; border-radius: var(--radius); border: 6px solid var(--yellow); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); background: #000; }
.film video { width: 100%; }
.note { margin-top: 14px; opacity: .8; }

/* ---------------------------------------------------------------- safety */
.safety { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0; margin: 36px 0 0; list-style: none; }
.safety li { padding: 26px 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border-top: 8px solid var(--green); }
.safety p { color: var(--muted); font-size: 17px; margin: 0; }
.badge { display: block; margin-bottom: 10px; font-size: 38px; }
@media (max-width: 1000px) { .safety { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .safety { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- price (a cardboard railway ticket) */
.price-section { background: linear-gradient(180deg, var(--cream), var(--sand)); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ticket { position: relative; padding: 26px 30px 22px; border-radius: 16px; background: #fbe9a8; color: var(--navy); box-shadow: var(--shadow); transform: rotate(-2deg);
  -webkit-mask: radial-gradient(circle 14px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 14px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.ticket-head { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 3px dashed rgba(29, 43, 83, .35); font: 800 18px/1 "Baloo 2", sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.ticket-price { margin: 14px 0 6px; font: 800 72px/1 "Baloo 2", sans-serif; color: var(--red); }
.ticket ul { margin: 0 0 14px; padding-left: 22px; }
.ticket li { margin-bottom: 6px; }
.ticket-foot { margin: 0; padding-top: 10px; border-top: 3px dashed rgba(29, 43, 83, .35); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- install */
.install-section { background: #fff; }
.systems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 32px 0; }
.system { padding: 22px; border-radius: var(--radius); background: var(--cream); border: 3px solid; }
.system h3 { display: flex; align-items: center; gap: 10px; }
.system h3::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; }
.system p { margin: 0; font-size: 16px; color: var(--muted); }
.system.ok { border-color: var(--green); }
.system.ok h3::before { background: var(--green); box-shadow: 0 0 10px var(--green); }
.system.warn { border-color: var(--orange); }
.system.warn h3::before { background: var(--orange); }
.system.no { border-color: var(--red); }
.system.no h3::before { background: var(--red); }
@media (max-width: 1000px) { .systems { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .systems { grid-template-columns: 1fr; } }
.install-steps { counter-reset: step; padding: 0; margin: 0 0 32px; list-style: none; }
.install-steps li { position: relative; padding: 14px 0 14px 64px; border-bottom: 2px dashed #e2e6f0; }
.install-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--yellow); font: 800 22px/1 "Baloo 2", sans-serif; }

/* ---------------------------------------------------------------- accordions */
.accordion { display: grid; gap: 12px; }
.accordion details { border-radius: 16px; background: var(--cream); border: 2px solid #e8dcc0; }
.accordion summary { cursor: pointer; padding: 16px 20px; font: 700 20px/1.3 "Baloo 2", sans-serif; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); font-size: 24px; line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion details p { margin: 0; padding: 0 20px 16px; color: var(--muted); }
.faq-section { background: linear-gradient(180deg, var(--sky-light), var(--cream)); }
.faq-section .accordion details { background: #fff; }

/* ---------------------------------------------------------------- order */
.order-section { background: var(--navy); color: #fff; overflow: hidden; }
.order-section h2 { color: #fff; }
.order-section .section-lead { color: #dfe5f5; }
.order { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; }
.order img { filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .4)); }
.contact { display: inline-block; padding: 14px 22px; border-radius: 16px; background: #fff; color: var(--navy); font: 800 22px/1.3 "Baloo 2", sans-serif; }
@media (max-width: 760px) { .order { grid-template-columns: 1fr; text-align: center; } .order img { width: 180px; margin: 0 auto; } }

/* ---------------------------------------------------------------- footer */
.footer { padding: 28px 0; background: var(--navy-deep); color: #c4cbe0; font-size: 15px; border-top: 4px solid var(--yellow); }
.footer p { margin: 0 0 6px; }
.footer b { color: #fff; }
.footer a { color: var(--yellow); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
