/* ===================================
   КОНВЕРСИОННЫЕ ЭЛЕМЕНТЫ
   Отзывы, индикаторы, гарантии
   =================================== */

/* ===================================
   1. SOCIAL PROOF — Отзывы клиентов
   =================================== */

.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #F6F8FA 0%, #fff 100%);
    overflow: hidden;
}

.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.testimonials-section .section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--color-dark);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.testimonials-section .section-subtitle {
    color: rgba(13, 17, 23, 0.6);
    font-size: 16px;
}

/* Статистика перед отзывами */
.testimonials-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.testimonials-stat {
    text-align: center;
}

.testimonials-stat__value {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--color-primary);
    display: block;
    line-height: 1;
}

.testimonials-stat__label {
    font-size: 14px;
    color: rgba(13, 17, 23, 0.6);
    margin-top: 8px;
}

/* Слайдер отзывов */
.testimonials-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    overflow: hidden;
}

.testimonials-slides {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
}

/* Карточка отзыва */
.testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.testimonial-card__stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    font-size: 18px;
}

.testimonial-card__text {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
    font-style: italic;
    min-height: 80px;
}

.testimonial-card__text::before {
    content: '"';
    font-size: 24px;
    color: var(--color-primary);
    font-weight: 700;
}

.testimonial-card__text::after {
    content: '"';
    font-size: 24px;
    color: var(--color-primary);
    font-weight: 700;
}

.testimonial-card__author {
    display: flex;
    gap: 14px;
    align-items: center;
}

.testimonial-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-card__info {
    flex: 1;
}

.testimonial-card__name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.testimonial-card__role {
    margin: 4px 0 0;
    font-size: 13px;
    color: #666;
}

/* Навигация слайдера */
.testimonials-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.testimonials-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.testimonials-nav--prev {
    left: 0;
}

.testimonials-nav--next {
    right: 0;
}

/* Pagination dots */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.testimonials-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-dot.active {
    background: var(--color-primary);
    width: 28px;
    border-radius: 5px;
}

/* Адаптив для слайдера */
@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-slider {
        padding: 0 20px;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
    }
    
    .testimonials-stats {
        gap: 24px;
    }
    
    .testimonials-stat__value {
        font-size: 36px;
    }
    
    .testimonials-nav {
        display: none;
    }
    
    .testimonials-section .section-title {
        font-size: 32px;
    }
}

/* ===================================
   2. URGENCY — Индикаторы наличия
   =================================== */

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.availability-badge--available {
    background: #E8F5E9;
    color: #2E7D32;
}

.availability-badge--low {
    background: #FFF3E0;
    color: #E65100;
    animation: urgencyPulse 2s ease-in-out infinite;
}

.availability-badge--unavailable {
    background: #FFEBEE;
    color: #C62828;
}

.availability-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.availability-badge--low .availability-badge__dot {
    animation: dotBlink 1s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Время подачи */
.delivery-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 179, 71, 0.1) 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 8px;
}

.delivery-time-badge__icon {
    font-size: 14px;
}

/* ===================================
   3. RISK REVERSAL — Гарантии
   =================================== */

.guarantees-section {
    padding: 48px 0;
    background: var(--color-dark);
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.guarantee-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.guarantee-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-4px);
}

.guarantee-badge__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.guarantee-badge__title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.guarantee-badge__text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .guarantees-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .guarantees-grid {
        grid-template-columns: 1fr;
    }
    
    .guarantee-badge {
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }
    
    .guarantee-badge__icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

/* Inline гарантии (для карточек товаров) */
.inline-guarantees {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.inline-guarantee {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #27AE60;
}

.inline-guarantee__icon {
    font-size: 12px;
}

/* ===================================
   4. COMPARISON TABLE — Улучшенная таблица
   =================================== */

.comparison-section {
    padding: 80px 0;
    background: #fff;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.comparison-table thead th {
    background: var(--color-dark);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.comparison-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.comparison-table tbody tr {
    transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 107, 53, 0.04);
}

.comparison-table tbody tr.highlighted {
    background: rgba(255, 107, 53, 0.08);
    border-left: 3px solid var(--color-primary);
}

.comparison-table__price {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 15px;
}

.comparison-table__btn {
    padding: 8px 16px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comparison-table__btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.comparison-table__check {
    color: #27AE60;
    font-size: 18px;
}

.comparison-table__cross {
    color: #E74C3C;
    font-size: 18px;
}

/* ===================================
   5. DECISION FUNNEL — Воронка выбора
   =================================== */

.decision-funnel {
    padding: 60px 0;
    background: linear-gradient(180deg, #fff 0%, #F6F8FA 100%);
}

.decision-funnel__header {
    text-align: center;
    margin-bottom: 48px;
}

.decision-funnel__title {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.decision-funnel__subtitle {
    color: rgba(13, 17, 23, 0.6);
    font-size: 16px;
}

.decision-steps {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.decision-step {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.decision-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.decision-step::after {
    content: '→';
    position: absolute;
    right: -32px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: rgba(0, 0, 0, 0.2);
}

.decision-step:last-child::after {
    display: none;
}

.decision-step__number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 24px;
    color: #fff;
    margin: 0 auto 20px;
}

.decision-step__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.decision-step__text {
    font-size: 14px;
    color: rgba(13, 17, 23, 0.6);
    line-height: 1.6;
    margin-bottom: 20px;
}

.decision-step__action {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.decision-step__action:hover {
    background: var(--color-primary);
    color: #fff;
}

@media (max-width: 768px) {
    .decision-step::after {
        display: none;
    }
    
    .decision-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .decision-step {
        max-width: 100%;
    }
}

/* ===================================
   6. QUICK TRUST BADGES — Быстрые значки
   =================================== */

.quick-trust {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 24px 0;
    background: rgba(255, 107, 53, 0.05);
    border-top: 1px solid rgba(255, 107, 53, 0.1);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    flex-wrap: wrap;
}

.quick-trust__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-dark);
}

.quick-trust__icon {
    font-size: 18px;
}

.quick-trust__text {
    font-weight: 600;
}

@media (max-width: 768px) {
    .quick-trust {
        gap: 16px;
        padding: 16px;
    }
    
    .quick-trust__item {
        font-size: 12px;
    }
}
