/* ==========================================================================
   Front Page CSS - Verale Theme (Exact Bespoke Corporate Architecture)
   Colors: #9366eb (primary purple), #7a46d6 (primary dark), #febd59 (gold accent), #101c26 (dark text)
   ========================================================================== */

:root {
    --fp-bg-color: var(--bg-alt, #f8fafc);
    --fp-card-bg: var(--bg-white, #ffffff);
    --fp-text-main: var(--dark, #101c26);
    --fp-text-muted: var(--text-muted, #64748b);
    --fp-border-color: var(--border-color, #e2e8f0);
    --fp-primary: var(--primary, #9366eb);
    --fp-primary-dark: var(--primary-dark, #7a46d6);
    --fp-primary-light: var(--primary-light, rgba(147, 102, 235, 0.08));
    --fp-gold: var(--gold, #f59e0b);
    --fp-gold-dark: var(--gold-dark, #d97706);
    --fp-gold-gradient: var(--gold-gradient, linear-gradient(135deg, #f5a21e 0%, #eb8a00 100%));
}

/* 1. Global Section Wrappers & Refined Typography */
.fp-section {
    padding: 55px 0;
    position: relative;
}

.fp-section-alt {
    background-color: var(--fp-bg-color);
}

.fp-container,
.section-container,
.process-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.fp-section-header,
.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 36px auto;
}

.fp-section-tag {
    display: inline-block;
    background: rgba(147, 102, 235, 0.08);
    color: var(--fp-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.fp-section-title,
.section-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--fp-text-main) !important;
    line-height: 1.3 !important;
    margin: 0 0 10px 0 !important;
    letter-spacing: -0.3px;
}

.fp-section-subtitle,
.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14.5px;
    color: var(--fp-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Button Styles */
.fp-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--fp-primary) !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    padding: 12px 28px !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(147, 102, 235, 0.28) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
}

.fp-btn-primary:hover {
    background: var(--fp-primary-dark) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(147, 102, 235, 0.38) !important;
}

.fp-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff !important;
    color: var(--fp-primary) !important;
    border: 1.5px solid var(--fp-primary) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    padding: 11px 26px !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.fp-btn-secondary:hover {
    background: var(--fp-primary) !important;
    color: #ffffff !important;
}

.fp-btn-full {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   2. Section: Почему работодатели выбирают нас (3-Card Compact Slider)
   ========================================================================== */
.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);
    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);
}

.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);
    line-height: 1.1;
}

.fp-adv-val-gold {
    color: var(--fp-gold);
}

.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);
    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 {
    font-family: 'Montserrat', monospace, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.fp-adv-cta-wrap {
    margin-top: 26px;
    text-align: center;
}

/* ==========================================================================
   3. Section: Задачи бизнеса (Problems & Solution Banner)
   ========================================================================== */
.fp-problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.fp-problem-item {
    background: #ffffff;
    border: 1px solid var(--fp-border-color);
    border-left: 3.5px solid var(--fp-gold);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 6px rgba(16, 28, 38, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fp-problem-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(147, 102, 235, 0.12);
}

.fp-problem-item-wide {
    grid-column: 1 / -1;
}

.fp-problem-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #fff1db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.fp-problem-icon svg {
    display: block;
    stroke: #ba965e;
    transition: stroke 0.25s ease, transform 0.25s ease;
}

.fp-problem-item:hover .fp-problem-icon {
    background: var(--fp-gold);
    transform: scale(1.06);
}

.fp-problem-item:hover .fp-problem-icon svg {
    stroke: #ffffff;
}

.fp-problem-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #1e293b;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

.fp-problem-highlight,
.fp-problem-text strong {
    color: #d97706;
    font-weight: 700;
}

.fp-solution-banner {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border: 1.5px solid #d8b4fe;
    border-radius: 8px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(147, 102, 235, 0.08);
}

.fp-solution-info h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #5b21b6 !important;
    margin: 0 0 4px 0 !important;
}

.fp-solution-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    color: #4b5563;
    margin: 0;
}

.fp-solution-action {
    flex-shrink: 0;
    text-align: right;
}

.fp-solution-note {
    display: block;
    font-size: 11.5px;
    color: #6b21a8;
    margin-top: 5px;
    font-weight: 600;
}

/* ==========================================================================
   4. Section: Клиенты (Infinite Logo Conveyor)
   ========================================================================== */
.fp-trust-conveyor-wrap {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 12px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.fp-trust-conveyor-track {
    display: flex;
    align-items: center;
    gap: 46px;
    width: max-content;
    will-change: transform;
    animation: fp-conveyor-scroll 48s linear infinite;
}

.fp-trust-conveyor-wrap:hover .fp-trust-conveyor-track {
    animation-play-state: paused;
}

.fp-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.fp-trust-item:hover {
    transform: scale(1.06);
}

.fp-trust-item img {
    height: 44px;
    max-height: 52px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: none !important;
    opacity: 1 !important;
    display: block;
}

@keyframes fp-conveyor-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   5. Section: Результаты, а не обещания (Exact cases.html implementation)
   ========================================================================== */

/* Тег / Бейдж над заголовком: скругление разрешено */
.badge-pill {
    display: inline-block;
    padding: 6px 14px;
    background: #ede9fe;
    color: #895ae3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 14px;
}

/* Сетка слайдеров */
.slider-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
}

@media (max-width: 1024px) {
    .slider-grid {
        grid-template-columns: 1fr;
    }
}

/* Главные карточки слайдеров: фиксированная высота для идеальной симметрии */
.slider-card {
    background: #ffffff;
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 670px;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .slider-card {
        height: auto;
        min-height: auto;
        max-height: none;
    }
}

/* Верхняя панель карточки */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.card-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* BULLET POINTS (ТОЧКИ): расположены сверху над надписями Кейсы и Отзывы */
.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;
}

.card-titles {
    display: flex;
    align-items: baseline;
    flex-direction: column;
    gap: 10px;
}

.card-title-main {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.card-title-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    color: #94a3b8;
    font-weight: 500;
}

.card-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-counter {
    font-family: 'Montserrat', monospace, sans-serif;
    font-size: 13px;
    font-weight: 600;
    min-width: fit-content;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Кнопки перелистывания: круглые фиолетовые primary, при наведении golden */
.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);
}

/* Контейнер слайдов */
.slides-wrapper {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

.slides-track {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.slide-item {
    display: flex !important;
    flex-direction: column;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    overflow: visible;
    opacity: 1;
}

.slide-vertical-stack {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 16px;
    box-sizing: border-box;
    justify-content: flex-start;
}

@keyframes fpFadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Внутреннее разделение */
.slide-split {
    display: grid;
    gap: 24px;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

.slide-split.has-media {
    display: flex;
    overflow: hidden;
}

.slide-split.no-media {
    grid-template-columns: 1fr;
}

@media (max-width: 640px) {
    .slide-split.has-media {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

.slide-text-col {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* ТЕГ КАТЕГОРИИ КЕЙСА */
.case-category {
    align-self: flex-start;
    background: #ede9fe;
    color: #9366eb;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.case-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 14px;
}

.case-description {
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
    margin-bottom: 18px;
    overflow-wrap: break-word;
}

/* МЕТРИКИ В ВИДЕ ТЕГОВ С ВИЗУАЛЬНЫМ РАЗДЕЛИТЕЛЕМ */
.metrics-tags-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 12px;
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.35;
}

.metric-pill .pill-label {
    font-weight: 700;
    color: #64748b;
}

/* ФОТОБЛОК: Высота 330px для идеального баланса и отсутствия переполнения */
.slide-media-col {
    width: 100%;
    height: 330px;
    max-height: 330px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0px;
}

.media-box {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
    cursor: pointer;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid var(--fp-border-color);
    border-radius: 0px !important;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    display: flex;
    position: relative;
}

.media-box:hover {
    border-color: var(--fp-primary, #9366eb);
    opacity: 0.96;
}

.media-box img {
    width: 100% !important;
    object-position: center;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block;
    border-radius: 0px !important;
    transition: transform 0.3s ease;
}

.media-box:hover img {
    transform: scale(1.02);
}

/* ВЕРХНИЕ ЗВЕЗДОЧКИ В ОТЗЫВАХ */
.review-stars-top {
    color: var(--fp-gold);
    font-size: 13.5px;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.author-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 3px;
}

.author-role {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 8px;
}

.author-role span {
    color: var(--fp-primary, #9366eb);
    font-weight: 600;
}

/* БЛОК ЦИТАТЫ */
.review-quote-box {
    background: #f8fafc;
    border-left: 3px solid var(--fp-primary, #9366eb);
    border-radius: 0 4px 4px 0 !important;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
    font-style: italic;
}

/* ЗАГЛУШКИ ДЛЯ СЛАЙДЕРОВ (FALLBACK / STUB) */
.slider-card-empty .card-top {
    border-bottom: 1px dashed #e2e8f0;
}

.slider-stub-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 24px;
    height: 100%;
    flex: 1 1 auto;
    background: #fafafa;
    border: 1.5px dashed #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
}

.slider-stub-badge {
    display: inline-block;
    padding: 4px 14px;
    background: #ede9fe;
    color: var(--fp-primary, #9366eb);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 14px;
}

.slider-stub-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 10px;
}

.slider-stub-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: #64748b;
    max-width: 440px;
    margin: 0 auto 22px auto;
}

.slider-stub-action {
    display: flex;
    justify-content: center;
}

.slider-stub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 0px !important;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.slider-stub-btn:hover {
    transform: translateY(-1px);
}

/* МОДАЛЬНОЕ ОКНО LIGHTBOX: СТРОГО БЕЗ BORDER RADIUS */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(5px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 0 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 14px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: -38px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

/* ==========================================================================
   6. Section: Как мы работаем (Exact howwework.html implementation)
   ========================================================================== */
.fp-workflow-section {
    position: relative;
    overflow: visible !important;
}

.process-layout {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 32px;
    align-items: start;
    position: relative;
    overflow: visible !important;
}

@media (max-width: 1024px) {
    .process-layout {
        grid-template-columns: 1fr;
    }
}

/* ================= ЛЕВАЯ КОЛОНКА: ЭТАПЫ ================= */
.steps-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Блок этапа (фазы) */
.phase-block {
    background: #ffffff;
    border: 1px solid var(--fp-border-color);
    border-radius: 0 !important; /* СТРОГО БЕЗ BORDER RADIUS */
    padding: 28px 30px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.02);
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

/* ТЕГ ФАЗЫ: скругление разрешено */
.phase-badge {
    background: #0f172a;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    min-width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.phase-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

/* Список шагов внутри фазы */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Строка конкретного шага */
.step-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 16px;
    align-items: start;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 0 !important; /* СТРОГО БЕЗ BORDER RADIUS */
    transition: all 0.15s ease;
}

.step-item:hover {
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.05);
}

/* Номер шага */
.step-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #895ae3;
    background: #ede9fe;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 32px !important; /* СТРОГО БЕЗ BORDER RADIUS */
    letter-spacing: -0.02em;
}

.step-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 1px;
}

.step-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
}

.step-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
}

/* ТЕГИ-СТАТУСЫ СПРАВА: скругление разрешено */
.step-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    display: none;
    color: #475569;
    white-space: nowrap;
    align-self: center;
}

.step-tag.accent-soft {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.step-tag.orange-soft {
    background: #fff7ed;
    color: var(--fp-gold);
    border: 1px solid #ffedd5;
}

/* ================= ПРАВАЯ КОЛОНКА: КОМАНДА (STICKY) ================= */
.sidebar-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 85px;
    align-self: start;
    z-index: 10;
}

@media (max-width: 1024px) {
    .sidebar-wrapper {
        position: static;
        top: auto;
    }
}

.team-card {
    background: #ffffff;
    border: 1px solid var(--fp-border-color);
    border-radius: 0 !important; /* СТРОГО БЕЗ BORDER RADIUS */
    overflow: hidden;
    box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.04);
}

/* Фото команды */
.team-media-box {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
    border-bottom: 1px solid var(--fp-border-color);
    overflow: hidden;
    position: relative;
}

.team-media-box img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
}

/* ТЕГ АКТИВНЫХ ПРОЕКТОВ НА ФОТО: скругление разрешено */
.team-status-pill {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.status-indicator {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 999px;
}

.team-content {
    padding: 26px 28px;
}

.team-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #895ae3;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.team-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.team-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 24px;
}

/* Сетка метрик агентства (2x2) */
.team-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #edf2f7;
    border: 1px solid #edf2f7;
    margin-bottom: 24px;
    border-radius: 0 !important;
}

.metric-cell {
    background: #ffffff;
    padding: 14px 16px;
    text-align: center;
}

.metric-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 3px;
}

.metric-sub {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

/* CTA-кнопка: СТРОГО БЕЗ BORDER RADIUS */
.btn-cta {
    display: block;
    width: 100%;
    padding: 15px 20px;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    background: var(--fp-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    border: none;
    border-radius: 0 !important;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    text-decoration: none !important;
    box-sizing: border-box;
}

.btn-cta:hover {
    background: #895ae3;
    transform: translateY(-1px);
}

.contact-fast {
    text-align: center;
    margin-top: 14px;
    font-size: 12.5px;
    color: #64748b;
}

.contact-fast a {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

.contact-fast a:hover {
    color: #4f46e5;
}

/* ==========================================================================
   7. 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;
    }
    .slider-grid {
        grid-template-columns: 1fr;
    }
    .process-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-wrapper {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .fp-section {
        padding: 40px 0;
    }
    .fp-section-title,
    .section-title {
        font-size: 24px !important;
    }
    .fp-section-subtitle,
    .section-subtitle {
        font-size: 13.5px;
    }
    .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;
    }
    .fp-problems-grid {
        grid-template-columns: 1fr;
    }
    .fp-solution-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }
    .fp-solution-action {
        text-align: center;
        width: 100%;
    }
    .fp-solution-action .fp-btn-primary {
        width: 100%;
    }
    .slider-card {
        padding: 20px 16px;
        min-height: auto;
    }
    .phase-block {
        padding: 20px 16px;
    }
    .step-item {
        grid-template-columns: 36px 1fr;
        gap: 12px;
    }
    .step-tag {
        grid-column: 1 / -1;
        justify-self: start;
        margin-top: 4px;
    }
    .team-content {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .fp-problem-item {
        padding: 12px 14px;
        gap: 12px;
    }
    .fp-problem-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
    .fp-problem-icon svg {
        width: 18px;
        height: 18px;
    }
    .fp-problem-text {
        font-size: 13px;
    }
}
