/* ====================================================
   about-new.css — страница «О компании»
   Типографика и карточка — по образцу blog-update.css
   ==================================================== */

/* ── Фон страницы ──────────────────────────────────── */
body {
    background-color: #f3f3f3;
}

/* ── Враппер контента ──────────────────────────────── */
.about-single {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto 40px;
    font-size: 17px;
    line-height: 1.4;
    letter-spacing: -0.05em;
    color: #555;
    font-family: 'Inter', sans-serif;
}

/* ── Заголовки ──────────────────────────────────────── */

.about-single h1 {
    font-size: 48px;
    font-weight: 500;
    color: #333;
    margin-top: 0;
    margin-bottom: 1.25rem;
    text-align: center;
    line-height: 1.2;
}

.about-single h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-top: 1.75rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.about-single h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-top: 1.75rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.about-single h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* ── Параграфы ──────────────────────────────────────── */

.about-single p {
    margin-bottom: 1.25rem;
    color: inherit;
}

/* ── Выделение ──────────────────────────────────────── */

.about-single strong {
    color: #333;
    font-weight: 600;
}

/* ── Ссылки ─────────────────────────────────────────── */

.about-single a {
    color: #1e90ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-single a:hover {
    color: #1a7acc;
    text-decoration: underline;
}

/* ── Списки ─────────────────────────────────────────── */

.about-single ul,
.about-single ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.about-single ul {
    list-style: disc;
}

.about-single ol {
    list-style: decimal;
}

.about-single li {
    margin-bottom: 0.75rem;
    color: #555;
    line-height: 1.5;
}

.about-single li strong {
    color: #333;
    font-weight: 600;
}

/* ── Цитата ─────────────────────────────────────────── */

.about-single blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #0389CB;
    background-color: #f9f9f9;
    color: #666;
    font-style: italic;
}

/* ── Код ────────────────────────────────────────────── */

.about-single code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #d63384;
}

/* ── Таблицы ────────────────────────────────────────── */

.about-single table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.about-single table th,
.about-single table td {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.about-single table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

/* ── Изображения ─────────────────────────────────────── */

.about-single img {
    display: block;
    max-width: 100%;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.about-single p img {
    border-radius: 16px;
    border: 1px solid #e0e0e0;
}

/* ── Выделенный блок (по образцу .border-text) ──────── */

.about-single .border-text {
    border-radius: 12px;
    padding: 20px 24px;
    margin: 10px 0 24px;
    background-color: #f0f7fb;
}

.about-single .border-text p:last-child {
    margin-bottom: 0;
}

/* ── CTA-кнопка ─────────────────────────────────────── */

.about-cta {
    text-align: center;
    margin-top: 60px;
}

.about-cta a {
    display: inline-block;
    background: linear-gradient(to right, #C5FCE7 0%, #D6E7FD 33.3%, #C5FCE7 66.7%, #D6E7FD 100%);
    background-size: 200% auto;
    color: #252b36 !important;
    text-decoration: none !important;
    padding: 16px 36px;
    font-size: 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: box-shadow 0.3s, transform 0.3s, background-position 0.4s;
}

.about-cta a:hover {
    background-position: right center;
    box-shadow: 0 6px 24px rgba(3, 137, 203, 0.22);
    transform: translateY(-2px);
}

/* ── Мобайл: без карточки ───────────────────────────── */

@media (max-width: 768px) {
    .about-single h1 {
        font-size: 28px;
    }

    .about-single h2 {
        font-size: 1.2rem;
    }

    .about-single h3 {
        font-size: 1.1rem;
    }

    .about-single {
        font-size: 16px;
    }

    .about-cta a {
        font-size: 16px;
        padding: 14px 24px;
    }

    /* Таблицы прокручиваются горизонтально */
    .about-single table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .about-single table th,
    .about-single table td {
        white-space: nowrap;
    }
}

/* ── Планшет+: белая карточка ───────────────────────── */

@media (min-width: 769px) {
    .about-single {
        background-color: #fff;
        border-radius: 10px;
        padding: 50px 70px;
    }
}
