/* self-hosted fonts (Poppins, Caveat) */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/caveat-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;
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/caveat-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;
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/caveat-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;
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/caveat-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;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/poppins-latin-ext-400.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;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/poppins-latin-400.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;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/poppins-latin-ext-600.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;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/poppins-latin-600.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;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/poppins-latin-ext-800.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;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/poppins-latin-800.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;
}

:root {
  --navy: #0b3d73;
  --blue: #1b8fd6;
  --light: #e8f4fb;
  --yellow: #f8c92e;
  --text: #1c2a39;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.1; }
h2 { color: var(--navy); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; }
h3 { font-size: 1rem; color: var(--navy); }

.script { font-family: "Caveat", cursive; font-weight: 700; }
h2.script { text-transform: none; font-size: 2.2rem; }

section { padding: 3rem 1rem; max-width: 1200px; margin: 0 auto; }

/* buttons & stickers */
.btn {
  display: inline-block;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .85rem;
  border: 2px solid var(--navy);
  transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--text); }

.sticker {
  display: inline-block;
  background: var(--yellow);
  padding: .3rem 1.2rem;
  transform: rotate(-3deg);
  color: var(--text);
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 1rem;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.logo { display: flex; align-items: center; gap: .5rem; }
.logo img { width: auto; height: 56px; }
.logo-text { font-weight: 800; font-size: 1.35rem; line-height: 1.05; letter-spacing: .02em; color: var(--text); }
.nav { display: flex; align-items: center; gap: .9rem; font-size: .75rem; font-weight: 600; }
.nav a:hover, .nav a[aria-current] { color: var(--blue); }
.menu-toggle, .burger { display: none; }

/* main banner + intro */
.main-banner { max-width: none; padding: 0; }
.main-banner img { width: 100%; height: auto; }
.intro {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding-top: 2rem; padding-bottom: 1rem;
}
.intro h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: var(--navy); margin: 0; }
.intro h1 .script { display: block; font-size: .6em; font-weight: 700; }
.intro h1 em { color: var(--yellow); font-style: italic; }
.intro .lead { font-size: 1.6rem; color: var(--navy); margin: .5rem 0 0; max-width: 22rem; line-height: 1.2; }
.intro-classes { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.intro-classes .btn { padding: 1rem 1.6rem; }
.intro-classes p { flex-basis: 100%; font-size: 1.5rem; margin: 0; color: var(--navy); }

/* facts */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  padding-top: 1rem; padding-bottom: 1rem; text-align: center; color: var(--navy);
}
.facts p { margin: 0; font-size: .9rem; }
.facts strong { display: block; border-bottom: 3px solid var(--yellow); width: fit-content; margin: 0 auto .2rem; }

/* team */
.team { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: stretch; }
.team-text { display: flex; flex-direction: column; }
.team-text p { color: var(--blue); font-weight: 600; margin: 0 0 1rem; }
/* photo fills the space under the heading, so its bottom lines up with the trainer tiles */
.splash { flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; border-radius: var(--radius); }
.trainers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.trainers li { background: #fff; border-radius: var(--radius); box-shadow: 0 4px 14px rgba(0, 0, 0, .1); overflow: hidden; padding-bottom: .8rem; text-align: center; font-size: .85rem; }
.trainers img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: .6rem; }
.trainers b { display: block; color: var(--navy); font-size: 1rem; }
.trainers li { padding-inline: .5rem; padding-top: 0; }
.trainers img { margin-inline: -.5rem; width: calc(100% + 1rem); max-width: none; }

/* cards */
.cards { display: grid; gap: 1.2rem; margin-top: 1rem; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: 0 4px 14px rgba(0, 0, 0, .1); overflow: hidden; padding-bottom: 1rem; }
.card img { width: 100%; height: 160px; object-fit: cover; }
.card h3, .card p, .card cite { margin: .8rem 1rem 0; }
.card p { font-size: .85rem; }
blockquote.card { padding: 3rem 1rem 1.2rem; font-style: italic; position: relative; }
blockquote.card::before { content: "“"; position: absolute; top: .6rem; left: 1rem; font-size: 3.5rem; line-height: 1; color: var(--yellow); font-style: normal; }
cite { display: block; font-size: .8rem; color: var(--navy); font-weight: 600; }

/* choose */
.choose { text-align: center; }
.choose-btns { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }

/* reviews / activities headings */
.reviews > p { color: var(--blue); margin: 0; }

/* footer */
.site-footer { background: var(--navy); color: #fff; text-align: center; padding: 2rem 1rem; font-size: .85rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .script { font-size: 1.6rem; color: var(--yellow); margin: .5rem 0 0; }

/* menu collapses to a burger */
@media (max-width: 1320px) {
  .burger { display: block; width: 44px; height: 44px; cursor: pointer; position: relative; }
  .burger span, .burger span::before, .burger span::after {
    content: ""; position: absolute; left: 10px; width: 24px; height: 3px; background: var(--navy); border-radius: 2px;
  }
  .burger span { top: 20px; }
  .burger span::before { left: 0; top: -8px; }
  .burger span::after { left: 0; top: 8px; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; text-align: center; gap: 0;
    background: #fff; box-shadow: 0 8px 12px rgba(0, 0, 0, .1); padding: .5rem 1rem 1rem;
    font-size: .95rem;
  }
  .nav a { padding: .6rem; }
  .menu-toggle:checked ~ .nav { display: flex; }
}

/* tablet */
@media (max-width: 1000px) {
  .intro { justify-content: center; text-align: center; }
  .intro-classes { justify-content: center; }
  .intro .lead { margin-inline: auto; }
  .team { grid-template-columns: 1fr; text-align: center; }
  .splash { flex: none; aspect-ratio: 3 / 2; max-width: 480px; margin-inline: auto; }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
}

/* phone */
@media (max-width: 640px) {
  section { padding: 2rem 1rem; }
  .facts, .cards.two, .cards.three, .cards.four, .trainers { grid-template-columns: 1fr; }
  .trainers li { padding: 0; }
  .trainers a { display: grid; grid-template-columns: 90px 1fr; align-items: center; text-align: left; gap: .8rem; }
  .trainers img { width: 90px; height: 90px; margin: 0; max-width: none; }
  .card img { height: 180px; }
  h2.script { font-size: 1.8rem; }
}

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

/* legal / text pages */
.legal { max-width: 800px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); text-transform: uppercase; margin-bottom: 1rem; }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; }
.legal .subtitle { color: var(--yellow); font-weight: 800; font-size: 1.3rem; margin: 0; }
.legal ul { padding-left: 1.4rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--blue); text-decoration: underline; }
.downloads { list-style: none; padding: 0; }
.downloads li.empty { color: #6b7a8a; font-style: italic; }
.back { padding: .5rem 1rem; }

/* activity pages + clickable cards */
.activity .activity-photo { width: 100%; border-radius: var(--radius); margin: 0 0 1.5rem; }
.activity .tagline { font-size: 1.8rem; color: var(--navy); line-height: 1.2; margin: 1.5rem 0; }
.activity .emoji-list { list-style: none; padding: 0; }
.activity .cta { text-align: center; margin-top: 2.5rem; }
.activity .cta .btn { color: var(--text); text-decoration: none; }
.card-link { display: block; color: inherit; }
.card-link .card { height: 100%; transition: transform .15s, box-shadow .15s; }
.card-link:hover .card, .card-link:focus-visible .card { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.card .more { color: var(--blue); font-weight: 600; }

/* trainer tiles + pages */
.trainers a { display: block; color: inherit; height: 100%; }
.trainers li { transition: transform .15s, box-shadow .15s; }
.trainers li:hover, .trainers li:focus-within { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.trainers .more { display: block; color: var(--blue); font-weight: 600; margin-top: .3rem; }
.trainer-photo { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 8px 24px rgba(11, 61, 115, .25); margin: 0 0 1rem; }
.trainer .subtitle { margin-bottom: 1.5rem; }

/* gallery */
.gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 4px 14px rgba(0, 0, 0, .1); }

/* price tables */
.legal h3 { margin: 1.5rem 0 .6rem; }
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-table th, .price-table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid #dbe6ee; vertical-align: top; }
.price-table th { background: var(--navy); color: #fff; }
.price-table td:last-child { white-space: nowrap; font-weight: 600; color: var(--navy); }
.price-table small { font-weight: 400; color: #5b6b7b; }
.note { font-size: .85rem; color: #5b6b7b; }

.gallery-page { max-width: 1200px; }
.cards.photo-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.photo-grid a { display: block; }
.photo-grid img { height: 200px; transition: transform .15s, box-shadow .15s; }
.photo-grid a:hover img, .photo-grid a:focus-visible img { transform: scale(1.02); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
@media (max-width: 640px) {
  .cards.photo-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .photo-grid img { height: 130px; }
}

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; border-radius: 50%; width: 3rem; height: 3rem; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, .35); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* regulamin: numbered clauses with a) b) sub-lists */
@counter-style alpha-paren { system: extends lower-alpha; suffix: ") "; }
.clauses > li { margin-bottom: .7rem; }
.clauses ol.alpha { list-style-type: alpha-paren; margin-top: .4rem; }

/* keep button text readable inside text pages */
.activity .cta .btn-navy { color: #fff; }
.activity .cta .btn-outline { color: var(--navy); }

.activity-photo.flyer { margin-top: 2rem; }
