* =====================================================
   Flatsome Hero Slider — fhs.css v1.3.0
   Style inspired by monmou.ua
   ===================================================== */

/* ── SLIDER WRAPPER ─────────────────────────────── */
.fhs-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
    --fhs-arrow-color: #fff;
    --fhs-tab-size: 11px;
    --fhs-tab-weight: 400;
    --fhs-tab-spacing: 28px;
}

/* ── TRACK ──────────────────────────────────────── */
.fhs-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── SLIDE ──────────────────────────────────────── */
.fhs-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.fhs-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Slide transition — fade (default) */
.fhs-transition-fade .fhs-slide {
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.fhs-transition-fade .fhs-slide.is-active {
    opacity: 1;
}

/* Slide transition — horizontal slide */
.fhs-transition-slide .fhs-slide {
    transform: translateX(100%);
    opacity: 1;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.fhs-transition-slide .fhs-slide.is-prev {
    transform: translateX(-100%);
}
.fhs-transition-slide .fhs-slide.is-active {
    transform: translateX(0);
    opacity: 1;
}

/* ── OVERLAY ────────────────────────────────────── */
.fhs-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ── WHOLE-SLIDE LINK ───────────────────────────── */
.fhs-slide__link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* ── SLIDE CONTENT ──────────────────────────────── */
.fhs-slide__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: 60px 72px 80px;
    gap: 14px;
    box-sizing: border-box;
    max-width: 100%;
}

.fhs-slide__subtitle {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.75;
    font-family: inherit;
}

.fhs-slide__title {
    margin: 0;
    font-size: clamp(26px, 4.5vw, 56px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: 0.02em;
    font-family: inherit;
}

.fhs-slide__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    max-width: 420px;
    opacity: 0.85;
    font-family: inherit;
}

/* ── BUTTON WRAPPER ────────────────────────────────── */
.fhs-slide__btn-wrapper {
    display: block;
    width: 100%;
}

/* ── BUTTON STYLES ────────────────────────────────── */
.fhs-slide__btn {
    display: inline-block;
    margin-top: 0;
    padding: 0;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 400;
    text-decoration: none;
    line-height: 1.8;
    transition: all 0.25s ease;
    width: fit-content;
    cursor: pointer;
    border: none;
    background: none;
}

/* Center button within wrapper */
.fhs-slide__btn-wrapper[style*="text-align:center"] .fhs-slide__btn {
    margin-left: auto;
    margin-right: auto;
}

.fhs-slide__btn-wrapper[style*="text-align:right"] .fhs-slide__btn {
    margin-left: auto;
    margin-right: 0;
}

/* Underline style (default) */
.fhs-btn--underline {
    border-bottom: 1px solid currentColor;
}
.fhs-btn--underline:hover {
    opacity: 0.6;
}

/* Outline style */
.fhs-btn--outline {
    padding: 10px 24px;
    border: 1px solid currentColor;
    background: transparent;
}
.fhs-btn--outline:hover {
    background: currentColor;
    color: #fff !important;
}

/* Filled style */
.fhs-btn--filled {
    padding: 10px 24px;
    border: 1px solid currentColor;
}
.fhs-btn--filled:hover {
    opacity: 0.8;
}

/* Text only style */
.fhs-btn--text_only {
    border: none;
}
.fhs-btn--text_only:hover {
    opacity: 0.6;
}

/* ── TABS — GENERAL ───────────────────────────────── */
.fhs-tabs {
    position: absolute;
    z-index: 10;
    display: flex;
    pointer-events: auto;
}

/* ── TABS — CENTER POSITION ──────────────────────── */
.fhs-tabs--center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    flex-direction: row;
    gap: var(--fhs-tab-spacing);
}

/* ── TABS — CUSTOM POSITION ──────────────────────── */
.fhs-tabs--custom {
    align-items: center;
    flex-direction: row;
    gap: var(--fhs-tab-spacing);
}

/* ── TABS — RIGHT POSITION ────────────────────────── */
.fhs-tabs--right {
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    align-items: flex-end;
    flex-direction: column;
    gap: var(--fhs-tab-spacing);
}

/* ── TABS — LEFT POSITION ─────────────────────────── */
.fhs-tabs--left {
    left: 36px;
    top: 50%;
    transform: translateY(-50%);
    align-items: flex-start;
    flex-direction: column;
    gap: var(--fhs-tab-spacing);
}

/* ── TABS — BOTTOM POSITION ────────────────────────── */
.fhs-tabs--bottom {
    bottom: 80px;
    left: 72px;
    flex-direction: row;
    gap: 32px;
    align-items: center;
    top: auto;
    transform: none;
}

/* ── VERTICAL TEXT ORIENTATION ────────────────────── */
/* Center: vertical text with line below */
.fhs-tabs--center .fhs-tab,
.fhs-tabs--custom .fhs-tab {
    flex-direction: column-reverse;
    gap: 12px;
    align-items: center;
    writing-mode: vertical-rl;
    letter-spacing: 0.16em;
    text-orientation: mixed;
}

.fhs-tabs--center .fhs-tab__line,
.fhs-tabs--custom .fhs-tab__line {
    width: 1px;
    height: 24px;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.fhs-tabs--center .fhs-tab.is-active .fhs-tab__line,
.fhs-tabs--custom .fhs-tab.is-active .fhs-tab__line {
    height: 48px;
    width: 1px;
}

.fhs-tabs--center .fhs-tab__label,
.fhs-tabs--custom .fhs-tab__label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.16em;
}

/* Right side: vertical text with line below */
.fhs-tabs--right .fhs-tab {
    flex-direction: column-reverse;
    gap: 8px;
    align-items: center;
    writing-mode: vertical-rl;
    letter-spacing: 0.16em;
}

.fhs-tabs--right .fhs-tab__line {
    width: 1px;
    height: 24px;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.fhs-tabs--right .fhs-tab.is-active .fhs-tab__line {
    height: 48px;
    width: 1px;
}

.fhs-tabs--right .fhs-tab__label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.16em;
}

/* Left side: vertical text with line below */
.fhs-tabs--left .fhs-tab {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    writing-mode: vertical-rl;
    letter-spacing: 0.16em;
}

.fhs-tabs--left .fhs-tab__line {
    width: 1px;
    height: 24px;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.fhs-tabs--left .fhs-tab.is-active .fhs-tab__line {
    height: 48px;
    width: 1px;
}

.fhs-tabs--left .fhs-tab__label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.16em;
}

/* Bottom: default horizontal */
.fhs-tabs--bottom .fhs-tab {
    flex-direction: column;
    gap: 6px;
    writing-mode: horizontal-tb;
}

.fhs-tabs--bottom .fhs-tab__line {
    width: 24px;
    height: 1px;
}

.fhs-tabs--bottom .fhs-tab.is-active .fhs-tab__line {
    width: 40px;
    height: 1px;
}

/* Vertical orientation for bottom tabs */
.fhs-tabs--bottom.fhs-tabs--vertical .fhs-tab {
    flex-direction: row;
    gap: 10px;
    writing-mode: horizontal-tb;
}

.fhs-tabs--bottom.fhs-tabs--vertical .fhs-tab__line {
    width: 1px;
    height: 24px;
}

.fhs-tabs--bottom.fhs-tabs--vertical .fhs-tab.is-active .fhs-tab__line {
    height: 40px;
    width: 1px;
}

/* ── TAB BUTTON ─────────────────────────────────── */
.fhs-tab {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-size: var(--fhs-tab-size);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: var(--fhs-tab-weight);
    font-family: inherit;
    opacity: 0.45;
    transition: opacity 0.3s;
}

.fhs-tab:hover {
    opacity: 0.75;
}

.fhs-tab.is-active {
    opacity: 1;
}

/* ── TAB LINE ────────────────────────────────────── */
.fhs-tab__line {
    display: block;
    background: currentColor;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

/* ── TAB LABEL ───────────────────────────────────── */
.fhs-tab__label {
    white-space: nowrap;
    line-height: 1;
}

/* ── ARROWS ─────────────────────────────────────── */
.fhs-arrows {
    position: absolute;
    bottom: 36px;
    right: 36px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 24px;
}

.fhs-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    color: var(--fhs-arrow-color);
    opacity: 0.7;
    transition: opacity 0.25s;
    display: flex;
    align-items: center;
}

.fhs-arrow:hover {
    opacity: 1;
}

.fhs-arrow svg {
    width: 46px;
    height: 14px;
    display: block;
}

/* ── PROGRESS BAR ───────────────────────────────── */
.fhs-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background: rgba(255,255,255,0.5);
    width: 0;
    z-index: 10;
    animation: fhs-progress-anim linear infinite;
    animation-play-state: running;
}

@keyframes fhs-progress-anim {
    from { width: 0; }
    to   { width: 100%; }
}

.fhs-slider.is-paused .fhs-progress {
    animation-play-state: paused;
}

/* ── MOBILE ─────────────────────────────────────── */
@media (max-width: 767px) {
    .fhs-slide__content {
        padding: 40px 24px 100px;
        gap: 10px;
    }

    .fhs-slide__title {
        font-size: clamp(22px, 7vw, 36px);
    }

    .fhs-slide__desc {
        font-size: 13px;
        max-width: 100%;
    }

    /* Mobile: horizontal tabs at bottom for center position */
    .fhs-tabs--center,
    .fhs-tabs--custom {
        bottom: 40px;
        top: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }

    .fhs-tabs--center .fhs-tab,
    .fhs-tabs--custom .fhs-tab {
        flex-direction: column;
        gap: 4px;
        writing-mode: horizontal-tb;
    }

    .fhs-tabs--center .fhs-tab__line,
    .fhs-tabs--custom .fhs-tab__line {
        width: 18px !important;
        height: 1px !important;
    }

    .fhs-tabs--center .fhs-tab.is-active .fhs-tab__line,
    .fhs-tabs--custom .fhs-tab.is-active .fhs-tab__line {
        width: 28px !important;
        height: 1px !important;
    }

    .fhs-tabs--center .fhs-tab__label,
    .fhs-tabs--custom .fhs-tab__label {
        writing-mode: horizontal-tb;
        font-size: 9px;
        display: block;
    }

    /* Mobile: right and left tabs */
    .fhs-tabs--right,
    .fhs-tabs--left {
        bottom: 36px;
        top: auto;
        left: 24px;
        right: auto;
        transform: none;
        flex-direction: row;
        gap: 18px;
        align-items: center;
    }

    .fhs-tabs--right .fhs-tab,
    .fhs-tabs--left .fhs-tab {
        flex-direction: column;
        gap: 5px;
        writing-mode: horizontal-tb;
    }

    .fhs-tabs--right .fhs-tab__line,
    .fhs-tabs--left .fhs-tab__line {
        width: 18px !important;
        height: 1px !important;
    }

    .fhs-tabs--right .fhs-tab.is-active .fhs-tab__line,
    .fhs-tabs--left .fhs-tab.is-active .fhs-tab__line {
        width: 28px !important;
        height: 1px !important;
    }

    .fhs-tabs--right .fhs-tab__label,
    .fhs-tabs--left .fhs-tab__label {
        display: none;
    }

    .fhs-arrows {
        bottom: 30px;
        right: 20px;
        gap: 16px;
    }

    .fhs-arrow svg {
        width: 32px;
        height: 10px;
    }
    
    .fhs-tabs--bottom {
        bottom: 100px;
        left: 24px;
        flex-direction: row;
        gap: 20px;
    }
    
    .fhs-tabs--bottom.fhs-tabs--vertical {
        flex-direction: column;
        gap: 15px;
        bottom: 100px;
        left: 24px;
    }
    
    .fhs-tabs--bottom .fhs-tab__label {
        display: block;
        font-size: 9px;
    }
}

/* ── TAB LABEL MULTI-LINE ──────────────────────────── */
.fhs-tab__label {
    white-space: normal;
    word-wrap: break-word;
    max-width: 80px;
    text-align: center;
    line-height: 1.2;
}

/* Для вертикальных табов (center, custom, right, left) */
.fhs-tabs--center .fhs-tab__label,
.fhs-tabs--custom .fhs-tab__label,
.fhs-tabs--right .fhs-tab__label,
.fhs-tabs--left .fhs-tab__label {
    max-width: 60px;
    text-align: center;
    word-break: break-word;
}

/* Для bottom табов */
.fhs-tabs--bottom .fhs-tab__label {
    max-width: 80px;
    text-align: center;
}

/* Для вертикальной ориентации bottom табов */
.fhs-tabs--bottom.fhs-tabs--vertical .fhs-tab__label {
    max-width: 100px;
    text-align: left;
}

/* Мобильные устройства */
@media (max-width: 767px) {
    .fhs-tab__label {
        max-width: 60px;
        font-size: 9px;
    }
    
    .fhs-tabs--center .fhs-tab__label,
    .fhs-tabs--custom .fhs-tab__label {
        max-width: 50px;
        font-size: 8px;
    }
}