/* @author Jakub Chrobot - WytwórniaTreści */

.ca-section, .ca-hero, .ca-logos,
.ca-section *, .ca-hero *, .ca-logos * {
    box-sizing: border-box !important;
    font-family: 'Barlow Condensed', sans-serif !important;
}
.ca-section a, .ca-hero a { text-decoration: none !important; }

.ca-section a.ca-btn--black,
.ca-section a.ca-btn--black span,
a.ca-btn--black,
a.ca-btn--black span { color: #fff !important; }

.ca-section a.ca-btn--white,
.ca-section a.ca-btn--white span,
a.ca-btn--white,
a.ca-btn--white span { color: #000 !important; }

.ca-btn--black .ca-btn__arrow,
.ca-btn--black .ca-btn__arrow path { color: #fff !important; fill: #fff !important; }
.ca-btn--white .ca-btn__arrow,
.ca-btn--white .ca-btn__arrow path { color: #000 !important; fill: #000 !important; }

.ca-container {
    max-width: 1024px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    width: 100% !important;
}

/* ── HERO ── */
.ca-hero {
    position: relative !important;
    width: 100% !important;
    height: 457px !important;
    overflow: hidden !important;
}
.ca-hero__track { position: relative !important; width: 100% !important; height: 100% !important; }
.ca-hero__slide {
    position: absolute !important; left: 0 !important; top: 0 !important;
    width: 100% !important; height: 100% !important;
    opacity: 0 !important; transition: opacity 0.6s ease !important;
    pointer-events: none !important;
}
.ca-hero__slide.is-active { opacity: 1 !important; pointer-events: auto !important; }
.ca-hero__bg {
    position: absolute !important; left: 0 !important; top: 0 !important;
    width: 100% !important; height: 100% !important;
    background-size: cover !important; background-position: center !important;
}
.ca-hero__overlay {
    position: absolute !important; left: 0 !important; top: 0 !important;
    width: 100% !important; height: 100% !important;
    background: rgba(0,0,0,0.26) !important;
}
.ca-hero__content {
    position: relative !important; z-index: 2 !important;
    max-width: 1024px !important; margin: 0 auto !important;
    padding: 0 53px !important; height: 100% !important;
    display: flex !important; flex-direction: column !important;
    justify-content: flex-end !important; padding-bottom: 70px !important;
}
.ca-hero__title {
    font-weight: 600 !important; font-size: 47px !important;
    line-height: 1.11 !important; color: #fff !important;
    margin: 0 0 18px 0 !important; padding: 0 !important;
    max-width: 523px !important; text-transform: uppercase !important;
}
.ca-hero__dots {
    position: absolute !important; bottom: 24px !important;
    left: 50% !important; transform: translateX(-50%) !important;
    display: flex !important; gap: 6px !important; z-index: 3 !important;
}
.ca-hero__dot {
    width: 25px !important; height: 10px !important; border-radius: 7px !important;
    border: 1px solid #fff !important; background: transparent !important;
    cursor: pointer !important; padding: 0 !important; outline: none !important;
    transition: background 0.3s !important;
}
.ca-hero__dot.is-active { background: #fff !important; }

/* ── BUTTONS ── */
.ca-btn {
    display: inline-flex !important; align-items: center !important;
    justify-content: center !important;
    width: 173px !important; height: 35px !important;
    font-weight: 400 !important; font-size: 14px !important;
    line-height: 22px !important; text-align: center !important;
    cursor: pointer !important; position: relative !important;
    border: none !important; padding: 0 !important;
    transition: opacity 0.2s !important;
}
.ca-btn:hover { opacity: 0.85 !important; }
.ca-btn--white { background: #fff !important; color: #000 !important; }
.ca-btn--black { background: #000 !important; color: #fff !important; }
.ca-btn span { margin: 0 auto !important; }
.ca-btn__arrow {
    position: absolute !important; right: 15px !important; top: 50% !important;
    transform: translateY(-50%) rotate(-90deg) !important;
    width: 10px !important; height: 3.81px !important;
}

/* ── LOGOS ── */
.ca-logos { background: #dcdcdc !important; padding: 34px 0 !important; overflow: hidden !important; }
.ca-logos__track {
    width: 100% !important; max-width: none !important; margin: 0 !important;
    padding: 0 24px !important;
    display: flex !important; gap: 16px !important;
    align-items: center !important; justify-content: space-evenly !important;
    overflow-x: auto !important;
    scrollbar-width: none !important; -ms-overflow-style: none !important;
    box-sizing: border-box !important;
}
.ca-logos__track::-webkit-scrollbar { display: none !important; }
.ca-logos__item {
    flex: 0 1 144px !important; width: 144px !important; height: 176px !important;
    min-width: 0 !important;
    background: transparent !important; border-radius: 0 !important;
    display: flex !important; align-items: center !important;
    justify-content: center !important;
}
.ca-logos__item img { width: 100% !important; height: 100% !important; max-width: 144px !important; max-height: 176px !important; object-fit: contain !important; }
.ca-logos__placeholder { font-weight: 500 !important; font-size: 16px !important; color: #000 !important; }

/* ── SECTION HEADER ── */
.ca-section__header {
    display: flex !important; align-items: flex-end !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important; gap: 6px 16px !important;
    margin: 0 30px 24px 25px !important; padding: 0 0 8px 0 !important;
}
.ca-section__title {
    flex: 1 1 auto !important; min-width: 0 !important;
    font-weight: 600 !important; font-size: 42px !important;
    line-height: 1.15 !important; color: #000 !important;
    margin: 0 !important; padding: 0 !important;
    letter-spacing: -0.01em !important;
}

/* ════════════════════════════════════════════
   SLIDER — flex row: [arrow] [viewport] [arrow]
   ════════════════════════════════════════════ */
.ca-slider {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}
.ca-slider__arrow {
    flex: 0 0 auto !important;
    width: 36px !important;
    background: none !important; border: none !important;
    cursor: pointer !important; padding: 0 !important;
    color: #171616 !important;
    display: flex !important; align-items: center !important;
    justify-content: center !important;
    margin-top: 90px !important;
    transition: opacity 0.2s !important;
    outline: none !important;
}
.ca-slider--sm .ca-slider__arrow { margin-top: 70px !important; }
.ca-slider__arrow:hover { opacity: 0.5 !important; }
.ca-slider__arrow svg {
    width: 22px !important; height: 11px !important;
    display: block !important;
}
.ca-slider__prev svg { transform: rotate(90deg) !important; }
.ca-slider__next svg { transform: rotate(-90deg) !important; }

.ca-slider__viewport {
    flex: 1 1 auto !important;
    overflow: hidden !important;
    min-width: 0 !important;
    width: auto !important;
    -webkit-overflow-scrolling: auto !important;
}
.ca-slider__track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 0 !important;
    transition: transform 0.45s cubic-bezier(0.25,0.1,0.25,1) !important;
    will-change: transform !important;
    width: max-content !important;
    margin: 0 !important; padding: 0 !important;
}
.ca-slider__slide {
    flex: 0 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    list-style: none !important;
    float: none !important;
    display: block !important;
    vertical-align: top !important;
}

/* ── CARDS — Large (Aktualności, Realizacje): 3 per row ── */
.ca-card { display: block !important; }
.ca-card--lg { width: 100% !important; }
.ca-card--lg .ca-card__img {
    width: 100% !important;
    aspect-ratio: 3 / 2 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    margin: 0 0 16px 0 !important;
}
.ca-card--lg .ca-card__img img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important; display: block !important;
    transition: transform 0.4s ease !important;
    border-radius: 20px !important;
}
.ca-card--lg:hover .ca-card__img img { transform: scale(1.05) !important; }
.ca-card--lg .ca-card__ttl {
    font-weight: 600 !important; font-size: 14px !important;
    line-height: 1.3 !important; color: #0d0d0d !important;
    text-transform: uppercase !important;
    margin: 0 !important; padding: 0 4px 0 0 !important;
}

/* ── CARDS — Small (Testy i Recenzje): 4 per row ── */
.ca-card--sm { width: 100% !important; }
.ca-card--sm .ca-card__img {
    width: 100% !important;
    aspect-ratio: 7 / 4 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin: 0 0 12px 0 !important;
}
.ca-card--sm .ca-card__img img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important; display: block !important;
    transition: transform 0.4s ease !important;
    border-radius: 16px !important;
}
.ca-card--sm:hover .ca-card__img img { transform: scale(1.05) !important; }
.ca-card--sm .ca-card__ttl {
    font-weight: 600 !important; font-size: 12px !important;
    line-height: 1.3 !important; color: #0d0d0d !important;
    text-transform: uppercase !important;
    margin: 0 !important; padding: 0 4px 0 0 !important;
}

/* ── SECTIONS ── */
.ca-aktualnosci { padding: 35px 0 50px !important; background: #fff !important; }
.ca-testy { padding: 0 !important; background: transparent !important; }
.ca-testy__bg { background: #efefef !important; padding: 35px 0 50px !important; }
.ca-realizacje { padding: 35px 0 50px !important; background: #fff !important; }

/* ── O NAS ── */
.ca-about { background: #efefef !important; padding: 40px 0 45px !important; }
.ca-about__sub {
    font-weight: 400 !important; font-size: 16px !important;
    line-height: 22px !important; color: #000 !important;
    margin: 0 0 4px 0 !important;
}
.ca-about__ttl {
    font-weight: 600 !important; font-size: 54px !important;
    line-height: 1.4 !important; color: #000 !important;
    margin: 0 0 14px 0 !important;
}
.ca-about__desc {
    font-weight: 400 !important; font-size: 16px !important;
    line-height: 22px !important; color: #000 !important;
    text-align: justify !important; max-width: 898px !important;
}

/* ── NEWSLETTER ── */
.ca-nl { padding: 30px 0 20px !important; background: #fff !important; }
.ca-nl__line {
    width: 100% !important; height: 1px !important;
    background: rgba(0,0,0,0.2) !important;
    margin: 0 !important; padding: 0 !important;
}
.ca-nl__row {
    display: flex !important; align-items: flex-start !important;
    gap: 60px !important; padding: 28px 0 !important;
}
.ca-nl__left { flex: 0 0 auto !important; max-width: 428px !important; }
.ca-nl__title {
    font-weight: 600 !important; font-size: 34px !important;
    line-height: 40px !important; color: #000 !important;
    margin: 0 0 6px 0 !important;
}
.ca-nl__desc {
    font-weight: 400 !important; font-size: 16px !important;
    line-height: 22px !important; color: #000 !important;
    margin: 0 !important;
}
.ca-nl__right { flex: 1 1 auto !important; max-width: 413px !important; }
.ca-nl__input-row {
    display: flex !important; align-items: center !important;
    background: #f0f0f0 !important; height: 35px !important;
    padding: 0 10px !important; gap: 8px !important;
    margin: 0 0 12px 0 !important;
}
.ca-nl__input {
    flex: 1 1 auto !important; background: transparent !important;
    border: none !important; outline: none !important;
    font-weight: 400 !important; font-size: 14px !important;
    line-height: 22px !important; color: #000 !important;
    height: 100% !important; padding: 0 !important;
}
.ca-nl__input::placeholder { color: #797475 !important; }
.ca-nl__send {
    background: none !important; border: none !important;
    cursor: pointer !important; padding: 0 !important;
    display: flex !important; align-items: center !important;
    color: #000 !important;
}
.ca-nl__send svg { width: 10px !important; height: 4px !important; transform: rotate(-90deg) !important; }
.ca-nl__check {
    display: flex !important; align-items: flex-start !important;
    gap: 8px !important; cursor: pointer !important;
}
.ca-nl__check input[type="checkbox"] { display: none !important; }
.ca-nl__box {
    flex: 0 0 11px !important; width: 11px !important; height: 11px !important;
    background: #f0f0f0 !important; margin-top: 2px !important;
    position: relative !important;
}
.ca-nl__check input:checked + .ca-nl__box::after {
    content: '' !important; position: absolute !important;
    left: 2px !important; top: 2px !important;
    width: 7px !important; height: 7px !important;
    background: #000 !important;
}
.ca-nl__gdpr {
    font-weight: 400 !important; font-size: 12px !important;
    line-height: 16.5px !important; color: #000 !important;
}
.ca-nl__msg {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 14px !important; line-height: 1.4 !important;
    padding: 6px 0 !important;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
    .ca-hero { height: 360px !important; }
    .ca-hero__title { font-size: 34px !important; max-width: 380px !important; }
    .ca-hero__content { padding: 0 24px 60px 24px !important; }
    .ca-section__title { font-size: 28px !important; }
    .ca-section__header { margin: 0 0 18px 0 !important; }
    .ca-btn { width: 155px !important; height: 30px !important; font-size: 12px !important; }
    .ca-slider__arrow { width: 24px !important; margin-top: 55px !important; }
    .ca-slider--sm .ca-slider__arrow { margin-top: 45px !important; }
    .ca-slider__arrow svg { width: 16px !important; height: 8px !important; }
    .ca-card--lg .ca-card__img { border-radius: 16px !important; }
    .ca-card--lg .ca-card__img img { border-radius: 16px !important; }
    .ca-card--sm .ca-card__img { border-radius: 12px !important; }
    .ca-card--sm .ca-card__img img { border-radius: 12px !important; }
    .ca-about__ttl { font-size: 36px !important; }
    .ca-nl__row { flex-direction: column !important; gap: 20px !important; }
    .ca-nl__right { max-width: 100% !important; }
    .ca-nl__title { font-size: 28px !important; }
    .ca-logos__item { width: 100% !important; height: auto !important; aspect-ratio: 144/176 !important; border-radius: 0 !important; flex: initial !important; background: transparent !important; }
    .ca-logos__item img { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; }
    .ca-logos__track { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 14px !important; padding: 0 16px !important; overflow: visible !important; justify-content: stretch !important; max-width: 1024px !important; margin: 0 auto !important; }
    .ca-aktualnosci, .ca-realizacje { padding: 25px 0 40px !important; }
    .ca-testy__bg { padding: 25px 0 40px !important; }
}
@media (max-width: 520px) {
    .ca-hero { height: 300px !important; }
    .ca-hero__title { font-size: 26px !important; max-width: 260px !important; }
    .ca-hero__content { padding: 0 20px 50px 20px !important; }
    .ca-hero__dot { width: 20px !important; height: 8px !important; }
    .ca-section__title { font-size: 22px !important; }
    .ca-section__header { margin: 0 0 14px 0 !important; }
    .ca-btn { width: 140px !important; height: 28px !important; font-size: 11px !important; }
    .ca-btn__arrow { right: 10px !important; width: 8px !important; }
    .ca-slider__arrow { width: 20px !important; margin-top: 35px !important; }
    .ca-slider--sm .ca-slider__arrow { margin-top: 28px !important; }
    .ca-slider__arrow svg { width: 12px !important; height: 6px !important; }
    .ca-card--lg .ca-card__img { border-radius: 12px !important; }
    .ca-card--lg .ca-card__img img { border-radius: 12px !important; }
    .ca-card--lg .ca-card__ttl { font-size: 11px !important; }
    .ca-card--sm .ca-card__img { border-radius: 10px !important; }
    .ca-card--sm .ca-card__img img { border-radius: 10px !important; }
    .ca-card--sm .ca-card__ttl { font-size: 10px !important; }
    .ca-container { padding: 0 10px !important; }
    .ca-about__ttl { font-size: 28px !important; }
    .ca-about__desc { font-size: 14px !important; }
    .ca-nl__title { font-size: 22px !important; }
    .ca-logos__item { width: 100% !important; height: auto !important; aspect-ratio: 144/176 !important; border-radius: 0 !important; flex: initial !important; background: transparent !important; }
    .ca-logos__placeholder { font-size: 12px !important; }
    .ca-logos__track { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; padding: 0 12px !important; gap: 10px !important; overflow: visible !important; justify-content: stretch !important; }
    .ca-aktualnosci, .ca-realizacje { padding: 20px 0 30px !important; }
    .ca-testy__bg { padding: 20px 0 30px !important; }
}