@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

.packages-section {
    /* Переменные секции (доступны только внутри нее) */
    --bg-body: #f8f8f8;
    --bg-card: #ffffff;
    --text-main: #4A5578;
    --text-muted: #707A98;
    --text-light: #94a3b8;
    --border-color: #E3E7EE;
    --border-dashed: #3D4959;

    --theme-navy: #1e3a5f;
    --theme-teal: #148f77;
    --bg-teal-light: #e2f3f0;
    --theme-purple: #5b4a9a;
    --bg-purple-light: #ece8f5;
    --theme-gray: #4f5b69;
    --bg-gray-light: #f1f3f5;

    --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    --radius-card: 20px;
    --radius-btn: 8px;

    /* Стили, которые ранее были у body */
    font-family: 'Inter', sans-serif;
    /*background-color: var(--bg-body);*/
    color: var(--text-main);
    line-height: 1.5;
    padding: 20px 20px 60px;
}

/* Локальный сброс стилей, чтобы внешняя верстка не ломала внутреннюю */
.packages-section *,
.packages-section *::before,
.packages-section *::after {
    box-sizing: border-box;
}

.packages-section h1,
.packages-section h2,
.packages-section p,
.packages-section ul {
    margin: 0;
    padding: 0;
}

/* --- Header Section --- */
.packages-section .pricing-header {
    text-align: center;
    max-width: 672px;
    margin: 0 auto 100px auto;
}

.packages-section .pricing-header h1 {
    font-family: Georgia, Times, "Times New Roman", serif;
    font-size: 44px;
    color: var(--theme-navy);
    line-height: 100%;
    margin-bottom: 15px;
    font-weight: 700;
}

.packages-section .pricing-header h1 .text-teal {
    color: var(--theme-teal);
}

.packages-section .pricing-header p {
    color: var(--text-muted);
    font-size: 20px;
    line-height: 30px;
}

/* --- Grid Layout --- */
.packages-section .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* --- Card Styles --- */
.packages-section .card {
    background-color: var(--bg-card);
    border: 1px solid #E3E7EE;
    border-radius: var(--radius-card);
    padding: 27px;
    box-shadow: 0 0 18.4px 0 rgba(197, 189, 189, 0.25);
    display: flex;
    flex-direction: column;
    position: relative;
}

.packages-section .card.selected,
.packages-section .card:hover {
    border: 1px solid #C9D0DC;
}

.packages-section .card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.packages-section .icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.packages-section .card-individual .icon-wrap { background-color: var(--bg-gray-light); }
.packages-section .card-privacy .icon-wrap { background-color: var(--bg-teal-light); }
.packages-section .card-nonresident .icon-wrap { background-color: var(--bg-purple-light); }

/* Custom Radio Button */
.packages-section .radio-btn {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.packages-section .card.selected .radio-btn {
    border-color: var(--theme-navy);
}

.packages-section .card.selected .radio-btn::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--theme-navy);
    border-radius: 50%;
}

/* Card Typography */
.packages-section .card h2 {
    font-family: "Fraunces", serif;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.packages-section .card-individual h2 { color: var(--theme-gray); }
.packages-section .card-privacy h2 { color: var(--theme-teal); }
.packages-section .card-nonresident h2 { color: var(--theme-purple); }

.packages-section .price-wrap {
    font-family: "IBM Plex Mono", monospace;
    font-size: 34px;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #000000;
}

.packages-section .price-wrap span {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 400;
    font-family: "IBM Plex Mono", monospace;
}

.packages-section .card > p.desc {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 20px;
    min-height: 70px;
}

/* Badges */
.packages-section .badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    width: 100%;
    text-align: left;
}

.packages-section .card-individual .badge { background-color: var(--bg-gray-light); color: var(--theme-gray); }
.packages-section .card-privacy .badge { background-color: var(--bg-teal-light); color: var(--theme-teal); }
.packages-section .card-nonresident .badge { background-color: var(--bg-purple-light); color: var(--theme-purple); }

.packages-section hr {
    border: none;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 1px 0 var(--border-color);
    margin: 25px 0;
}

/* Features List */
.packages-section .features {
    list-style: none;
    margin-bottom: 30px;
    margin-left: 10px;
    flex-grow: 1;
}

.packages-section .features li {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.packages-section .features li svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 3px;
}

.packages-section .card-individual .features li svg { color: var(--text-light); }
.packages-section .card-privacy .features li svg { color: var(--theme-teal); }
.packages-section .card-nonresident .features li svg { color: var(--theme-purple); }

.packages-section .features li strong {
    color: var(--text-main);
    font-weight: 600;
}

.packages-section .underline {
    border-bottom: 1px dotted var(--border-dashed);
}

/* Bottom Info Boxes */
.packages-section .info-box {
    background-color: var(--bg-gray-light);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.packages-section .info-box strong {
    color: #14213D;
}

.packages-section .renewal-box {
    border: 1px dashed var(--border-dashed);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.packages-section .renewal-row {
    display: flex;
    justify-content: space-between;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.packages-section .renewal-row:last-child {
    margin-bottom: 0;
}

.packages-section .renewal-row span:last-child {
    color: var(--text-main);
    font-weight: 500;
    text-align: right;
}

/* Buttons */
.packages-section .btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: auto;
}

.packages-section .btn:hover {
    opacity: 0.9;
}

.packages-section .btn-gray { background-color: var(--theme-gray); }
.packages-section .btn-teal { background-color: var(--theme-teal); }
.packages-section .btn-purple { background-color: var(--theme-purple); }

/* Responsive */
@media (max-width: 768px) {
    .packages-section .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .packages-section .pricing-header h1 {
        font-size: 2rem;
    }
}
