/* ========================================================= 
   БАЗА / ПЕРЕМЕННЫЕ
========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --Base-Gray_02: #CDCDCD;
    --Base-Black: #000;
    --Base-White: #fff;
    --Text-Muted: #929292;
    --Text-Primary: #000;

    --font-body: 'Roboto', sans-serif;
    --font-hint: 'Hint', sans-serif;

    --menu-w: 1420px;
    --gutter-inline: 20px;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    background-color: #f2f2f2;
}

/* Фикс «микросдвига», без левого резерва полосы */
html {
    scrollbar-gutter: stable;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

[hidden] {
    display: none !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   КОНТЕЙНЕР (БАЗОВЫЙ)
========================================================= */
.container {
    max-width: var(--menu-w);
    margin: 0 auto;
    padding: 0 var(--gutter-inline);
}

/* =========================================================
   СТРАНИЦЫ / КОНТЕНТ
========================================================= */

/* Хлебные крошки */
.breadcrumbs {
    max-width: var(--menu-w);
    margin: 20px auto 0;
    padding: 0 var(--gutter-inline);
}

.breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs__link {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: var(--Text-Muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs__link:hover {
    color: var(--Text-Primary);
}

.breadcrumbs__current {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: var(--Text-Primary);
}

.breadcrumbs__separator {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: var(--Text-Muted);
}

/* =================== page.php (обычная страница) =================== */

.page-content {
    background: transparent;
    min-height: calc(100vh - 200px);
    position: relative;
}

.page-container {
    max-width: var(--menu-w);
    width: 100%;
    margin: 28px auto 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-header {
    margin-bottom: 0;
    text-align: left;
    width: 100%;
}

.page-title {
    font-family: var(--font-hint);
    font-weight: 700;
    font-size: 64px;
    line-height: 100%;
    text-transform: uppercase;
    color: var(--Text-Primary);
    margin: 0 0 24px 0;
}

.page-body {
    background: transparent;
    padding: 0;
    width: 100%;
    flex-grow: 1;
}

.page-content-inner {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: var(--Text-Primary);
    width: 100%;
}

/* =================== Full Width Page (page-full-content) =================== */

.page-full-content {
    background: transparent;
    min-height: calc(100vh - 200px);
    position: relative;
    margin-bottom: 50px;
}

.page-full-container {
    max-width: var(--menu-w);
    width: 100%;
    margin: 188px auto 50px;
    padding: 0 var(--gutter-inline);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.page-full-header {
    margin-bottom: 0;
    text-align: left;
    width: 100%;
}

.page-full-title {
    font-family: var(--font-hint);
    font-weight: 700;
    font-size: 64px;
    line-height: 100%;
    text-transform: uppercase;
    color: var(--Text-Primary);
    margin: 0 0 24px 0;
}

.page-full-body {
    background: transparent;
    padding: 0;
    width: 100%;
    flex-grow: 1;
}

.page-full-content-inner {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: var(--Text-Primary);
    width: 100%;
}

/* =================== Full Width White Page (page-full-white-content) =================== */

.page-full-white-content {
    background: transparent;
    min-height: calc(100vh - 200px);
    position: relative;
    margin-bottom: 50px;
}

.page-full-white-container {
    max-width: var(--menu-w);
    width: 100%;
    margin: 40px auto 120px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.page-full-white-header {
    margin-bottom: 0;
    text-align: left;
    width: 100%;
}

.page-full-white-title {
    font-family: var(--font-hint);
    font-weight: 700;
    font-size: 64px;
    line-height: 100%;
    text-transform: uppercase;
    color: var(--Text-Primary);
    margin: 0 0 24px 0;
}

.page-full-white-body {
    background: var(--Base-White);
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    flex-grow: 1;
}

.page-full-white-content-inner {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: var(--Text-Primary);
    width: 820px;
}

/* =================== ТЕКСТ ОСНОВНОГО КОНТЕНТА =================== */
/* Жёстко пробиваем типографику по фигме для всего текста внутри контент-блоков */

.page-content-inner,
.page-content-inner p,
.page-content-inner li,
.page-content-inner a,
.page-full-content-inner,
.page-full-content-inner p,
.page-full-content-inner li,
.page-full-content-inner a,
.page-full-white-content-inner,
.page-full-white-content-inner p,
.page-full-white-content-inner li,
.page-full-white-content-inner a {
    font-family: var(--font-body);
    /* Body */
    font-weight: 400;
    /* Regular */
    font-style: normal;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0;
    color: var(--Text-Primary);
    margin-bottom: 10px;
}

/* Заголовки внутри контента можно оставить акцентными (Hint) */
.page-content-inner h1,
.page-content-inner h2,
.page-content-inner h3,
.page-content-inner h4,
.page-content-inner h5,
.page-content-inner h6,
.page-full-content-inner h1,
.page-full-content-inner h2,
.page-full-content-inner h3,
.page-full-content-inner h4,
.page-full-content-inner h5,
.page-full-content-inner h6,
.page-full-white-content-inner h1,
.page-full-white-content-inner h2,
.page-full-white-content-inner h3,
.page-full-white-content-inner h4,
.page-full-white-content-inner h5,
.page-full-white-content-inner h6 {
    font-family: var(--font-hint);
    font-weight: 700;
    margin-top: 12px;
}

/* =========================================================
   БЛОКИ РЕДАКТОРА
   HTML:
   <div class="editor-blocks-container">
       <div class="editor-block">...</div>
       ...
   </div>
========================================================= */

.editor-blocks-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: 0;
}

/* Базовый блок: белый, адаптивный */
.editor-block {
    background: var(--Base-White);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 110px;
}

/* Заголовок блока */
.editor-block-title {
    font-family: var(--font-hint);
    /* Hint */
    font-weight: 700;
    /* Bold */
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--Text-Primary);
    margin: 40px 0 10px 0;
}

.editor-block:not(:first-child) .editor-block-title {
    margin-top: 40px;
}

/* Текст внутри блока */
.editor-block-text {
    font-family: var(--font-body);
    /* Body */
    font-weight: 400;
    /* Regular */
    font-style: normal;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0;
    color: var(--Text-Primary);
    margin: 0;
}

/* СПИСКИ ВНУТРИ БЕЛЫХ БЛОКОВ */
.editor-block-text ul,
.editor-block-text ol {
    margin: 0;
    /* без лишнего отступа сверху/слева */
    padding-left: 0;
    /* убираем стандартный padding браузера */
    list-style-position: inside;
    /* маркер и текст идут из одной линии, внутри паддинга блока */
}

.editor-block-text li {
    margin: 0 0 4px 0;
    /* вертикальный интервал между пунктами */
}

/* На full-страницах просто тянем по ширине блока контента */
.page-full-content .editor-blocks-container,
.page-full-white-content .editor-blocks-container {
    width: 100%;
    margin: 0 0 50px 0;
}

/* ===== ДЕСКТОП ≥1025px ===== */
@media (min-width:1025px) {

    /* По умолчанию считаем, что блоков 3+ → делим ширину на 3 */
    .editor-blocks-container .editor-block {
        flex: 0 0 calc((100% - 20px) / 3);
        max-width: calc((100% - 20px) / 3);
        min-height: 110px;
    }

    /* Если РОВНО 2 блока → делим ширину пополам */
    .editor-blocks-container .editor-block:first-child:nth-last-child(2),
    .editor-blocks-container .editor-block:first-child:nth-last-child(2)~.editor-block {
        flex: 0 0 calc((100% - 10px) / 2);
        max-width: calc((100% - 10px) / 2);
        min-height: 132px;
    }

    /* Если один блок — на всю ширину */
    .editor-blocks-container .editor-block:first-child:nth-last-child(1) {
        flex: 0 0 100%;
        max-width: 100%;
        min-height: 132px;
    }
}

/* ===== МОБИЛКА / ПЛАНШЕТ ≤1024px ===== */
@media (max-width:1024px) {
    .editor-blocks-container {
        display: flex;
        flex-direction: row;
        /* В ряд */
        flex-wrap: wrap;
        /* Перенос на следующую строку */
        max-width: 100%;
        margin: 20px auto;
        gap: 10px;
        /* Между карточками поменьше, чем на десктопе */
    }

    .editor-block {
        box-sizing: border-box;
        flex: 0 0 calc((100% - 10px) / 2);
        /* 2 блока в строку */
        max-width: calc((100% - 10px) / 2);
        min-height: 110px;
    }
}

/* =========================================================
   АДАПТИВНОСТЬ СТРАНИЦ
========================================================= */
@media (max-width: 1439px) {

    .page-full-content .editor-blocks-container,
    .page-full-white-content .editor-blocks-container {
        gap: 20px;
    }
}

@media (max-width: 1024px) {

    .page-full-white-body {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-container {
        margin: 80px auto 40px;
    }

    .page-full-container,
    .page-full-white-container {
        margin: 120px auto 40px;
    }

    .page-full-white-body {
        padding: 20px;
    }

    .page-title,
    .page-full-title,
    .page-full-white-title {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .page-full-white-body {
        padding: 15px;
    }
}

ol,
ul {
    box-sizing: border-box;
    margin-left: 19px;
}