:root {
    /* Фирменные цвета */
    --colors_bg__firm_yellow: #ffcc33;
    --colors_bg__firm_blue: #03a9f4;
    --colors_bg__firm_red: #cc0000;
    /* Цвета текста */
    --color_text__main: #434343;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
}

body {
    background-color: #fff;
    font-size: 16px;
    color: var(--color_text__main);
    font-family: sans-serif;
}

ol,
ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

p {
    margin: 20px 0;
    line-height: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 20px;
    margin-top: 70px;
}

h1 {
    font-size: 200%
}

article {
    width: 100%;
    word-wrap: break-word;
    letter-spacing: 0.3px;
}

.content a {
    color: #409ee9;
}

#content {
    min-height: 100vh;
}

#content::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image: url('/storage/2025/10/bg_tiny.png');
    background-repeat: repeat;
    background-size: 256px 256px;
    opacity: 0.25;
}

#content li {
    margin-top: 5px;
    line-height: 20px;
}

.container {
    display: flex;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
}

.container.horizontal {
    flex-direction: row;
}

.container.vertical {
    flex-direction: column;
    align-items: center;
}

.padding_vertical {
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo_on_cover_block .wp-block-cover__image-background {
    z-index: 1;
    opacity: 0.1;
}

.cover_custom_settings.wp-block-cover,
.cover_custom_settings.wp-block-cover-image {
    padding: 3em;
}

.hide {
    display: none !important;
}

.value_font {
    font-family: monospace;
}

/* .wp-block-quote {
    overflow-wrap: break-word;
    padding: 5px 20px;
    font-style: italic;
    border: 1px solid #ccc;
} */


/*

Скрытие на больших и малых экранах

*/


@media only screen and (max-width: 1000px) {
    .hide_sm {
        display: none !important;
    }
}

@media only screen and (min-width: 1000px) {
    .hide_l {
        display: none !important;
    }
}


/*

Стили тегов inputs

*/


label {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    cursor: pointer;
    /* margin: 10px 20px 10px 0; */
    font-size: 14px;
}

label:last-child {
    margin-right: 0;
}

label:has(input[type="checkbox"]):before,
label:has(input[type="radio"]):before {
    content: "";
    width: 20px;
    height: 20px;
    border: 1px solid #e3e3e3;
    margin-right: 5px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 20px;
}

label input[type="checkbox"],
label input[type="radio"] {
    display: none;
}

label:has(input[type="checkbox"]:disabled):before,
label:has(input[type="radio"]:disabled):before {
    content: "\f335";
    font-family: dashicons;
    background-color: #efefef;
    color: #ccc;
}

label:has(input[type="checkbox"]:checked):before,
label:has(input[type="radio"]:checked):before {
    content: "\f15e";
    font-family: dashicons;
    border: 1px solid #7CB342;
    color: #7CB342;
}

label:has(input[type="checkbox"].marker:checked):before,
label:has(input[type="radio"].marker:checked):before {
    content: "\f15e";
    font-family: dashicons;
    border: 1px solid var(--colors_bg__firm_yellow);
    color: var(--colors_bg__firm_yellow);
}

label:has(input[type="checkbox"].marker2:checked):before,
label:has(input[type="radio"].marker2:checked):before {
    content: "\f15e";
    font-family: dashicons;
    border: 1px solid var(--colors_bg__firm_blue);
    color: var(--colors_bg__firm_blue);
}

label:has(input[type="checkbox"][value="false"]):before {
    border: 1px solid #b34242;
    color: #b34242;
}

label input[type="text"],
label input[type="number"] {
    border: 1px solid #ccc;
    height: 25px;
    color: #878787;
    padding: 5px 10px;
    width: 100%;
}

label:has(input[type="text"]),
label:has(input[type="email"]),
label:has(input[type="password"]),
label:has(input[type="number"]) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

label input[type="text"],
label input[type="number"],
label input[type="email"],
label input[type="password"] {
    border: 1px solid #ccc;
    height: 30px;
    color: #525252;
    padding: 5px 10px;
    width: 100%;
}

label:has(input[type="button"]) {
    display: block;
}

label input[type="button"] {
    margin-top: 10px;
    border: none;
    background-color: var(--colors_bg__firm_yellow);
    color: var(--colors_bg__firm_red);
    width: 100%;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    padding: 10px 20px;
    text-align: center;
}

label input[type="button"]:hover {
    opacity: 0.8;
}

/*

Стили тегов select

*/


label select {
    font-size: 16px;
    color: #434343;
    border: 1px solid #e3e3e3;
    padding: 5px 10px;
}




/*

Стили текстовой области

*/


textarea {
    border: 1px solid #d9d9d9;
    box-shadow: inset 0 0 2px #ccc;
    resize: none;
    padding: 10px;
}

p code,
li code {
    background: #ffcc33;
    padding: 0 5px;
}

code.highlight-red-bg {
    background: #fff1ec;
    padding: 0 5px;
    line-height: 27px;
}

pre {
    max-height: 1000px;
    overflow: auto;
    display: flex;
}

pre code {
    display: block;
    /* background-color: #2d2d2d; */
    padding: 2px 10px;
    color: #fff;
    font-size: 14px;
    /* white-space: pre-wrap; */
    /* width: clamp(600px, 100%, 1000px); */
    flex-basis: 100%;
    height: 100%;
}


/*

Верхняя полка

*/


.topbar {
    font-size: 12px;
    position: relative;
    top: 0;
    box-shadow: 0 0 3px #0000005e;
    width: 100%;
}


.topbar_left,
.topbar_right {
    flex-basis: 50%;
    display: flex;
}

.topbar_left {
    justify-content: start;
}

.topbar_right {
    text-align: right;
    justify-content: end;
    display: flex;
    flex: 1 1;
}

.topbar .dashicons {
    line-height: 12px;
    font-size: 16px;
    height: 14px;
}

.topbar_left .topbar_block {
    margin-right: 20px;
}

.topbar_right .topbar_block {
    margin-left: 20px;
}

.topbar_block.set_site_color span:first-child:hover,
.topbar_block.unset_site_color span:first-child:hover {
    text-decoration: underline;
    cursor: pointer;
}


/*

Хедер

*/


.header {
    position: relative;
    background-color: #fbfbfb;
    box-shadow: 0 0 3px 0px #00000024;
    border-bottom: 1px solid var(--colors_bg__firm_red);
    border-top: 1px solid var(--colors_bg__firm_red);
}


/*

Лого

*/


.header .logo {
    display: flex;
    height: 50px;
    width: 50px;
    position: absolute;
    top: -7px;
    transform: rotate(45deg);
    border: 1px solid #cc0000;
    background-color: #fff;
    z-index: 2;
}

.header .logo img {
    width: 100%;
    height: auto;
    border: 1px solid #fff;
    z-index: 1;
    position: relative;
}

.header .logo .logo_background {
    width: 100%;
    height: 100%;
    background-color: #fff;
    position: absolute;
    top: 0;
}

.header .logo a:hover:after {
    content: "";
    background-color: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}


/*

МЕНЮ

*/

.menu ul,
.mobile_menu_container ul {
    list-style: none;
    margin: unset;
}



/* 

Десктопное меню 

*/


.header .menu {
    z-index: 1;
    height: 35px;
    position: relative;
    left: 50px;
    width: calc(100% - 50px);
}

@media only screen and (min-width: 768px) {
    .menu_custom_frontpage {
        padding-left: 20px;
        margin-left: -10px;
    }
}

.header .desktop_menu_list {
    display: flex;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: bold;
    color: #525252;
    /* gap: 20px; */
}

.header .desktop_menu_list li {
    white-space: nowrap;
    text-align: center;
    flex: 1 1;
}

.header li.current_page_item {
    background-color: rgb(255 193 7 / 70%);
    color: var(--colors_bg__firm_red);
}

.header ul.sub-menu li.current_page_item {
    border-left: 1px solid var(--colors_bg__firm_red);
    border-right: 1px solid var(--colors_bg__firm_red);
    border-bottom: 1px solid var(--colors_bg__firm_red);
}

.header li:hover {
    background-color: rgb(255 193 7 / 70%);
}

.header li ul.sub-menu li:hover {
    background-color: rgb(255 193 7 / 100%);
    border-left: 1px solid var(--colors_bg__firm_red);
    border-right: 1px solid var(--colors_bg__firm_red);
    border-bottom: 1px solid var(--colors_bg__firm_red);
}

.header li a {
    display: block;
    padding: 10px 20px;
    position: relative;
}

.header li a:hover::after {
    position: absolute;
    border-bottom: 1px solid #ccc;
}

.header .sub-menu {
    display: none;
    position: absolute;
}

.header .sub-menu a {
    white-space: normal;
}

.header li:hover .sub-menu {
    display: block;
    width: 100%;
    background-color: #fff;
    min-width: 125px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header li:hover .sub-menu li {
    border-left: 1px solid var(--colors_bg__firm_red);
    border-right: 1px solid var(--colors_bg__firm_red);
    border-bottom: 1px solid var(--colors_bg__firm_red);
}


/* 

Мобильное меню - бургер

*/


.header .mobile_menu__sandwitch {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 20px;
    height: 100%;
}

.header .mobile_menu__sandwitch .bar {
    width: 30px;
    height: 2px;
    margin: 3px 0;
    background-color: rgb(0 0 0 / 50%);
}


/* 

Мобильное меню 

*/


.mobile_menu_container .menu_value {
    color: #000;
}

.mobile_menu_container>ul>li>a>.menu_value {
    border-bottom: 1px solid #9e9e9e;
    padding: 25px 50px;
}

.mobile_menu_container>ul>li .menu_value:not(:first-child) {
    border-top: none;
}

.mobile_menu_container>ul>li.current-menu-parent>a>.menu_value,
.mobile_menu_container>ul>li.current-menu-item>a>.menu_value {
    background-color: #525252;
    border: 1px solid #525252;
    color: #fff;
}

.mobile_menu_container>ul>li>a {
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
}

/* 

Подменю мобильного меню 

*/

.mobile_menu_container ul.sub-menu {
    display: none;
}

.mobile_menu_container ul.sub-menu.active {
    display: block;
}

.mobile_menu_container ul.sub-menu a {
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.mobile_menu_container ul.sub-menu .menu_value {
    padding: 15px 70px;
}

.mobile_menu_container ul.sub-menu>li.current-menu-item>a>.menu_value {
    color: #525252;
    font-weight: 700;
}

/* 

Дополнительные элементы в мобильном меню 

*/

.mobile_menu_helpers {
    display: flex;
    justify-content: center;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    min-height: 50px;
    box-shadow: 0 0 5px 0 #cdcdcd;
}

.mobile_menu_helpers:not(:has(.mobile_menu_helpers__element)) {
    display: none;
}

.mobile_menu_helpers .mobile_menu_helpers__element {
    display: flex;
    align-items: center;
}

.mobile_menu_helpers .mobile_menu_helpers__element .dashicons {
    font-size: 18px;
}

.mobile_menu_helpers .icon {
    display: flex;
    align-items: center;
}

.mobile_menu_helpers__value {
    display: flex;
    align-items: center;
}

.mobile_menu_helpers a,
.mobile_menu_helpers a:visited,
.mobile_menu_helpers a:hover {
    font-size: 14px;
    font-weight: 400;
    color: #000;
}

/*

Общее для меню

*/

.header .menu ul,
.mobile_menu_container ul {
    font-size: 0.8em;

}

.mobile_menu_container ul.mobile_menu_list {
    margin-bottom: 100px;
}

.menu-item:has(ul):after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 50%;
    transform: translateX(10px);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffcc33;
}

.mobile_menu_container .menu-item:has(ul):after {
    top: 30px;
    left: 15px;
    transform: rotate(270deg);
    border-top: 8px solid #00000054;
}

.mobile_menu_container .menu-item:has(ul.active):after {
    transform: rotate(0deg);
}

.menu-item {
    position: relative;
}

li.menu-item.menu_color_yellow {
    background-color: #d4a155;
    color: #fff;
}

li.menu-item.menu_color_blue {
    background-color: #658cab;
    color: #fff;
}


/*

Стили для подвала

*/


.footer {
    margin-top: 50px;
    position: relative;
    background-color: #fbfbfb;
    border-top: 1px solid var(--colors_bg__firm_red);
}

.footer_columns {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.footer_column:not(:first-child) {
    padding-left: 20px;
}

.footer_column__item .logo {
    display: flex;
    max-height: 50px;
    max-width: 50px;
    transform: rotate(45deg);
    border: 1px solid #cc0000;
    background-color: #fff;
}

.footer_column__item .logo img {
    width: 100%;
    height: auto;
    border: 1px solid #fff;
    z-index: 1;
    position: relative;
}

#menu-footer-menu {
    list-style: none;
    margin: unset;
    text-align: right;
    font-size: 14px;
}

#menu-footer-menu li:hover {
    opacity: 0.7;
}

@media only screen and (max-width: 768px) {
    .footer_columns {
        flex-direction: column;
    }

    .footer_column {
        width: 100%;
    }

    .footer_column:not(:first-child) {
        padding-left: unset;
    }

    .footer_column__item {
        margin: 10px;
    }

    #menu-footer-menu {
        text-align: unset;
    }
}

@media only screen and (min-width: 768px) {
    .footer_column {
        width: calc(100% / 3);
    }

    .footer_column:not(:first-child) {
        padding-left: 20px;
    }
}


/*

Всплывающие подсказки

*/

.dashicons-info {
    color: #a7a7a7;
}


.dashicons-info:hover {
    cursor: pointer;
}


.tooltip {
    max-width: 300px;
    position: absolute;
    background-color: #000000ce;
    color: #fff;
    border-radius: 5px;
    padding: 5px;
    z-index: 1000;
    font-size: 12px;
}


.tooltip a {
    text-decoration: underline;
}

/*

Оформление блока ответа

*/

.answer_place {
    margin: 20px 0;
    font-size: 14px;
    font-weight: bold;
}

.answer_place.error {
    color: var(--colors_bg__firm_red);
}

.answer_place.success {
    color: var(--colors_bg__firm_blue);
}


/*

Точечные декоры

*/


.hover_cursor_pointer:hover {
    cursor: pointer;
}

.hover_text_decoration_underline:hover {
    text-decoration: underline;
}



/*

Значок валюты

*/


.currency_sign_supper {
    font-size: 90%;
    font-weight: bold;
    font-family: monospace;
    line-height: 11px;
    vertical-align: text-top;
    color: var(--colors_bg__firm_red);
}


/*

Скрытие данных

*/


.hide_values {
    filter: blur(5px);
    transition: all 0.2s;
}

.hide_values:hover {
    filter: blur(0);
}


/*

Стили спойлеров

*/


.p36789__spoiler {
    margin-top: 30px;
    margin-bottom: 45px;
    position: relative;
    width: 100%;
    border: 1px solid #f1f1f1;
}

.p36789__spoiler[open] {
    background-color: #fbfbfb;
    padding: 20px;
}

.p36789__spoiler summary {
    padding: 10px 10px 10px 20px;
    cursor: pointer;
    position: absolute;
    width: 100%;
    top: -20px;
    left: 0px;
    font-weight: 600;
    background-color: #f1f1f1;
    border: 1px solid #f1f1f1;
}

/*

Стили кнопок

*/

.button {
    cursor: pointer;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 22px;
}

.buttons_success {
    background-color: var(--colors_bg__firm_yellow);
    color: var(--colors_bg__firm_red);
}

.button:hover {
    opacity: 0.8;
}

.button:active {
    opacity: 1;
    box-shadow: inset 0 0 5px 0 #0000003d;
}

/*

Стили переключателей (табы)

*/

.switcher {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--colors_bg__firm_red);
}

.switcher_item {
    flex: 1 1;
    padding: 10px;
    background-color: #f1f1f1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.switcher_item.active {
    background-color: var(--colors_bg__firm_red);
    color: #fff;
}

.switcher_item:hover {
    opacity: 0.8;
    cursor: pointer;
}

.switcher_item.active .dashicons-info {
    color: #fff;
}

.switchable_item {
    display: none;
    gap: 20px;
    flex-direction: column;
}

.switchable_item.active {
    display: flex;
}

/*

Кнопка перекидывания на верх

*/

.button__move_up__wrapper {
    position: fixed;
    right: 2%;
    bottom: 5%;
    width: 50px;
    height: 50px;
    display: none;
    background-color: var(--colors_bg__firm_yellow);
    border: 1px solid var(--colors_bg__firm_red);
    cursor: pointer;
}

.button__move_up__wrapper:hover {
    opacity: 0.7;
}

.button__move_up {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform: rotate(180deg);
    transition: all 0.3sease;
}

.button__move_up:after {
    content: "";
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 20px solid var(--colors_bg__firm_red);
}

/*

Прочее

*/


.divider {
    width: 100%;
    height: 1px;
    background-color: rgb(217 217 217);
    margin: 10px 150px;
}

/*

Уведомления

*/
.p36789__notify {
    margin: 10px 0;
    padding: 20px;
}

.p36789__notify_warning {
    border: 1px solid var(--colors_bg__firm_yellow);
    background-color: #fffbf6;
}

.p36789__notify_error {
    border: 1px solid var(--colors_bg__firm_red);
    background-color: rgb(255 226 206);
}

.p36789__notify_notice {
    border: 1px solid #658cab;
    background-color: #f2f9ff;
}

.p36789__notify_success {
    border: 1px solid #78914f;
    background-color: #f9ffef;
}

.p36789__notify_quote {
    overflow-wrap: break-word;
    padding: 20px;
    border: 1px solid #c3c3c3;
    background-color: #efefef;
}

/*

Изображения

*/

.images_gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}