/* Baset homepage responsive redesign — desktop + mobile */
[data-baset-page] {
    background: #f7f8f7;
    overflow: clip;
}

.hero-v2 {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: clamp(360px, var(--hero-slide-height, 43vw), 900px);
    min-height: 0;
    overflow: hidden;
    border-radius: 0 0 48px 48px;
    background: #1e2926;
    box-shadow: 0 28px 70px rgba(30, 41, 38, .16);
    transition: height .7s cubic-bezier(.22, 1, .36, 1);
}

.hero-v2__viewport,
.hero-v2__slide,
.hero-v2__picture,
.hero-v2__picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-v2 .hero-v2__slide {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.025);
    transition: opacity .75s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1), visibility .75s;
    pointer-events: none;
}

.hero-v2 .hero-v2__slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

.hero-v2__picture {
    display: block;
    background: #f1f4f2;
}

.hero-v2__picture img {
    display: block;
    object-fit: var(--desktop-fit, cover);
    object-position: center;
}

.hero-v2__slide--product {
    background:
        radial-gradient(circle at 78% 38%, rgba(2, 188, 148, .07), transparent 28%),
        linear-gradient(115deg, #f1f4f2 0%, #ffffff 48%, #eef1ef 100%);
}

.hero-v2__slide--product::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .5;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 148, 148, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 148, 148, .06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 52%, #000 100%);
}

.hero-v2__slide--product .hero-v2__picture {
    inset: 8% 3% 5% 43%;
    width: auto;
    height: auto;
    overflow: hidden;
    border: 1px solid rgba(148, 148, 148, .2);
    border-radius: 34px;
    background: #fff;
    box-shadow: 0 30px 75px rgba(30, 41, 38, .12);
}

.hero-v2__slide--product .hero-v2__picture img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-v2__slide--product .hero-v2__shade {
    background: linear-gradient(90deg, rgba(239, 247, 244, .12) 35%, transparent 70%);
}

.hero-v2__slide--product .hero-v2__content {
    border-color: rgba(148, 148, 148, .24);
    color: #1e2926;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 24px 65px rgba(30, 41, 38, .11);
    backdrop-filter: blur(18px) saturate(1.05);
}

.hero-v2 .hero-v2__slide--product .hero-v2__eyebrow { color: #018374; }
.hero-v2__slide--product .hero-v2__content h1 { color: #1e2926; }
.hero-v2__slide--product .hero-v2__content p { color: #526b65; }
.hero-v2__slide--product .hero-v2__cta { border-color: #018374; }

.hero-v2__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(3, 28, 24, .18), transparent 28%, transparent 68%, rgba(3, 28, 24, .35)),
        linear-gradient(90deg, transparent 34%, rgba(3, 28, 24, var(--hero-overlay, .28)) 100%);
}

.hero-v2__slide--left .hero-v2__shade {
    background:
        linear-gradient(180deg, rgba(3, 28, 24, .16), transparent 30%, transparent 70%, rgba(3, 28, 24, .34)),
        linear-gradient(270deg, transparent 32%, rgba(3, 28, 24, var(--hero-overlay, .28)) 100%);
}

.hero-v2__slide--center .hero-v2__shade {
    background: linear-gradient(180deg, rgba(3, 28, 24, .16), rgba(3, 28, 24, calc(var(--hero-overlay, .28) * .55)) 48%, rgba(3, 28, 24, .42));
}

.hero-v2__content-wrap {
    position: relative;
    z-index: 2;
    width: min(100% - 9vw, 1480px);
    height: 100%;
    margin: 0 auto;
    padding-top: 122px;
    padding-bottom: 88px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    direction: rtl;
}

.hero-v2__slide--left .hero-v2__content-wrap { justify-content: flex-end; }
.hero-v2__slide--center .hero-v2__content-wrap { justify-content: center; text-align: center; }

.hero-v2 .hero-v2__content {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    width: min(510px, 44vw);
    max-width: none;
    padding: clamp(24px, 2.4vw, 38px);
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 26px;
    color: #fff;
    background: linear-gradient(145deg, rgba(30, 41, 38, .92), rgba(5, 50, 43, .78));
    box-shadow: 0 24px 70px rgba(2, 28, 24, .24);
    backdrop-filter: blur(16px) saturate(1.12);
    -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

.hero-v2__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: #dff8ef;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.hero-v2__eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    border-radius: 3px;
    background: #02bc94;
}

.hero-v2 .hero-v2__content h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(1.75rem, 2.8vw, 3.15rem);
    font-weight: 950;
    line-height: 1.42;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.hero-v2 .hero-v2__content p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(.92rem, 1.05vw, 1.08rem);
    font-weight: 600;
    line-height: 1.95;
}

.hero-v2 .hero-v2__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    margin-top: 22px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 14px;
    color: #05322b;
    background: #02bc94;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 950;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.hero-v2__cta svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-v2__cta:hover {
    color: #05322b;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

.hero-v2__controls {
    position: absolute;
    z-index: 5;
    right: 50%;
    bottom: 28px;
    transform: translateX(50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 18px;
    background: rgba(3, 35, 30, .58);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    backdrop-filter: blur(12px);
}

.hero-v2__arrow,
.hero-v2__dot {
    border: 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.hero-v2__arrow {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    transition: background .2s ease, transform .2s ease;
}

.hero-v2__arrow:hover { background: rgba(255, 255, 255, .14); transform: scale(1.05); }
.hero-v2__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero-v2__dots { display: flex; align-items: center; gap: 4px; direction: ltr; }
.hero-v2__dot { width: 28px; height: 38px; padding: 0 5px; display: grid; place-items: center; }
.hero-v2__dot span { display: block; width: 7px; height: 7px; border-radius: 20px; background: rgba(255, 255, 255, .48); transition: width .3s ease, background .3s ease; }
.hero-v2__dot.active span { width: 18px; background: #02bc94; }

.hero-v2__progress {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, .14);
}

.hero-v2__progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #02bc94, #018374); transform-origin: right; transform: scaleX(0); }
.hero-v2.is-playing .hero-v2__progress span { animation: hero-progress var(--hero-duration, 6500ms) linear forwards; }
@keyframes hero-progress { to { transform: scaleX(1); } }

/* Consistent section rhythm and visual language */
#achievements-section {
    margin-top: -42px;
    padding: 0 5vw 84px;
    background: transparent;
}

.achievement-counters {
    max-width: 1480px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.stat-item {
    padding: 28px 20px;
    border-color: #e1e6e3;
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 42px rgba(30, 41, 38, .07);
}

.stat-number { font-size: clamp(2.2rem, 3vw, 3.25rem); }
.stat-text { color: #66756f; font-size: .94rem; line-height: 1.7; }

.products-section,
.clients-section,
.news-section {
    padding: 96px max(5vw, calc((100vw - 1480px) / 2));
}

.products-section { background: #fff; }
.clients-section { background: #f1f4f2; }
.news-section { background: #fff; }

.section-header {
    width: min(720px, 100%);
    margin: 0 auto 46px;
}

.section-header h2 {
    margin-bottom: 12px;
    color: #1e2926;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.35;
}

.section-header p { color: #6a7973; font-size: 1.04rem; line-height: 1.9; }

.homepage-product-viewport { padding: 18px 8px 30px; }
.homepage-product-track { gap: 22px; }
.p-card { border-radius: 24px; border-color: #e1e6e3; box-shadow: 0 14px 36px rgba(30, 41, 38, .07); }
.p-card-img-wrapper { height: 230px; padding: 28px; background: linear-gradient(145deg, #fff, #f1f4f2); }
.p-card-body { padding: 25px 20px; }
.p-card h3 { margin-bottom: 18px; min-height: 3.2em; font-size: 1.05rem; }
.btn-details { min-height: 44px; padding: 10px 18px; border-radius: 13px; }

.homepage-product-controls { padding: 0 4px; }
.homepage-product-arrow { width: 50px; height: 50px; border-radius: 16px; }

.clients-grid { max-width: 1480px; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.client-logo-card { min-height: 132px; padding: 16px; border-radius: 18px; }
.client-logo-card img { max-width: 108px; max-height: 66px; }

.news-grid { max-width: 1480px; margin-right: auto; margin-left: auto; gap: 22px; }
.news-card { border-radius: 24px; border-color: #e1e6e3; box-shadow: 0 12px 34px rgba(30, 41, 38, .055); }
.news-card-image { margin: 11px 11px 0; border-radius: 18px; }
.news-card-content { padding: 24px 21px; }
.news-card-title { font-size: 1.13rem; }
.btn-view-all { min-height: 50px; padding: 12px 34px; border-radius: 14px; }

@media (max-width: 1100px) {
    .achievement-counters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .clients-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .hero-v2 {
        height: clamp(420px, var(--hero-slide-height, 72svh), calc(100svh - 8px));
        min-height: 0;
        max-height: none;
        border-radius: 0 0 30px 30px;
        box-shadow: 0 22px 52px rgba(30, 41, 38, .16);
    }

    .hero-v2__picture img {
        object-fit: var(--mobile-fit, cover);
        object-position: center center;
    }

    .hero-v2__slide--product .hero-v2__picture {
        inset: 88px 14px 285px;
        width: auto;
        height: auto;
        border-radius: 22px;
    }

    .hero-v2__slide--product .hero-v2__shade {
        background: linear-gradient(180deg, transparent 48%, rgba(241, 244, 242, .9) 70%, #f1f4f2 100%);
    }

    .hero-v2__slide--product .hero-v2__content-wrap,
    .hero-v2__slide--product.hero-v2__slide--left .hero-v2__content-wrap {
        padding: 300px 0 86px;
        align-items: flex-end;
        justify-content: center;
        text-align: left;
        direction: ltr;
    }

    .hero-v2__slide--product .hero-v2__content {
        padding: 17px 18px;
        border-radius: 19px;
    }

    .hero-v2__shade,
    .hero-v2__slide--left .hero-v2__shade,
    .hero-v2__slide--center .hero-v2__shade {
        background: linear-gradient(180deg, rgba(3, 28, 24, .25) 0%, transparent 28%, transparent 55%, rgba(3, 28, 24, .2) 72%, rgba(3, 28, 24, .78) 100%);
    }

    .hero-v2__content-wrap,
    .hero-v2__slide--left .hero-v2__content-wrap,
    .hero-v2__slide--center .hero-v2__content-wrap {
        width: calc(100% - 28px);
        padding: 102px 0 102px;
        align-items: flex-start;
        justify-content: center;
        text-align: right;
    }

    .hero-v2 .hero-v2__content {
        width: 100%;
        max-width: 520px;
        padding: 18px 19px;
        border-radius: 20px;
        background: linear-gradient(145deg, rgba(30, 41, 38, .92), rgba(5, 50, 43, .8));
        box-shadow: 0 18px 45px rgba(2, 28, 24, .2);
    }

    .hero-v2__eyebrow { margin-bottom: 7px; font-size: .72rem; }
    .hero-v2 .hero-v2__content h1 { margin-bottom: 7px; font-size: clamp(1.3rem, 6vw, 1.75rem); line-height: 1.45; }
    .hero-v2 .hero-v2__content p { font-size: .84rem; line-height: 1.75; }
    .hero-v2 .hero-v2__cta { min-height: 43px; margin-top: 13px; padding: 8px 15px; border-radius: 12px; font-size: .8rem; }

    .hero-v2__controls { bottom: 18px; gap: 3px; padding: 5px; border-radius: 16px; }
    .hero-v2__arrow { width: 36px; height: 36px; }
    .hero-v2__dot { width: 24px; height: 36px; }

    #achievements-section { margin-top: -18px; padding: 0 14px 62px; }
    .achievement-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .achievement-counters > :first-child { grid-column: 1 / -1; }
    .stat-item { padding: 21px 13px; border-radius: 18px; }
    .stat-number { font-size: 2rem; }
    .has-plus::before { font-size: 1.4rem; }
    .stat-text { font-size: .78rem; line-height: 1.55; }

    .products-section,
    .clients-section,
    .news-section { padding: 64px 14px; }

    .section-header { margin-bottom: 30px; padding: 0 6px; }
    .section-header h2 { font-size: 1.75rem; }
    .section-header p { font-size: .9rem; }

    .homepage-product-track { gap: 14px; }
    .homepage-product-viewport { padding: 12px 5px 25px; }
    .p-card { border-radius: 21px; }
    .p-card-img-wrapper { height: 220px; padding: 25px; }
    .p-card-body { padding: 22px 18px; }
    .homepage-product-arrow { width: 44px; height: 44px; border-radius: 14px; }

    .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
    .client-logo-card { min-height: 112px; padding: 12px; border-radius: 16px; }
    .client-logo-card img { max-width: 92px; max-height: 56px; }
    .client-logo-card span { font-size: .78rem; }

    .news-grid {
        display: grid;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        width: 100%;
        overflow: visible;
        scroll-snap-type: none;
        overscroll-behavior: auto;
        touch-action: pan-y;
        padding: 4px 0;
        margin: 0 0 30px;
    }

    .news-card {
        width: 100%;
        min-width: 0;
        scroll-snap-align: none;
        border-radius: 21px;
    }
    .news-card-content { padding: 21px 18px; }
    .view-all-container { margin-top: 28px; }
    .btn-view-all { width: 100%; max-width: 330px; }
}

@media (max-width: 390px) {
    .hero-v2__content-wrap { padding-top: 92px; }
    .hero-v2 .hero-v2__content { padding: 15px 16px; }
    .hero-v2 .hero-v2__content p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .p-card-img-wrapper { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-v2,
    .hero-v2 .hero-v2__slide,
    .hero-v2__progress span,
    .p-card,
    .news-card,
    .client-logo-card { animation: none !important; transition: none !important; }
}
