/* Alergia webfonts – Hello theme integration */
/* Place this content at the TOP of your chp-global.css or main theme stylesheet */

@font-face {
    font-family: 'Alergia';
    src: url('../fonts/Alergia-Light.woff2') format('woff2'),
        url('../fonts/Alergia-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alergia';
    src: url('../fonts/Alergia-Regular.woff2') format('woff2'),
        url('../fonts/Alergia-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alergia';
    src: url('../fonts/Alergia-Medium.woff2') format('woff2'),
        url('../fonts/Alergia-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alergia';
    src: url('../fonts/Alergia-SemiBold.woff2') format('woff2'),
        url('../fonts/Alergia-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alergia';
    src: url('../fonts/Alergia-Bold.woff2') format('woff2'),
        url('../fonts/Alergia-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===================================== */
/* GLOBALNY HEADER – stabilny Z-index     */
/* ===================================== */

/* Główny kontener headera */
header,
header.elementor-location-header {
    position: relative;
    z-index: 200 !important;
    /* bezpieczna wartość */
}

/* Sticky header Elementora */
header.elementor-sticky--active,
header.elementor-sticky--effects {
    z-index: 300 !important;
    /* nad hero video i innymi sekcjami */
}

/* opis limitu znaków przy tytule */
#title-prompt-text::after {
    content: ' (maksymalnie 80 znaków)';
    opacity: .6;
    font-size: 12px;
}

/* notatki w panelu */
.chp-wysiwyg-note {
    font-style: italic;
}

/* TAGI AKCJI — większe, czytelne, estetyczne */
.chp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

/* pojedynczy tag */
.chp-tags .chp-tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 3rem;
    padding: 0.4rem 1.6rem;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.6;
}

/* .chp-tags .chp-tag::before {
    content: '#';
    margin-right: 0.25em;
} */

/* FILTR TAKSONOMII – KAPSUŁKI JAK TAGI CHP */

/* kontener */
.elementor-widget-taxonomy-filter .e-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* wygląd kapsułki */
.elementor-widget-taxonomy-filter .e-filter .e-filter-item {
    display: inline-flex !important;
    align-items: center !important;

    padding: 0.5rem 2.5rem !important;

    border: 1px solid currentColor !important;
    border-radius: 999px !important;

    background: transparent !important;
    color: inherit !important;

    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

/* # przed tagiem
.elementor-widget-taxonomy-filter .e-filter .e-filter-item::before {
    content: '#' !important;
    margin-right: 0.25em;
} */

/* brak # dla "Wszystkie" */
.elementor-widget-taxonomy-filter .e-filter .e-filter-item[data-filter="__all"]::before {
    content: '' !important;
    margin-right: 0 !important;
}

/* czerwone obramowanie, BEZ tła */
.elementor-widget-taxonomy-filter .e-filter .e-filter-item[aria-pressed="true"] {
    border-color: #FF0000 !important;
    color: #FF0000 !important;
    background: transparent !important;
}

/* =======================================================
   MODUŁY TREŚCI – KONTAINER
   ======================================================= */

.chp-content-modules {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    /* pionowy odstęp między modułami */
    margin: 3rem 0 4rem;
    /* odstęp całego bloku od reszty treści */
}

/* =======================================================
   GLOBALNE STYLE MODUŁÓW TREŚCI CHP
   ======================================================= */

/* Pojedynczy moduł – responsywny padding z lewej */
.chp-content-modules .chp-module {
    position: relative;
    margin: 0;
    /* odstępy robi gap powyżej */
    padding-left: clamp(1.2rem, 3vw, 4rem);
    /* mobile → desktop */
}

/* Pionowy gradientowy divider dla modułów tekstowych */
.chp-content-modules .chp-module--text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 95%;
    background: linear-gradient(180deg,
            #FF0000 0%,
            #FF0500 43%,
            #FF8600 100%);
}

/* Typografia wewnątrz modułów */

.chp-content-modules h2.chp-module__title {
    margin-top: 0;
    margin-bottom: 2rem;
}

.chp-content-modules h3,
.chp-content-modules h4 {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.chp-content-modules p {
    margin-bottom: 1.2rem;
}

.chp-module__title {
    margin-bottom: 0.75rem;
}

/* wspólne dla pojedynczego zdjęcia i galerii */
.chp-square-link {
    display: block;
    width: 100%;
    aspect-ratio: 744 / 512;
    /* ta sama proporcja co w projekcie */
    overflow: hidden;
    border-radius: 0;
}

.chp-square-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* GALERIA – grid */
.chp-module--gallery .chp-module__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.chp-nabor {
    margin: 4rem 0 5rem;
    padding: 2.5rem 2.5rem 3rem;
    background: #f5f5f5;
}

.chp-nabor__header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: baseline;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.chp-nabor__label {
    font-weight: 700;
}

.chp-nabor__status {
    font-weight: 600;
}

.chp-nabor__deadline {
    margin-left: auto;
    font-weight: 600;
}

.chp-nabor__title {
    margin-bottom: 1rem;
}

.chp-nabor__content p:last-child {
    margin-bottom: 0;
}

.chp-nabor__actions {
    margin-top: 2rem;
}

.chp-nabor__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.4rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid currentColor;
}

.chp-related-akcje {
    margin: 5rem 0 0;
}

.chp-related-akcje__title {
    margin-bottom: 2rem;
}

.chp-related-akcje__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.chp-related-akcje__item {
    border: 1px solid #ddd;
    padding: 1.8rem 1.6rem;
}

.chp-related-akcje__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.chp-related-akcje__item-title {
    margin-bottom: 0.5rem;
}

.chp-related-akcje__dates {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1.2rem;
}

.chp-related-akcje__more {
    margin-top: auto;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

/* ================================
   PROGRAMY – karty w archiwum
   ================================ */

.chp-program-card {
    display: flex !important;
    align-items: center;
    background-position: 0 0 !important;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Wnętrze karty – dwie kolumny */
.chp-program-card__media,
.chp-program-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ======================================
   Naprzemienne ułożenie kolumn (desktop)
   ====================================== */

@media (min-width: 1025px) {

    /* Parzyste karty: zamiana stron + odbite tło */
    .elementor-loop-container>.e-loop-item:nth-of-type(even) .chp-program-card {
        background-position: 100% 0 !important;
    }

    /* Zamiana kolejności dzieci dla parzystych kart */
    .elementor-loop-container>.e-loop-item:nth-of-type(even) .chp-program-card__media {
        order: 2 !important;
    }

    .elementor-loop-container>.e-loop-item:nth-of-type(even) .chp-program-card__content {
        order: 1 !important;
    }

}

/* ================================
   Responsywka – tablet / mobile
   ================================ */
@media (max-width: 1024px) {
    .chp-program-card {
        flex-direction: column !important;
        align-items: flex-start;
        background-position: -50% 100% !important;
        background-repeat: no-repeat;
        background-size: contain;
    }

    /* Na mobile kolejność z powrotem klasyczna: najpierw media, potem content */
    .elementor-loop-container>.e-loop-item:nth-of-type(even) .chp-program-card__media,
    .elementor-loop-container>.e-loop-item:nth-of-type(even) .chp-program-card__content {
        order: 0 !important;
    }
}

/* ============================================= */
/* CHP — Gradientowy Divider                     */
/* ============================================= */

.chp-gradient-divider .elementor-divider-separator {
    height: 4px;
    width: 100%;
    display: block;
    border: none !important;
    background: linear-gradient(90deg,
            #FF0000 0%,
            #FF0500 43%,
            #FF8600 100%);
    transform: rotate(-180deg);
}

/* Usunięcie domyślnej cienkiej linii Elementora */
.chp-gradient-divider .elementor-divider {
    border-top: none !important;
}

/* Tekst w polach formularza – pełna biel */
.elementor-form .elementor-field {
    color: #fff !important;
    opacity: 1 !important;
}

/* Tekst w textarea */
.elementor-form textarea.elementor-field {
    color: #fff !important;
    opacity: 1 !important;
}

/* Placeholdery – też na biało, bez „wyblaknięcia” */
.elementor-form .elementor-field::placeholder {
    color: #fff !important;
    opacity: 1 !important;
}

/* Vendorowe warianty (Safari, stare przeglądarki) */
.elementor-form .elementor-field::-webkit-input-placeholder {
    color: #fff !important;
    opacity: 1 !important;
}

.elementor-form .elementor-field::-moz-placeholder {
    color: #fff !important;
    opacity: 1 !important;
}

.elementor-form .elementor-field:-ms-input-placeholder {
    color: #fff !important;
    opacity: 1 !important;
}

/* ================================================= */
/* BUTTON — gradientowy tekst (conic-gradient Figma) */
/* ================================================= */

.chp-btn--text-conic {
    border: none !important;
    color: transparent !important;
}

.chp-btn--bg-linear .elementor-button {

    background: #fff !important;
}

.chp-btn--text-conic .elementor-button-text {
    background: conic-gradient(from 180deg at 50% 50%,
            #FF7300 -95.19deg,
            #FF0500 141.92deg,
            #FF7300 264.81deg,
            #FF0500 501.92deg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* ================================================= */
/* BUTTON — gradientowe tło Figma + biały tekst      */
/* ================================================= */

/* Kontener widżetu – bez tła, bez obramowania */
.chp-btn--bg-linear {
    background: transparent !important;
    border: none !important;
}

/* Właściwy przycisk */
.chp-btn--bg-linear .elementor-button {
    background: linear-gradient(90deg, #FF0000 0%, #FF0500 43%, #FF8600 100%) !important;
    border-radius: 1px !important;
    border: none !important;
}

/* Tekst w przycisku */
.chp-btn--bg-linear .elementor-button-text {
    color: #fff !important;
}

/* ============================================= */
/* CHP – Gradientowe nagłówki (Special Gothic)   */
/* ============================================= */

/* Klasa dodana do WIDŻETU, styl nakładamy na H1/H2/H3 w środku */
.chp-heading-gradient .elementor-heading-title {
    font-family: 'Special Gothic Expanded One', sans-serif !important;
    background: linear-gradient(90deg, #E30613 0%, #FD8724 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;

    /* nadpisujemy zwykły color, który rozwala efekt */
    color: transparent !important;

    /* opcjonalnie, żeby gradient nie ucinał się na całej szerokości */
    display: inline-block;
}

#chp-form-submit {
    background: #fff !important;
    border: none !important;
    color: transparent !important;
}

#chp-form-submit .elementor-button-text {
    background: linear-gradient(90deg, #FF0000 0%, #FF0500 43%, #FF8600 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ===================================== */
/* Gradient na linkach w menu w headerze */
/* ===================================== */

/* Domyślny wygląd linków w menu (kolor bazowy) */
header .elementor-nav-menu--main .elementor-item,
header .elementor-nav-menu--dropdown .elementor-item {
    color: #111111;
    background: none;
    -webkit-text-fill-color: currentColor;
    transition: color 0.2s ease, background 0.2s ease;
}

/* Gradient na hover / focus / active */
header .elementor-nav-menu--main .elementor-item:hover,
header .elementor-nav-menu--main .elementor-item:focus,
header .elementor-nav-menu--main .elementor-item.elementor-item-active,
header .elementor-nav-menu--dropdown .elementor-item:hover,
header .elementor-nav-menu--dropdown .elementor-item:focus,
header .elementor-nav-menu--dropdown .elementor-item.elementor-item-active {
    background: linear-gradient(90deg, #FF0000 0%, #FF0500 43%, #FF8600 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* zbicie zwykłego koloru */
}

/* ===========================
   MODUŁY TREŚCI – TYPOGRAFIA
   =========================== */

/* 1) Nagłówek modułu (pole tytułu modułu) */
.chp-content-modules .chp-module__title {
    font-family: var(--e-global-typography-17552b7-font-family), Sans-serif;
    font-size: var(--e-global-typography-17552b7-font-size);
    font-weight: var(--e-global-typography-17552b7-font-weight);
    line-height: var(--e-global-typography-17552b7-line-height);
    margin-bottom: 1rem;
}

/* 2) Zwykły tekst w treści modułu */
.chp-content-modules .chp-module__body,
.chp-content-modules .chp-module__body p,
.chp-content-modules .chp-module__body li {
    font-family: var(--e-global-typography-1fefdca-font-family), Sans-serif;
    font-size: var(--e-global-typography-1fefdca-font-size);
    font-weight: var(--e-global-typography-1fefdca-font-weight);
    line-height: var(--e-global-typography-1fefdca-line-height);
}

/* 3) Nagłówki wewnątrz treści modułu (WYSIWYG) */

/* „większy” śródtytuł */
.chp-content-modules .chp-module__body h3 {
    font-family: var(--e-global-typography-57bf6aa-font-family), Sans-serif;
    font-size: var(--e-global-typography-57bf6aa-font-size);
    font-weight: var(--e-global-typography-57bf6aa-font-weight);
    line-height: var(--e-global-typography-57bf6aa-line-height);
    margin: 2rem 0 0.75rem;
}

/* „mniejszy” śródtytuł – np. lekko pomniejszona wersja H3 */
.chp-content-modules .chp-module__body h4 {
    font-family: var(--e-global-typography-57bf6aa-font-family), Sans-serif;
    font-size: calc(var(--e-global-typography-57bf6aa-font-size) * 0.9);
    font-weight: var(--e-global-typography-57bf6aa-font-weight);
    line-height: var(--e-global-typography-57bf6aa-line-height);
    margin: 1.5rem 0 0.5rem;
}


/* Delikatne przejście */
.chp-loop-card-content {
    transition: background-color 0.3s ease-in-out;
}

/* Hover na całym elemencie loopa */
.e-loop-item:hover .chp-loop-card-content {
    background-color: black !important;
}

/* Hover na całej karcie */
.e-loop-item:hover .chp-loop-date {
    color: #ff3b2f !important;
}

/* Kursor jako pointer tylko dla kart typu "akcja" */
.e-loop-item.type-akcja,
.e-loop-item.type-akcja * {
    cursor: pointer !important;
}


/* Opis naboru – podstawowy tekst */
.chp-akcja-recruitment-text p {
    font-family: var(--e-global-typography-1fefdca-font-family), Sans-serif;
    font-size: var(--e-global-typography-1fefdca-font-size);
    font-weight: var(--e-global-typography-1fefdca-font-weight);
    line-height: var(--e-global-typography-1fefdca-line-height);
    margin-bottom: 1.2rem;
}

/* Opis naboru – nagłówki H3 z tego pola */
.chp-akcja-recruitment-text h3 {
    font-family: var(--e-global-typography-17552b7-font-family), Sans-serif;
    font-size: var(--e-global-typography-17552b7-font-size);
    font-weight: var(--e-global-typography-17552b7-font-weight);
    line-height: var(--e-global-typography-17552b7-line-height);
    margin: 2rem 0 1rem;
}

/* (opcjonalnie) lista */
.chp-akcja-recruitment-text ul,
.chp-akcja-recruitment-text ol {
    margin: 0 0 1.2rem 1.8rem;
    padding: 0;
}

.single-akcja header .chp-gradient-divider,
.single-project header .chp-gradient-divider,
.single-post header .chp-gradient-divider {
    display: none;
}

/* ===============================
   CHP – SLIDE-OUT MOBILE MENU
   inspirowane Lytbox Academy, ale na naszych klasach
   =============================== */

/* Podstawa: html/body pełna wysokość */
html,
body {
    height: 100%;
}

/* Kolory ikony */
.chp-mobile-toggle {
    --chp-hamburger-color: #000;
    /* 3 kreski */
    --chp-close-x-color: #000;
    /* X po otwarciu */
}

/* Przycisk hamburgera */
.chp-mobile-toggle {
    display: block;
    height: 18px;
    cursor: pointer;
    position: relative;
    z-index: 101;
    /* nad panelem menu i headerem */
}

/* Ikona hamburgera */
.chp-mobile-toggle__icon {
    position: relative;
}

.chp-mobile-toggle__icon span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--chp-hamburger-color);
    transform-origin: 50% 50%;
    transition: all 0.1s 0.2s ease, transform 0.2s ease;
}

.chp-mobile-toggle__icon span:nth-child(2) {
    transform: translateY(6px);
}

.chp-mobile-toggle__icon span:nth-child(3) {
    transform: translateY(12px);
}

/* Ukryty checkbox (toggle) */
.chp-nav-control {
    position: absolute;
    left: -9999px;
    width: 100%;
    clip: rect(0, 0, 0, 0);
}

/* Panel menu – fullscreen, „prawdziwe” vh z JS */
.chp-mobile-nav {
    position: fixed;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    /* zamiast 100vh / 100dvh */
    background: #fff;
    transform: translateX(100%);
    overflow-y: auto;
    /* przewija się tylko panel */
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Wnętrze szablonu – wypełnia panel */
.chp-mobile-nav>.elementor {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chp-mobile-nav .elementor-section,
.chp-mobile-nav .elementor-container,
.chp-mobile-nav .e-con {
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Otwieranie panelu */
#chp-nav-control:checked~.chp-mobile-nav {
    transform: translateX(0);
    opacity: 1;
}

/* Animacja hamburger -> X */
#chp-nav-control:checked~.chp-mobile-toggle .chp-mobile-toggle__icon {
    transition: all 0.1s 0s ease;
}

/* zmiana koloru kresek na X */
#chp-nav-control:checked~.chp-mobile-toggle .chp-mobile-toggle__icon span {
    background: var(--chp-close-x-color);
    transition: all 0.1s ease, transform 0.1s 0.2s ease;
}

/* górna kreska znika */
#chp-nav-control:checked~.chp-mobile-toggle .chp-mobile-toggle__icon span:first-child {
    opacity: 0;
}

/* środkowa + dolna tworzą X */
#chp-nav-control:checked~.chp-mobile-toggle .chp-mobile-toggle__icon span:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
}

#chp-nav-control:checked~.chp-mobile-toggle .chp-mobile-toggle__icon span:nth-child(3) {
    transform: translateY(4px) rotate(-45deg);
}

/* Body z otwartym menu – blokada scrolla (uzupełnia JS) */
body.chp-no-scroll {
    position: fixed;
    overflow: hidden;
    width: 100%;
}

/* ============================
   GTRANSLATE — POKAŻ TYLKO JĘZYK DO ZMIANY + WYGLĄD
   ============================ */

/* Ukrywamy aktualny język — zostaje tylko ten drugi */
.gtranslate_wrapper .gt-current-lang {
    display: none !important;
}

/* Kapsułkowy wygląd */
.gtranslate_wrapper {
    display: inline-flex !important;
}

/* --- GTranslate capsule with gradient border --- */
.gtranslate_wrapper a {
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;

    padding: 0.5rem 2.5rem !important;

    color: inherit !important;
    background: transparent !important;
    border-radius: 999px !important;
    text-decoration: none !important;

    font-size: 15px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
    overflow: hidden;
    /* kluczowe */
}

/* Gradientowy border – pseudo-element */
.gtranslate_wrapper a::before {
    content: "";
    position: absolute;
    inset: 0;
    /* pełny obszar */
    padding: 2px;
    /* GRUBOŚĆ BORDERA */
    border-radius: inherit;

    background: linear-gradient(180deg,
            #FF0000 0%,
            #FF0500 43%,
            #FF8600 100%);

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

/* Hover efekt (opcjonalnie) */
.gtranslate_wrapper a:not(.gt-current-lang):hover {
    color: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
}

/* ===========================================================
   RESPONSYWNE ODSTĘPY W MENU GŁÓWNYM (DESKTOP)
   =========================================================== */

/* Desktop */
.elementor-element-c16daa8 .elementor-nav-menu--main .elementor-item,
.elementor-element-c16daa8 .elementor-nav-menu--main .elementor-item:hover {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

@media (max-width:1450px) {

    .elementor-element-c16daa8 .elementor-nav-menu--main .elementor-item,
    .elementor-element-c16daa8 .elementor-nav-menu--main .elementor-item:hover {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (max-width:1200px) {

    .elementor-element-c16daa8 .elementor-nav-menu--main .elementor-item,
    .elementor-element-c16daa8 .elementor-nav-menu--main .elementor-item:hover {
        padding-left: 1.1rem !important;
        padding-right: 1.1rem !important;
    }
}

@media (max-width:1020px) {

    .elementor-element-c16daa8 .elementor-nav-menu--main .elementor-item,
    .elementor-element-c16daa8 .elementor-nav-menu--main .elementor-item:hover {
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
    }
}

/* ==========================================================
   GRADIENT HOVER TYLKO NA LINKACH W TREŚCI (bez header/footer)
   ========================================================== */

/* Linki w treści main (większość contentu) */
main p a,
main li a,
main span a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease, background-image 0.25s ease;
}

/* Linki w treści Elementor, ale TYLKO poza headerem i footerem */
.elementor:not(.elementor-location-header):not(.elementor-location-footer) p a,
.elementor:not(.elementor-location-header):not(.elementor-location-footer) li a,
.elementor:not(.elementor-location-header):not(.elementor-location-footer) span a,
.chp-content-modules p a,
.chp-content-modules li a,
.chp-content-modules span a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease, background-image 0.25s ease;
}

/* HOVER – gradient na linkach w treści (main + content Elementor) */
main p a:hover,
main li a:hover,
main span a:hover,
.elementor:not(.elementor-location-header):not(.elementor-location-footer) p a:hover,
.elementor:not(.elementor-location-header):not(.elementor-location-footer) li a:hover,
.elementor:not(.elementor-location-header):not(.elementor-location-footer) span a:hover,
.chp-content-modules p a:hover,
.chp-content-modules li a:hover,
.chp-content-modules span a:hover {
    color: transparent !important;
    background-image: linear-gradient(90deg,
            #FF0000 0%,
            #FF0500 40%,
            #FF8600 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Kontener na wiele przycisków download */
.chp-downloads-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

/* Pojedynczy przycisk – gradient jak wcześniej */
.chp-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 1rem 2.4rem;

    background: linear-gradient(90deg, #FF0000 0%, #FF0500 43%, #FF8600 100%);
    color: #fff !important;

    border: none;
    border-radius: 1px;

    font-size: 1.6rem;
    line-height: 1.35;
    font-weight: 400;
    text-decoration: none;

    cursor: pointer;
    transition: opacity .25s ease, transform .25s ease;
}

/* Hover: lekki efekt */
.chp-download-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Ikonka */
.chp-download-btn svg {
    width: 18px;
    height: 18px;
    margin-left: 0.8rem;
    fill: #fff;
}

/* Nadpisanie domyślnego stylu Elementora + Safari fix */
.elementor-widget-video .elementor-wrapper video {
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
}

/* Safari czasem dodaje jeszcze focus ring */
.elementor-widget-video .elementor-wrapper video:focus {
    outline: none !important;
}

/* Całkowity kill WebKit highlight */
video::-webkit-media-controls-enclosure {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}