/* Astrogastro: styl zgodny z astrogastro.eu. Biel, granat z logo, bursztynowy akcent, Poppins + Lato. */
:root {
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --bg-mute: #e9ecef;
  --navy: #023047;
  --navy-2: #06425f;
  --ink: #212529;
  --ink-2: #343a40;
  --ink-muted: #5c646c;
  --amber: #feb703;
  --amber-hover: #ffc633;
  --danger: #b42318;
  --line: rgba(52, 58, 64, 0.12);
  --line-strong: rgba(52, 58, 64, 0.28);
  --footer: #1c1c1c;
  --on-dark: #f8f9fa;
  --on-dark-muted: rgba(248, 249, 250, 0.74);
  --shadow: 0 2px 10px rgba(2, 48, 71, 0.08);
  --shadow-lg: 0 18px 44px rgba(2, 48, 71, 0.16);
  --r: 3px;
  --r-img: 6px;
  --font: "Poppins", Helvetica, Arial, sans-serif;
  --font-alt: "Lato", Helvetica, Arial, sans-serif;
  --maxw: 1140px;
  --header-h: 82px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 500; line-height: 1.2; }
h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.35; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.4; }
p { margin: 0 0 1em; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--navy-2); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: var(--navy); padding: 10px 16px; border-radius: var(--r); font-weight: 600; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Etykieta sekcji jak na astrogastro.eu: bursztynowe wersaliki z szerokim odstępem */
.eyebrow { font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--amber); line-height: 1.3; margin: 0 0 18px; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); }
.hint { font-size: 14px; color: var(--ink-muted); margin: 6px 0 0; line-height: 1.5; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 22px;
  border: 2px solid transparent; border-radius: var(--r);
  font-family: var(--font); font-weight: 500; font-size: 16px; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; line-height: 1.3; text-align: center;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn.primary { background: var(--amber); border-color: var(--amber); color: var(--navy); box-shadow: 0 2px 6px rgba(254, 183, 3, 0.35); }
.btn.primary:hover { background: var(--amber-hover); border-color: var(--amber-hover); color: var(--navy); }
.btn.primary::after { content: "\2192"; font-size: 1.15em; line-height: 1; transition: transform .2s; }
.btn.primary:hover::after { transform: translateX(4px); }
.btn.secondary { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn.secondary:hover { background: var(--navy); color: #fff; }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.dark:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); text-transform: none; letter-spacing: 0; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 5px; padding-inline: 8px; }
.btn.ghost:hover { color: var(--navy-2); }
.btn.sm { min-height: 42px; padding: 8px 16px; font-size: 14px; white-space: nowrap; }
.btn.lg { min-height: 54px; padding: 13px 26px; font-size: 17px; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 4px; }

/* Nagłówek */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { height: 60px; width: auto; }
.site-header .btn { margin-left: auto; }
.site-header__price { display: none; }
@media (min-width: 560px) { .site-header__price { display: inline; } }
/* Hero */
.hero { position: relative; background: linear-gradient(180deg, #ffffff 1%, var(--bg-soft) 100%); padding: 44px 0 56px; }
.hero::before { content: ""; position: absolute; inset: 0; background: url(../img/pattern.png) center top / 1100px auto repeat-x; filter: brightness(0.93); pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: 40px; align-items: center; }
.hero__kicker { font-size: 15px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--navy); margin: 0 0 14px; }
.hero h1 { font-size: clamp(32px, 4.1vw, 46px); font-weight: 400; line-height: 1.18; }
.hero h1 em { display: block; margin-top: 4px; padding-bottom: 14px; font-style: normal; font-weight: 500; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 4px; text-underline-offset: 10px; text-decoration-skip-ink: none; }
.hero__lead { font-family: var(--font-alt); font-size: clamp(19px, 2vw, 24px); line-height: 1.5; color: var(--ink-2); max-width: 560px; margin: 26px 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 30px; }
.hero__media { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.hero__media img, .hero__media .photo-slot { border-radius: var(--r-img); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 64px; }
  .hero__media { justify-self: end; }
}

.hero__video { display: block; width: 100%; max-width: 330px; margin-inline: auto; aspect-ratio: 9 / 16; height: auto; object-fit: cover; background: var(--navy); border-radius: var(--r-img); box-shadow: var(--shadow-lg); }
.hero__caption { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--ink-muted); }
.insights { margin-top: 40px; padding: 24px 26px; background: var(--bg-soft); border-left: 4px solid var(--amber); border-radius: var(--r); }
.insights .ticks--stack { margin: 14px 0 0; padding-top: 0; border-top: 0; }
@media (min-width: 820px) { .insights .ticks--stack { grid-template-columns: repeat(3, 1fr); gap: 12px 32px; } }
.program__item p { font-size: 16px; }

.photo-slot { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r-img); background: var(--bg-mute); color: var(--ink-muted); }
.photo-slot--tall { aspect-ratio: 4 / 5; }
.photo-slot span { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }

/* Sekcje */
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin-bottom: 36px; }
.section__head h2 { font-size: clamp(22px, 2.6vw, 30px); }
@media (min-width: 900px) { .section { padding: 96px 0; } .section__head { margin-bottom: 48px; } }

.split { display: grid; gap: 36px; align-items: center; }
.split__media img, .split__media .photo-slot { border-radius: var(--r-img); box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; aspect-ratio: 4 / 5; object-fit: cover; }
.split h2 { margin-bottom: 18px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 72px; } .split__media { order: 2; justify-self: end; } }

.cards { display: grid; gap: 28px; }
.card { padding-top: 22px; border-top: 3px solid var(--amber); }
.card h3 { font-size: 20px; }
.card p { margin: 12px 0 0; font-size: 16px; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 44px; } }

.program { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.program__item { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.program__num { font-size: 22px; font-weight: 600; color: var(--amber); line-height: 1.4; }
.program__item h3 { font-size: 20px; }
.program__item p { margin: 6px 0 0; font-size: 16px; max-width: 640px; }
@media (min-width: 900px) { .program__item { grid-template-columns: 90px 1fr; padding: 28px 0; } .program__num { font-size: 28px; } .program__item h3 { font-size: 22px; } }

/* Cennik */
.pricing { display: grid; gap: 36px; align-items: center; }
.pricing h2 { margin-bottom: 16px; }
.price-card { background: #fff; color: var(--ink-2); border-radius: var(--r-img); padding: 32px 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); border-top: 5px solid var(--amber); }
.price-card__label { font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.price-card__price { font-size: clamp(54px, 8vw, 72px); font-weight: 600; line-height: 1.1; color: var(--navy); margin: 8px 0 0; }
.price-card__sub { color: var(--ink-muted); margin: 4px 0 0; font-size: 16px; }
.price-card__note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--ink-muted); margin: 14px 0 0; line-height: 1.4; }
.price-card__note svg { flex: none; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1fr 430px; gap: 72px; } .price-card { padding: 40px 36px; } }

.section--navy { background: var(--navy); color: var(--on-dark); }
.section--navy h2 { color: #fff; }
.section--navy .lead { color: var(--on-dark-muted); }
.after-buy { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.after-buy li { display: flex; align-items: flex-start; gap: 14px; font-size: 16px; line-height: 1.5; }
.after-buy span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: var(--navy); font-weight: 600; font-size: 15px; }

/* Krótkie zapewnienia przy przyciskach zakupu */
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--ink-2); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks svg { flex: none; color: #1a7f4b; }
.ticks--stack { display: grid; gap: 12px; margin: 24px 0 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 16px; }
.ticks--stack li { align-items: flex-start; }
.ticks--stack svg { margin-top: 4px; }

.section__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 36px; font-size: 15px; color: var(--ink-muted); }
.section__cta--center { justify-content: center; text-align: center; margin-top: 44px; }

.testimonial { margin: 0; padding: 24px; background: #fff; border-left: 4px solid var(--amber); border-radius: var(--r); box-shadow: var(--shadow); }
.testimonial blockquote { margin: 0; font-size: 16px; }
.testimonial figcaption { margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--ink); }

/* Pasek zakupu na telefonie: pojawia się, gdy żaden przycisk zakupu nie jest widoczny */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(2, 48, 71, 0.12); }
.sticky-cta[hidden] { display: none; }
.sticky-cta__info { display: grid; line-height: 1.25; }
.sticky-cta__info strong { font-size: 20px; font-weight: 600; color: var(--navy); }
.sticky-cta__info span { font-size: 13px; color: var(--ink-muted); }
@media (min-width: 900px) { .sticky-cta { display: none; } }
@media (max-width: 899px) { .has-sticky-cta .site-footer { padding-bottom: 96px; } }

.price-card__includes { margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); }
.price-card .ticks--stack { margin-top: 14px; padding-top: 0; border-top: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 18px; color: var(--ink); line-height: 1.45; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--amber); color: var(--navy); font-size: 22px; font-weight: 400; line-height: 1; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item > div { padding: 0 48px 22px 0; font-size: 16px; max-width: 680px; }

/* Checkout */
.checkout { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-top: 5px solid var(--amber); border-radius: var(--r-img); background: #fff; color: var(--ink-2); box-shadow: var(--shadow-lg); overflow-y: auto; }
.checkout::backdrop { background: rgba(2, 48, 71, 0.72); }
.checkout__form { position: relative; padding: 30px 24px 26px; }
.checkout__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); }
.checkout__close:hover { background: var(--bg-mute); }
.checkout .eyebrow { font-size: 15px; margin-bottom: 8px; }
.checkout h2 { font-size: 24px; padding-right: 36px; }
.checkout__summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 18px 0 24px; padding: 14px 18px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); font-size: 16px; }
.checkout__summary strong { font-size: 26px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.checkout__error { margin: 16px 0 0; padding: 12px 14px; background: #fdecea; border: 1px solid var(--danger); border-radius: var(--r); color: #7a1a12; font-size: 15px; line-height: 1.5; }
.checkout .btn.full { margin-top: 20px; }
.checkout__note { font-size: 14px; color: var(--ink-muted); margin: 12px 0 0; text-align: center; line-height: 1.5; }
@media (min-width: 520px) { .checkout__form { padding: 38px 36px 32px; } }

.label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(254, 183, 3, 0.5); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 15px; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); }

/* Odtwarzacz */
.watch { background: linear-gradient(180deg, #ffffff 1%, var(--bg-soft) 100%); padding: 40px 0 72px; min-height: 70vh; }
.watch .eyebrow { font-size: 16px; margin-bottom: 8px; }
.watch__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 500; margin-bottom: 24px; }
.notice { background: #fff8e1; border-left: 5px solid var(--amber); border-radius: var(--r); padding: 16px 20px; margin-bottom: 32px; font-size: 16px; }
.notice strong { color: var(--navy); margin-right: 6px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-img); overflow: hidden; box-shadow: var(--shadow-lg); user-select: none; -webkit-user-select: none; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--on-dark-muted); }
.player__mark { position: absolute; top: 12px; right: 14px; font-size: 11px; color: rgba(255, 255, 255, 0.34); pointer-events: none; }
.watch__meta { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 18px; font-size: 15px; color: var(--ink-muted); }
.watch__meta strong { color: var(--ink); font-weight: 600; }
.watch__help { margin-top: 32px; font-size: 15px; color: var(--ink-muted); max-width: 660px; }
.lessons { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.lessons a { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.lessons a:hover { background: #fff; }
.lessons a.is-current { background: #fff; box-shadow: inset 4px 0 0 var(--amber); }
.lessons__num { font-weight: 600; color: var(--navy); }
.lessons__title { flex: 1; font-weight: 500; }
.lessons__time { font-size: 14px; color: var(--ink-muted); }

/* Strony komunikatów: brak dostępu, oczekiwanie, błędy */
.gate { padding: 56px 0 96px; min-height: 62vh; background: linear-gradient(180deg, #ffffff 1%, var(--bg-soft) 100%); }
.gate__card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--amber); border-radius: var(--r-img); padding: 32px 24px; box-shadow: var(--shadow); }
.gate__card .eyebrow { font-size: 16px; margin-bottom: 10px; }
.gate__card h1 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 14px; }
.gate__form { display: grid; gap: 10px; margin-top: 24px; }
.gate__form .label { margin-bottom: 0; }
.gate__form .btn { justify-self: start; margin-top: 6px; }
.gate__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .gate__card { padding: 44px 48px; } }
.spinner { width: 44px; height: 44px; margin-bottom: 24px; border: 4px solid var(--bg-mute); border-top-color: var(--amber); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Dokumenty */
.legal { padding: 56px 24px 96px; }
.legal .eyebrow { font-size: 16px; margin-bottom: 8px; }
.legal h1 { margin-bottom: 20px; }
.legal h2 { font-size: 21px; margin: 36px 0 12px; }
.legal li { margin-bottom: 8px; }
.legal__draft { padding: 12px 16px; background: #fff8e1; border-left: 5px solid var(--amber); border-radius: var(--r); font-size: 15px; }
.todo { background: #ffe58a; padding: 1px 4px; border-radius: 2px; }

/* Stopka */
.site-footer { background: var(--footer); color: var(--on-dark-muted); padding: 48px 0 26px; font-size: 15px; font-weight: 300; }
.site-footer__inner { display: grid; gap: 32px; }
.site-footer__logo { width: 150px; height: auto; }
.site-footer a, .site-footer .link-btn { color: var(--on-dark); text-decoration: none; font-weight: 300; }
.site-footer a:hover, .site-footer .link-btn:hover { color: var(--amber); }
.site-footer__links, .site-footer__contact { display: grid; gap: 2px; align-content: start; justify-items: start; }
.site-footer__links > *, .site-footer__contact > a { min-height: 36px; display: inline-flex; align-items: center; }
.site-footer__contact span { font-size: 13px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--amber); }
.site-footer__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(248, 249, 250, 0.14); font-size: 14px; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; } }

/* Baner cookies */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; max-width: 520px; padding: 22px; background: #fff; border-radius: var(--r-img); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22); font-size: 14px; line-height: 1.6; }
.consent p { margin: 0 0 14px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent .btn { letter-spacing: 0.5px; }
.consent .btn.primary::after { content: none; }
.consent[hidden] { display: none; }
@media (min-width: 640px) { .consent { left: 24px; right: auto; bottom: 24px; } }

/* Wejścia sekcji przy scrollu. Klasa .js pojawia się tylko, gdy skrypt działa. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .spinner { animation-duration: 2.4s; }
  .btn, .btn.primary::after { transition: none; }
}
