* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --border: #262626;
  --todo-bg: #2a2210;
  --todo-text: #d8b44a;
  --cta: #eb6200;
  --cta-dark: #c25000;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img, video {
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 400;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* placeholdery do uzupełnienia — celowo widoczne */
.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  border-radius: 4px;
  padding: 0 0.3em;
}

/* ===== topbar ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0.75rem 0;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
}

.wordmark img {
  height: 22px;
  width: auto;
  display: block;
}

.footer-brand .wordmark img {
  height: 26px;
}

.topnav {
  display: flex;
  gap: 1.75rem;
}

.topnav a {
  color: #cfcfcf;
  text-decoration: none;
  font-size: 0.9rem;
}

.topnav a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .topnav {
    display: none;
  }
}

/* ===== przyciski ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  text-decoration: none;
  font-weight: 400;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background: var(--cta);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-small {
  padding: 0.35rem 0.8rem;
  font-size: 13px;
  background: var(--cta);
  color: #fff;
}

/* ===== hero ===== */
.hero {
  display: grid;
  /* tekst ma zagwarantowane min. 420px — przy węższych ekranach wideo oddaje miejsce,
     żeby nagłówek nie łamał się na pojedyncze słowa */
  grid-template-columns: minmax(0, 7fr) minmax(420px, 3fr);
  /* pasek statystyk (~65px) ma być widoczny w pierwszym ekranie */
  min-height: calc(100svh - 65px);
}

.hero-media {
  position: relative;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6rem 2.5rem 3.5rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 2.8vw, 2.9rem);
  text-wrap: balance;
}

.hero-sub {
  margin: 1.25rem 0 2rem;
  color: #cfcfcf;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-media {
    height: 55svh;
  }
  .hero-inner {
    padding: 3rem 1.25rem;
  }
}

/* ===== pasek liczb ===== */
.numbers {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.numbers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between;
  padding: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.numbers-row strong {
  color: var(--text);
  margin-right: 0.3em;
}

.numbers-row div {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.numbers-row div:nth-child(2) { transition-delay: 0.1s; }
.numbers-row div:nth-child(3) { transition-delay: 0.2s; }
.numbers-row div:nth-child(4) { transition-delay: 0.3s; }

.numbers.in-view .numbers-row div {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .numbers-row div {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== sekcje ===== */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg);
}

.section-note {
  color: var(--muted);
  margin-top: 1.5rem;
}

/* ===== karty ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
}

.card p {
  color: #cfcfcf;
  font-size: 0.95rem;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.card-link:hover {
  border-color: #555;
}

.card-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* ===== karty planów ===== */
#szkolenia {
  padding: 120px 0;
}

#szkolenia h2 {
  font-size: clamp(2.25rem, 7vw, 72px);
}

#prace h2,
#prowadzacy h2,
#salon h2,
#zapis h2,
#faq h2,
#kontakt h2 {
  font-size: clamp(2rem, 5vw, 56px);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  padding: 1.75rem 1.75rem 32px;
  background: rgba(255, 255, 255, 0.03);
}

.plan-badge {
  position: absolute;
  top: -0.75rem;
  right: 1.25rem;
  background: #fff;
  color: #0a0a0a;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.plan-for {
  color: #cfcfcf;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.plan-price {
  font-size: 1.75rem;
  font-weight: 400;
  margin-top: 1.1rem;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.plan-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.plan hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.plan-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: #cfcfcf;
  font-size: 0.95rem;
}

.plan-list li {
  padding-left: 1.3rem;
  position: relative;
}

.plan-list li::before {
  content: "•";
  position: absolute;
  left: 0.3rem;
  color: var(--muted);
}

.plan-details {
  display: block;
  margin-top: 20px;
  text-align: center;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 400;
}

.plan .btn {
  margin-top: auto;
  text-align: center;
}

/* min. 64px od ostatniego bulletpointa do przycisku CTA */
.plan-list {
  margin-bottom: 64px;
}

.btn-outline {
  border-color: var(--cta);
  color: var(--cta);
}

/* ===== oś czasu ===== */
.timeline {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-width: 34rem;
}

.timeline li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  min-width: 3.5rem;
}

/* ===== galeria ===== */
#prace {
  padding: 120px 0;
  overflow-x: clip;
}

.gallery-split {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: stretch;
}

.gallery-intro {
  display: flex;
  flex-direction: column;
}

.gallery-intro h2 {
  margin-bottom: 0;
}

.gallery-intro p {
  color: var(--muted);
  margin-top: 1rem;
}

.gallery-nav {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 2rem;
}

.g-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--cta);
  background: var(--cta);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.g-btn:hover {
  background: var(--cta-dark);
  border-color: var(--cta-dark);
}

.gallery-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  min-width: 0;
  /* karty wybiegają do prawej krawędzi ekranu zamiast ucinać się na kontenerze */
  margin-right: calc(-1 * ((100vw - min(100vw, 1280px)) / 2 + 1.25rem));
  padding-right: 1.25rem;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 clamp(260px, 30vw, 420px);
  aspect-ratio: 4 / 5;
  border-radius: 0;
  overflow: hidden;
  scroll-snap-align: start;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .gallery-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .gallery-intro p {
    margin-top: 12px;
  }
  .gallery-item {
    flex-basis: 75vw;
  }
}

.placeholder {
  background: repeating-linear-gradient(45deg, #161616, #161616 12px, #1c1c1c 12px, #1c1c1c 24px);
  border: 1px dashed #3a3a3a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
}

/* ===== prowadzący (layout lustrzany do sekcji salonu — media po prawej) ===== */
.trainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

#prowadzacy {
  background: rgba(255, 255, 255, 0.03);
  padding: 120px 0;
}

.trainer-info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.trainer-badge {
  align-self: flex-start;
  background: #fff;
  color: #0a0a0a;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 0;
}

.trainer-bio {
  margin-top: auto;
}

.trainer h2 {
  margin-bottom: 1rem;
}

.trainer p {
  color: var(--muted);
}

.trainer p strong {
  font-weight: 400;
  color: var(--muted);
}

.trainer-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 700px) {
  .trainer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .trainer-photo {
    order: -1;
    max-width: none;
  }
  /* badge pod wideo, 32px odstępu do nagłówka */
  .trainer-badge {
    margin-bottom: 32px;
  }
}

/* ===== salon ===== */
#salon {
  padding: 120px 0;
}

.salon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.salon-video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.salon h2 {
  margin-bottom: 1rem;
}

.salon p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.salon .btn {
  margin-top: 1rem;
}

@media (max-width: 700px) {
  .salon {
    grid-template-columns: 1fr;
  }
}

/* ===== opinie (testimonial z tabami) ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.t-tabs-wrap {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 0;
}

.t-arrow {
  width: 36px;
  height: 36px;
  font-size: 1rem;
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
}

.t-tabs {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.t-tab {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #4a4a4a;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.t-tab.is-active {
  width: 26px;
  height: 6px;
  background: var(--cta);
}

#opinie {
  padding: 120px 0;
}

#opinie {
  background: rgba(255, 255, 255, 0.03);
  padding: 120px 0;
}

.testimonial {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 500px);
  gap: 3rem;
  align-items: stretch;
}

/* kontrolki u góry kolumny, cytat i autor dociągnięte do dołu */
.testimonial-text {
  display: flex;
  flex-direction: column;
}

.testimonial blockquote {
  margin-top: auto;
}

.testimonial[hidden] {
  display: none;
}

.testimonial blockquote {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  font-weight: 400;
}

.testimonial-author {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.testimonial-author strong {
  color: inherit;
  font-weight: 400;
}

.author-sep {
  margin: 0 0.5rem;
}

.testimonial-photo {
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
}

.testimonial-photo img,
.testimonial-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .testimonial {
    grid-template-columns: 1fr minmax(280px, 460px);
  }
}

@media (max-width: 760px) {
  .testimonial {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .testimonial {
    position: relative;
  }
  .testimonial-photo {
    order: -1;
    width: 100%;
    max-width: none;
  }
  .testimonial-text {
    padding-top: 24px;
    min-height: 0;
  }
  /* kontrolki nakładają się na asset: strzałki na bokach, kropki na górze */
  .testimonial-text .t-tabs-wrap {
    display: contents;
  }
  /* asset jest kwadratem o szerokości kontenera (100vw - 2 × 1.25rem) */
  .t-arrow {
    position: absolute;
    top: calc((100vw - 2.5rem) / 2);
    transform: translateY(-50%);
    z-index: 2;
  }
  .t-prev { left: 0.6rem; }
  .t-next { right: 0.6rem; }
  .t-tabs {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(2px);
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
  }
  #opinie {
    padding-bottom: 120px;
  }
  .testimonial blockquote {
    margin-top: 0;
  }
}

/* ===== kroki — timeline wypełniany scrollem ===== */
#zapis {
  background: rgba(255, 255, 255, 0.03);
  padding: 120px 0;
}

#zapis .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

#zapis h2 {
  font-size: clamp(2rem, 5vw, 56px);
}

.steps-timeline {
  list-style: none;
  position: relative;
  margin: 0;
  display: grid;
  gap: 3.5rem;
  --tl-progress: 0;
}

@media (max-width: 800px) {
  #zapis .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .steps-timeline li {
    grid-template-columns: 52px 1fr;
    gap: 1.25rem;
  }
  .step-dot {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }
  .steps-timeline::before,
  .steps-timeline::after {
    left: 25px;
  }
}

/* tor linii (środek kółka 72px = 36px) */
.steps-timeline::before {
  content: "";
  position: absolute;
  left: 35px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--border);
}

/* wypełnienie sterowane scrollem */
.steps-timeline::after {
  content: "";
  position: absolute;
  left: 35px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--cta);
  transform: scaleY(var(--tl-progress));
  transform-origin: top;
}

.steps-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 2rem;
  align-items: start;
}

/* wygaszamy tylko tekst — kółko zostaje kryjące, żeby linia nie prześwitywała pod cyframi */
.steps-timeline li > div {
  opacity: 0.45;
  transition: opacity 0.35s ease;
}

.steps-timeline li.done > div {
  opacity: 1;
}

.step-dot {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #2c2c2c;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 1.6rem;
  position: relative;
  z-index: 1;
  transition: background 0.35s ease, color 0.35s ease;
}

.steps-timeline li.done .step-dot {
  background: var(--cta);
  color: #fff;
}

.steps-timeline h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.75rem);
  margin: 0.5rem 0 0.4rem;
}

.steps-timeline p {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
}

@media (prefers-reduced-motion: reduce) {
  .steps-timeline {
    --tl-progress: 1;
  }
  .steps-timeline li {
    opacity: 1;
  }
  .steps-timeline li .step-dot {
    background: var(--cta);
    color: #fff;
  }
}

.g-btn svg {
  width: 1.1em;
  height: 1.1em;
  display: block;
  margin: 0 auto;
}

/* ===== FAQ ===== */
#faq {
  background: var(--bg);
  padding: 120px 0;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  font-weight: 400;
  list-style: none;
  position: relative;
  padding-right: 2rem;
  min-height: 96px;
  display: flex;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin-top: 0.6rem;
  padding-bottom: 36px;
  color: #cfcfcf;
}

/* ===== formularz ===== */
#kontakt {
  background: rgba(255, 255, 255, 0.03);
  padding: 120px 0;
}

.form-wrap {
  max-width: 34rem;
}

form {
  display: grid;
  gap: 20px;
}

form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

input[type="text"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid #777;
  outline-offset: 1px;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
  align-items: start;
}

.consent input {
  margin-top: 0.25rem;
}

.consent a {
  color: var(--text);
}

form .btn {
  border: none;
  width: 100%;
}

.form-status {
  min-height: 1.5rem;
  font-size: 0.95rem;
}

.form-status.ok {
  color: #7fd48a;
}

.form-status.error {
  color: #e08a8a;
}

.form-alt {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-alt a {
  color: #fff;
}

/* ===== stopka ===== */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 5rem;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 4rem;
}

.footer-brand p {
  color: var(--muted);
  margin: 1rem 0 1.5rem;
  max-width: 22rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: #cfcfcf;
  text-decoration: none;
  margin-bottom: 0.6rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col p {
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--muted);
}

/* wielki napis przycięty dolną krawędzią strony */
.footer-giant {
  line-height: 0;
  margin-top: 3rem;
  overflow: hidden;
  opacity: 0.3;
  user-select: none;
  pointer-events: none;
}

.footer-giant img {
  display: block;
  width: 100%;
  /* logo ROYAL ma proporcje 800:118 (~14.75% szer.); ujemny margines przycina
     dolną połowę liter, więc wystaje tylko górna połowa napisu */
  margin-bottom: -7.4%;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: center;
  justify-content: space-between;
}

.footer-firm p {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-firm strong {
  color: var(--text);
}

.social {
  display: flex;
  gap: 1.25rem;
}

.social a {
  color: #fff;
  display: inline-flex;
}

.social svg {
  width: 1.6rem;
  height: 1.6rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== glitch (slice shift) — paski tekstu przeskakują poziomo ===== */
.glitch-slice {
  position: relative;
  --glitch-bg: var(--bg);
}

/* na sekcjach z jaśniejszym tłem paski glitcha muszą mieć ten sam odcień */
#prowadzacy .glitch-slice,
#opinie .glitch-slice,
#kontakt .glitch-slice {
  --glitch-bg: #111111;
}

.glitch-slice::before,
.glitch-slice::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: var(--glitch-bg);
  opacity: 0;
  pointer-events: none;
}

.glitch-slice::before {
  animation: slice-a 2s infinite 0.4s;
}

.glitch-slice::after {
  animation: slice-b 2s infinite 0.4s;
}

@keyframes slice-a {
  0%, 14%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  2% { opacity: 1; transform: translateX(-9px); clip-path: inset(18% 0 58% 0); }
  6% { opacity: 1; transform: translateX(7px); clip-path: inset(38% 0 42% 0); }
  10% { opacity: 1; transform: translateX(-5px); clip-path: inset(8% 0 78% 0); }
}

@keyframes slice-b {
  0%, 14%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  3% { opacity: 1; transform: translateX(8px); clip-path: inset(62% 0 12% 0); }
  7% { opacity: 1; transform: translateX(-7px); clip-path: inset(75% 0 3% 0); }
  11% { opacity: 1; transform: translateX(6px); clip-path: inset(50% 0 30% 0); }
}

@media (prefers-reduced-motion: reduce) {
  .glitch-slice::before, .glitch-slice::after {
    animation: none;
  }
}

/* ===== podstrony szkoleń ===== */
.subpage {
  padding-top: 5.5rem;
}

.subpage-main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.subpage h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.subpage-meta {
  color: var(--muted);
  margin: 0.5rem 0 1.5rem;
}

.subpage h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 1rem;
}

.subpage p {
  color: #cfcfcf;
  margin-bottom: 0.75rem;
}

.subpage .timeline {
  max-width: none;
}

.subpage .timeline li {
  display: block;
}

.subpage .timeline .time {
  display: inline-block;
  margin-right: 0.75rem;
}

.subpage .timeline ul {
  list-style: none;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.subpage .timeline ul li {
  border: 0;
  padding: 0 0 0 1.2rem;
  position: relative;
}

.subpage .timeline ul li::before {
  content: "–";
  position: absolute;
  left: 0.2rem;
}

.day-goal {
  border-left: 3px solid #fff;
  padding-left: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.5rem;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 0;
  max-width: 34rem;
}

.info-list li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.info-list li span {
  color: var(--muted);
}

@media (max-width: 520px) {
  .info-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.subpage-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== podstrona (polityka prywatności) ===== */
body.page {
  display: block;
  padding: 3rem 1.5rem;
}

.content {
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
}

.content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.content h2 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
}

.content p {
  margin-bottom: 0.75rem;
}

body.page footer {
  max-width: 42rem;
  margin: 2rem auto 0;
  padding: 0;
  font-size: 0.875rem;
}

body.page footer a {
  color: var(--muted);
}
