/* ========== ПЕРЕИСПОЛЬЗУЕМЫЕ КОМПОНЕНТЫ ========== */

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: radial-gradient(circle at 0 0, #22d3ee, #0ea5e9);
    color: #0b1120;
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 35px rgba(34, 211, 238, 0.6), 0 10px 30px rgba(15, 23, 42, 0.9);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 45px rgba(34, 211, 238, 0.9), 0 14px 35px rgba(15, 23, 42, 1);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Cards */
.card {
    padding: 11px 10px 12px;
    border-radius: var(--card-radius);
    background: var(--bg-soft);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-fast);
    font-size: 12px;
}

.card h3 {
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.card-line {
    font-size: 11px;
    color: var(--text-muted);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 1), 0 0 40px rgba(56, 189, 248, 0.35);
    border-color: rgba(56, 189, 248, 0.8);
}

a.card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-accent {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.4);
}

.card-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.card-link:hover {
    color: var(--text-main);
}

/* Form elements */
.field {
    margin-bottom: 10px;
}

.field-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.field-input, .field-textarea {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.98);
    color: var(--text-main);
    font-size: 13px;
    padding: 8px 12px;
    outline: none;
}

.field-textarea {
    border-radius: 12px;
    min-height: 80px;
    resize: vertical;
}

.field-input:focus, .field-textarea:focus {
    border-color: var(--accent);
}

/* Interest chips (radio buttons) */
.interest-simple {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.interest-chip {
    position: relative;
    cursor: pointer;
}

.interest-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.interest-chip span {
    display: block;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-muted);
    font-size: 12px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.interest-chip input:checked + span {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.interest-chip:hover span {
    border-color: var(--accent);
    color: var(--text-main);
}

/* Lead status */
.lead-status {
    margin-top: 8px;
    font-size: 11px;
}

.lead-status.ok {
    color: #bbf7d0;
}

.lead-status.error {
    color: var(--danger);
}

/* Steps list */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(34, 211, 238, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(34, 211, 238, 0.15);
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
}

.step-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* Guarantee block */
.lead-guarantee {
    margin-top: 16px;
    padding: 12px;
    background: rgba(34, 211, 238, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.guarantee-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.guarantee-text {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

.guarantee-text strong {
    color: var(--accent);
    display: block;
    margin-bottom: 2px;
}

/* ===== СТИЛИ ДЛЯ БЛОКА "БОЛЬ-РЕШЕНИЕ" ===== */
.pain-points {
    margin-top: 10px;
}

.pain-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.pain-icon {
    font-size: 12px;
    flex-shrink: 0;
}

.pain-text {
    line-height: 1.4;
}

.pain-arrow {
    text-align: center;
    font-size: 14px;
    color: var(--accent);
    margin: 2px 0;
    opacity: 0.7;
}

.solution-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    padding: 6px 8px;
    background: rgba(34, 211, 238, 0.08);
    border-radius: 6px;
    border-left: 2px solid var(--accent);
}

.solution-icon {
    font-size: 12px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
}

.solution-text {
    color: var(--text-main);
    line-height: 1.4;
}

.solution-text strong {
    color: var(--accent);
    font-weight: 600;
}

/* ===== СТИЛИ ДЛЯ ВРЕМЕНИ В ШАГАХ ===== */
.step-time {
    font-size: 10px;
    color: var(--accent);
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ===== СТИЛИ ДЛЯ БЛОКА ГАРАНТИЙ ===== */
.guarantees-block {
    margin-top: 20px;
    padding: 16px;
    background: rgba(34, 211, 238, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(34, 211, 238, 0.15);
}

.guarantee-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.guarantee-item:last-child {
    margin-bottom: 0;
}

.guarantee-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.2);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.guarantee-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.guarantee-content strong {
    font-size: 12px;
    color: var(--text-main);
    font-weight: 600;
}

.guarantee-content span {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===== СТИЛИ ДЛЯ ПОЛЯ "ДРУГОЕ" ===== */
.interest-chip-other input:checked + span {
    background: var(--accent);
    color: #0b1120;
}

/* ===== СТИЛИ ДЛЯ ОТЗЫВОВ ===== */
.reviews-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.reviews-list::-webkit-scrollbar {
    width: 4px;
}

.reviews-list::-webkit-scrollbar-track {
    background: var(--bg-soft);
    border-radius: 2px;
}

.reviews-list::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 2px;
}

.review-item {
    background: var(--bg-soft);
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid var(--accent);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.review-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

.review-date {
    font-size: 12px;
    color: var(--text-muted);
}

.review-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-main);
}

#review-form-container {
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

#review-form-container h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: var(--text-main);
}

.btn-text {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.btn-text:hover {
    color: var(--accent) !important;
}

.lead-status {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 8px;
}

.lead-status.ok {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.lead-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.lead-status:empty {
    display: none;
}

/* Mobile */
@media (max-width: 640px) {
    .btn-primary, .btn-secondary, .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .interest-simple {
        gap: 6px;
    }

    .interest-chip span {
        padding: 8px 12px;
        font-size: 13px;
    }

    .step-item {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        margin-top: 24px;
        padding-top: 16px;
    }

    .reviews-list {
        max-height: 250px;
    }

    .review-item {
        padding: 10px;
    }

    .review-author {
        font-size: 13px;
    }

    .review-text {
        font-size: 12px;
    }
}

/* ===== СТИЛИ ДЛЯ МЕЛКОГО ШРИФТА (ФИЛЬТРЫ) ===== */
.text-small {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.02em;
    opacity: 0.8;
}

/* ===== УСИЛЕННЫЕ СТИЛИ ДЛЯ HERO ===== */
.hero-sub .text-small {
    margin-top: 8px;
    padding: 4px 8px;
    background: rgba(34, 211, 238, 0.05);
    border-radius: 4px;
    border-left: 2px solid var(--accent);
    display: inline-block;
}

/* ===== СТИЛИ ДЛЯ SERVICE BLOCK ===== */
.service-block {
    padding: 20px;
    background: rgba(34, 211, 238, 0.05);
    border-radius: var(--card-radius);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.service-block h3 {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.service-block p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* ===== УЛУЧШЕННЫЕ СТИЛИ ДЛЯ МЕТРИК ===== */
.hero-metrics {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 20px 0;
    padding: 16px 20px;
    background: rgba(34, 211, 238, 0.06);
    border-radius: 14px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    flex-wrap: nowrap;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}

/* Показываем/скрываем версии текста */
.label-mobile {
    display: none !important;
}

.label-desktop {
    display: inline !important;
}

.metric-divider {
    width: 1px;
    height: 40px;
    background: rgba(148, 163, 184, 0.25);
    flex-shrink: 0;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    .hero-metrics {
        gap: 12px;
        padding: 14px 12px;
    }

    .metric-value {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .metric-label {
        font-size: 10px;
    }

    /* На мобильном показываем короткий текст */
    .label-desktop {
        display: none !important;
    }

    .label-mobile {
        display: inline !important;
    }

    .metric-divider {
        height: 30px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .hero-metrics {
        gap: 8px;
        padding: 12px 8px;
    }

    .metric-value {
        font-size: 20px;
    }

    .metric-label {
        font-size: 9px;
    }
}
