/* =========================== Sekcje =========================== */

#home_about, #home_product, #home_support, #home_order {
    position: relative;
}

#home_about::after, #home_product::after, #home_support::after, #home_order::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: var(--border);
}

#hero-home .layout, #home_about .layout, #home_product .layout, #home_support .layout, #home_order .layout, #home_gallery .layout, #home_partners .layout {
     padding-block: var(--gap-L);
}
       
/* =========================== Section #home_hero =========================== */

#hero-home {
    background: var(--color-gradient);
    padding-top: 40px;
}

#hero-home .grid-layout {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 40px;
}

.hero-content {
    padding-left: 0;
}

.hero-subtitle {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.2;
    color: var(--color-text);
    font-weight: var(--font-regular);
}

#hero-home h1 {
    max-width: 620px;
    margin: 0 0 20px;
    font-size: clamp(40px, 10vw, 52px);
    line-height: 1;
    font-weight: var(--font-bold);
    letter-spacing: -1.5px;
    color: var(--color-text);
}

.hero-description {
    max-width: 570px;
    margin: 0 0 32px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-secondary);
}

#hero-home .button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 24px;

    border-radius: var(--radius);

    background: var(--color-primary);
    color: var(--color-white);

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

#hero-home .button-primary:hover {
    background: color-mix(in srgb, var(--color-primary), #000 15%);
}

#hero-home .buttons {
    display: grid;
    gap: var(--gap-S);
}

#hero-home .buttons .cta-box {
    border: 1px solid var(--border);
}

#hero-home .buttons .cta-box:hover {
    background-color: var(--color-light);
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0px 0 0;
    padding: 0;
    list-style: none;
}

.hero-benefits li {
    position: relative;
    padding-left: 13px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-secondary);
    font-weight: var(--font-semibold);
}

.hero-benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-primary);
    transform: translateY(-50%);
}

.hero-note {
    max-width: 580px;
    margin: 17px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.hero-media {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    width: 100%;
}

.hero-media img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
}

.hero-badge {
    position: static;
    width: 100%;
    padding: 24px;
    background: var(--color-light);
    border-radius: var(--radius);
    box-shadow: none;
    border: 1px solid var(--border);
}

.hero-badge strong {
    display: block;
    margin-bottom: 2px;
    font-size: 24px;
    line-height: 1;
    font-weight: var(--font-semibold);
    color: var(--text);
}

.hero-badge span {
    display: block;
    max-width: none;
    padding-top: 4px;
    font-size: 14px;
    color: var(--text-secondary);
}

@media (min-width: 992px) {

    #hero-home {
        padding-top: 0px;
    }

    #hero-home .grid-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: var(--gap-M);
    }

    .hero-subtitle {
        font-size: 18px;
    }

    #hero-home h1 {
        font-size: clamp(42px, 4vw, 58px);
        line-height: 0.96;
        letter-spacing: -2px;
    }

    .hero-description {
        margin-bottom: 0px;
        font-size: 16px;
        line-height: 1.5;
    }

    .hero-benefits {
        gap: 8px 24px;
    }

    .hero-benefits li {
        font-size: 14px;
    }

    .hero-note {
        font-size: 14px;
    }

    .hero-media {
        display: block;
    }

    .hero-media img {
        aspect-ratio: 1 / 1;
    }

    .hero-badge {
        position: absolute;
        left: -24px;
        bottom: 50px;
        width: 330px;
        padding: var(--gap-M);
        border: 0px;
        background-color: var(--color-white);
        box-shadow: var(--shadow-hover);
    }

    .hero-badge strong {
        font-size: 24px;
    }

    .hero-badge span {
        max-width: 270px;
        padding-top: 6px;
        font-size: 13px;
        line-height: 1.4;
    }

}

@media (min-width: 1200px) {

    #hero-home .buttons {
        display: flex;
        gap: var(--gap-S);
    }
    
}

/* ======= Hero animacja ======= */

.hero-content > div {
    opacity: 0;
    animation: hero-fade-slide 0.8s ease-out forwards;
}

.hero-content > div:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-content > div:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-content > div:nth-child(3) {
    animation-delay: 0.8s;
}

.hero-media {
    opacity: 0;
    animation: hero-media-fade 1s ease-out 0.3s forwards;
}

@keyframes hero-fade-slide {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hero-media-fade {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================== Section #home_product =========================== */

#home_product .layout {
    padding-top: 0;
}


#home_product .product-card-subtitle {
    display: none;
}

#home_product .product-card-title {
    font-size: var(--font-size-L);
}

@media (min-width: 1200px) {
    #home_product .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================== Section #home_about =========================== */

/* ======= Sekcja ======= */

#home_about .layout {
    grid-template-columns: 1fr;
}

#home_about-content {
    grid-column: 1 / -1;
}

#home_about-cards {
    grid-column: 1 / -1;
}

@media (min-width: 1200px) {
    
    #home_about .layout {
        grid-template-columns: repeat(8, 1fr);
        gap: var(--gap-M);
    }
    
    #home_about-content {
        grid-column: 1 / 4;
    }

    #home_about-cards {
        grid-column: 4 / 9;
    }
    
}

/* ======= Karty ======= */

.card-big {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: center;
    gap: var(--gap-M);
    padding: 0;
    padding: 24px 0;
    transition: .2s ease;
    border-bottom: 1px solid var(--border);
}

.card-big:last-child {
    border-bottom: 0px solid var(--color-light);
    padding-bottom: 0;
}

.card-big:first-child {
    padding-top: 0;   
}

/*.card-big:hover {
    box-shadow: var(--shadow-hover);
}*/

.card-big img {
    width: 50px;
    height: 50px;
}

.card-big h3 {
    margin: 0;
    font-size: var(--font-size-L);
    font-weight: var(--font-bold);
    margin-bottom: 12px;
}

.card-big p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

@media (min-width: 992px) {
    
    .card-big img {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 1200px) {
    
    .card-big {
        align-items: center;
        padding: var(--gap-S);
    }
    
    .card-big:last-child {
        padding-bottom: 0;
    }
    
    .card-big:first-child {
        padding-top: 0;   
    }
 
}

/* =========================== Section #home_gallery =========================== */

#home_gallery .flex-box {
    display: grid;
}

@media (min-width: 992px) {

    #home_gallery .product-details_realizations {
        grid-template-columns: repeat(4,minmax(0,1fr));
        gap: var(--gap-M);
    }
    
        #home_gallery .flex-box {
        display: flex;
    }


}

/* =========================== Section #home_banner =========================== */

#home_banner {
    background-color: var(--color-light);
}

#home_banner .layout {
    gap: 0px;
}

#home_banner-content {
    padding: 24px 0;
    align-items: center;
}

@media (min-width: 992px) {

    #home_banner-image {
        grid-column: span 4;
    } 

    #home_banner-content {
        grid-column: span 4;
        padding: 24px;
        align-items: center;
    }

    #home_banner .layout {
        grid-template-columns: repeat(var(--grid-columns), 1fr); 
    }

    #home_banner.section-split::before {
        content: "";
        position: absolute;
        inset: 0;
        right: 50%;

        background:
            url("../img/elements/banner.png")
            center right / cover
            no-repeat;

        z-index: -1;
    }
    
}

/* =========================== Section #home_support =========================== */

#home_support .layout {
    column-gap: var(--gap-M);
    gap: var(--gap-M);
}

/* ======= FAQ ======= */

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: var(--text-secondary);
    font-size: var(--font-size);
    font-weight: var(--font-bold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 12px 12px 12px;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

@media (min-width: 992px) {
    
    .faq-item.active .faq-question {
        background: var(--border);
    }
  
    .faq-question, .faq-answer-content {
        padding: 12px 24px;
    }
    .faq-question:hover {
        background: var(--color-light);
    }
    #home_support-faq {
        grid-column: span 4;
    } 

    #home_support-contact {
        grid-column: span 4;
    }

    #home_support .layout {
        grid-template-columns: repeat(var(--grid-columns), 1fr); 
    }
    
}

/* =========================== Section #home_order =========================== */

.timeline {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.timeline-nav {
    overflow-x: auto;
    overflow-y: hidden;
    margin-inline: calc(var(--gap-M) * -1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-top: 18px;
}

.timeline-nav::-webkit-scrollbar {
    display: none;
}

.timeline-track {
    position: relative;
    display: inline-flex;
    gap: var(--gap-S);
    width: max-content;
    counter-reset: step;
}

.timeline-line {
    position: absolute;
    top: 44px;
    left: calc(var(--timeline-step-width) / 2);
    right: calc(var(--timeline-step-width) / 2);
    height: 2px;
    background: var(--border);
}

.timeline-progress {
    position: absolute;
    top: 44px;
    left: calc(var(--timeline-step-width) / 2);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width .35s ease;
}

.timeline-step {
    position: relative;
    flex: 0 0 var(--timeline-step-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    counter-increment: step;
}

.timeline-label {
    position: relative;
    margin-bottom: 34px;
    padding: 0;
    font-size: var(--font-size);
    font-weight: var(--font-bold);
    color: var(--text);
    z-index: 2;
}

.timeline-label::after {
    content: "0" counter(step);

    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    font-size: 70px;
    font-weight: 700;
    line-height: 1;

    color: var(--color-secondary);
    opacity: 0.04;

    z-index: -1;
    pointer-events: none;
}


.timeline-dot {
    position: absolute;
    top: 36px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--border);
    z-index: 2;
}

.timeline-step.active .timeline-label,
.timeline-step.completed .timeline-label {
    color: var(--color-primary);
}

.timeline-step.active .timeline-dot {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.timeline-step.completed .timeline-dot {
    border-color: var(--color-primary);
}

.timeline-content {
    padding-top: var(--gap-M);
}

.timeline-panel {
    display: none;
}

.timeline-panel.active {
    display: block;
}

.timeline-panel > div {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--gap-M);
}

.timeline-panel > div > div {
    min-width: 0;
}

.timeline-panel h3 {
    margin: 0 0 12px;
    font-size: var(--font-size-L);
    font-weight: var(--font-bold);
}

.timeline-content img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

@media (min-width: 576px) {

    .timeline-nav {
        overflow: visible;
        margin-inline: 0;
        padding-inline: 0;
    }

    .timeline-track {
        display: flex;
        width: 100%;
        gap: 0;
    }

    .timeline-step {
        flex: 1;
    }

    .timeline-line,
    .timeline-progress {
        left: 0;
        right: 0;
    }

    .timeline-panel > div {
        align-items: start;
    }

    .timeline-content img {
        width: 100px;
        height: 100px;
    }

}

/* =========================== Section #home_partners =========================== */

.partners-slider {
    margin-inline: calc(var(--gap-M) * -1);
    overflow: hidden;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: var(--gap-M);
    width: max-content;
    animation: partners-scroll 40s linear infinite;
}

.partner {
    flex: 0 0 120px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gap-M);
}

.partner img {
    max-width: 100%;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

@keyframes partners-scroll {

    from {

        transform:translateX(0);

    }

    to {

        transform:translateX(calc(-50% - (var(--gap-M) / 2)));

    }

}

@media (min-width: 992px) {
    
    .partners-slider {
        margin-inline: 0;
        -webkit-mask-image: linear-gradient(
            to right,
            transparent,
            black 4%,
            black 96%,
            transparent
        );

        mask-image: linear-gradient(
            to right,
            transparent,
            black 4%,
            black 96%,
            transparent
        );
    }
}