/* Kampania beta TERMINUS: pasek nad naglowkiem, karta-reklama, strona /beta/.
   Kolory z style.css (--green, --green-dark, --orange). Bez zewnetrznych zasobow (CSP). */

:root { --orange-btn: #c9521c; }

/* ---------- pasek nad naglowkiem (wstrzykiwany przez beta.js) ---------- */
.beta-bar { background: linear-gradient(90deg, #0b3329, #185d4b 55%, #0b3329); color: #fff; font-size: 14px; line-height: 1.4; border-bottom: 2px solid var(--orange); }
.beta-bar .wrap { display: flex; align-items: center; justify-content: center; min-height: 48px; padding-block: 7px; padding-right: 36px; position: relative; }
.beta-bar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.beta-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.beta-bar__go { padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--green-dark); font-size: 13px; font-weight: 800; transition: background .15s ease; }
.beta-bar a:hover .beta-bar__go { background: #ffe9dc; }
.beta-bar__x { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: #b9d4cb; font-size: 20px; line-height: 1; cursor: pointer; }
.beta-bar__x:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- pozycja w menu ---------- */
.nav a.nav-beta { color: var(--green-dark); }
.nav a.nav-beta::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--orange); vertical-align: 1px; }

/* ---------- karta-reklama ---------- */
.beta-slot { padding: clamp(26px, 3.5vw, 44px) 0; }
.beta-promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3.5vw, 44px); align-items: center; padding: clamp(18px, 2.6vw, 30px); border-radius: 20px; color: #fff; text-decoration: none; background: radial-gradient(circle at 90% 10%, rgba(231, 105, 46, .22), transparent 38%), linear-gradient(135deg, #0f3f33 0%, #185d4b 100%); box-shadow: 0 24px 60px rgba(16, 70, 56, .22); transition: transform .18s ease, box-shadow .18s ease; }
.beta-promo:hover { transform: translateY(-2px); box-shadow: 0 30px 70px rgba(16, 70, 56, .3); }
.beta-promo:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.beta-promo__media { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .22); aspect-ratio: 16 / 9; background: #0b2e26; }
.beta-promo__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.beta-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: var(--orange); box-shadow: 0 8px 26px rgba(0, 0, 0, .35); transition: transform .18s ease; }
.beta-play::after { content: ""; position: absolute; left: 27px; top: 21px; border-left: 20px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.beta-promo:hover .beta-play { transform: scale(1.08); }
.beta-promo__body { display: grid; gap: 12px; justify-items: start; }
.beta-promo .kicker { color: #ffb48c; margin: 0; }
.beta-promo__title { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.18; letter-spacing: -.02em; }
.beta-promo__text { color: #cfe3dc; font-size: 15px; max-width: 46ch; }
.beta-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 13px 20px; border-radius: 9px; background: var(--orange-btn); color: #fff; font-size: 14px; font-weight: 800; transition: background .15s ease; }
.beta-promo:hover .beta-cta { background: #b04515; }
.beta-promo__fine { color: #9fc2b7; font-size: 12px; }

@media (max-width: 760px) {
  .beta-promo { grid-template-columns: 1fr; }
  .beta-bar .hide-s { display: none; }
  .beta-play { width: 56px; height: 56px; }
  .beta-play::after { left: 22px; top: 17px; border-left-width: 16px; border-top-width: 11px; border-bottom-width: 11px; }
}

/* ---------- strona /beta/ ---------- */
.beta-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.beta-facts li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.beta-facts strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; letter-spacing: -.03em; color: var(--green); line-height: 1.1; }
.beta-facts span { color: var(--muted); font-size: 13px; }

.beta-video { max-width: 960px; margin-inline: auto; }
.beta-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--line); background: #0b2e26; box-shadow: 0 24px 60px rgba(25, 68, 56, .16); }
.beta-video figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; text-align: center; }

.steps { counter-reset: krok; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 30px 0 0; padding: 0; list-style: none; }
.steps li { counter-increment: krok; position: relative; padding: 24px 24px 24px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.steps li::before { content: counter(krok); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: #52635e; font-size: 15px; }

.signup select { flex: 1 1 240px; padding: 13px 14px; border: 1px solid #d5dfdc; border-radius: 9px; font: inherit; background: #fff; outline: 0; }
.signup select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(24, 93, 75, .12); }
.signup .wide { flex: 1 1 100%; }
.signup .button { background: var(--orange-btn); box-shadow: 0 6px 18px rgba(201, 82, 28, .25); }
.signup .button:hover { background: #b04515; }

@media (prefers-reduced-motion: reduce) {
  .beta-promo, .beta-play, .beta-cta { transition: none; }
  .beta-promo:hover { transform: none; }
}

/* Na telefonie naglowek i tak zajmuje kilka wierszy; wejscie do bety dają pasek i karta. */
@media (max-width: 860px) {
  .nav a.nav-beta { display: none; }
}

/* ---------- popup ---------- */
.beta-popup { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(10, 33, 28, .62); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
.beta-popup.is-open { opacity: 1; }
.beta-popup__card { position: relative; width: min(860px, 100%); max-height: calc(100dvh - 40px); overflow: auto; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); border-radius: 22px; background: #fff; box-shadow: 0 40px 100px rgba(0, 0, 0, .4); transform: translateY(14px) scale(.98); transition: transform .22s ease; }
.beta-popup.is-open .beta-popup__card { transform: none; }
.beta-popup__media { position: relative; display: block; min-height: 220px; background: #0b2e26; }
.beta-popup__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.beta-popup__body { display: grid; gap: 14px; justify-items: start; align-content: center; padding: clamp(24px, 4vw, 40px); }
.beta-popup__body h2 { margin: 0; font-size: clamp(26px, 3.2vw, 36px); }
.beta-popup__lead { margin: 0; color: #3d514b; font-size: 16px; }
.beta-popup__offer { margin: 0; padding: 12px 14px; border-left: 3px solid var(--orange); background: #fff4ed; color: var(--ink); font-size: 15px; }
.beta-popup__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.beta-popup__actions .beta-cta { margin: 0; text-decoration: none; }
.beta-popup__actions .beta-cta:hover { background: #b04515; }
.beta-popup__film { color: var(--green); font-size: 14px; font-weight: 700; }
.beta-popup__later { padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.beta-popup__x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.beta-popup__x:hover { background: #fff; }
.beta-popup :focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

@media (max-width: 760px) {
  .beta-popup { place-items: end center; padding: 12px; }
  .beta-popup__card { grid-template-columns: 1fr; }
  .beta-popup__media { min-height: 0; aspect-ratio: 16 / 8; }
  .beta-bar__go { padding: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .beta-popup, .beta-popup__card { transition: none; }
}
