/* =========================================================
   Дополнительные стили для экспертных статей блога
   Работают только внутри .ps-article
   ========================================================= */

.ps-article {
    --ps-blue: #1769aa;
    --ps-blue-dark: #104c7d;
    --ps-orange: #ff6600;
    --ps-orange-dark: #e55a00;
    --ps-green: #16845b;
    --ps-red: #d84747;
    --ps-yellow: #f2b705;
    --ps-text: #29323d;
    --ps-muted: #697586;
    --ps-border: #e5eaf0;
    --ps-bg: #f6f8fa;
    --ps-white: #ffffff;

    max-width: 1080px;
    margin: 0 auto;
    color: var(--ps-text);
    font-family: inherit;
    font-size: 18px;
    line-height: 1.75;
}

.ps-article *,
.ps-article *::before,
.ps-article *::after {
    box-sizing: border-box;
}

/* =========================================================
   Заголовки
   ========================================================= */

.ps-article h1,
.ps-article h2,
.ps-article h3,
.ps-article h4,
.ps-article h5,
.ps-article h6 {
    color: var(--ps-orange) !important;
    line-height: 1.25;
    scroll-margin-top: 30px;
}

.ps-article h1 {
    margin: 0 0 28px !important;
    font-size: 32px !important;
    font-weight: 500 !important;
}

.ps-article h2 {
    position: relative;
    margin: 48px 0 20px !important;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ps-border);
    font-size: 26px !important;
    font-weight: 500 !important;
}

.ps-article h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 64px;
    height: 3px;
    background: var(--ps-orange);
}

.ps-article h3 {
    margin: 34px 0 14px !important;
    font-size: 22px !important;
    font-weight: 500 !important;
}

.ps-article h4 {
    margin: 26px 0 11px !important;
    font-size: 19px !important;
    font-weight: 500 !important;
}

.ps-article p {
    margin: 0 0 21px;
}

/* =========================================================
   Ссылки
   ========================================================= */

.ps-article a {
    color: var(--ps-orange) !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ps-article a:hover {
    color: var(--ps-orange-dark) !important;
}

/* =========================================================
   Обычные списки статьи
   ========================================================= */

.ps-article ul,
.ps-article ol {
    margin: 16px 0 28px;
    padding-left: 28px;
}

.ps-article li {
    margin: 8px 0;
    padding-left: 5px;
}

.ps-article ul li::marker {
    color: var(--ps-orange);
}

.ps-article img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   Содержание статьи
   ◆ - только у главных пунктов
   Подпункты - без ◆ и без дополнительного отступа
   ========================================================= */

.ps-article__toc {
    margin: 0 0 42px;
    overflow: hidden;
    border: 1px solid var(--ps-border);
    border-radius: 14px;
    background: var(--ps-white);
    box-shadow: 0 8px 24px rgba(19, 55, 86, 0.07);
}

.ps-article__toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    color: var(--ps-orange);
    cursor: pointer;
    list-style: none;
    font-size: 20px;
    font-weight: 700;
}

.ps-article__toc summary::-webkit-details-marker {
    display: none;
}

.ps-article__toc summary::after {
    content: "+";
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--ps-orange);
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
}

.ps-article__toc[open] summary::after {
    content: "−";
}

.ps-article__toc .ps-article__toc-list,
.ps-article__toc .ps-article__toc-list ol {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ps-article__toc .ps-article__toc-list {
    padding: 16px 24px 22px 78px !important;
    border-top: 1px solid var(--ps-border) !important;
}

.ps-article__toc .ps-article__toc-list > li {
    position: relative !important;
    display: block !important;
    margin: 8px 0 !important;
    padding: 0 0 0 24px !important;
    list-style: none !important;
}

.ps-article__toc .ps-article__toc-list > li::before {
    content: "◆" !important;
    position: absolute !important;
    top: 1.3em !important;
    left: 0 !important;
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    transform: translateY(-50%) !important;
    color: var(--ps-orange) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.ps-article__toc .ps-article__toc-list > li > a {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ps-text) !important;
    line-height: 1.75 !important;
    text-decoration: none !important;
}

.ps-article__toc .ps-article__toc-list > li > ol {
    display: block !important;
    margin: 4px 0 6px !important;
    padding: 0 !important;
    list-style: none !important;
}

.ps-article__toc .ps-article__toc-list > li > ol > li {
    display: block !important;
    margin: 4px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ps-article__toc .ps-article__toc-list > li > ol > li::before,
.ps-article__toc .ps-article__toc-list > li > ol > li::after {
    display: none !important;
    content: none !important;
}

.ps-article__toc .ps-article__toc-list > li > ol > li > a {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ps-text) !important;
    line-height: 1.75 !important;
    text-decoration: none !important;
}

.ps-article__toc .ps-article__toc-list li::marker {
    content: "" !important;
}

.ps-article__toc .ps-article__toc-list a::before,
.ps-article__toc .ps-article__toc-list a::after {
    display: none !important;
    content: none !important;
}

.ps-article__toc .ps-article__toc-list a:hover {
    color: var(--ps-orange) !important;
}

/* =========================================================
   Информационные блоки
   ========================================================= */

.ps-article__notice {
    position: relative;
    margin: 30px 0;
    padding: 22px 26px 22px 72px;
    border: 1px solid var(--ps-border);
    border-left: 5px solid var(--ps-blue);
    border-radius: 12px;
    background: #f2f8fd;
}

.ps-article__notice::before {
    position: absolute;
    top: 21px;
    left: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    background: var(--ps-blue);
    color: #ffffff;
    line-height: 1;
    text-align: center;
    font-weight: 800;
}

.ps-article__notice-title {
    display: block;
    margin-bottom: 6px;
    color: var(--ps-orange);
    font-size: 19px;
    font-weight: 800;
}

.ps-article__notice p:last-child {
    margin-bottom: 0;
}

.ps-article__notice--expert {
    border-left-color: var(--ps-orange);
    background: #fff8ef;
}

.ps-article__notice--expert::before {
    content: "★";
    background: var(--ps-orange);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
}

.ps-article__notice--expert .ps-article__notice-title {
    color: #b65a09;
}

.ps-article__notice--important {
    border-left-color: var(--ps-yellow);
    background: #fffbed;
}

.ps-article__notice--important::before {
    content: "!";
    background: var(--ps-yellow);
}

.ps-article__notice--important .ps-article__notice-title {
    color: #927000;
}

.ps-article__notice--error {
    border-left-color: var(--ps-red);
    background: #fff4f4;
}

.ps-article__notice--error::before {
    content: "×";
    background: var(--ps-red);
}

.ps-article__notice--error .ps-article__notice-title {
    color: #ac3030;
}

.ps-article__notice--remember {
    border-left-color: var(--ps-green);
    background: #effaf5;
}

.ps-article__notice--remember::before {
    content: "✓";
    background: var(--ps-green);
}

.ps-article__notice--remember .ps-article__notice-title {
    color: #096a47;
}

/* =========================================================
   Блок Плюсы / Минусы
   ========================================================= */

.ps-article__pros-cons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.ps-article__pros,
.ps-article__cons {
    padding: 23px 25px;
    border: 1px solid var(--ps-border);
    border-radius: 13px;
    background: #ffffff;
}

.ps-article__pros {
    border-top: 4px solid var(--ps-green);
}

.ps-article__cons {
    border-top: 4px solid var(--ps-red);
}

.ps-article__pros h3,
.ps-article__cons h3 {
    margin: 0 0 13px !important;
    font-size: 21px !important;
    font-weight: 600 !important;
}

.ps-article__pros h3 {
    color: var(--ps-green) !important;
}

.ps-article__cons h3 {
    color: var(--ps-red) !important;
}

.ps-article__pros ul,
.ps-article__cons ul {
    margin: 0;
    padding-left: 23px;
}

/* =========================================================
   Дополнительная экспертная карточка
   ========================================================= */

.ps-article__expert {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    margin: 34px 0;
    padding: 25px;
    border: 1px solid #f0d9bb;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffaf3, #ffffff);
}

.ps-article__expert-icon {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: var(--ps-orange);
    color: #ffffff;
    font-size: 28px;
}

.ps-article__expert-title {
    margin: 0 0 6px;
    color: #a9560b;
    font-size: 20px;
    font-weight: 700;
}

.ps-article__expert p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   Таблицы
   ========================================================= */

.ps-article__table-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 30px 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--ps-border);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(19, 55, 86, 0.05);
}

.ps-article__table {
    display: table !important;
    width: 100% !important;
    min-width: 700px;
    max-width: none !important;
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    table-layout: auto !important;
}

.ps-article__table thead,
.ps-article__table tbody {
    display: table-row-group !important;
}

.ps-article__table tr {
    display: table-row !important;
}

.ps-article__table th,
.ps-article__table td {
    display: table-cell !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    vertical-align: top;
}

.ps-article__table th {
    padding: 16px;
    background: var(--ps-orange) !important;
    color: #ffffff !important;
    text-align: left;
    font-weight: 700;
    border-bottom: 1px solid var(--ps-orange);
}

.ps-article__table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--ps-border);
}

.ps-article__table tr:nth-child(even) td {
    background: #f8fafc;
}

.ps-article__table tr:last-child td {
    border-bottom: 0;
}

.ps-article__table th:first-child {
    border-top-left-radius: 11px;
}

.ps-article__table th:last-child {
    border-top-right-radius: 11px;
}

/* =========================================================
   Часто задаваемые вопросы
   ========================================================= */

.ps-article__faq {
    margin: 26px 0;
}

.ps-article__faq details {
    margin: 10px 0;
    border: 1px solid var(--ps-border);
    border-radius: 10px;
    background: #ffffff;
}

.ps-article__faq summary {
    position: relative;
    padding: 17px 20px 17px 74px;
    color: var(--ps-orange);
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}

.ps-article__faq summary::-webkit-details-marker {
    display: none;
}

.ps-article__faq summary::before {
    content: "+";
    position: absolute;
    top: 50%;
    left: 24px;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--ps-orange);
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.ps-article__faq details[open] summary::before {
    content: "−";
}

.ps-article__faq-answer {
    padding: 0 20px 16px 74px;
}

/* =========================================================
   Изображения
   ========================================================= */

.ps-article__figure {
    margin: 30px 0;
}

.ps-article__image {
    display: block;
    width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(19, 55, 86, 0.10);
}

.ps-article__figure .ps-article__image {
    margin: 0;
}

.ps-article__image--small {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.ps-article__image-caption {
    margin: -18px 0 30px;
    color: var(--ps-muted);
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.ps-article__figure .ps-article__image-caption {
    margin: 12px 0 0;
}

/* =========================================================
   Адаптация для телефонов
   ========================================================= */

@media (max-width: 760px) {
    .ps-article {
        font-size: 16px;
    }

    .ps-article h1 {
        font-size: 26px !important;
    }

    .ps-article h2 {
        font-size: 22px !important;
    }

    .ps-article h3 {
        font-size: 20px !important;
    }

    .ps-article__toc .ps-article__toc-list {
        padding: 16px 18px 20px 48px !important;
    }

    .ps-article__toc .ps-article__toc-list > li {
        padding-left: 22px !important;
    }

    .ps-article__toc .ps-article__toc-list > li > ol {
        padding: 0 !important;
    }

    .ps-article__toc .ps-article__toc-list > li::before {
        top: 1.3em !important;
        transform: translateY(-50%) !important;
    }

    .ps-article__pros-cons {
        grid-template-columns: 1fr;
    }

    .ps-article__expert {
        padding: 20px;
    }

    .ps-article__notice {
        padding-left: 60px;
    }

    .ps-article__notice::before {
        left: 18px;
    }

    .ps-article__faq summary {
        padding-left: 74px;
    }

    .ps-article__faq-answer {
        padding-left: 74px;
    }

    .ps-article__figure {
        margin: 24px 0;
    }

    .ps-article__image {
        margin: 24px 0;
        border-radius: 10px;
    }

    .ps-article__image-caption {
        margin-top: -14px;
        font-size: 13px;
    }

    .ps-article__figure .ps-article__image-caption {
        margin-top: 10px;
    }
}

/* =========================================================
   Таблицы на телефонах
   ========================================================= */

@media (max-width: 760px) {
    .ps-article__table-wrap {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 24px 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    .ps-article__table {
        display: table !important;
        width: 900px !important;
        min-width: 900px !important;
        max-width: none !important;
        margin: 0 !important;
        table-layout: auto !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        font-size: 14px;
        line-height: 1.45;
    }

    .ps-article__table thead,
    .ps-article__table tbody {
        display: table-row-group !important;
    }

    .ps-article__table tr {
        display: table-row !important;
    }

    .ps-article__table th,
    .ps-article__table td {
        display: table-cell !important;
        min-width: 170px !important;
        white-space: normal !important;
        vertical-align: top !important;
    }

    .ps-article__table th {
        padding: 12px 14px !important;
        background: var(--ps-orange) !important;
        color: #ffffff !important;
        border-bottom: 1px solid var(--ps-orange) !important;
    }

    .ps-article__table td {
        padding: 12px 14px !important;
        border-bottom: 1px solid var(--ps-border) !important;
    }

    .ps-article__table th:first-child {
        border-top-left-radius: 11px;
    }

    .ps-article__table th:last-child {
        border-top-right-radius: 11px;
    }
}