body, .container-wrapper, .about-content,
.card, .btn, h1, h2, h3, h4, h5, h6, p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container-wrapper {
    max-width: 1000px;
    margin: 5px auto;
    padding: 0 15px;
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
}

.about-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
    flex-grow: 1;
}

.about-title {
    color: #343a40;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    border-bottom: 3px solid #0d6efd;
    display: inline-block;
    width: auto;
    padding-bottom: 10px;
}

.about-title-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.content-block {
    background: #fefefe;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-top: 20px;
}

/* ========== ТЕКСТ СОГЛАШЕНИЯ ========== */

.post-full-text {
    font-size: 16px;
    line-height: 1.7;
    color: #2c3e50;
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

/* Стили для форматированного текста внутри соглашения */
.post-full-text p {
    margin-bottom: 15px;
}

.post-full-text h1,
.post-full-text h2,
.post-full-text h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #343a40;
}

.post-full-text ul,
.post-full-text ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.post-full-text li {
    margin-bottom: 8px;
}

.post-full-text strong {
    color: #0d6efd;
}

/* ========== АДАПТИВНОСТЬ ========== */

/* Планшеты (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    body {
        background-color: #f0f2f5;
    }

    .container-wrapper {
        max-width: 900px;
        margin: 0 auto;
        padding: 0 15px;
    }

    .about-content {
        padding: 30px;
        margin: 15px 0;
    }

    .about-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .content-block {
        padding: 25px;
    }

    .post-full-text {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Мобильные телефоны (до 767px) */
@media (max-width: 767px) {
    body {
        background-color: #f0f2f5;
    }

    .container-wrapper {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 12px;
        min-height: calc(100vh - 140px);
    }

    .about-content {
        padding: 20px 15px;
        border-radius: 6px;
        margin: 10px 0;
    }

    .about-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
        font-size: 1.3rem;
    }

    .content-block {
        padding: 15px;
        margin-top: 15px;
    }

    .post-full-text {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Очень маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    .container-wrapper {
        padding: 0 10px;
        min-height: calc(100vh - 120px);
    }

    .about-content {
        padding: 15px 12px;
    }

    .about-title {
        font-size: 1.2rem;
    }

    .content-block {
        padding: 12px;
    }

    .post-full-text {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Альбомная ориентация телефона */
@media (max-width: 767px) and (orientation: landscape) {
    .container-wrapper {
        min-height: auto;
    }

    .about-content {
        padding: 15px;
    }

    .about-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .content-block {
        padding: 12px;
    }

    .post-full-text {
        font-size: 13px;
    }
}

/* Retina-экраны */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .content-block {
        border-width: 1.5px;
    }
}