/* ==========================================================
   1МЕСТО — ОБЩИЕ СТИЛИ VEGA BLOG
   ========================================================== */


/* ==========================================================
   СТИЛИ СОДЕРЖИМОГО СТАТЕЙ
   ========================================================== */

.post-one__content .article-content,
.article-content {
    --am-green: #00cc33;
    --am-green-dark: #00a329;
    --am-green-soft: #f0fbf3;
    --am-text: #202938;
    --am-muted: #667085;
    --am-line: #e5e7eb;

    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--am-text);
    font-family: inherit;
    font-size: 17px;
    line-height: 1.62;
}

.post-one__content .article-content *,
.article-content * {
    box-sizing: border-box;
}

.post-one__content .article-content p,
.article-content p {
    margin: 0 0 18px;
    color: var(--am-text);
    font-size: 17px;
    line-height: 1.62;
}


/* Вводный абзац */

.post-one__content .article-content .article-lead,
.article-content .article-lead {
    margin-bottom: 22px;
    color: #344054;
    font-size: 18px;
    line-height: 1.58;
}


/* Заголовки */

.post-one__content .article-content h2,
.article-content h2 {
    margin: 38px 0 16px;
    color: #151d2d;
    font-family: inherit;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: 0;
}

.post-one__content .article-content .article-section-title,
.article-content .article-section-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 42px 0 19px;
}

.post-one__content .article-content .article-section-number,
.article-content .article-section-number {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #ffffff;
    background: var(--am-green);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.post-one__content .article-content h3,
.article-content h3 {
    margin: 30px 0 14px;
    color: #151d2d;
    font-family: inherit;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.32;
}


/* Ссылки */

.post-one__content .article-content a,
.article-content a {
    color: var(--am-green-dark) !important;
    text-decoration: underline;
    text-decoration-color: rgba(0, 163, 41, 0.35);
    text-underline-offset: 3px;
}

.post-one__content .article-content a:hover,
.article-content a:hover {
    color: var(--am-green) !important;
    text-decoration-color: currentColor;
}

.post-one__content .article-content strong,
.article-content strong {
    color: #151d2d;
    font-weight: 700;
}


/* ==========================================================
   ОБЫЧНЫЕ СПИСКИ
   Вместо стандартных голубых галочек Vega
   ========================================================== */

.post-one__content .article-content ul,
.article-content ul {
    display: block;
    margin: 6px 0 25px !important;
    padding: 0 !important;
    list-style: none !important;
}

.post-one__content .article-content ul > li,
.article-content ul > li {
    position: relative;
    display: block !important;
    margin: 0 0 11px !important;
    padding: 0 0 0 22px !important;
    color: var(--am-text);
    font-size: 17px;
    line-height: 1.52;
}

.post-one__content .article-content ul > li::before,
.article-content ul > li::before {
    position: absolute !important;
    top: 0.68em !important;
    left: 0 !important;
    width: 7px !important;
    height: 7px !important;
    content: "" !important;
    background: var(--am-green) !important;
    border: 0 !important;
    border-radius: 50% !important;
    transform: none !important;
}

.post-one__content .article-content ul > li::after,
.article-content ul > li::after {
    display: none !important;
    content: none !important;
}


/* ==========================================================
   СПЕЦИАЛЬНЫЙ СПИСОК TEXT-POINTS
   ========================================================== */

.post-one__content .article-content .text-points,
.article-content .text-points {
    margin: 8px 0 27px;
    padding: 18px 20px;
    background: #f8faf9;
    border: 1px solid var(--am-line);
    border-radius: 12px;
}

.post-one__content .article-content .text-point,
.article-content .text-point {
    position: relative;
    margin: 0;
    padding: 8px 0 8px 24px;
    color: var(--am-text);
    font-size: 17px;
    line-height: 1.5;
}

.post-one__content .article-content .text-point::before,
.article-content .text-point::before {
    position: absolute;
    top: 17px;
    left: 2px;
    width: 7px;
    height: 7px;
    content: "";
    background: var(--am-green);
    border-radius: 50%;
}


/* ==========================================================
   ИЗОБРАЖЕНИЯ В СТАТЬЯХ
   ========================================================== */

.post-one__content .article-content figure,
.article-content figure {
    display: block;
    width: 100%;
    margin: 27px 0 31px;
}

.post-one__content .article-content figure:first-child,
.article-content figure:first-child {
    margin-top: 0;
}

.post-one__content .article-content figure img,
.post-one__content .article-content > img,
.article-content figure img,
.article-content > img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 10px;
}

.post-one__content .article-content figcaption,
.article-content figcaption {
    margin-top: 8px;
    color: var(--am-muted);
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}


/* ==========================================================
   ИНФОРМАЦИОННАЯ ПЛАШКА
   ========================================================== */

.post-one__content .article-content .article-note,
.article-content .article-note {
    margin: 24px 0 27px;
    padding: 17px 20px;
    background: var(--am-green-soft);
    border: 1px solid rgba(0, 204, 51, 0.28);
    border-left: 4px solid var(--am-green);
    border-radius: 10px;
}

.post-one__content .article-content .article-note strong,
.article-content .article-note strong {
    color: #16271b;
}


/* ==========================================================
   ЦИТАТЫ
   ========================================================== */

.post-one__content .article-content blockquote,
.article-content blockquote {
    margin: 26px 0;
    padding: 17px 20px;
    color: #374151;
    background: #f7f8f9;
    border: 0;
    border-left: 4px solid var(--am-green);
    border-radius: 0 10px 10px 0;
}


/* Разделитель */

.post-one__content .article-content hr,
.article-content hr {
    height: 1px;
    margin: 38px 0;
    background: var(--am-line);
    border: 0;
}


/* ==========================================================
   УНИВЕРСАЛЬНЫЕ КАРТОЧКИ ВНУТРИ СТАТЕЙ
   ========================================================== */

.article-content .article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 25px 0;
}

.article-content .article-card {
    padding: 19px;
    background: #ffffff;
    border: 1px solid var(--am-line);
    border-radius: 12px;
}

.article-content .article-card > :last-child {
    margin-bottom: 0;
}


/* ==========================================================
   ТАБЛИЦЫ
   ========================================================== */

.article-content .article-table-wrap {
    max-width: 100%;
    margin: 26px 0;
    overflow-x: auto;
    border: 1px solid var(--am-line);
    border-radius: 12px;
}

.article-content table {
    width: 100%;
    min-width: 620px;
    background: #ffffff;
    border-collapse: collapse;
    font-size: 15px;
}

.article-content th,
.article-content td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--am-line);
    text-align: left;
    vertical-align: top;
}

.article-content th {
    color: #151d2d;
    background: #f7f8f9;
}


/* ==========================================================
   FAQ ВНУТРИ СТАТЕЙ
   ========================================================== */

.article-content .article-faq {
    margin: 32px 0;
}

.article-content .article-faq details {
    margin-bottom: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--am-line);
    border-radius: 10px;
}

.article-content .article-faq summary {
    position: relative;
    padding: 15px 48px 15px 17px;
    color: #151d2d;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.article-content .article-faq summary::-webkit-details-marker {
    display: none;
}

.article-content .article-faq summary::after {
    position: absolute;
    top: 50%;
    right: 17px;
    content: "+";
    color: var(--am-green-dark);
    font-size: 23px;
    transform: translateY(-50%);
}

.article-content .article-faq details[open] summary::after {
    content: "−";
}

.article-content .article-faq__answer {
    padding: 0 17px 17px;
    color: #4b5563;
}


/* ==========================================================
   ФИНАЛЬНЫЙ БЛОК СТАТЬИ
   ========================================================== */

.post-one__content .article-content .article-final,
.article-content .article-final {
    margin: 40px 0 0;
    padding: 22px 24px;
    background: #f6f7f8;
    border: 1px solid rgba(0, 204, 51, 0.24);
    border-radius: 14px;
}

.post-one__content .article-content .article-final > :last-child,
.article-content .article-final > :last-child {
    margin-bottom: 0;
}


/* ==========================================================
   КАРТОЧКИ СТАТЕЙ В СПИСКЕ БЛОГА
   ========================================================== */

.stream .postcard-one {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.stream .postcard-one__content {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
}

.stream .postcard-one__button-wrapper {
    margin-top: auto !important;
}


/* Изображение карточки — единый формат 16:9 */

.stream .postcard-one__image-container {
    --aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    aspect-ratio: 16 / 9 !important;
}

.stream .postcard-one__image-container .postcard-one__image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.stream .postcard-one__image-container::before {
    padding-top: 56.25% !important;
}


/* Скрываем изображение плагина внутри открытой статьи */

.layout-post-classic__content > .imagePost {
    display: none !important;
}


/* ==========================================================
   СОГЛАСИЕ НА COOKIES
   ========================================================== */

.cookies-one.cookies-consent-ready {
    width: calc(100% - 32px);
    max-width: 820px;
    box-sizing: border-box;
}

.cookies-one.cookies-consent-ready .cookies-one__text {
    min-width: 0;
    margin-right: 16px;
}

.cookies-consent-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.cookies-consent-actions > * {
    flex: 0 0 auto;
    white-space: nowrap;
}


/* Основная кнопка «Разрешить» */

.cookies-one.cookies-consent-ready .js-cookies-accept {
    color: #ffffff !important;
    background: #00c943 !important;
    border: 1px solid #00a838 !important;
    box-shadow: none !important;
}

.cookies-one.cookies-consent-ready .js-cookies-accept:hover {
    color: #ffffff !important;
    background: #00a838 !important;
}


/* Кнопка «Только необходимые» */

.cookies-one.cookies-consent-ready .js-cookies-reject {
    color: #00a838 !important;
    background: #ffffff !important;
    border: 1px solid #00c943 !important;
    box-shadow: none !important;
}

.cookies-one.cookies-consent-ready .js-cookies-reject:hover {
    color: #00a838 !important;
    background: #effcf3 !important;
    border-color: #00a838 !important;
}


/* ==========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================== */

@media (max-width: 767px) {

    .post-one__content .article-content,
    .article-content,
    .post-one__content .article-content p,
    .article-content p {
        font-size: 16px;
        line-height: 1.6;
    }

    .post-one__content .article-content .article-lead,
    .article-content .article-lead {
        font-size: 17px;
    }

    .post-one__content .article-content h2,
    .article-content h2 {
        margin: 31px 0 14px;
        font-size: 22px;
    }

    .post-one__content .article-content .article-section-title,
    .article-content .article-section-title {
        align-items: flex-start;
        gap: 10px;
        margin-top: 34px;
    }

    .post-one__content .article-content .article-section-number,
    .article-content .article-section-number {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 14px;
    }

    .post-one__content .article-content ul > li,
    .article-content ul > li {
        font-size: 16px;
    }

    .post-one__content .article-content figure,
    .article-content figure {
        margin: 22px 0 27px;
    }

    .article-content .article-grid {
        grid-template-columns: 1fr;
    }

    .post-one__content .article-content .text-points,
    .article-content .text-points,
    .post-one__content .article-content .article-final,
    .article-content .article-final {
        padding: 15px 16px;
    }

    .post-one__content .article-content .text-point,
    .article-content .text-point {
        font-size: 16px;
    }


    /* Cookies на телефоне */

    .cookies-one.cookies-consent-ready {
        width: calc(100% - 24px);
        max-width: 320px;
    }

    .cookies-one.cookies-consent-ready .cookies-one__text {
        margin-right: 0;
    }

    .cookies-consent-actions {
        width: 100%;
        flex-direction: column;
        margin-left: 0;
    }

    .cookies-consent-actions > *,
    .cookies-consent-actions .is-narrow,
    .cookies-consent-actions .button-one,
    .cookies-consent-actions button {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
    }
}