/* ==========================================================================
   Best of Five - warstwa wlasna
   Zastepuje: WOW.js + animate.css (CDN), FontAwesome (CDN), iframe'y YouTube.
   ========================================================================== */

/* --- ikony inline SVG ---------------------------------------------------- */

/*
 * Wysokosc sterowana, szerokosc z proporcji viewBoxa.
 * Wymuszanie kwadratu (width:1em; height:1em) rozjezdzalo ikony,
 * bo maja rozne proporcje: android 576x512, apple 384x512.
 * FontAwesome robi to tak samo - stala wysokosc, zmienna szerokosc.
 */
.bo5-icon {
    display: inline-block;
    height: 1em;
    width: auto;
    vertical-align: -0.125em;
}

.bo5-icon--sm { height: .8em; }
.bo5-icon--lg { height: 2em;  }

/* --- pojawianie sie przy scrollu (zamiast WOW.js) ------------------------ */

/*
 * Stare data-wow-delay siegalo 12 s - uzytkownik scrollowal i patrzyl
 * w puste ekrany. Tu maksimum to 0,24 s, wylacznie jako delikatny stagger.
 */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease-out, transform .5s ease-out;
    will-change: opacity, transform;
}

.reveal--left  { transform: translateX(-24px); }
.reveal--right { transform: translateX(24px);  }

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* Bez JS nic nie moze zostac niewidoczne */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- siatka relacji video ------------------------------------------------ */

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 991px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .videos-grid { grid-template-columns: 1fr; } }

.video-card {
    position: relative;
    background-color: #000;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

@supports not (aspect-ratio: 16 / 9) {
    .video-card { height: 0; padding-bottom: 56.25%; }
}

.video-card__thumb,
.video-card__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card__thumb {
    object-fit: cover;
    display: block;
}

.video-card__thumb--contain {
    object-fit: contain;
    object-position: center 30%;
    padding: 12px;
}

/* Przycisk odpalajacy film - to on zastepuje iframe do czasu kliknięcia */
.video-card__play {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, .15);
    color: #fff;
    cursor: pointer;
    transition: background-color .25s ease;
}

.video-card__play:hover,
.video-card__play:focus {
    background: rgba(0, 0, 0, .35);
}

.video-card__play:focus-visible {
    outline: 3px solid #149dcc;
    outline-offset: -3px;
}

.video-card__play-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    transition: transform .25s ease, background-color .25s ease;
}

.video-card__play:hover .video-card__play-icon {
    transform: scale(1.12);
    background: #e5c41a;
    color: #000;
}

.video-card__play-icon .bo5-icon {
    height: 20px;
    width: auto;
    margin-left: 3px; /* trojkat optycznie na srodku kola */
}

.video-card__date {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 4px 10px;
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, .65);
}

.video-card__title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 24px 10px 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0));
}

.video-card__title a {
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
}

.video-card__title a:hover,
.video-card__title a:focus {
    color: #e5c41a;
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .video-card__play,
    .video-card__play-icon { transition: none; }
    .video-card__play:hover .video-card__play-icon { transform: none; }
}

/* --- liczniki ------------------------------------------------------------ */

.stats {
    background-color: #149dcc;
    color: #fff;
    padding: 55px 0;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

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

.stats__value {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.stats__label {
    font-size: 1rem;
    opacity: .9;
}

/* --- naglowek sekcji z ikona -------------------------------------------- */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* --- opinie -------------------------------------------------------------- */

.quotes {
    background-color: #2f7d32; /* ciemniejszy zielony - kontrast AA z bialym */
    color: #fff;
    padding: 55px 0;
}

.quotes h2 { color: #fff; }

.quote {
    margin-bottom: 22px;
    font-style: italic;
}

.quote__author {
    margin-top: 6px;
    text-align: right;
    font-style: normal;
}

.quote__author small { opacity: .95; }

.quotes a { color: #fff; text-decoration: underline; }

.quotes__note {
    color: #fff3c4;
    margin: 14px 0;
}

/* --- partnerzy ----------------------------------------------------------- */

.partners__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 26px 34px;
    padding: 40px 0;
}

.partners__list img {
    max-height: 70px;
    width: auto;
    filter: grayscale(100%);
    opacity: .8;
    transition: filter .25s ease, opacity .25s ease;
}

.partners__list a:hover img,
.partners__list a:focus img {
    filter: none;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .partners__list img { transition: none; }
}

/* --- formularz kontaktowy ------------------------------------------------ */

.contact-form {
    max-width: 560px;
    margin: 0 auto;
}

.contact-form__row { margin-bottom: 16px; }

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #fff;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 3px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 15px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255, 255, 255, .55); }

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #e5c41a;
    background: rgba(255, 255, 255, .16);
}

.contact-form select option { color: #222; }

.contact-form textarea { min-height: 120px; resize: vertical; }

/* Pulapka na boty - musi byc niewidoczna, ale nie display:none */
.contact-form__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__consent {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.45;
}

.contact-form__consent input {
    width: auto;
    margin-top: 3px;
    flex: 0 0 auto;
}

.form-msg {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 3px;
    font-size: 15px;
}

.form-msg--ok    { background: #2f7d32; color: #fff; }
.form-msg--error { background: #a32222; color: #fff; }

/* --- banner cookies ------------------------------------------------------ */

.cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    padding: 18px 20px;
    background: #16232b;
    color: #f1f1f1;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, .3);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-bar[hidden] { display: none; }

.cookie-bar__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.cookie-bar__text { flex: 1 1 340px; margin: 0; }

.cookie-bar__text a { color: #e5c41a; }

.cookie-bar__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-bar__btn {
    padding: 9px 20px;
    border: 1px solid #e5c41a;
    border-radius: 3px;
    background: transparent;
    color: #e5c41a;
    font-size: 14px;
    cursor: pointer;
}

.cookie-bar__btn--accept {
    background: #e5c41a;
    color: #16232b;
    font-weight: 600;
}

.cookie-bar__btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* --- placeholder osadzen zewnetrznych (przed zgoda) ---------------------- */

.embed-consent {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    text-align: center;
    background: #1c1c1c;
    color: #ddd;
    font-size: 13px;
    line-height: 1.4;
}

.embed-consent__btn {
    padding: 7px 16px;
    border: 1px solid #e5c41a;
    border-radius: 3px;
    background: transparent;
    color: #e5c41a;
    font-size: 13px;
    cursor: pointer;
}

/* --- nawigacja sekcji ---------------------------------------------------- */

.nav-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-sections a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}

.nav-sections a:hover,
.nav-sections a:focus {
    color: #e5c41a;
    border-bottom-color: #e5c41a;
}

/* --- hero ---------------------------------------------------------------- */

/*
 * H1 zawiera prawdziwy tekst (wczesniej byl pusty span wypelniany JS-em,
 * wiec crawler widzial naglowek bez tresci). Animacja podmiany slowa
 * dziala jako dodatek na .hero__word i nie jest nikomu potrzebna do odczytu.
 */
.hero__word {
    color: #e5c41a;
    white-space: nowrap;
}

.hero__lead {
    max-width: 40ch;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 26px;
}

/* --- linki pomocnicze / stopka ------------------------------------------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1200;
    padding: 12px 20px;
    background: #e5c41a;
    color: #16232b;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

.footer-links {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 13px;
}

.footer-links a { color: #fff; opacity: .85; }
.footer-links a:hover { opacity: 1; }

/* --- typografia stron tekstowych (polityka prywatnosci) ------------------ */

.doc-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 120px 20px 70px;
    line-height: 1.65;
}

.doc-page h1 { margin-bottom: 26px; }
.doc-page h2 { margin: 34px 0 12px; font-size: 1.35rem; }
.doc-page ul { padding-left: 22px; }
.doc-page li { margin-bottom: 7px; }
.doc-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}
.doc-page th,
.doc-page td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}
.doc-page th { background: #f5f5f5; }
