/* Секция экспертов — блок доверия */

/* Контейнер секции */
.experts-section {
    padding: 60px 0 40px 0;
    background: transparent;
    position: relative;
    overflow: visible;
}

.experts-section > .container {
    padding: 0 max(20px, var(--safe-area-inset-left));
}

.experts-section::before {
    display: none;
}

.experts-section::after {
    display: none;
}


/* Заголовок секции экспертов */

.experts-header {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    z-index: 1;
}

.experts-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.08) 0%,
        rgba(236, 72, 153, 0.06) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    font-family: var(--font-family-heading);
    font-size: 12px;
    font-weight: 700;
    color: rgba(192, 132, 252, 0.9);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.experts-header .section-title {
    max-width: 700px;
    margin: 0 auto 16px;
    line-height: 1.3;
}

.experts-header .section-subtitle {
    font-size: 17px;
    color: var(--color-text-muted);
    margin-top: 0;
    line-height: 1.65;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* Сетка экспертов */

.experts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}


/* Карточка эксперта */

.expert-card {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.expert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 92, 246, 0.03);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Фото эксперта */
.expert-photo-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 420px;
    overflow: hidden;
}

.expert-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: brightness(0.95) contrast(1.05);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.expert-photo-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top,
        rgba(22, 16, 48, 1) 0%,
        rgba(22, 16, 48, 0.8) 30%,
        transparent 100%);
    pointer-events: none;
}

/* Статус эксперта (бейдж на фото) */
.expert-status {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(10, 13, 26, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(16, 185, 129, 0.9);
    z-index: 2;
    letter-spacing: 0.3px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 4px rgba(16, 185, 129, 0.4);
}

/* Информация об эксперте */
.expert-info {
    padding: 24px 28px 32px;
    position: relative;
    z-index: 1;
}

.expert-name {
    font-family: var(--font-family-heading);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* Теги специализации */
.expert-titles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.expert-title-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(192, 132, 252, 0.85);
    letter-spacing: 0.2px;
}

/* Статистика эксперта */
.expert-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.expert-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.expert-stat-number {
    font-family: var(--font-family-heading);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.expert-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.1px;
}

/* Биография */
.expert-bio {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(232, 238, 243, 0.8);
    margin-bottom: 20px;
}

/* Цитата эксперта */
.expert-quote {
    position: relative;
    padding: 16px 20px;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.06) 0%,
        rgba(236, 72, 153, 0.04) 100%);
    border-left: 3px solid rgba(139, 92, 246, 0.4);
    border-radius: 0 12px 12px 0;
    font-family: var(--font-family-serif);
    font-size: 15px;
    font-style: italic;
    line-height: 1.65;
    color: rgba(232, 238, 243, 0.75);
    margin: 0;
}


/* Блок доверия (иконки) */

.experts-trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(20, 20, 35, 0.35);
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.trust-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 12px;
    line-height: 1;
}

.trust-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trust-text strong {
    font-family: var(--font-family-base);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.1px;
}

.trust-text span {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.4;
}


/* Секция гарантии (в конце страницы) */

.guarantee-section {
    padding: 0 0 40px 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.guarantee-section > .container {
    padding: 0 max(20px, var(--safe-area-inset-left));
}

/* Блок гарантии */

.experts-guarantee {
    text-align: center;
    padding: 32px 28px;
    background: rgba(4, 120, 87, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.guarantee-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(16, 185, 129, 0.9);
    margin-bottom: 14px;
    letter-spacing: 0.4px;
    position: relative;
    z-index: 1;
}

.guarantee-title {
    font-family: var(--font-family-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.guarantee-text {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(232, 238, 243, 0.6);
    max-width: 540px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.guarantee-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
    margin-top: 4px;
}

.guarantee-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.guarantee-stat-number {
    font-family: var(--font-family-heading);
    font-size: 22px;
    font-weight: 700;
    color: rgba(16, 185, 129, 0.9);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.guarantee-stat-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(232, 238, 243, 0.55);
    text-align: center;
    line-height: 1.3;
}


/* CTA блок экспертов */

.experts-cta {
    text-align: center;
    position: relative;
    z-index: 1;
}

.btn-experts-cta {
    width: 100%;
    max-width: 100%;
    padding: 22px 32px;
    background: linear-gradient(135deg,
        #047857 0%,
        #059669 25%,
        #10b981 50%,
        #059669 75%,
        #047857 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 16px;
    color: white;
    font-size: clamp(15px, 3.5vw, 20px);
    font-weight: 800;
    font-family: var(--font-family-heading);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(4, 120, 87, 0.25);
    position: relative;
    overflow: hidden;
    min-height: 64px;
    box-sizing: border-box;
    contain: layout style paint;
    isolation: isolate;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.btn-experts-cta .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent);
    z-index: 1;
}

.btn-experts-cta .btn-text {
    position: relative;
    z-index: 2;
    font-family: var(--font-family-heading);
    white-space: nowrap;
}

.btn-experts-cta:active {
    transform: translateY(-1px) scale(1);
}

/* Анимации экспертного CTA удалены для легковесности */

.experts-cta-hint {
    font-size: 11px;
    color: rgba(232, 238, 243, 0.4);
    margin-top: 10px;
    letter-spacing: 0.3px;
    font-weight: 400;
}


/* Методология — подблок */

.experts-methodology {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.methodology-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(20, 20, 35, 0.35);
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.methodology-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.15) 0%,
        rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 10px;
    font-family: var(--font-family-heading);
    font-size: 14px;
    font-weight: 700;
    color: rgba(192, 132, 252, 0.95);
}

.methodology-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.methodology-content strong {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.methodology-content span {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}


/* Адаптивность экспертов — десктоп (1025px+) */

@media (min-width: 1025px) {
    .experts-section {
        padding: 80px 0 60px;
    }

    .experts-section > .container {
        padding: 0 40px;
    }

    .experts-header {
        margin-bottom: 64px;
    }

    .experts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .expert-photo-wrapper {
        max-height: 360px;
    }

    .expert-info {
        padding: 24px 24px 28px;
    }

    .expert-name {
        font-size: 20px;
    }

    .expert-stat-number {
        font-size: 20px;
    }

    .expert-bio {
        font-size: 14px;
    }

    .expert-quote {
        font-size: 14px;
        padding: 14px 18px;
    }

    .experts-trust {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-bottom: 48px;
    }

    .guarantee-section {
        padding: 0 0 60px 0;
    }
    
    .guarantee-section > .container {
        padding: 0 40px;
        max-width: 100%;
    }

    .experts-guarantee {
        padding: 40px 48px;
        margin-bottom: 0;
    }

    .guarantee-title {
        font-size: 26px;
    }

    .guarantee-text {
        font-size: 15px;
        max-width: 620px;
    }

    .guarantee-stats {
        gap: 24px;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .guarantee-stat-number {
        font-size: 28px;
    }

    .guarantee-stat-label {
        font-size: 13px;
    }

    .experts-methodology {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .experts-cta {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-experts-cta {
        font-size: 20px;
        padding: 24px 40px;
        min-height: 72px;
    }

    .btn-experts-cta .btn-text {
        font-size: 20px;
    }
}


/* Адаптивность экспертов — планшеты (769px-1024px) */

@media (min-width: 769px) and (max-width: 1024px) {
    .experts-section {
        padding: 60px 0 50px;
    }

    .experts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .expert-photo-wrapper {
        max-height: 300px;
    }

    .expert-info {
        padding: 20px 18px 24px;
    }

    .expert-name {
        font-size: 18px;
    }

    .expert-stat-number {
        font-size: 18px;
    }

    .expert-stats {
        gap: 16px;
    }

    .expert-bio {
        font-size: 13px;
    }

    .expert-quote {
        font-size: 13px;
        padding: 12px 16px;
    }

    .experts-trust {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .experts-methodology {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-experts-cta {
        font-size: 18px;
    }
}


/* Адаптивность экспертов — средние мобильные (481px-768px) */

@media (min-width: 481px) and (max-width: 768px) {
    .experts-section {
        padding: 48px 0 40px;
    }

    .experts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .expert-card {
        display: grid;
        grid-template-columns: 180px 1fr;
    }

    .expert-photo-wrapper {
        aspect-ratio: auto;
        max-height: none;
        height: 100%;
    }

    .expert-photo-wrapper::after {
        background: linear-gradient(to left,
            rgba(22, 16, 48, 1) 0%,
            rgba(22, 16, 48, 0.6) 40%,
            transparent 100%);
    }

    .expert-info {
        padding: 20px 24px;
    }

    .experts-trust {
        grid-template-columns: 1fr;
    }

    .guarantee-stat-number {
        font-size: 20px;
    }

    .guarantee-stat-label {
        font-size: 11px;
    }
}


/* Адаптивность экспертов — мобильные (max-width: 480px) */

@media (max-width: 480px) {
    .experts-section {
        padding: 40px 0 32px;
    }

    .experts-section > .container {
        padding: 0 max(16px, var(--safe-area-inset-left));
    }

    .experts-header {
        margin-bottom: 36px;
    }

    .experts-badge {
        font-size: 11px;
        padding: 6px 16px;
        margin-bottom: 18px;
        letter-spacing: 1px;
    }

    .experts-header .section-title {
        font-size: 21px;
    }

    .experts-header .section-subtitle {
        font-size: 14px;
    }

    .experts-grid {
        gap: 20px;
        margin-bottom: 36px;
    }

    .expert-card {
        border-radius: 20px;
    }

    .expert-photo-wrapper {
        max-height: 380px;
    }

    .expert-info {
        padding: 20px 20px 28px;
    }

    .expert-name {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .expert-title-tag {
        font-size: 11px;
        padding: 4px 10px;
    }

    .expert-stats {
        gap: 20px;
        padding: 14px 0;
    }

    .expert-stat-number {
        font-size: 20px;
    }

    .expert-stat-label {
        font-size: 11px;
    }

    .expert-bio {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .expert-quote {
        font-size: 14px;
        padding: 14px 16px;
    }

    .experts-trust {
        gap: 12px;
        margin-bottom: 32px;
    }

    .trust-item {
        padding: 16px 18px;
        gap: 14px;
        border-radius: 14px;
    }

    .trust-icon {
        font-size: 26px;
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .trust-text strong {
        font-size: 14px;
    }

    .trust-text span {
        font-size: 12px;
    }

    .experts-guarantee {
        padding: 24px 16px;
        border-radius: 16px;
        margin-bottom: 28px;
    }

    .guarantee-title {
        font-size: 17px;
    }

    .guarantee-text {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .guarantee-stats {
        gap: 8px;
    }

    .guarantee-stat {
        padding: 12px 8px;
        border-radius: 12px;
    }

    .guarantee-stat-number {
        font-size: 18px;
    }

    .guarantee-stat-label {
        font-size: 10px;
    }

    .experts-methodology {
        gap: 10px;
        margin-bottom: 32px;
    }

    .methodology-item {
        padding: 14px 16px;
        gap: 12px;
        border-radius: 12px;
    }

    .methodology-number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 13px;
        border-radius: 8px;
    }

    .methodology-content strong {
        font-size: 13px;
    }

    .methodology-content span {
        font-size: 12px;
    }

    .btn-experts-cta {
        padding: 18px 20px;
        min-height: 56px;
        font-size: 14px;
        letter-spacing: 0.2px;
        white-space: normal;
        line-height: 1.3;
    }

    .btn-experts-cta .btn-text {
        font-size: 14px;
        white-space: normal;
        line-height: 1.3;
    }
}

@media (max-width: 360px) {
    .experts-section {
        padding: 32px 0 28px;
    }

    .experts-header {
        margin-bottom: 28px;
    }

    .experts-header .section-title {
        font-size: 19px;
    }

    .experts-header .section-subtitle {
        font-size: 13px;
    }

    .expert-name {
        font-size: 18px;
    }

    .expert-title-tag {
        font-size: 10px;
        padding: 3px 8px;
    }

    .expert-stat-number {
        font-size: 18px;
    }

    .expert-bio {
        font-size: 13px;
    }

    .expert-quote {
        font-size: 13px;
        padding: 12px 14px;
    }

    .guarantee-title {
        font-size: 15px;
    }

    .guarantee-text {
        font-size: 11px;
    }

    .guarantee-stat {
        padding: 10px 6px;
        border-radius: 10px;
    }

    .guarantee-stat-number {
        font-size: 15px;
    }

    .guarantee-stat-label {
        font-size: 8px;
    }

    .btn-experts-cta {
        padding: 16px 14px;
        font-size: 12px;
        min-height: auto;
    }

    .btn-experts-cta .btn-text {
        font-size: 12px;
    }
}


/* Hover эффекты экспертов */

@media (hover: hover) and (pointer: fine) {
    .expert-card:hover {
        transform: translateY(-3px);
        border-color: rgba(139, 92, 246, 0.2);
        box-shadow: 0 8px 24px rgba(139, 92, 246, 0.1);
    }

    .expert-card:hover::before {
        opacity: 1;
    }

    .expert-card:hover .expert-photo {
        transform: scale(1.04);
    }

    .trust-item:hover {
        border-color: rgba(139, 92, 246, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.06);
    }

    .methodology-item:hover {
        border-color: rgba(139, 92, 246, 0.2);
        background: rgba(20, 20, 35, 0.5);
        transform: translateY(-2px);
    }

    .btn-experts-cta:hover {
        transform: translateY(-2px) scale(1.01);
        background-position: 100% 50%;
        box-shadow: 0 8px 24px rgba(4, 120, 87, 0.3);
    }

    .btn-experts-cta:hover .btn-glow {
        animation: none;
        left: 100%;
    }
}


/* Мобильные — отключение тяжёлых эффектов */

@media (max-width: 768px) {
    .expert-card,
    .trust-item,
    .methodology-item {
        filter: none;
    }

    .btn-experts-cta {
        background: linear-gradient(135deg, #065f46 0%, #047857 100%);
        animation: none;
    }

    .btn-experts-cta .btn-glow {
        display: none;
    }

    .experts-guarantee::before {
        display: none;
    }

    .expert-card:hover {
        transform: none;
    }
}
