/* ===== HERO ===== */
.page-hero {
    background-color: var(--bg-light-gray);
    padding: 60px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== ОСНОВНАЯ СЕКЦИЯ ===== */
.terms-main-section { /* класс из HTML, но стилизуем как offer */
    background-color: var(--bg-white);
    padding: 80px 0 120px;
    position: relative;
}

/* Отступ контенту сверху, чтобы текст не прилипал к волне */
.terms-main-section .container {
    position: relative;
    z-index: 3;
    padding-top: 50px;
}

.wave-top, .wave-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-top { top: -1px; }
.wave-bottom { bottom: -1px; transform: rotate(180deg); }

.wave-top svg, .wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-top .shape-fill { fill: var(--bg-light-gray); }
.wave-bottom .shape-fill { fill: var(--text-dark); }

/* ===== СЕТКА ОФЕРТЫ (2 колонки) ===== */
.offer-grid {
    column-count: 2;
    column-gap: 80px;
    position: relative;
    z-index: 3;
}

.offer-grid.few-items {
    column-count: 1;
    max-width: 900px;
    margin: 0 auto;
}

.offer-block {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 60px;
    min-width: 0;
}

.offer-block h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.offer-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
}

.offer-text p {
    margin-bottom: 18px;
    line-height: 1.8;
}

.offer-text ul,
.offer-text ol {
    margin-bottom: 18px;
    padding-left: 25px;
}

.offer-text ul { list-style-type: disc; }
.offer-text ol { list-style-type: decimal; }

.offer-text li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.offer-text strong,
.offer-text b {
    color: var(--text-dark);
    font-weight: 700;
}

.offer-text em {
    color: var(--text-gray);
    font-size: 14px;
}

.offer-text a {
    color: var(--text-dark);
    text-decoration: underline;
}

/* ===== ПЛАНШЕТ (≤992px) ===== */
@media (max-width: 992px) {
    .terms-main-section .container { padding-top: 40px; }
    .offer-grid {
        column-count: 1;
        column-gap: 0;
    }
    .offer-block {
        margin-bottom: 50px;
    }
    /* page-title остаётся 42px — как в каталоге на этом разрешении */
}

/* ===== ТЕЛЕФОН (≤768px) ===== */
@media (max-width: 768px) {
    .page-hero { padding: 40px 0; }
    .page-title { font-size: 32px; letter-spacing: -0.5px; margin-bottom: 10px; }
    .page-subtitle { font-size: 14px; padding: 0 15px; }

    .terms-main-section { padding: 60px 0 90px; }
    .terms-main-section .container { padding-top: 30px; }

    .offer-block {
        margin-bottom: 40px;
    }

    .offer-block h2 {
        font-size: 24px;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .offer-text,
    .offer-text p,
    .offer-text li {
        font-size: 15px;
        line-height: 1.75;
    }

    .offer-text ul,
    .offer-text ol {
        padding-left: 22px;
    }

    .wave-top svg, .wave-bottom svg {
        height: 40px;
    }
}

/* ===== МАЛЕНЬКИЙ ТЕЛЕФОН (≤480px) ===== */
@media (max-width: 480px) {
    .page-hero { padding: 30px 0; }
    /* page-title остаётся 32px — как в каталоге */

    .terms-main-section { padding: 40px 0 70px; }
    .terms-main-section .container { padding-top: 25px; }

    .offer-block h2 {
        font-size: 22px;
    }

    .offer-text,
    .offer-text p,
    .offer-text li {
        font-size: 14px;
        line-height: 1.7;
    }

    .offer-text {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}