/* Стили для блока "Комплексный чек-ап организма" */

.checkup-pricing-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 1200px;
    width: 100%;
    margin: 40px auto 0 auto;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* Стили для блока внутри результатов теста */
.onko-test__results .checkup-pricing-container {
    margin-top: 40px;
    border-top: 2px solid #e0e0e0;
    padding-top: 40px;
}

.checkup-pricing-wrapper {
    padding: 20px;
    border-radius: 12px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.checkup-pricing-title {
    font-size: 42px;
    font-weight: 700;
    color: #0b605b;
    text-align: center;
    margin: 0 0 40px 0;
}

.checkup-pricing-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.checkup-filter-btn {
    min-width: 200px;
    background: #46c162;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.checkup-filter-btn:hover {
    background-color: #41b45b;
}

.checkup-filter-btn.active {
    background-color: #1b6a65;
}

.checkup-content-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.checkup-content-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.checkup-content-container table th,
.checkup-content-container table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.checkup-content-container table th {
    background-color: #f7f7f7;
}

.checkup-content-container table td.discount {
    color: #45c261;
    font-weight: bold;
    white-space: nowrap;
}

.checkup-content-container table td:last-child {
    white-space: nowrap;
}

.checkup-content-container table td:nth-child(2),
.checkup-content-container table td:nth-child(3) {
    white-space: nowrap;
}

.checkup-content-container table tr[style*="font-weight"] td {
    white-space: nowrap;
}

.checkup-total-price {
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}

.checkup-total-price span {
    white-space: nowrap;
}

.checkup-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.checkup-total-price {
    font-size: 18px;
    font-weight: bold;
}

.checkup-green-btn {
    background: #34c759;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.checkup-green-btn:hover {
    background-color: #28a745;
}

.checkup-banner-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    background: #f7f9f9;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.checkup-banner-image {
    width: 50%;
    max-width: 400px;
    border-radius: 8px;
}

.checkup-banner-text {
    width: 50%;
    align-self: flex-start;
    padding-top: 10px;
    color: #1b6a65;
}

.checkup-banner-text h2 {
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.checkup-banner-text p {
    font-size: 17px;
    line-height: 1.5;
}

.checkup-h2-new {
    font-size: 21px;
    font-weight: 600;
}

.checkup-cta-button {
    background: #46c162;
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(56, 193, 156, 0.3);
}

.checkup-cta-button:hover {
    background: #3ab054;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 193, 156, 0.4);
}

/* Адаптивные стили для мобильных устройств */
@media screen and (max-width: 768px) {
    .checkup-content-container table tbody tr td {
        box-sizing: border-box;
        min-width: 0;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .checkup-content-container table tbody tr td:first-child {
        flex: 0 1 calc(60% - 6px);
    }

    .checkup-content-container table tbody tr td:last-child {
        flex: 0 1 calc(40% - 6px);
    }

    .checkup-content-container table tbody tr {
        width: 100%;
    }

    .checkup-pricing-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .checkup-pricing-container {
        max-width: 100%;
    }

    .checkup-filter-btn {
        background: #46c162;
        padding: 10px;
        font-size: 13px;
        min-width: 100%;
    }

    .checkup-banner-container {
        flex-direction: column;
        text-align: left;
    }

    .checkup-banner-image,
    .checkup-banner-text {
        width: 100%;
    }

    .checkup-content-container table thead {
        display: none;
    }

    .checkup-content-container table tbody tr {
        display: flex;
        justify-content: space-between;
        flex-wrap: nowrap;
        margin-bottom: 12px;
        border-bottom: 1px solid #ddd;
    }

    .checkup-content-container table tbody tr td {
        padding: 5px;
        font-size: 14px;
        text-align: left;
        border-bottom: none;
    }

    .checkup-content-container table tbody tr td:first-child {
        flex: 1 1 60%;
        font-weight: bold;
    }

    .checkup-content-container table tbody tr td:last-child {
        flex: 1 1 40%;
        text-align: right;
        white-space: nowrap;
    }

    .checkup-content-container table tbody tr td.mobile-price {
        white-space: nowrap;
    }

    .checkup-content-container table tbody tr td.mobile-price span {
        white-space: nowrap;
    }

    /* Скрытие строк после 7 на мобильных */
    .checkup-content-container table tbody tr.hidden-row {
        display: none;
    }

    .checkup-content-container table tbody tr.visible {
        display: flex !important;
    }

    /* Кнопка раскрытия таблицы */
    .checkup-show-more-btn {
        background-color: #34c759;
        color: white;
        text-align: center;
        padding: 10px 0;
        border-radius: 8px;
        margin-top: 10px;
        cursor: pointer;
        user-select: none;
        font-weight: bold;
    }

    .checkup-show-more-btn:hover {
        background-color: #28a745;
    }

    .discount {
        color: #45c261;
    }
}

/* Утилитарные классы */
.checkup-hide-on-mobile {
    display: inline-block;
}

@media (max-width: 768px) {
    .checkup-hide-on-mobile {
        display: none !important;
    }
}

.checkup-hide-on-desktop {
    display: inline-block;
}

@media (min-width: 769px) {
    .checkup-hide-on-desktop {
        display: none !important;
    }
}

@media (min-width: 769px) {
    #checkup-filters-anchor {
        position: relative;
        top: -240px;
        visibility: hidden;
    }
}

@media screen and (max-width: 768px) {
    .checkup-pricing-title {
        font-size: 28px;
    }
}

