/* ==========================================================================
   Reusable Advantages Section & Slider Styles - Verale Theme
   100% pixel-perfect replica of the Front Page «Почему работодатели выбирают нас» block
   ========================================================================== */

.fp-adv-slider-container {
    position: relative;
    margin-top: 26px;
    width: 100%;
}

.fp-adv-slider-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 8px 4px 12px 4px;
    margin: -8px -4px -12px -4px;
}

.fp-adv-slider-track {
    display: flex;
    flex-direction: row;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.fp-adv-slide-item {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    opacity: 1;
    padding: 0 4px;
}

.fp-advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    height: 100%;
}

.fp-adv-card {
    background: #ffffff;
    border: 1px solid var(--fp-border-color, #e2e8f0);
    border-radius: 8px;
    padding: 24px 22px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    box-sizing: border-box;
}

.fp-adv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(16, 28, 38, 0.06);
    border-color: var(--fp-primary, #9366eb);
}

.fp-adv-header {
    min-height: 56px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.fp-adv-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0;
}

.fp-adv-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--fp-primary, #9366eb);
    line-height: 1.1;
}

.fp-adv-val-gold {
    color: var(--fp-gold, #febd59);
}

.fp-adv-val-text {
    font-size: 22px;
    font-weight: 700;
}

.fp-adv-num {
    font-size: 13.5px;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1;
}

.fp-adv-title,
.fp-adv-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--fp-primary, #9366eb);
    margin: 4px 0 0 0;
    line-height: 1.35;
}

.fp-adv-desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

.fp-adv-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

.fp-adv-controls .slider-dots {
    justify-content: center;
}

.fp-adv-counter,
.card-counter {
    font-family: 'Montserrat', monospace, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.05em;
    min-width: fit-content;
}

.fp-adv-cta-wrap {
    margin-top: 26px;
    text-align: center;
}

/* Dots Navigation Styling */
.slider-dots {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    min-height: 14px;
    height: 14px;
    position: relative;
}

.slider-dots.is-carousel {
    width: 76px;
    max-width: 76px;
    overflow: hidden;
}

.slider-dots-track {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    flex-shrink: 0;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    flex-shrink: 0;
    transform-origin: center center;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
}

.dot:hover {
    background: #94a3b8;
}

.dot.active,
.dot.dot-active {
    width: 20px;
    background: var(--fp-primary, #9366eb);
    transform: scale(1);
    opacity: 1;
    cursor: default;
}

.dot.dot-near-1 {
    transform: scale(1);
    opacity: 0.9;
}

.dot.dot-near-2 {
    transform: scale(0.7);
    opacity: 0.65;
}

.dot.dot-near-3 {
    transform: scale(0.45);
    opacity: 0.35;
}

.dot.dot-far {
    transform: scale(0.2);
    opacity: 0;
    pointer-events: none;
}

/* Nav Buttons (Round Purple Primary, Golden on hover) */
.nav-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 50% !important;
    border: none !important;
    background: var(--fp-primary, #9366eb) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    user-select: none;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(147, 102, 235, 0.25);
    padding: 0;
    margin: 0;
}

.nav-btn svg {
    display: block;
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    pointer-events: none;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: var(--fp-gold, #febd59) !important;
    box-shadow: 0 4px 12px rgba(254, 189, 89, 0.45);
    transform: translateY(-1px);
}

.nav-btn:active {
    transform: translateY(0);
}

/* Responsive Calibrations */
@media (max-width: 1024px) {
    .fp-advantages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .fp-adv-card {
        padding: 18px 14px;
    }
    .fp-adv-val {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .fp-advantages-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .fp-adv-card {
        padding: 14px 16px;
    }
    .fp-adv-header {
        min-height: auto;
        margin-bottom: 6px;
    }
    .fp-adv-val {
        font-size: 22px;
    }
}
