/**
 * Основные стили для дочерней темы WP Armaturam v2
 */

/* ==========================================================================
   Базовые стили и переменные
   ========================================================================== */
:root {
    --bs-container-max-width: 1410px;
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333333;
    --border-color: #dee2e6;
    --transition-speed: 0.3s;
}

/* ============================================
   NORMALIZE / RESET
============================================ */

/* Box-sizing reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Убираем отступы и паддинги по умолчанию */
body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, dd,
figure, blockquote, pre,
fieldset, legend,
button, input, textarea, select {
    margin: 0;
    padding: 0;
}

/* Базовые настройки body */
body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Изображения адаптивны по умолчанию */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Списки без маркеров */
ul, ol {
    list-style: none;
}

/* Ссылки */
a {
    text-decoration: none;
    color: inherit;
}

/* Формы */
button, input, textarea, select {
    font: inherit;
    color: inherit;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 0;
    outline: none;
}

button {
    cursor: pointer;
    background: none;
}

/* Таблицы */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Для скринридеров */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   СТИЛИ СЕТКИ FLEXBOX (ваши стили)
============================================ */
#page-wrap {
    padding-top: 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Базовые стили сетки */
* {
    box-sizing: border-box;
}

#page-wrap {
    padding-top: 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto; /* Растягивает контент, чтобы футер был внизу */
}


/* Хедер */
.mheader {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.mheader__top {
    background: #F8F8F8;
    padding: 7px 15px;
}

.mheader__top-wrapper {
    max-width: 1390px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: center;
}

.mheader__middle {
    padding: 20px 15px;
}

.mheader__middle-wrapper {
    max-width: 1390px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.mheader__bottom {
    background: #00599B;
}

.mheader__bottom-wrapper {
    max-width: 1390px;
    margin: 0 auto;
}

.mheader__logo {
  width: auto;
  height: 60px;
}

.mheader__info {
  display: flex;
  gap: 10px;
}

.mheader__email {
  display: flex;
  gap: 10px;
}

.mheader__phone {
  display: flex;
  gap: 10px;
}

.item-contact {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mheader__phone a {
  display: block;
  line-height: 1.2;
  font-size: 16px;
  font-weight: 600;
}

.mheader__email a {
  display: block;
  line-height: 1.2;
  font-size: 16px;
  font-weight: 600;}
  
  
.mheader__buttons {
  display: flex;
  gap: 10px;
}

.mheader__phone::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='m28.78 21.43-5.26-1.67a3.18 3.18 0 0 0 -3.17.73l-1.35 1.35a1.17 1.17 0 0 1 -1.41.17 31.48 31.48 0 0 1 -3.1-2.18 14.33 14.33 0 0 1 -2.27-2.27 31.48 31.48 0 0 1 -2.22-3.1 1.17 1.17 0 0 1 .17-1.41l1.35-1.4a3.17 3.17 0 0 0 .74-3.16l-1.69-5.27a3.19 3.19 0 0 0 -3.74-2.14l-2.5.57a3.22 3.22 0 0 0 -2.28 2c-4.12 10.85 5.16 19.56 5.95 20.35.61.68 6.58 7 14.68 7a15.72 15.72 0 0 0 5.66-1 3.22 3.22 0 0 0 2-2.28l.57-2.5a3.19 3.19 0 0 0 -2.13-3.79zm.22 3.29-.57 2.5a1.23 1.23 0 0 1 -.77.86c-9.8 3.72-18-5.4-18.14-5.49a.3.3 0 0 0 -.08-.08c-.1-.08-9.22-8.32-5.49-18.14a1.23 1.23 0 0 1 .86-.77l2.47-.6a1.09 1.09 0 0 1 .26 0 1.2 1.2 0 0 1 1.13.82l1.67 5.27a1.19 1.19 0 0 1 -.27 1.18l-1.35 1.39a3.2 3.2 0 0 0 -.44 3.84 35.1 35.1 0 0 0 2.32 3.3 16 16 0 0 0 2.6 2.6 35.1 35.1 0 0 0 3.3 2.32 3.19 3.19 0 0 0 3.84-.44l1.39-1.34a1.19 1.19 0 0 1 1.18-.28l5.27 1.67a1.19 1.19 0 0 1 .82 1.39z' fill='%2300599b'/%3E%3Cpath d='m18.12 3a12.53 12.53 0 0 1 10.88 10.88 1 1 0 0 0 1 .88h.12a1 1 0 0 0 .88-1.13 14.5 14.5 0 0 0 -12.63-12.63 1 1 0 1 0 -.25 2z' fill='%2300599b'/%3E%3Cpath d='m17.3 7.19a8.64 8.64 0 0 1 7.51 7.51 1 1 0 0 0 1 .88h.13a1 1 0 0 0 .87-1.12 10.66 10.66 0 0 0 -9.26-9.26 1 1 0 0 0 -.25 2z' fill='%2300599b'/%3E%3Cpath d='m16.46 12.22a3.82 3.82 0 0 1 3.32 3.32 1 1 0 0 0 1 .88h.12a1 1 0 0 0 .87-1.11 5.82 5.82 0 0 0 -5.06-5.06 1 1 0 0 0 -.24 2z' fill='%2300599b'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-right: 8px;
}

.mheader__email::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cg%3E%3Cpath d='m37.95 194.65c-4.911-5.442-13.95-1.962-13.95 5.35v272c0 8.34 2.559 16.093 6.943 22.506.79 1.156 2.51 1.133 3.298-.025l116.848-171.844c.518-.761.449-1.778-.167-2.463z' fill='%2300599b'%3E%3C/path%3E%3Cpath d='m337.21 346.7c-3.04 3.37-7.37 5.3-11.9 5.3h-138.62c-4.53 0-8.86-1.93-11.89-5.29l-10.104-11.224c-.868-.964-2.411-.86-3.14.213l-115.313 169.584c-.692 1.018-.312 2.419.803 2.943 5.147 2.421 10.896 3.774 16.954 3.774h384c6.058 0 11.807-1.353 16.954-3.773 1.114-.524 1.495-1.925.803-2.943l-115.313-169.585c-.73-1.073-2.272-1.178-3.14-.213z' fill='%2300599b'%3E%3C/path%3E%3Cpath d='m474.05 194.65-112.971 125.534c-.616.684-.685 1.701-.167 2.462l116.848 171.834c.787 1.158 2.507 1.181 3.298.025 4.383-6.412 6.942-14.165 6.942-22.505v-272c0-7.301-9.031-10.8-13.95-5.35z' fill='%2300599b'%3E%3C/path%3E%3Cpath d='m468.687 177.367-25.273-25.273c-1.26-1.26-3.414-.368-3.414 1.414v49.843c0 1.834 2.265 2.7 3.49 1.334 18.421-20.537 20.487-23.381 24.945-25.722.6-.315.732-1.116.252-1.596z' fill='%2300599b'%3E%3C/path%3E%3Cpath d='m72 203.339v-49.83c0-1.782-2.154-2.674-3.414-1.414l-25.279 25.279c-.476.476-.35 1.274.245 1.591 4.912 2.62 7.397 6.104 24.953 25.703 1.224 1.366 3.495.506 3.495-1.329z' fill='%2300599b'%3E%3C/path%3E%3Cpath d='m188.026 336.01 135.948-.01c.85 0 1.661-.361 2.23-.993l97.026-107.801c.496-.551.77-1.266.77-2.007v-201.199c0-13.255-10.745-24-24-24h-288c-13.255 0-24 10.745-24 24v201.189c0 .741.274 1.456.77 2.007l97.026 107.821c.569.632 1.38.993 2.23.993zm-36.026-296.01h208c4.42 0 8 3.58 8 8s-3.58 8-8 8h-208c-4.42 0-8-3.58-8-8s3.58-8 8-8zm0 64h208c4.42 0 8 3.58 8 8s-3.58 8-8 8h-208c-4.42 0-8-3.58-8-8s3.58-8 8-8zm0 64h208c4.42 0 8 3.58 8 8s-3.58 8-8 8h-208c-4.42 0-8-3.58-8-8s3.58-8 8-8zm0 64h208c4.42 0 8 3.58 8 8s-3.58 8-8 8h-208c-4.42 0-8-3.58-8-8s3.58-8 8-8z' fill='%2300599b'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;  
	vertical-align: middle;
    margin-right: 8px; 
}

.brand-line {
  margin: 0;
  line-height: 1.05;
  text-align: center;
}

.brand-line__top {
  display: block;
  font-size: 0.86rem;
  color: #6c757d;
}

.brand-line__bottom {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #10203a;
}

/* Основной контейнер */
.container {
    max-width: 1410px;
    margin: 0 auto;
    padding: 0 15px;
    flex: 1 0 auto;
}

/* Сетка контента и сайдбара */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.content-area, .sidebar, .footer-widget {
    padding-left: 15px;
    padding-right: 15px;
}

/* Для основных колонок */
.content-area {
    flex: 0 0 100%;
    max-width: 100%;
}

.sidebar {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Адаптивность для планшетов и ПК */
@media (min-width: 768px) {
    .content-area {
        flex: 0 0 66.66667%;
        max-width: 66.66667%;
    }
    .sidebar {
        flex: 0 0 33.33333%;
        max-width: 33.33333%;
    }
    .footer-widget {
        flex: 0 0 33.33333%;
        max-width: 33.33333%;
    }
}

/* Футер */
.footer {
    margin-top: 100px;
    border-top: 2px solid #f3f3f3;
    flex-shrink: 0;
}

.footer .container {
    position: relative;
    padding: 40px 15px;
}

.footer-copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    width: 100%;
}

/* ============================================
   СТИЛИ МЕНЮ С ДОСТУПНОСТЬЮ И FLEXBOX
============================================ */

/* Контейнер меню */
.nheader__menu {
    position: relative;
    width: 100%;
}

/* Главный список меню - ГОРИЗОНТАЛЬНЫЙ FLEX (десктоп) */
.nheader__menu .top-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

/* Элементы меню первого уровня */
.nheader__menu .top-menu > .top-menu-item {
    position: relative;
    padding: 12px 20px;
    margin: 0;
    white-space: nowrap;
    background: transparent;
    transition: background-color 0.3s ease;
}

/* Каталог - красный фон */
.nheader__menu .top-menu > .top-menu-item.catalog {
    background-color: #E31E25;
    border-radius: 4px;
    margin: 0 5px;
}

.nheader__menu .top-menu > .top-menu-item.catalog a {
    color: white;
}

/* Ссылки в меню */
.nheader__menu .top-menu > .top-menu-item > a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    outline: none;
}

/* Focus состояния для доступности */
.nheader__menu .top-menu-item a:focus,
.nheader__menu .top-menu-item button:focus,
.nheader__menu .dropdown-toggle:focus {
    outline: 2px solid #00599B;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Элементы с подменю */
.nheader__menu .top-menu > .top-menu-item.has-submenu {
    position: relative;
}

/* Стрелка для подменю */
.nheader__menu .top-menu > .top-menu-item.has-submenu > a .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

/* Выпадающее меню */
.nheader__menu .top-menu > .top-menu-item.has-submenu > .dropdown-menu {
    position: absolute;
    background: #FFFFFF;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    border-radius: 0 0 8px 8px;
    padding: 20px 0;
    top: 100%;
    left: 0;
    min-width: 232px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: none;
}

/* Показываем подменю при ховере и фокусе */
.nheader__menu .top-menu > .top-menu-item.has-submenu:hover > .dropdown-menu,
.nheader__menu .top-menu > .top-menu-item.has-submenu:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Списки внутри подменю */
.nheader__menu .top-menu > .top-menu-item.has-submenu .dropdown-menu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Элементы подменю */
.nheader__menu .top-menu > .top-menu-item.has-submenu .dropdown-menu .top-menu-item {
    padding: 0 20px;
    background: transparent;
}

.nheader__menu .top-menu > .top-menu-item.has-submenu > .dropdown-menu .top-menu-item {
    padding-right: 20px;
    padding-left: 20px;
}

.dropdown-menu > ul > .top-menu-item {
    padding-left: 30px;
    padding-right: 30px;
}

/* Ссылки в подменю */
.nheader__menu .top-menu > .top-menu-item.has-submenu .dropdown-menu a {
    color: #000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nheader__menu .top-menu > .top-menu-item.has-submenu .dropdown-menu a:hover,
.nheader__menu .top-menu > .top-menu-item.has-submenu .dropdown-menu a:focus {
    color: #E31E25;
}

/* Кнопка для мобильного меню (скрыта на десктопе) */
.nheader__menu .dropdown-toggle.mobile-only {
    display: none;
}

/* Подменю второго уровня и глубже */
.nheader__menu .sub-dropdown-menu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 220px;
    margin-left: 1px;
}

/* Анимации стрелки */
.nheader__menu .top-menu > .top-menu-item.has-submenu:hover > a .arrow,
.nheader__menu .top-menu > .top-menu-item.has-submenu:focus-within > a .arrow {
    transform: rotate(180deg);
}

/* Индикаторы фокуса для клавиатуры */
.nheader__menu .top-menu > .top-menu-item a:focus-visible,
.nheader__menu .top-menu > .top-menu-item button:focus-visible {
    outline: 3px solid #00599B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Состояния для активного пункта меню */
.nheader__menu .top-menu > .top-menu-item.current-menu-item > a,
.nheader__menu .top-menu > .top-menu-item.current-menu-ancestor > a {
    color: #E31E25;
    font-weight: 600;
}

/* ============================================
   СТИЛИ ДЛЯ КНОПКИ МОБИЛЬНОГО МЕНЮ
============================================ */
.menu-toggle {
    display: none;
}

/* ============================================
   АДАПТИВНОСТЬ (МОБИЛЬНАЯ ВЕРСИЯ)
============================================ */
@media (max-width: 991px) {
    /* Гамбургер кнопка */
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        background: #00599B;
        color: white;
        border: none;
        padding: 12px 20px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
    }
    
    .menu-toggle-icon {
        display: inline-block;
        width: 20px;
        height: 16px;
        position: relative;
        margin-right: 8px;
    }
    
    .menu-toggle-icon span {
        display: block;
        height: 2px;
        background: white;
        margin: 3px 0;
        transition: 0.3s;
    }
    
    /* Меню на мобильных - вертикальное */
    .nheader__menu .top-menu {
        flex-direction: column;
        gap: 0;
        display: none;
    }
    
    .nheader__menu .top-menu[aria-expanded="true"] {
        display: flex;
    }
    
    .nheader__menu .top-menu > .top-menu-item {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    
    .nheader__menu .top-menu > .top-menu-item.catalog {
        order: -1;
        margin: 0;
    }
    
    /* Подменю на мобильных */
    .nheader__menu .top-menu > .top-menu-item.has-submenu > .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        display: none;
        background: #f9f9f9;
        margin-top: 10px;
        margin-left: 15px;
    }
    
    .nheader__menu .top-menu > .top-menu-item.has-submenu .dropdown-menu[aria-expanded="true"] {
        display: block;
    }
    
    /* Кнопка раскрытия подменю на мобильных */
    .nheader__menu .dropdown-toggle.mobile-only {
        display: block;
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Стрелка на мобильных не поворачивается */
    .nheader__menu .top-menu > .top-menu-item.has-submenu:hover > a .arrow,
    .nheader__menu .top-menu > .top-menu-item.has-submenu:focus-within > a .arrow {
        transform: none;
    }
    
    /* Подменю второго уровня */
    .sub-dropdown-menu {
        position: static !important;
        margin-left: 20px !important;
    }
}

/* ============================================
   СТИЛИ ДЛЯ СКРИНРИДЕРОВ
============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Базовые стили кнопок на Flexbox ===== */
.wp-block-button,
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    align-items: center;
}

/* Базовый стиль для всех кнопок */
.wp-element-button,
.custom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 48px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Основная красная кнопка */
.btn-primary {
    background-color: #E31E25;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #c2181e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 30, 37, 0.3);
}

/* Основная синяя кнопка */
.btn-secondary {
    background-color: #00599b;
    color: white !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #004a7c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 89, 155, 0.3);
}

/* Контурные кнопки */
.btn-outline-primary {
    background-color: transparent;
    color: #E31E25 !important;
    border-color: #E31E25;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #E31E25;
    color: white !important;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background-color: transparent;
    color: #00599b !important;
    border-color: #00599b;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: #00599b;
    color: white !important;
    transform: translateY(-2px);
}

/* Кнопки с градиентом */
.btn-gradient-primary {
    background: linear-gradient(135deg, #E31E25 0%, #ff4757 100%);
    color: white !important;
}

.btn-gradient-primary:hover,
.btn-gradient-primary:focus {
    background: linear-gradient(135deg, #c2181e 0%, #ff3742 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 30, 37, 0.4);
}

.btn-gradient-secondary {
    background: linear-gradient(135deg, #00599b 0%, #0077cc 100%);
    color: white !important;
}

.btn-gradient-secondary:hover,
.btn-gradient-secondary:focus {
    background: linear-gradient(135deg, #004a7c 0%, #0066b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 89, 155, 0.4);
}

/* Размеры кнопок */
.btn-small {
    padding: 8px 20px;
    font-size: 14px;
    min-height: 40px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
    min-height: 56px;
}

/* Кнопки с иконками */
.btn-icon .dashicons,
.btn-icon .icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Полная ширина на мобильных */
@media (max-width: 768px) {
    .btn-full-mobile {
        width: 100%;
    }
    
    .wp-block-button,
    .button-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wp-block-button .wp-block-button__link,
    .button-container .custom-button {
        width: 100%;
    }
}

/* Адаптация для Gutenberg блоков */
.wp-block-button .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

/* Кастомизация цветов для Gutenberg */
.has-primary-color .wp-block-button__link {
    background-color: #E31E25 !important;
}

.has-secondary-color .wp-block-button__link {
    background-color: #00599b !important;
}

/* Анимация при клике */
.wp-element-button:active,
.custom-button:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Отключенное состояние */
.wp-element-button:disabled,
.custom-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Выравнивание контейнеров с кнопками */
.button-left {
    justify-content: flex-start;
}

.button-center {
    justify-content: center;
}

.button-right {
    justify-content: flex-end;
}

.button-space-between {
    justify-content: space-between;
}

.fancybox__container {
    z-index: 1000000 !important;
}
#armaturam-cookie-consent-bar {
    z-index: 99999 !important; /* Все еще высокий, но ниже модалок */
}