/* Pro Line Snow Sports School - site styles
   One font (Manrope, Cyrillic + Latin), no framework, mobile first. */

:root {
  /* Pro Line brand: orange #F68B1E and near-black #231F20, read from the logo vectors. */
  --ink: #231f20;
  --ink-soft: #57514f;
  --paper: #ffffff;
  --paper-soft: #f6f3ef;
  --line: #e5e0da;
  --snow: #231f20;
  --snow-deep: #151213;
  --accent: #f68b1e;
  --accent-ink: #b45f06;
  --max: 1120px;
  --gutter: 20px;
  --radius: 12px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section.soft { background: var(--paper-soft); }
.section.dark { background: var(--snow); color: #f2f2f2; }
.section.dark .lead { color: #cfc8c2; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
  margin-bottom: 12px;
  font-weight: 700;
}
.dark .eyebrow { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--snow-deep);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); background: #ff9f3d; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.block { width: 100%; text-align: center; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(35, 31, 32, 0.96);
  backdrop-filter: blur(8px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-weight: 800; letter-spacing: 0.08em; text-decoration: none; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }
.nav { display: none; gap: 24px; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: 0.9; }
.nav a:hover { opacity: 1; }
.lang { font-size: 0.85rem; font-weight: 700; text-decoration: none; opacity: 0.8; padding: 6px 10px; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; }
.nav-toggle { display: inline-flex; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; padding: 4px; }
.nav.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--snow); padding: 20px var(--gutter) 28px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: flex-end;
  color: #fff;
  background: var(--snow-deep);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,18,19,0.15) 0%, rgba(21,18,19,0.55) 55%, rgba(21,18,19,0.92) 100%);
}
.hero .wrap { position: relative; padding-top: 120px; padding-bottom: 72px; }
.hero h1 { max-width: 16ch; }
.hero .lead { color: #e6e0da; max-width: 52ch; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero .note { font-size: 0.9rem; opacity: 0.75; margin-top: 18px; }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.dark .card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.card h3 { margin-top: 0; }
.card ul { padding-left: 18px; margin: 0 0 16px; }
.card li { margin-bottom: 6px; }
.price { font-weight: 800; font-size: 1.1rem; color: var(--accent-ink); }
.dark .price { color: var(--accent); }
.who { font-size: 0.9rem; color: var(--ink-soft); }
.dark .who { color: #cfc8c2; }

/* About */
.about { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: 1.1fr 1fr; } }
.about figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-soft); aspect-ratio: 4 / 5; }
.about figure img { width: 100%; height: 100%; object-fit: cover; }

/* Proof */
.proof { display: grid; gap: 16px; }
@media (min-width: 700px) { .proof { grid-template-columns: repeat(4, 1fr); } }
.proof .stat { padding: 20px; border-left: 3px solid var(--accent); }
.proof .stat strong { display: block; font-size: 1.6rem; line-height: 1.1; margin-bottom: 4px; }
.proof .stat span { font-size: 0.95rem; color: var(--ink-soft); }
.dark .proof .stat span { color: #cfc8c2; }

/* Day timeline */
.day { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 30px 44px; }
@media (min-width: 760px) { .day { grid-template-columns: repeat(3, 1fr); } }
.day li { padding-top: 18px; border-top: 2px solid var(--line); }
.day time { display: block; font-weight: 800; font-size: 1.3rem; line-height: 1.2; margin-bottom: 8px; color: var(--accent-ink); }
.day p { margin: 0; font-size: 1rem; max-width: 36ch; }

/* Testimonials */
.quotes { display: grid; gap: 20px; }
@media (min-width: 760px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.quote p { font-size: 1.05rem; margin-bottom: 14px; }
.quote footer { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--ink-soft); }
.quote footer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--paper-soft); }

/* Not for / steps */
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.plain li { padding-left: 28px; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 2px; background: var(--accent); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; padding: 24px; border-radius: var(--radius); background: var(--paper-soft); }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--snow); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps h3 { font-size: 1.05rem; }
.steps p { margin: 0; font-size: 0.95rem; }

/* Form */
.apply { display: grid; gap: 40px; }
@media (min-width: 900px) { .apply { grid-template-columns: 1.2fr 0.8fr; } }
.form { display: grid; gap: 16px; }
.form .row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field.consent { grid-template-columns: auto 1fr; align-items: start; font-size: 0.9rem; }
.field.consent input { width: 18px; height: 18px; margin-top: 3px; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form .error { color: #b3261e; font-size: 0.9rem; display: none; }
.form .error.show { display: block; }
.form-done { display: none; padding: 28px; border-radius: var(--radius); background: var(--paper-soft); }
.form-done.show { display: block; }
.contact h3 { margin-top: 0; }
.contact .buttons { display: grid; gap: 12px; margin: 16px 0 24px; }
.contact address { font-style: normal; color: var(--ink-soft); font-size: 0.95rem; }
.contact address a { color: var(--ink); }

/* Footer */
.footer { background: var(--snow-deep); color: #b9b1ab; font-size: 0.9rem; padding: 40px 0; }
.footer .wrap { display: grid; gap: 16px; }
.footer a { color: #e6e0da; }
.foot-logo { display: inline-block; }
.foot-logo img { display: block; height: 72px; width: auto; }
@media (min-width: 760px) { .footer .wrap { grid-template-columns: auto 1fr auto; gap: 16px 36px; align-items: center; } }

/* Mobile sticky apply */
.sticky-apply {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter);
  background: rgba(35,31,32,0.96);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: center;
}
.sticky-apply .btn { width: 100%; max-width: 420px; text-align: center; }
@media (min-width: 900px) { .sticky-apply { display: none; } }
body.has-sticky { padding-bottom: 72px; }

/* Consent bar */
.consent-bar {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 84px; z-index: 60;
  max-width: 560px; margin: 0 auto;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  display: none; gap: 12px;
  font-size: 0.9rem;
}
.consent-bar.show { display: grid; }
.consent-bar .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-bar .btn { padding: 10px 18px; font-size: 0.9rem; }
@media (min-width: 900px) { .consent-bar { bottom: 24px; } }

/* Legal page */
.legal { max-width: 72ch; padding: 48px var(--gutter) 80px; margin: 0 auto; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }

/* Team booking page */
.nav a.active { color: var(--accent); }
.page-intro { padding-top: 56px; }
.page-intro h1 { max-width: 20ch; }
.page-intro .plain { margin-top: 24px; max-width: 60ch; }
.prices { width: 100%; border-collapse: collapse; margin: 24px 0 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prices th, .prices td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prices th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); background: var(--paper-soft); }
.prices td:not(:first-child) { font-weight: 700; }
.prices tr:last-child td { border-bottom: 0; }
@media (max-width: 480px) { .prices th, .prices td { padding: 12px 10px; font-size: 0.95rem; } }
.estimate { padding: 20px 22px; border-radius: var(--radius); background: var(--snow); color: #fff; border-left: 4px solid var(--accent); }
.estimate .est-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 18px; }
.estimate .est-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #cfc8c2; }
.estimate .est-sum { font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--accent); white-space: nowrap; }
.estimate .est-sum b { font: inherit; }
.estimate .est-note { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.9rem; line-height: 1.5; color: #cfc8c2; }
.estimate .est-note b { font-weight: 700; color: #fff; }

/* Pro Line home page */
.hero-badge { width: 132px; height: 132px; margin-bottom: 24px; }
@media (max-width: 600px) { .hero-badge { width: 96px; height: 96px; margin-bottom: 18px; } }
.card .more { font-weight: 700; color: var(--accent-ink); text-decoration: none; }
.card .more::after { content: " \2192"; }
.card .more:hover { text-decoration: underline; }
.footer strong { color: #fff; }
.contact .buttons .btn { text-align: center; }

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

/* ---------- November 2026: seven-page site ---------- */

/* Top bar with phone, WhatsApp, Viber, hours and language */
.topbar { background: var(--snow-deep); color: #cfc8c2; font-size: 0.85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--accent); }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 16px; align-items: center; }
.topbar .tb-hours { display: none; }
@media (min-width: 760px) { .topbar .tb-hours { display: inline; } }

/* Six menu items plus the contact block need room: keep the hamburger up to 1240px */
@media (min-width: 900px) and (max-width: 1239px) {
  .nav { display: none; }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
}

/* Price tables */
.table-scroll { overflow-x: auto; margin: 20px 0 12px; }
.table-scroll .prices { margin: 0; min-width: 420px; }
.price-note { font-size: 0.92rem; color: var(--ink-soft); max-width: 75ch; }
.from { font-weight: 800; color: var(--accent-ink); white-space: nowrap; }
.dark .from, .hero .from { color: var(--accent); }
.price-block { margin-top: 48px; }
.price-block:first-of-type { margin-top: 24px; }
.price-block h3 { font-size: 1.3rem; margin-bottom: 4px; }

/* Level guide */
.levels { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 760px) { .levels { grid-template-columns: repeat(4, 1fr); } }
.level { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.level h3 { font-size: 1.02rem; margin-bottom: 6px; }
.level p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-ink); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

/* Generic two-column split and checkbox rows */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.field.check { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.field.check input { width: 18px; height: 18px; }
.field.check label { font-weight: 600; }
.cta-strip { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 20px; }
.cta-note { margin: 16px 0 0; font-size: 0.98rem; color: var(--ink-soft); }
.cta-note a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cta-note a:hover { color: var(--accent-ink); }
.contact .buttons { margin-bottom: 16px; }
.contact .cta-note { margin-top: 0; line-height: 1.9; }
.hours { font-weight: 700; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.info-list li { padding-left: 0; }
.info-list strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }

/* BOBO Private: the same palette, calmer. Orange stays on buttons only. */
.premium .eyebrow { color: var(--ink-soft); }
.premium .dark .eyebrow, .premium .hero .eyebrow { color: #e6e0da; }
.premium .proof .stat { border-left-color: #fff; }
.premium .price { color: var(--ink); }
.premium .day time { color: var(--ink); }
.premium .plain li::before { background: #fff; }
.premium .steps li::before { background: var(--ink); }

@media print {
  .topbar, .header, .footer, .sticky-apply, .consent-bar, .hero-media, .cta-strip { display: none !important; }
  .section { padding: 16px 0; }
  body { font-size: 12pt; }
}

/* ---------- Version 1: real photos, Google rating, the Bobo tale ---------- */

.hero-media img.photo { object-position: center 22%; }
.hero.short { min-height: 78vh; }

/* Home hero on wide screens: the text sits in a narrow column on the left and the picture is
   enlarged and anchored left, so the rider stays in clear view to the right of the text. */
@media (min-width: 900px) {
  .hero.side { align-items: center; }
  .hero.side .wrap { width: 100%; max-width: none; margin: 0; padding-left: 4vw; padding-right: 0; }
  .hero.side .wrap > * { max-width: min(520px, 38vw); }
  .hero.side .hero-media img.photo { width: 130%; max-width: none; object-position: left 10%; }
  /* the Ride with BOBO picture has its rider nearer the middle: enlarge more so he clears the text */
  .hero.side.short .hero-media img.photo { width: 150%; object-position: left 24%; }
  .hero.side .hero-media::after {
    background:
      linear-gradient(90deg, rgba(21,18,19,0.80) 0%, rgba(21,18,19,0.58) 32%, rgba(21,18,19,0) 56%),
      linear-gradient(180deg, rgba(21,18,19,0.10) 0%, rgba(21,18,19,0) 45%, rgba(21,18,19,0.50) 100%);
  }
}

/* Photo frames on the home page */
.frames { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
.frames figure { margin: 0; overflow: hidden; border-radius: 10px; background: var(--paper-soft); aspect-ratio: 4 / 3; }
.frames img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.frames figure:hover img { transform: scale(1.04); }
@media (min-width: 760px) {
  .frames { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; }
  .frames figure { aspect-ratio: auto; }
  .frames .wide { grid-column: span 2; }
  .frames .tall { grid-row: span 2; }
  .frames .big { grid-column: span 2; grid-row: span 2; }
}
@media (min-width: 1100px) { .frames { grid-auto-rows: 205px; } }

/* A photo beside a page intro */
.intro-split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .intro-split { grid-template-columns: 1.1fr 0.9fr; } }
.intro-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-soft); }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Google rating */
.rating { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; text-decoration: none; color: inherit; font-weight: 700; }
.rating:hover { border-color: var(--accent); }
.rating .stars { color: var(--accent); letter-spacing: 2px; }
.rating small { font-weight: 400; opacity: 0.8; }

/* The tale */
.tale { background: var(--snow); color: #f2f2f2; padding: 80px 0 32px; }
.tale .eyebrow { color: #e6e0da; }
.tale-head { max-width: 62ch; margin-bottom: 40px; }
.tale-head .lead { color: #cfc8c2; }
.chapter { display: grid; gap: 24px; padding: 52px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); align-items: center; }
@media (min-width: 900px) {
  .chapter { grid-template-columns: 1fr 1fr; gap: 64px; }
  .chapter.flip .chapter-media { order: -1; }
  .chapter.text-only { grid-template-columns: minmax(0, 760px); }
}
.chapter .year { display: block; font-size: clamp(3.4rem, 9vw, 6.6rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.03em; color: #fff; margin-bottom: 14px; }
.chapter h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin-bottom: 12px; }
.chapter p { color: #cfc8c2; max-width: 54ch; }
.chapter blockquote { margin: 22px 0 0; padding-left: 18px; border-left: 3px solid var(--accent); font-size: 1.22rem; font-weight: 700; color: #fff; line-height: 1.35; max-width: 30ch; }
.chapter-media { margin: 0; display: grid; gap: 10px; }
.chapter-media img { width: 100%; border-radius: 10px; }
.chapter-media.two { grid-template-columns: 1fr 1fr; }
.chapter-media.two img { height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.chapter-media figcaption { grid-column: 1 / -1; font-size: 0.84rem; color: #9c948e; }
.tale-end { text-align: center; padding: 72px 0 40px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.tale-end blockquote { margin: 0 auto 28px; font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.2; max-width: 22ch; }
.tale-end p { color: #cfc8c2; }
.chapter-media .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chapter-media .pair img { height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.chapter-media .pair.tall img { aspect-ratio: 3 / 4; }
.chapter-media .pair.three { grid-template-columns: repeat(3, 1fr); }
.chapter-media img.focus-left { object-position: 25% 50%; }

/* Photo viewer: click a picture on the home page or in the story to see it whole */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
html:has(dialog.lightbox[open]) { overflow: hidden; }
.lightbox { border: 0; margin: 0; padding: 60px 16px 24px; box-sizing: border-box; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(21, 18, 19, 0.95); color: #f2f2f2; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(21, 18, 19, 0.6); }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-width: 100%; }
.lightbox img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); border-radius: 8px; }
.lightbox figcaption { font-size: 0.88rem; color: #cfc8c2; text-align: center; }
.lightbox button { position: absolute; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lightbox button:hover, .lightbox button:focus-visible { background: var(--accent); color: var(--ink); }
.lb-close { top: 10px; right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* BOBO Private programme cards: icon badge in the logo colours, check list, price and enquiry button */
.card.program { display: flex; flex-direction: column; border-top: 4px solid var(--accent); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card.program:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(35, 31, 32, 0.14); }
.program .ico { width: 58px; height: 58px; border-radius: 16px; background: var(--snow); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.program .ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.program h3 { font-size: 1.4rem; margin-bottom: 6px; }
.program ul { list-style: none; padding: 0; margin: 14px 0 20px; flex: 1; }
.program li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.program li::before { content: ""; position: absolute; left: 4px; top: 0.42em; width: 11px; height: 6px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.program .price { font-size: 1.3rem; margin: 0 0 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.program .btn { margin-top: auto; }

/* Messaging links as round icons: WhatsApp and Viber */
.chat-icons { display: inline-flex; gap: 10px; align-items: center; vertical-align: middle; }
.chat-icons a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.chat-icons a:hover, .chat-icons a:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28); }
.chat-icons svg { width: 22px; height: 22px; }
.chat-icons .s { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-icons .s.t { stroke-width: 1.4; }
.chat-icons .f { fill: currentColor; stroke: none; }
.chat-icons .wa { background: #128c7e; }
.chat-icons .vb { background: #7360f2; }
.chat-icons .tg { background: #1c8ccd; }
.cta-note .chat-icons { margin-left: 6px; }
.contact .cta-note:has(.chat-icons) { margin-bottom: 14px; }

/* Header: one sticky bar with logo, menu, booking button, phone with hours, messaging icons and language */
:root { --head-h: 68px; }
html { scroll-padding-top: calc(var(--head-h) + 12px); }
.header .wrap { max-width: 1480px; height: var(--head-h); justify-content: flex-start; gap: 16px; }
.brand img { height: 50px; }
.nav.open { top: var(--head-h); }
.head-contact { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.head-phone { display: none; text-decoration: none; text-align: right; line-height: 1.2; }
.head-phone strong { display: block; font-size: 0.98rem; font-weight: 800; white-space: nowrap; }
.head-phone small { display: block; font-size: 0.72rem; color: #cfc8c2; white-space: nowrap; }
.head-phone:hover strong { color: var(--accent); }
.header .chat-icons { gap: 8px; }
.header .chat-icons a { width: 34px; height: 34px; }
.header .chat-icons svg { width: 19px; height: 19px; }
.header .lang { display: none; opacity: 1; }
.header .lang:hover { border-color: var(--accent); color: var(--accent); }
.nav-extra { display: none; }
.nav-extra a, .nav-extra span { font-size: 0.95rem; }
.nav-extra span { color: #cfc8c2; }
@media (max-width: 759px) {
  .nav.open .nav-extra { display: grid; gap: 10px; width: 100%; justify-items: center; text-align: center; margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
}
@media (min-width: 760px) {
  .head-phone { display: block; }
  .header .lang { display: inline-block; }
}
@media (min-width: 1240px) {
  :root { --head-h: 84px; }
  .brand img { height: 62px; }
  .nav { gap: 18px; margin-left: auto; }
  .nav a { font-size: 0.92rem; }
  .head-contact { margin-left: 2px; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
}
@media (min-width: 1400px) {
  .header .wrap { gap: 22px; }
  .nav { gap: 26px; }
  .nav a { font-size: 0.98rem; }
  .head-contact { gap: 16px; padding-left: 22px; }
}

/* Hero, stacked: the picture is shown clean on top, the heading, text and buttons sit below it on the dark band */
.hero.stack, .hero.stack.short { display: block; min-height: 0; background: var(--snow); }
/* tall enough on wide, short screens that the rider is never cut: at least 34% of the width, at most 68% of the height */
.hero.stack .hero-media { position: relative; inset: auto; height: clamp(280px, max(56vh, 34vw), 68vh); }
.hero.stack .hero-media img.photo, .hero.stack .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 40% 12%; }
.hero.stack.short .hero-media img.photo { object-position: 50% 31%; }
/* Ride with BOBO: the rider fills the frame, so the fade to dark starts lower and keeps the board clear */
.hero.stack.short .hero-media::after { background: linear-gradient(180deg, rgba(35, 31, 32, 0) 86%, rgba(35, 31, 32, 1) 100%); }
/* On tablets and wider the picture keeps its own 3:2 shape (rider and box both in view), up to the height of the screen */
@media (min-width: 760px) {
  .hero.stack.short .hero-media { height: min(66.7vw, calc(100vh - var(--head-h, 72px))); }
  .hero.stack.short .hero-media img.photo { object-position: 50% 44%; }
}
.hero.stack .hero-media::after { background: linear-gradient(180deg, rgba(35, 31, 32, 0) 70%, rgba(35, 31, 32, 1) 100%); }
.hero.stack .wrap { padding-top: 18px; padding-bottom: 40px; }
.hero.stack h1 { max-width: 18ch; margin-bottom: 0.35em; }
.hero.stack .lead { margin-top: 0; }
@media (min-width: 900px) {
  .hero.stack .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; padding-top: 30px; padding-bottom: 52px; }
  .hero.stack h1 { margin-bottom: 0; }
  .hero.stack .actions { margin-top: 20px; }
}

/* Quick links under a page intro, e.g. the three price sections */
.jump { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.jump a { text-decoration: none; font-weight: 700; padding: 8px 16px; border-radius: 999px; background: var(--paper-soft); border: 1px solid var(--line); color: var(--ink); }
.jump a:hover { border-color: var(--accent); color: var(--accent-ink); }

/* Contact page: the "Where we are" card as rows with icons in the logo colours */
.card.place { padding: 28px; align-self: start; }
.place h3 { margin-bottom: 6px; }
.place .info-list { gap: 0; }
.place .info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.place .info-list li:last-child { border-bottom: 0; }
.place .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--snow); color: var(--accent); display: grid; place-items: center; }
.place .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.place .info-list strong { font-size: 0.75rem; margin-bottom: 2px; }
.place-map { margin: 12px 0 0; }
.place-map .btn { display: block; text-align: center; }

/* The Cloudflare check, a little smaller than its default 300 x 65 */
#turnstile { transform: scale(0.8); transform-origin: left top; height: 54px; }

/* Lessons page intro: the note under the two lines */
.page-intro .plain + .price-note { margin: 14px 0 0; }

/* Google map on the contact page. Until it is loaded the box shows a short note and two buttons. */
.map { position: relative; margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper-soft); aspect-ratio: 4 / 3; }
@media (min-width: 760px) { .map { aspect-ratio: 16 / 7; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-ask { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 20px; text-align: center; color: var(--ink-soft); }
.map-ask p { margin: 0; }
.map-ask .cta-strip { justify-content: center; margin-top: 14px; }

/* Cards in a row: same height, link pinned to the bottom. A card next to a text column takes only the height it needs */
.grid > .card { display: flex; flex-direction: column; }
.grid > .card > ul { flex: 1; }
.grid > .card > .more { margin-top: auto; }
.split > .card { align-self: start; }

/* Ride with BOBO: one programme card next to its heading */
.split > .card.program { align-self: start; }

/* About page: heading, then a wide picture, then the text */
.intro-photo.wide { margin: 22px 0 30px; }
@media (min-width: 760px) {
  .intro-photo.wide { aspect-ratio: 21 / 9; }
  .intro-photo.wide img { object-position: 50% 72%; }
}
.page-intro h1.one-line { max-width: none; }

/* About page intro: two equal columns of text under the picture, edges in line with it */
.intro-cols { display: grid; gap: 16px 44px; }
.intro-cols p { margin: 0; font-size: 1.06rem; line-height: 1.65; color: var(--ink-soft); }
@media (min-width: 760px) { .intro-cols { grid-template-columns: 1fr 1fr; } }
.intro-close { margin: 26px 0 0; font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.intro-close + .cta-strip { margin-top: 16px; }

/* Thank-you box after a form: reminder to look for the confirmation email, also in Spam */
.form-done .mail-note { margin: 14px 0 0; padding: 12px 16px; border-left: 4px solid var(--accent); border-radius: 8px; background: var(--paper); font-size: 0.96rem; }
