/* === Общие стили страницы === */
body {
    background: linear-gradient(to bottom, #f9fafc, #f1f3f7);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
}

/* === Контейнер планов === */
div.plans-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 60px 20px;
}

/* === Список планов === */
ul.plans {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}

/* === Карточка тарифа === */
ul.plans > li.plan {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* При наведении */
ul.plans > li.plan:hover {
    transform: translateY(-4px);
    border-color: #035f99;
    box-shadow: 0 10px 26px rgba(0, 123, 255, 0.15);
}

/* При выборе тарифа */
ul.plans > li.plan.selected {
    border: 3px solid #035f99 !important;
    box-shadow: 0 0 16px rgba(0, 123, 255, 0.35) !important;
    transform: translateY(-6px);
    transition: all 0.25s ease;
}

/* === Внутренние элементы карточки === */
ul.plans > li.plan div.frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-sizing: border-box;
}

/* Название тарифа */
ul.plans > li.plan div.frame .name {
    font-size: 26px;
    margin: 12px;
    font-weight: 600;
    text-align: center;
    color: #2b2b2b;
}

/* Цена */
ul.plans > li.plan div.frame .price {
    font-size: 36px;
    color: #333;
    margin: 20px;
    font-weight: bold;
    text-align: center;
}

/* Старая цена */
ul.plans > li.plan div.frame .old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 6px;
}

/* Период */
ul.plans > li.plan div.frame .period {
    color: #888;
    margin-bottom: 24px;
    font-size: 14px;
    text-align: center;
}

/* Список фичей */
ul.plans > li.plan div.frame ul.features {
    list-style: none;
    padding: 0 20px;
    margin-bottom: 24px;
    text-align: left;
    width: 100%;
}

ul.plans > li.plan div.frame ul.features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 26px;
}

ul.plans > li.plan div.frame ul.features li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Бейдж тарифа */
ul.plans > li.plan div.frame .pricing-badge {
    background-color: #007bff;
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

ul.plans > li.plan div.frame .badge-purple {
    background-color: #6f42c1;
}

/* Блок выбора */
ul.plans > li.plan div.frame .selector {
    margin-top: auto;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 10px;
    gap: 6px;
}
.trial-period {
	font-size: 24px;
    font-weight: 600;
    color: #0037b9;
    margin: 8px;
}

/* Исправление проблемы кликов с label */
ul.plans > li.plan div.frame .selector label {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 20px;
    font-weight: 600;
    color: #1c1d22;
    text-align: center;
    width: 100%;
}

ul.plans > li.plan div.frame .selector input[type="radio"] {
    pointer-events: auto;
}

/* Кнопки */
ul.plans > li.plan div.frame .selector button,
ul.plans > li.plan div.frame .selector input[type=submit] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

ul.plans > li.plan div.frame .selector button:hover,
ul.plans > li.plan div.frame .selector input[type=submit]:hover {
    background-color: #0056b3;
}

/* Короткое описание */
ul.plans > li > div.frame > .plan-description {
    font-size: 20px;
    color: #121c41;
    margin: 5px 0;
    text-align: center;
    padding: 20px 10px;
}

/* === Мобильная адаптация === */
@media screen and (max-width: 767px) {
    ul.plans {
        flex-direction: column;
        align-items: center;
    }

    ul.plans > li.plan {
        width: 100%;
        max-width: 95%;
        margin: 10px auto;
    }

    ul.plans > li.plan div.frame ul.features {
        text-align: left;
        padding: 0 10px;
    }

    ul.plans > li.plan div.frame .plan-description {
        padding: 0 15px;
    }
}

/* === Дополнительные элементы оформления === */
.payment-note {
    margin-top: 10px;
    font-size: 14px;
    color: #777;
    text-align: center;
    line-height: 1.5;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.payment-note strong {
    color: #333;
    font-weight: 600;
}

.checkout-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 40px auto;
    padding: 32px;
    max-width: 720px;
    width: 95%;
    font-family: "Inter", "Segoe UI", sans-serif;
    color: #222;
}

.checkout-header {
    text-align: center;
    margin-bottom: 30px;
}

.checkout-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1d1d1d;
    margin-bottom: 8px;
}

.checkout-header p {
    color: #666;
    font-size: 15px;
    margin: 0;
}

.info-table {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 24px 0;
    padding: 16px 0;
}

.info-table .table-cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-table .table-cell:last-child {
    border-bottom: none;
}

.info-table .name span {
    font-weight: 600;
    color: #333;
}

.info-table .value {
    color: #005bbb;
    font-weight: 500;
}
