/**
 * Стили главной страницы агрегатора ДЕЗ-ЭКО
 * Максимальная конверсия и иллюзия федеральной компании
 */

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/img/hero-pattern.svg') repeat;
    opacity: 0.05;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.hero-left {
    max-width: 600px;
}

.federal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FF6B35, #ff5722);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-family: var(--font-headings);
}

.hero-title .highlight {
    color: var(--accent-color);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.hero-benefits .benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.hero-benefits .benefit .icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 139, 87, 0.1);
    border-radius: 12px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.urgency-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #dc3545;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.urgency-timer .time {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== CONVERSION CARD ===== */
.hero-right {
    position: sticky;
    top: 120px;
}

.conversion-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--accent-color);
    position: relative;
}

/* Удалено "горячее предложение" */

.card-header {
    text-align: center;
    margin-bottom: 24px;
}

.card-header h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ===== QUICK CALCULATOR ===== */
.quick-calc-form {
    position: relative;
}

.form-step {
    margin-bottom: 24px;
}

.form-step.hidden {
    display: none;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 16px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.option-card {
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option-card:hover {
    border-color: var(--primary-color);
    background: rgba(46, 139, 87, 0.05);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: rgba(46, 139, 87, 0.1);
    transform: scale(1.05);
}

.option-card .icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.option-card .text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.option-card .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
}

.option-card .badge.discount {
    background: var(--success-color);
}

/* ===== RANGE INPUT ===== */
.range-input-wrapper {
    text-align: center;
}

.range-input {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-light);
    outline: none;
    appearance: none;
    margin-bottom: 16px;
}

.range-input::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.3);
}

.range-display {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 18px;
    display: inline-block;
}

/* ===== CALCULATION RESULT ===== */
.calc-result {
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.result-header h4 {
    font-size: 18px;
    margin-bottom: 16px;
}

.price-display {
    margin-bottom: 12px;
}

.final-price {
    color: #2E8B57 !important;
    font-size: 36px;
    font-weight: 800;
    font-family: var(--font-headings);
}

.old-price {
    font-size: 18px;
    text-decoration: line-through;
    opacity: 0.7;
    margin-left: 12px;
    color: #6c757d !important;
}

.discount-badge {
    color: #dc3545 !important;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

.guarantee-text {
    font-size: 14px;
    color: var(--success-color);
    text-align: center;
    margin-top: 16px;
    line-height: 1.4;
}

/* ===== PROGRESS BAR ===== */
.calc-progress {
    margin-top: 20px;
}

.progress-bar {
    background: var(--bg-light);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    background: var(--gradient-primary);
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.step-counter {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== TRUST SECTION ===== */
.trust-section {
    padding: 60px 0;
    background: white;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.trust-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-headings);
}

.trust-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.service-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--success-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.service-badge.popular {
    background: var(--accent-color);
    animation: pulse 2s infinite;
}

.service-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}

.service-price .from {
    font-size: 14px;
    color: var(--text-secondary);
}

.service-price .price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-headings);
}

.service-price .old-price {
    font-size: 16px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.service-features {
    list-style: none;
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.service-features li::before {
    content: '✅';
    font-size: 16px;
}

/* Действия на карточке услуги */
.service-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-link:hover {
    background: var(--blue-50);
    border-color: var(--primary-blue);
    transform: translateX(2px);
}

.service-link .arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.service-link:hover .arrow {
    transform: translateX(3px);
}

/* ===== ACTIVITY SECTION ===== */
.activity-section {
    padding: 80px 0;
    background: white;
}

.activity-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.activity-left h3 {
    font-size: 28px;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.live-indicators {
    margin-bottom: 32px;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 500;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success-color);
    animation: blink 2s infinite;
}

.indicator.working .indicator-dot {
    background: var(--accent-color);
}

.indicator.orders .indicator-dot {
    background: var(--primary-color);
}

/* ===== MASTER WIDGET ===== */
.master-widget {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid var(--success-color);
}

.widget-header {
    margin-bottom: 20px;
}

.widget-header h4 {
    font-size: 18px;
    color: var(--text-primary);
}

.master-info {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.master-photo {
    position: relative;
    flex-shrink: 0;
}

.master-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--success-color);
}

.online-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--success-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
}

.master-details {
    flex: 1;
}

.master-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.master-rating,
.master-distance,
.master-status {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.master-status {
    color: var(--success-color);
    font-weight: 600;
}

/* ===== ACTIVITY FEED ===== */
.activity-feed {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    max-height: 400px;
}

.activity-feed-header {
    background: var(--bg-light);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-feed-header .title {
    font-weight: 600;
    color: var(--text-primary);
}

.live-badge {
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

/* ===== AUTHORITY SECTION ===== */
.authority-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.authority-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.authority-item {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.authority-logo {
    font-size: 48px;
    margin-bottom: 16px;
}

.authority-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.authority-text p {
    color: var(--text-secondary);
    font-size: 14px;
}

.certificates-row {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 12px;
}

.certificates-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-right {
        position: static;
    }
    
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .activity-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-benefits {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .authority-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .conversion-card {
        padding: 24px;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .authority-grid {
        grid-template-columns: 1fr;
    }
}

/* Очень узкие экраны - исправление калькулятора */
@media (max-width: 348px) {
    /* Контейнер */
    .container {
        padding: 0 8px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Герой секция */
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-content {
        gap: 20px;
    }
    
    .hero-title {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    /* Карточка калькулятора */
    .hero-card {
        margin: 0;
        padding: 15px;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .conversion-card {
        padding: 15px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Форма калькулятора */
    .quick-calc-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
    }
    
    .form-step {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Сетка опций */
    .options-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .option-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px 8px;
        margin: 0;
        border-radius: 8px;
    }
    
    .option-card .icon {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .option-card .text {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .option-card .badge {
        font-size: 8px;
        padding: 1px 4px;
        top: -4px;
        right: -4px;
    }
    
    /* Заголовки карточек */
    .card-header h3 {
        font-size: 16px;
        line-height: 1.3;
    }
    
    .card-header p {
        font-size: 12px;
        line-height: 1.3;
    }
    
    /* Лейблы форм */
    .form-label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    /* Диапазон площади */
    .range-input-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .range-input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .range-display {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    /* Результат расчета */
    .calc-result {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px;
    }
    
    .price-display {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .final-price {
        font-size: 20px;
    }
    
    .old-price {
        font-size: 14px;
    }
    
    .discount-badge {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    /* Форма контактов */
    .form-group {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-control {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 14px;
        padding: 10px 8px;
    }
    
    /* Кнопки */
    .btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 14px;
        padding: 12px 8px;
    }
    
    .btn-lg {
        font-size: 14px;
        padding: 12px 8px;
    }
    
    /* Прогресс */
    .calc-progress {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-top: 12px;
    }
    
    .step-counter {
        font-size: 12px;
    }
    
    /* Гарантии */
    .guarantee-text {
        font-size: 11px;
        line-height: 1.3;
    }
    
    /* Доверительные элементы */
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .trust-item {
        padding: 10px 8px;
    }
    
    .trust-number {
        font-size: 16px;
    }
    
    .trust-label {
        font-size: 10px;
    }
    
    /* Услуги */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 15px;
    }
    
    .service-price .price {
        font-size: 18px;
    }
    
    /* Авторитет */
    .authority-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .authority-item {
        padding: 10px 8px;
    }
    
    .authority-text h4 {
        font-size: 14px;
    }
    
    .authority-text p {
        font-size: 11px;
    }
    
    /* Общие исправления */
    * {
        box-sizing: border-box;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
    
    table {
        width: 100%;
        max-width: 100%;
        table-layout: fixed;
        font-size: 12px;
    }
    
    .float-left, .float-right {
        float: none;
        width: 100%;
    }
} 