/* Стили для блоков Gutenberg на фронтенде */

/* Блок Group */
.wp-block-group {
    box-sizing: border-box;
}

.wp-block-group__inner-container {
    box-sizing: border-box;
}

/* Layout Flex */
.is-layout-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.is-layout-flex > * {
    margin: 0;
}

.is-layout-flex.is-nowrap {
    flex-wrap: nowrap;
}

.is-layout-flex.gap-0 {
    gap: 0;
}

.is-layout-flex.gap-1 {
    gap: 0.25rem;
}

.is-layout-flex.gap-2 {
    gap: 0.5rem;
}

.is-layout-flex.gap-3 {
    gap: 0.75rem;
}

.is-layout-flex.gap-4 {
    gap: 1rem;
}

.is-layout-flex.gap-5 {
    gap: 1.25rem;
}

.is-layout-flex.gap-6 {
    gap: 1.5rem;
}

.is-layout-flex.gap-7 {
    gap: 1.75rem;
}

.is-layout-flex.gap-8 {
    gap: 2rem;
}

/* Layout Grid */
.is-layout-grid {
    display: grid;
}

.is-layout-grid > * {
    margin: 0;
}

/* Контейнеры с динамическими классами */
[class*="wp-container-core-group-is-layout-"] {
    box-sizing: border-box;
}

/* Колонки */
.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    box-sizing: border-box;
}

.wp-block-column {
    flex-grow: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Базовые стили для блоков */
.wp-block {
    max-width: 100%;
}

/* Spacing utilities */
.has-small-gap {
    gap: 1rem;
}

.has-medium-gap {
    gap: 1.5rem;
}

.has-large-gap {
    gap: 2.5rem;
}

.has-xl-gap {
    gap: 3rem;
}

/* Выравнивание */
.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-space-between {
    justify-content: space-between;
}

/* быстрый фикс для высоты формы iframe - ПРИВЕСТИ В ПОРЯДОК*/
.data-subscribe-iframe {
    display: block;
    overflow: hidden;
    width: 100%;
    border: none;
    height: 220px;
}

@media only screen and (max-width: 767px) {
.data-subscribe-iframe {
    height: 400px;
}
}


/* виджет иконок с текстом и прочее - ПРИВЕСТИ В ПОРЯДОК*/
.article-icon-text {
    margin: 32px 0;
}
.article-icon-text.--filled{
    background: #eef4f4;
}
.article-icon-text.--bordered,
.article-icon-text.--filled {
    padding: 32px;
}

.article-icon-text.--bordered {
    border: 1px solid #e0e0e0;
}

.article-icon-text.--filled {
    background: #E2F2F2;
}

h2.article-icon-text__title {
    margin: 0 0 32px;
    font-family: Heldane, serif;
    font-weight: 400;
}

.article-icon-text__items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 48px;
}

.article-icon-text__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex: 0 0 calc((100% - 96px) / 3);
}

.article-icon-text__items > .article-icon-text__item:only-child {
    flex-basis: 100%;
}

.article-icon-text__items > .article-icon-text__item:nth-last-child(2):first-child,
.article-icon-text__items > .article-icon-text__item:nth-last-child(2):first-child ~ .article-icon-text__item {
    flex-basis: calc((100% - 48px) / 2);
}

.article-icon-text__item-icon {
    flex: 0 0 auto;
}

.article-icon-text__item-icon img,
.article-icon-text__item-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.article-icon-text__item-icon svg {
    max-width: 24px;
    max-height: 24px;
}

.block-editor-block-list__block .article-icon-text__item-icon {
    min-width: 120px;
}

.block-editor-block-list__block .article-icon-text__item-icon .components-button {
    display: inline-flex;
    margin-top: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.block-editor-block-list__block .article-icon-text__item-icon:hover .components-button {
    opacity: 1;
    pointer-events: auto;
}

.block-editor-block-list__block .article-icon-text__item-icon .components-button + .components-button {
    margin-left: 6px;
}

.article-icon-text__item-icon-img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    display: block !important;
    object-fit: contain;
}

.article-icon-text__item-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

h3.article-icon-text__item-title {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    margin: 0;
    color: #151515;
}

.article-icon-text__item-text p {
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 22px;
}

.article-icon-text__item-text p {
    margin: 0 0 8px;
}

.article-icon-text__item-text p:last-child {
    margin-bottom: 0;
}

figure.fullwidth {
    margin: 32px 0;
}
figure.fullwidth img {
    width: 100%;
}
section.emphasise {
    padding: 24px;
    margin: 12px 0;
}

@media only screen and (max-width: 767px) {
    .article-icon-text.--bordered,
    .article-icon-text.--filled {
        padding: 28px;
        margin: -20px;
    }

    .article-icon-text__title {
        margin-bottom: 12px;
        font-size: 24px;
        line-height: 30px;
    }

    .article-icon-text__items {
        gap: 16px;
    }

    .article-icon-text__item {
        flex-basis: 100%;
    }

    .block-editor-block-list__block .article-icon-text__item-icon {
        min-width: 96px;
    }
}
