/* Таблица использует только страницу «Условия» и не влияет на другие разделы. */
.conditions-variants {
    box-sizing: border-box;
    margin: 0 0 18px;
    padding: 22px;
    border: 1px solid #d8b8aa;
    border-radius: 20px;
    background: rgba(255, 248, 244, 0.96);
    box-shadow: 0 6px 20px rgba(80, 55, 45, 0.07);
}

.conditions-variants__heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 17px;
}

.conditions-variants__icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f4e4de;
    font-size: 24px;
}

.conditions-variants__heading > div {
    min-width: 0;
}

.conditions-variants__heading h2 {
    margin: 0 0 6px;
    color: #74564f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.3;
}

.conditions-variants__heading p,
.conditions-variants__note {
    margin: 0;
    color: #806f68;
    font-size: 14px;
    line-height: 1.6;
}

.conditions-variants__table-wrap {
    width: 100%;
    min-width: 0;
}

.conditions-variants__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    overflow: hidden;
    border: 1px solid #dfc8be;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    color: #6f574f;
}

.conditions-variants__table th,
.conditions-variants__table td {
    box-sizing: border-box;
    padding: 12px 11px;
    border-bottom: 1px solid #eadbd4;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.conditions-variants__table th + th,
.conditions-variants__table td + td {
    border-left: 1px solid #eadbd4;
}

.conditions-variants__table th {
    background: #f2e2dc;
    color: #684b43;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
}

.conditions-variants__table td {
    font-size: 13px;
    line-height: 1.5;
}

.conditions-variants__table th:nth-child(1) {
    width: 23%;
}

.conditions-variants__table th:nth-child(2) {
    width: 41%;
}

.conditions-variants__table th:nth-child(3) {
    width: 16%;
}

.conditions-variants__table th:nth-child(4) {
    width: 20%;
}

.conditions-variants__table tbody tr:last-child td {
    border-bottom: 0;
}

.conditions-variants__type {
    display: block;
    color: #684b43;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.conditions-variants__variant {
    display: block;
    margin-top: 3px;
    color: #98786d;
    font-size: 12px;
    line-height: 1.4;
}

.conditions-variants__price,
.conditions-variants__days {
    color: #684b43;
    font-weight: 700;
}

.conditions-variants__state-row td {
    padding: 18px 12px;
    color: #8d746b;
    text-align: center;
}

.conditions-variants__note {
    margin-top: 13px;
    padding-left: 12px;
    border-left: 3px solid #c99e8d;
}

.information-card-care-note {
    border-color: #dec8bd;
    background: rgba(255, 250, 247, 0.96);
}

@media (max-width: 640px) {
    .conditions-variants {
        padding: 16px;
        border-radius: 16px;
    }

    .conditions-variants__heading {
        gap: 11px;
        margin-bottom: 14px;
    }

    .conditions-variants__icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 21px;
    }

    .conditions-variants__heading h2 {
        font-size: 19px;
    }

    .conditions-variants__heading p,
    .conditions-variants__note {
        font-size: 13px;
    }

    .conditions-variants__table {
        display: block;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .conditions-variants__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    .conditions-variants__table tbody,
    .conditions-variants__table tr,
    .conditions-variants__table td {
        display: block;
        width: 100%;
    }

    .conditions-variants__table tr {
        box-sizing: border-box;
        margin-bottom: 10px;
        overflow: hidden;
        border: 1px solid #dfc8be;
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.82);
    }

    .conditions-variants__table tr:last-child {
        margin-bottom: 0;
    }

    .conditions-variants__table td {
        display: grid;
        grid-template-columns: minmax(86px, 0.8fr) minmax(0, 1.35fr);
        gap: 11px;
        padding: 10px 11px;
        border: 0;
        border-bottom: 1px solid #eadbd4;
        font-size: 13px;
    }

    .conditions-variants__table td:last-child {
        border-bottom: 0;
    }

    .conditions-variants__table td::before {
        content: attr(data-label);
        color: #927369;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.4;
    }

    .conditions-variants__state-row td {
        display: block;
        padding: 16px 11px;
    }

    .conditions-variants__state-row td::before {
        content: none;
    }
}

@media (max-width: 360px) {
    .conditions-variants {
        padding: 14px 12px;
    }

    .conditions-variants__heading h2 {
        font-size: 18px;
    }

    .conditions-variants__table td {
        grid-template-columns: minmax(78px, 0.76fr) minmax(0, 1.24fr);
        gap: 8px;
        padding-right: 9px;
        padding-left: 9px;
    }
}
