@import "variables.css";
@import "header.css";
@import "button.css";
@import "footer.css";
@import "card.css";
@import "form.css";
@import "sidebar.css";

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* Предотвращаем горизонтальную прокрутку */
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    height: 3px;
    width: 3px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-5);
    border-radius: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.main {
    flex: 1;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
}

@media (min-width: 769px) {
    .main {
        padding-top: 120px;
    }
}

/* Первый блок контента должен иметь отступ от хедера */
.main > *:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* Специальные стили для слайдеров и баннеров */
.wp-block-group:first-child,
.wp-block-cover:first-child,
.swiper:first-child,
.slider:first-child {
    margin-top: 0;
    padding-top: 0;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 20px;
    height: inherit;
    box-sizing: border-box;
}

/* Responsive container padding */
@media (max-width: 991px) {
    .container {
        padding: 15px 15px;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 10px 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px 8px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 5px 5px;
    }
}

a {
    text-decoration: none;
    color: #3d541d;
}

.admin-bar header {
    top: 0; /* Sticky хедер остается на месте */
}

.admin-bar body {
    padding-top: 152px; /* Отступ для фиксированного хедера + WordPress admin bar */
}

footer {
    flex: 0 0 auto;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}


table {
    margin-block-start: 15px!important;
    margin-block-end: 15px!important;
    border-collapse: collapse;
}

table td {
    border: 1px solid var(--color-9);
    padding: 10px;
}

.table_wrapper tbody tr:nth-child(odd) {
    background: rgba(0, 0, 0, 0.05);
}

.table_wrapper {
    overflow: auto;
}

.arrow_wrapper {
    display: flex;
    align-items: center;
    gap: 10px;

    .arrow {
        position: static;
        width: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--color-4);
        height: 32px;
        background: var(--color-4);
        cursor: pointer;
        border-radius: 8px;

        svg {
            width: 14px;
            height: 14px;
            fill: var(--color-5);
        }

        &.arrow--disabled {
            opacity: 0.5;
        }
    }
}

.navigation-wrapper .arrow.arrow--disabled {
    display: none;
}



.swiper-button-next:after, .swiper-button-prev:after {
    color: var(--color-4);
    font-weight: bold;
}

.swiper-button-next {
    right: 0;
    left: auto;
}

.swiper-button-prev {
    left: 0;
    right: auto;
}

.block__head__title {
    font-size: 14px;
    color: var(--color-10);
    font-weight: bold;
}

html :where(.wp-block) {
    max-width: 100%;
}

/* Ensure sections and divs don't overflow */
section, div {
    max-width: 100%;
    box-sizing: border-box;
}

/* Universal overflow prevention */
* {
    max-width: 100%;
    box-sizing: border-box;
}


.wp-block-group p a {
    color: var(--color-4);
    text-decoration: underline;
}


.content_wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.page__content {
    flex: 1;
    margin-top: 0;

}

/* Белый цвет текста для параграфов, таблиц и списков на страницах постов */
body.single p,
body.single-post p,
body.single table td,
body.single-post table td,
body.single table th,
body.single-post table th,
body.single table caption,
body.single-post table caption,
body.single ul li,
body.single-post ul li,
body.single ol li,
body.single-post ol li,
body.single ul,
body.single-post ul,
body.single ol,
body.single-post ol,
body.single .container p,
body.single-post .container p,
body.single .container table td,
body.single-post .container table td,
body.single .container table th,
body.single-post .container table th,
body.single .container table caption,
body.single-post .container table caption,
body.single .container ul li,
body.single-post .container ul li,
body.single .container ol li,
body.single-post .container ol li,
body.single .container ul,
body.single-post .container ul,
body.single .container ol,
body.single-post .container ol,
body.page .container p,
body.page .container table td,
body.page .container table th,
body.page .container table caption,
body.page .container ul li,
body.page .container ol li,
body.page .container ul,
body.page .container ol {
    color: #ffffff;
}

/* Белый цвет для последнего элемента breadcrumbs */
.breadcrumb_last {
    color: #ffffff !important;
}

/* Tablet adjustments for page content */
@media (max-width: 1200px) and (min-width: 769px) {
    .page__content {
        margin-top: 0;
    }
}

body.active  .page__content {
    filter: blur(10px);
}




@media (max-width: 767px) {
    .golden-bordered-table td {
    width: 200px;
}
.golden-bordered-table {
    width: 100%;
}
.wp-block-image .alignright {
    float: none;
    margin: 0;
}

}
/* Admin block editor: neutralize global constraints so editor panels render correctly */
.block-editor-page body {
    overflow-x: visible !important;
    display: block; /* avoid flex on admin canvas */
}

.block-editor-page .interface-interface-skeleton__content,
.block-editor-page .interface-interface-skeleton__editor,
.block-editor-page .interface-interface-skeleton__sidebar {
    max-width: none !important;
}

/* Avoid universal max-width constraint inside the editor */
.block-editor-page * {
    max-width: none !important;
}