.custom-wrapper {
    background-color: #fff;
    padding: 20px 0;
}

.custom-section {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.row {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    max-width: 92%;
    min-width: 92%;
}

.row:last-child {
    margin-bottom: 0;
}

.rectangle, .square {
    height: 260px !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95));
    color: #fff;
    border-radius: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 20px;
}

.row.row-1 .rectangle {
    flex: 2;
}

.row.row-1 .square {
    flex: 1;
}

.row.row-2 .rectangle {
    flex: 2;
}

.row.row-2 .square {
    flex: 1;
}

.imp {
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin: 0;
    font-size: clamp(2rem, 6vw, 5rem);
}


.rectangle-content {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 20px;
}

.text-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    text-align: left;
}

.text-content h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
}

.text-content p {
    margin: 0 0 auto 0;
    line-height: 1.4;
    color: #fff;
    font-size: clamp(0.8rem, 2vw, 1rem);
}


@media (max-width: 768px) {

    .text-content {
        padding: 10px;
    }

    .rectangle-content {
        gap: 0px;
    }
    
    .text-content p {
        font-size: clamp(0.7rem, 3vw, 0.9rem);
    }
}

@media (max-width: 480px) {
    .text-content p {
        font-size: clamp(0.6rem, 4vw, 0.8rem);
    }
}


.call-button {
    width: fit-content;
    display: flex;
    padding: 10px 15px;
    cursor: pointer;
    gap: 0.4rem;
    font-weight: bold;
    border-radius: 5px;
    text-shadow: 2px 2px 3px rgb(136 0 136 / 50%);
    background: linear-gradient(15deg, #880088, #aa2068, #cc3f47, #de6f3d, #f09f33, #de6f3d, #cc3f47, #aa2068, #880088) no-repeat;
    background-size: 300%;
    color: #fff;
    border: none;
    background-position: left center;
    box-shadow: 0 30px 10px -20px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
    text-decoration: none;
}

.call-button:hover {
    background-position: right center;
    transform: translateY(-2px);
    color: #fff;
}



.slider-rectangle {
    flex: 2;
    height: 260px !important;
    padding: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-container {
    width: 80%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-wrapper {
    position: relative;
    text-align: center;
    width: 100%;
}

.text-background,
.text-foreground {
    color: #fff;
    font-weight: 600;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(2rem, 8vw, 6rem);
}

.text-foreground {
    position: absolute;
    top: 0;
    left: 0;
    clip-path: inset(0 50% 0 0);
}

.slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 8px;
    background-color: #fff;
    cursor: ew-resize;
    z-index: 5;
    transform: translateX(-50%);
    border-radius: 4px;
    transition: background-color 0.2s ease, width 0.2s ease;
}

.slider-line::before {
    content: "";
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: -5px;
    right: -5px;
    background: transparent;
    cursor: ew-resize;
}

.slider-icon {
    position: absolute;
    font-size: 2rem;
    color: #fff;
    transition: color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    bottom: 0px;
}

.slider-icon-left {
    left: -40px;
}

.slider-icon-right {
    right: -40px;
}

.slider-icon:hover {
    color: #fff;
    transform: scale(1.05);
}

.slider-rectangle,
.slider-container,
.text-wrapper,
.text-background,
.text-foreground {
    user-select: none;
}

@media (max-width: 1024px) {
    .row {
        display: block; 
        width: 90%;
        margin: 0 auto;
    }

    .rectangle, .square {
        width: 100%;
    }
}

.tags-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 10px 0;
    
    /* Efekt rozmycia po bokach */
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0));
}

.tags-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    gap: 10px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    position: relative;
}

.marquee {
    display: flex;
    white-space: nowrap;
    gap: 20px;
    width: max-content;
    animation: scroll-left 60s linear infinite;
}

/* Powielenie treści dla płynnego efektu */
.marquee::after {
    content: attr(data-content);
    display: flex;
    gap: 20px;
}

/* Płynna animacja przesuwania w lewo */
@keyframes scroll-left {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-10%);
    }
}

/* Płynna animacja przesuwania w prawo */
@keyframes scroll-right {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(10%);
    }
}

/* Rzędy w lewo */
.row-left {
    animation: scroll-left 40s linear infinite;
}

/* Rzędy w prawo */
.row-right {
    animation: scroll-right 40s linear infinite;
}

/* Styl tagów */
.tag {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    padding: 6px 14px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    transition: background 0.3s ease;
    font-weight: 600;
}

/* Efekt hover */
.tag:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Stylizacja napisu "Podstawy podatkowe" */
.browse-title {
    position: absolute;
    bottom: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-align: center;
    width: 100%;
}

.row img {
    height: 300px;
    width: auto;
}

