<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("tariffs-style");
?>/* Основные стили для страницы тарифов Битрикс24 */
.bitrix-tariffs {
    padding: 60px 0;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    color: #2066b0;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    margin-bottom: 40px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.tariff-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: white;
    border-radius: 8px;
    padding: 5px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.switcher-btn {
    padding: 12px 30px;
    background: transparent;
    border: none;
    border-radius: 6px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    color: #555;
}

.switcher-btn.active {
    background: #2066b0;
    color: white;
    box-shadow: 0 2px 8px rgba(32, 102, 176, 0.3);
}

.tariffs-container.hidden {
    display: none;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.tariff-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    background: white;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tariff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tariff-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.tariff-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #2066b0;
}

.popular-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff3838);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tariff-price {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: #2066b0;
    line-height: 1.2;
}

.price-year, .price-desc {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.tariff-features {
    margin-bottom: 25px;
    flex-grow: 1;
}

.tariff-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tariff-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
}

.tariff-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.tariff-features li:last-child {
    border-bottom: none;
}

.tariff-actions {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

.btn-primary {
    background: linear-gradient(135deg, #2066b0, #164882);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #164882, #10325c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 102, 176, 0.3);
}

.btn-link {
    background: none;
    border: none;
    color: #2066b0;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.2s;
}

.btn-link:hover {
    color: #164882;
}

.comparison-section {
    margin: 80px 0;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.comparison-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.compare-select {
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    min-width: 280px;
    font-size: 15px;
    background: #f8f9fa;
}

.comparison-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th, .comparison-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

.request-form-section {
    margin: 80px 0;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

/* Стили для бесплатного тарифа */
.tariff-card[data-id="cloud_free"] .tariff-price .price {
    color: #28a745;
}

.tariff-card[data-id="cloud_free"] .btn-primary {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.tariff-card[data-id="cloud_free"] .btn-primary:hover {
    background: linear-gradient(135deg, #1e7e34, #145523);
}

/* Адаптивность */
@media (max-width: 992px) {
    .tariffs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tariffs-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .compare-select {
        min-width: 100%;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .tariff-switcher {
        flex-direction: column;
        width: 100%;
    }
    
    .switcher-btn {
        margin: 5px 0;
        width: 100%;
    }
    
    .comparison-section, .request-form-section {
        padding: 25px 20px;
        margin: 50px 0;
    }
    
    .modal-content {
        padding: 20px;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .tariff-card {
        padding: 20px;
    }
    
    .price {
        font-size: 28px;
    }
}<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>