/* Файл: /css/style.css */
/* Основные стили для главной страницы */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
}

/* Основные стили */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    //padding-top: 76px; /* Для фиксированной навигации */
}

/* Герой-секция */
.hero-section {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    color: white;
}

/* Карточки услуг */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Тарифы */
.price-card {
    border-radius: 15px;
    overflow: hidden;
}

.price-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Навигация */
.navbar-scrolled {
    background-color: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Социальные иконки */
.social-icons a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 1;
}

/* Форма */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        text-align: center;
    }
}

/* Стили для чекбокса "Запомнить меня" */
.custom-control-input:checked ~ .custom-control-label::before {
    border-color: #0d6efd;
    background-color: #0d6efd;
}

.custom-checkbox .custom-control-label::before {
    border-radius: 0.25rem;
}

.custom-control-label {
    cursor: pointer;
    color: #495057;
}

.custom-control-label:hover {
    color: #0d6efd;
}

/* Стили для секции цен */
.icon-circle {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.icon-circle-sm {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.benefit-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05) !important;
}

.price-display .badge {
    border-radius: 10px;
    min-width: 120px;
}

.card.border-primary {
    transition: all 0.3s ease;
}

.card.border-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.15);
}

/* Анимация для иконок преимуществ */
.benefit-icon {
    transition: transform 0.3s ease;
}

.d-flex:hover .benefit-icon {
    transform: scale(1.1);
}

/* Адаптивность таблицы */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .icon-circle {
        width: 40px;
        height: 40px;
    }
    
    .price-display .badge {
        font-size: 1rem !important;
        min-width: 100px;
    }
}

/* Стили для строк таблицы */
.table-primary {
    --bs-table-bg: rgba(13, 110, 253, 0.05);
    --bs-table-border-color: rgba(13, 110, 253, 0.1);
}

.table-warning {
    --bs-table-bg: rgba(255, 193, 7, 0.05);
    --bs-table-border-color: rgba(255, 193, 7, 0.1);
}

/* Стили для таблицы заявок */
#contactRequestsContent .table {
    table-layout: fixed;
    width: 100%;
}

#contactRequestsContent .table th,
#contactRequestsContent .table td {
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#contactRequestsContent .table th:nth-child(1) { width: 5%; }  /* ID */
#contactRequestsContent .table th:nth-child(2) { width: 12%; } /* Контакт */
#contactRequestsContent .table th:nth-child(3) { width: 10%; } /* Мессенджер */
#contactRequestsContent .table th:nth-child(4) { width: 12%; } /* Услуга */
#contactRequestsContent .table th:nth-child(5) { width: 30%; } /* Сообщение */
#contactRequestsContent .table th:nth-child(6) { width: 8%; }  /* Статус */
#contactRequestsContent .table th:nth-child(7) { width: 12%; } /* Дата */
#contactRequestsContent .table th:nth-child(8) { width: 11%; } /* Действия */

/* Для сообщения - ограничение высоты и скролл при необходимости */
#contactRequestsContent .table td:nth-child(5) {
    max-height: 80px;
    overflow-y: auto;
    white-space: normal;
    word-break: break-word;
}

/* Для контакта */
#contactRequestsContent .table td:nth-child(2) {
    white-space: normal;
    word-break: break-word;
}