/* 
 * Стили для pricing-section сайта Garantiks
 * В этом файле содержатся только стили, относящиеся к pricing-section (секция с ценами)
 * Версия 2.0 - Адаптивная для всех размеров экранов с улучшенной видимостью
 */

/* Основные переменные */
:root {
    --pricing-bg: linear-gradient(135deg, #2c3e50, #3498db);
    --pricing-text: #ffffff;
    --pricing-accent: #4cc9f0;
    --pricing-card-bg: rgba(255, 255, 255, 0.1);
    --pricing-card-hover: rgba(255, 255, 255, 0.15);
    --pricing-border: rgba(255, 255, 255, 0.2);
    --pricing-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Основные стили секции */
.pricing-section {
    background: var(--pricing-bg);
    color: var(--pricing-text);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
@media (max-width: 768px) {
  .pricing-section {
    padding: 24px 0 !important;
  }
  .pricing-section .section-header {
    margin-bottom: 16px !important;
  }
  .pricing-plans {
    gap: 16px !important;
    margin-bottom: 12px !important;
  }
}

/* Заголовок секции */
.pricing-section .section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
}

.pricing-section .section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffd700 !important;
    margin-bottom: 12px;
}

.pricing-section .section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    color: #ffffff !important;
    text-align: center;
}

.pricing-section .section-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

/* Карточки тарифов */
.pricing-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.plan-card {
    background: var(--pricing-card-bg);
    border-radius: 15px;
    border: 1px solid var(--pricing-border);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-10px);
    background: var(--pricing-card-hover);
    border-color: var(--pricing-accent);
    box-shadow: var(--pricing-shadow);
}

.plan-card.featured {
    border-color: var(--pricing-accent);
    transform: scale(1.05);
    box-shadow: var(--pricing-shadow);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-badge {
    position: absolute;
    top: 12px;
    right: -30px;
    background: var(--pricing-accent);
    color: #fff;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
}

.plan-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--pricing-border);
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.plan-price .price {
    font-size: 36px;
    font-weight: 700;
    color: var(--pricing-accent);
}

.plan-price .period {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.plan-features {
    padding: 30px;
}

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

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--pricing-border);
}

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

.plan-features li i {
    color: var(--pricing-accent);
    font-size: 14px;
}

.plan-features li.disabled {
    color: rgba(255, 255, 255, 0.5);
}

.plan-features li.disabled i {
    color: rgba(255, 255, 255, 0.5);
}

.plan-action {
    padding: 0 30px 30px;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.btn-primary {
    background: var(--pricing-accent);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #3bb3d6;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid var(--pricing-border);
}

.btn-outline:hover {
    border-color: var(--pricing-accent);
    background: rgba(76, 201, 240, 0.1);
    transform: translateY(-2px);
}

/* Сравнение тарифов */
.pricing-comparison {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.comparison-title {
    text-align: center;
    color: var(--pricing-text);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.comparison-content {
    margin-top: 30px;
    opacity: 1;
    max-height: none;
    overflow: visible;
}

.comparison-table-wrapper {
    background: var(--pricing-card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--pricing-border);
}

.comparison-table th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 15px;
    color: var(--pricing-text);
}

.comparison-table td {
    font-size: 14px;
    color: var(--pricing-text);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    padding-left: 20px;
}

.comparison-table .highlight {
    background: rgba(76, 201, 240, 0.1);
}

.comparison-table i.fa-check {
    color: var(--pricing-accent);
}

.comparison-table i.fa-times {
    color: rgba(255, 255, 255, 0.5);
}

/* Медиа-запросы */
@media (max-width: 991px) {
    .pricing-section {
        padding: 60px 0;
    }

    .pricing-plans {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .plan-card.featured {
        grid-column: span 2;
        transform: scale(1);
    }

    .plan-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .pricing-comparison {
        display: none;
    }
}

@media (max-width: 767px) {
    .pricing-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .pricing-plans {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .plan-card.featured {
        grid-column: auto;
    }

    .plan-header {
        padding: 20px;
    }

    .plan-name {
        font-size: 20px;
    }

    .plan-price .price {
        font-size: 32px;
    }

    .plan-features {
        padding: 20px;
    }

    .plan-features li {
        font-size: 14px;
    }

    .plan-action {
        padding: 0 20px 20px;
    }

    .comparison-table {
        display: block;
        overflow-x: auto;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px;
        font-size: 13px;
        min-width: 120px;
    }
}

@media (max-width: 375px) {
    .pricing-section {
        padding: 30px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .plan-header {
        padding: 15px;
    }

    .plan-name {
        font-size: 18px;
    }

    .plan-price .price {
        font-size: 28px;
    }

    .plan-features {
        padding: 15px;
    }

    .plan-features li {
        font-size: 13px;
    }

    .plan-action {
        padding: 0 15px 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
} 

@media (max-width: 768px) {
  .pricing-section .section-title {
    font-size: calc(32px * 0.7) !important;
  }
  .pricing-section .section-subtitle {
    font-size: calc(16px * 0.7) !important;
  }
} 