/* =====================================================
   Flatsome Corner Slider — fcs.css
   ===================================================== */

.fcs-slider {
    position: relative;
    width: 100%;
    --fcs-arrow-color: #111;
    --fcs-arrow-size: 32px;
    --fcs-arrow-offset: 24px;
    --fcs-dots-color: #111;
    --fcs-slides-per-view: 1;
    --fcs-slide-gap: 0px;
    --fcs-slider-bg: #111;
    display: flex;
    flex-direction: column;
    user-select: none;
    -webkit-user-select: none;
}

.fcs-slider--fullwidth {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.fcs-slider__row {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
}

.fcs-slider__container {
    background: var(--fcs-slider-bg);
    width: 100%;
    position: relative;
    flex: 1 1 auto;
    align-self: stretch;
    overflow: hidden;
    height: 100%;
    min-width: 0;
    cursor: grab;
}

.fcs-slider__container:active {
    cursor: grabbing;
}

.fcs-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    gap: var(--fcs-slide-gap);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.fcs-slide {
    position: relative;
    flex: 0 0 calc((100% - (var(--fcs-slide-gap) * (var(--fcs-slides-per-view) - 1))) / var(--fcs-slides-per-view));
    width: calc((100% - (var(--fcs-slide-gap) * (var(--fcs-slides-per-view) - 1))) / var(--fcs-slides-per-view));
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 1;
    z-index: 0;
}

.fcs-slide__media {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
}

.fcs-slide__overlay { 
    position: absolute; 
    inset: 0; 
    z-index: 1; 
    pointer-events: none; 
}

.fcs-slide__link { 
    position: absolute; 
    inset: 0; 
    z-index: 2; 
}

.fcs-slide__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: 60px 72px;
    gap: 14px;
    box-sizing: border-box;
    height: 100%;
    pointer-events: none;
}

.fcs-slide__content * {
    pointer-events: auto;
}

/* Кнопка под слайдом */
.fcs-slide__caption {
    flex-shrink: 0;
    padding: 16px 4px 0;
    pointer-events: none;
}

.fcs-slide__caption a {
    pointer-events: auto;
}

/* Выравнивание кнопки */
.fcs-slide__caption--left { text-align: left; }
.fcs-slide__caption--center { text-align: center; }
.fcs-slide__caption--right { text-align: right; }

.fcs-slide__btn {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    color: #111;
    font-family: inherit;
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 10;
}

/* Hover-режим */
.fcs-slider--btn-hover .fcs-slide__btn {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fcs-slider--btn-hover .fcs-slide:hover .fcs-slide__btn,
.fcs-slider--btn-hover .fcs-slide.is-active .fcs-slide__btn {
    opacity: 1;
    visibility: visible;
}

/* Стили кнопок */
.fcs-slide__btn--size-small { padding: 6px 14px; font-size: 12px; }
.fcs-slide__btn--size-medium { padding: 10px 22px; font-size: 14px; }
.fcs-slide__btn--size-large { padding: 13px 30px; font-size: 16px; }
.fcs-slide__btn--size-xlarge { padding: 16px 38px; font-size: 18px; }

.fcs-slide__btn--custom-font-size {
    font-size: var(--fcs-btn-font-size, 14px);
}

.fcs-slide__btn:hover,
.fcs-slide__btn--filled {
    background: currentColor;
    color: #000 !important;
}

.fcs-slide__btn--outline {
    border: 2px solid currentColor;
    background: transparent;
}

.fcs-slide__btn--underline {
    border: none;
    border-bottom: 2px solid currentColor;
    padding: 8px 0;
    background: transparent !important;
}

.fcs-slide__btn--text_only {
    border: none;
    padding: 8px 0;
    background: transparent !important;
}

/* Стрелки внизу — по углам */
.fcs-slider__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px var(--fcs-arrow-offset) 0;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
}

.fcs-slider__bottom .fcs-dots-wrapper,
.fcs-slider__bottom .fcs-slide-counter {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Стрелки */
.fcs-arrow {
    flex: 0 0 auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--fcs-arrow-color, #111);
    opacity: 0.8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    z-index: 10;
    position: relative;
}

.fcs-arrow:hover { opacity: 1; }
.fcs-arrow--prev:hover { transform: translateX(-3px); }
.fcs-arrow--next:hover { transform: translateX(3px); }

.fcs-arrow svg {
    width: var(--fcs-arrow-size);
    height: calc(var(--fcs-arrow-size) * 0.35);
    stroke: currentColor;
}

/* Dots и счётчик */
.fcs-dots-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.fcs-dot {
    width: 10px;
    height: 10px;
    background: var(--fcs-dots-color);
    opacity: 0.35;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    position: relative;
}

.fcs-dot.is-active {
    opacity: 1;
    transform: scale(1.4);
}

.fcs-slide-counter {
    color: var(--fcs-arrow-color);
    font-size: 14px;
    opacity: 0.7;
    min-width: 50px;
    text-align: center;
}

/* Мобильные стили */
@media (max-width: 767px) {
    .fcs-slide__content { padding: 40px 24px; }
    .fcs-slider { --fcs-arrow-offset: 12px; --fcs-arrow-size: 24px; }
    .fcs-slider__bottom {
        padding: 12px 12px 0;
        flex-wrap: wrap;
        gap: 8px;
    }
    .fcs-slider__bottom .fcs-dots-wrapper,
    .fcs-slider__bottom .fcs-slide-counter {
        position: static;
        transform: none;
        margin: 8px auto;
    }
}