/* --- СТИЛИ ТАРИФНОЙ МОДАЛКИ АВИТОПРО.РФ --- */

.modal-box-lg {
    max-width: 900px !important;
    width: 95% !important;
    padding: 24px 32px !important;
    max-height: 90vh;
    overflow-y: auto;
    
    /* Скрываем скроллбар */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.modal-box-lg::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

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

.tariff-modal-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: -1px;
    color: var(--primary);
    text-transform: uppercase;
}

.tariff-modal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Переключатели */
.tariff-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    padding: 0;
    background: transparent;
    border: none;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-group {
    display: flex;
    background: #E5E7EB;
    padding: 3px;
    border-radius: 12px;
    gap: 2px;
}

.toggle-item {
    padding: 6px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.toggle-item.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.period-toggle-item.active {
    color: var(--accent-green);
}

.discount-badge {
    background: #DCFCE7;
    color: #166534;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
    margin-left: 4px;
}

/* Карточки тарифов */
.tariff-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.tariff-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tariff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    border-color: var(--primary);
}

.tc-header {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.tc-name {
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    color: #fff; /* Белый текст */
}

.tc-desc {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8); /* Полупрозрачный белый */
    text-transform: uppercase;
}

.tc-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.tc-price-old {
    font-size: 13px;
    text-decoration: line-through;
    color: var(--text-muted);
    margin-bottom: 2px;
    height: 16px;
    font-weight: 600;
}

.tc-price-main {
    font-size: 44px;
    font-weight: 900;
    margin-bottom: 0;
    line-height: 1;
    color: var(--text-main);
}

.tc-price-main span {
    font-size: 22px;
    font-weight: 800;
    margin-left: 2px;
}

.tc-price-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 4px;
}

.tc-economy {
    background: #FEF3C7;
    color: #92400E;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 16px;
}

.tc-info-list {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tc-info-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}

.tc-info-label { color: var(--text-muted); }
.tc-info-val { font-weight: 800; color: var(--text-main); }

.btn-tariff-pro {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid rgba(0,0,0,0.15);
}

.btn-tariff-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 170, 255, 0.2);
    background: #33b8ff;
}

.btn-tariff-pro:active {
    transform: translateY(1px);
    border-bottom-width: 0px;
}

.btn-tariff-disabled {
    background: #fff !important;
    color: var(--text-main) !important;
    border: 1.5px solid var(--border) !important;
    border-bottom: 1.5px solid var(--border) !important;
    cursor: default !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 1;
    font-weight: 800;
}

/* ЯРКИЕ ЦВЕТА ЗАГОЛОВКОВ */
.tc-basic .tc-header { background: #FF9F0A; }
.tc-optimal .tc-header { background: #E91E63; } /* Розовый */
.tc-pro .tc-header { background: #7367F0; }

/* Таблица сравнения */
.comp-table-wrapper {
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    overflow-x: auto;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
}

.comp-table th, .comp-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
}

.comp-table th {
    background: #F9FAFB;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 10px;
}

.comp-table td:first-child, .comp-table th:first-child {
    text-align: left;
    width: 40%;
    font-weight: 800;
    color: var(--text-main);
}

.check-icon { color: var(--accent-green); font-size: 16px; font-weight: 900; }
.cross-icon { color: var(--accent-red); font-size: 16px; font-weight: 900; }

@media (max-width: 800px) {
    .tariff-cards { grid-template-columns: 1fr; }
    .tariff-controls { flex-direction: column; gap: 12px; }
}

.comp-table tr.comp-category td { background: var(--surface-hover); font-weight: 800; color: #7367F0 !important; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; text-align: center !important; padding: 12px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.comp-table tr.comp-category td:not(:first-child) { text-align: center !important; }

.comp-table th:not(:first-child), .comp-table td:not(:first-child) { text-align: center !important; }

@media (max-width: 576px) {
    .modal-box-lg {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
        border: none !important;
        padding: 48px 16px 24px !important;
        display: block !important;
        overflow-y: auto !important;
    }
    
    .tariff-modal-header h2 {
        font-size: 24px !important;
    }
    
    .tariff-modal-subtitle {
        font-size: 12px !important;
    }
    
    .comp-table {
        min-width: 480px !important;
    }
    
    .comp-table th, .comp-table td {
        padding: 8px 6px !important;
        font-size: 11px !important;
    }
}
