/* ===== МОДАЛЬНОЕ ОКНО ДЛЯ КОНТЕНТА (АКЦИИ/НОВОСТИ) ===== */
.content-modal {
    max-width: 800px;
    padding: 0;
    overflow: hidden;
}

.content-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.content-modal-header {
    border: 1px solid #D392EE;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding:0px !important;
    margin: 30px 30px 20px;
    flex-wrap: wrap;
}

.content-modal-header h2 {
    font-size: 28px;
    font-weight: bold;
    color: #A43CCF !important;
    align-self: center;
    margin: 0;
    margin-left: 30px !important;
    flex: 2;
}

.content-modal-image {
    flex: 1;
    min-width: 150px;
}

.content-modal-image img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

.content-modal-description {
    padding: 0 30px 15px;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
}

.content-modal-full-text {
    padding: 20px 30px;
    font-size: 15px;
    color: #433f45;
    line-height: 1.6;
}

.content-modal-section {
    padding: 20px 30px;
    border-top: 1px solid #f0f0f0;
}

.content-modal-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #433F45 !important;
    margin-bottom: 15px;
}

.tariffs-table-wrapper {
    overflow-x: auto;
}

.tariffs-participants-table {
    width: 100%;
    border-collapse: collapse;
}

.tariffs-participants-table th,
.tariffs-participants-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.tariffs-participants-table th {
    background: #f6f6f9;
    font-weight: 600;
    color: #433f45;
}

.tariffs-participants-table tr:last-child td {
    border-bottom: none;
}

.conditions-list {

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.condition-item {
    padding: 10px 0;
}

.condition-title {
    font-weight: bold;
    color: #433f45;
    margin-bottom: 8px;
    font-size: 16px;
}

.condition-text {
    color: #666;
    margin-left: 20px;
    line-height: 1.5;
    font-size: 14px;
}

.content-modal-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px 30px 30px;
    border-top: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
    .content-modal-header {
        flex-direction: column;
    }

    .content-modal-header h2 {
        font-size: 22px;
    }

    .content-modal-image {
        width: 100%;
    }

    .content-modal-section {
        padding: 15px 20px;
    }

    .content-modal-footer {
        flex-direction: column;
    }
}
/* ===== МОДАЛЬНОЕ ОКНО ДЛЯ КОНТЕНТА (АКЦИИ/НОВОСТИ) ===== */
.content-modal {
    max-width: 800px;
    padding: 0;
    overflow: hidden;
}

.content-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f6f6f9;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-modal .modal-close:hover {
    background: #e0e0e0;
}

.content-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 30px 30px 20px;
    flex-wrap: wrap;
}

.content-modal-header h2 {
    font-size: 28px;
    font-weight: bold;
    color: #A43CCF !important;
    align-self: center;
    margin: 0;
    flex: 2;
}

.content-modal-image {
    flex: 1;
    min-width: 150px;
}

.content-modal-image img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

.content-modal-description {
    padding: 0 30px 15px;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
}

.content-modal-full-text {
    padding: 20px 30px;
    font-size: 15px;
    color: #433f45;
    line-height: 1.6;
}

.content-modal-section {
    padding: 20px 30px;
    border-top: 1px solid #f0f0f0;
}

.content-modal-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #433F45 !important;
    margin-bottom: 15px;
}

/* ===== СТИЛИ ТАБЛИЦЫ КАК В ЛИЧНОМ КАБИНЕТЕ ===== */
.tariffs-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    background: #ffffff;
}

.tariffs-participants-table {
    border-collapse: separate !important;
    border-spacing: 3px !important;
    width: 50% !important;
    border-collapse: separate;
    border-spacing: 0px;
    font-size: 14px;
    background: transparent;
    border-radius: 16px;
}

.tariffs-participants-table thead tr:first-child th:first-child {
    border-top-left-radius: 16px;
}

.tariffs-participants-table thead tr:first-child th:last-child {
    border-top-right-radius: 16px;
}

.tariffs-participants-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}

.tariffs-participants-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

.tariffs-participants-table thead th {
    background: #D392EE;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 14px 12px;
    text-align: left;
}

.tariffs-participants-table tbody tr {
    background: #F6F6F9;
}

.tariffs-participants-table tbody td {
    padding: 14px 12px;
    background: #F6F6F9;
    color: #433f45;
    border: none;
}



/* Адаптив для мобильных - как в ЛК */
@media (max-width: 768px) {
    .tariffs-participants-table thead {
        display: none;
    }

    .tariffs-participants-table tbody tr {
        display: block;
        margin-bottom: 8px;
        border-radius: 16px;
        overflow: hidden;
    }

    .tariffs-participants-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
    }

    .tariffs-participants-table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #433f45;
        margin-right: 15px;
        min-width: 100px;
    }
}

/* ===== УСЛОВИЯ ===== */
.conditions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.condition-item {
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}

.condition-item:last-child {
    border-bottom: none;
}

.condition-title {
    font-weight: bold;
    color: #433f45;
    margin-bottom: 8px;
    font-size: 16px;
}

.condition-text {
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

/* ===== ФУТЕР МОДАЛЬНОГО ОКНА ===== */
.content-modal-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px 30px 30px;
    border-top: 1px solid #f0f0f0;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .content-modal {
        max-width: 95%;
    }

    .content-modal-header {
        flex-direction: column;
        padding: 20px 20px 15px;
    }

    .content-modal-header h2 {
        font-size: 22px;
    }

    .content-modal-image {
        width: 100%;
        min-width: auto;
    }

    .content-modal-image img {
        max-height: 120px;
    }

    .content-modal-description {
        padding: 0 20px 15px;
        font-size: 14px;
    }

    .content-modal-full-text {
        padding: 15px 20px;
        font-size: 14px;
    }

    .content-modal-section {
        padding: 15px 20px;
    }

    .content-modal-section h3 {
        font-size: 16px;
    }

    .content-modal-footer {
        flex-direction: column;
        padding: 15px 20px 20px;
    }

    .content-modal-footer .btn-primary,
    .content-modal-footer .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .condition-title {
        font-size: 14px;
    }

    .condition-text {
        font-size: 13px;
    }
}