/* === ROUTES TABLE STYLES === */
.routes-section {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF5D6 50%, #FFF0C2 100%);
    padding: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

.routes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark), var(--color-accent));
}

.routes-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-dark), var(--color-accent), var(--color-accent-light));
}

.routes-container {
    position: relative;
    z-index: 2;
}

.routes-header {
    text-align: center;
    margin-bottom: var(--space-8);
    position: relative;
}

.routes-header h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    display: inline-block;
    position: relative;
}

.routes-header h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
}

/* Стили таблицы */
.routes-table-container {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-2xl);
    border: 2px solid var(--color-accent-light);
    position: relative;
    overflow: hidden;
}

.routes-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
}

.routes-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
}

.routes-table th {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-white);
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    padding: var(--space-4) var(--space-3);
    text-align: left;
    border: none;
    position: relative;
}

.routes-table th:first-child {
    border-radius: var(--radius-lg) 0 0 0;
}

.routes-table th:last-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

.routes-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-white);
    opacity: 0.3;
}

.routes-table td {
    padding: var(--space-4) var(--space-3);
    border-bottom: 1px solid var(--color-gray-light);
    font-size: var(--text-base);
    transition: all var(--transition-base);
}

.routes-table tr:last-child td {
    border-bottom: none;
}

/* Анимация для заголовка таблицы */
.routes-table thead tr {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s ease-out;
}

.routes-table thead tr.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация для строк таблицы */
.route-row {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.route-row.animated {
    opacity: 1;
    transform: translateX(0);
}

.route-row:hover {
    background: linear-gradient(90deg, rgba(255, 204, 0, 0.1) 0%, rgba(255, 184, 0, 0.05) 100%);
}

.route-row:hover td {
    color: var(--color-primary);
    font-weight: var(--font-semibold);
    transform: translateX(8px);
}

/* Стили для колонок */
.route-name {
    font-weight: var(--font-semibold);
    color: var(--color-primary);
}

.route-distance {
    color: var(--color-gray-dark);
    text-align: center;
    font-weight: var(--font-medium);
}

.route-price {
    color: var(--color-accent-dark);
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    text-align: right;
}

/* Полоски-разделители для четных строк */
.routes-table tr:nth-child(even) {
    background: rgba(255, 204, 0, 0.03);
}

.routes-table tr:nth-child(even):hover {
    background: linear-gradient(90deg, rgba(255, 204, 0, 0.15) 0%, rgba(255, 184, 0, 0.08) 100%);
}

/* Декоративные элементы */
.routes-table-container::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.2;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .routes-table-container {
        padding: var(--space-4);
    }
    
    .routes-table th,
    .routes-table td {
        padding: var(--space-3) var(--space-2);
        font-size: var(--text-sm);
    }
}

@media (max-width: 768px) {
    .routes-section {
        padding: var(--space-10) 0;
    }

    .routes-header h2 {
        font-size: var(--text-2xl);
    }

    .routes-table-container {
        padding: var(--space-3);
        border-radius: var(--radius-xl);
    }

    .routes-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .routes-table th,
    .routes-table td {
        padding: var(--space-2) var(--space-2);
        font-size: var(--text-xs);
    }

    .route-name {
        min-width: 200px;
    }

    .route-distance {
        min-width: 100px;
        text-align: center;
    }

    .route-price {
        min-width: 120px;
        text-align: right;
        font-size: var(--text-base);
    }
}

@media (max-width: 480px) {
    .routes-header h2 {
        font-size: var(--text-xl);
    }

    .routes-table-container {
        padding: var(--space-2);
        border-radius: var(--radius-lg);
    }

    .routes-table th {
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-1);
    }

    .routes-table td {
        padding: var(--space-2) var(--space-1);
        font-size: var(--text-xs);
    }

    .route-name {
        min-width: 150px;
    }

    .route-distance {
        min-width: 80px;
    }

    .route-price {
        min-width: 100px;
        font-size: var(--text-sm);
    }
    
    /* Уменьшаем задержку анимации на мобильных */
    .route-row {
        transform: translateX(-15px);
    }
}