/**
/**
 * ==========================================
 * КОМПЕНСАЦИЯ ВЫСОТЫ ФИКСИРОВАННОЙ ШАПКИ
 * ==========================================
 */

/* Исходное состояние (шапка не сжата) */
body {
    padding-top: 140px; /* Высота полной шапки */
    transition: padding-top 0.3s ease-in-out; /* Плавный переход */
}

html {
    scroll-behavior: smooth; /* плавная прокрутка */
    scroll-padding-top: 4rem; /* отступ сверху при переходе по якорю */
}

/* Сжатое состояние шапки */
body.header-shrunk {
    padding-top: 68px; /* Высота сжатой шапки */
}


/* Альтернатива: отступ для .site-grid вместо body */
.site-grid {
    margin-top: 0;
    transition: margin-top 0.3s ease-in-out;
}

body.header-shrunk .site-grid {
    margin-top: 0; /* Корректируется через padding body */
}

/**
 * ==========================================
 * АНИМАЦИЯ ШАПКИ ПРИ СКРОЛЛЕ
 * ==========================================
 */

/* Плавный переход для всех изменяемых свойств */
.container-header,
.navbar,
.logo-img {
    margin-left: 1rem;
    transition: all 0.3s ease-in-out;
}

.logo-img {

    height: 100px;
    width: auto;
    object-fit: contain;
    border:  1px solid #ffffff;
}

.logo-img.header-shrunk {
    height: 66px;
}

/* Уменьшенные размеры при скролле */
.container-header.header-shrunk .navbar {
    height: 68px;
}

.container-header.header-shrunk .logo-img {
    height: 66px;
}


.pagenavigation {
    padding: 1em 0;
    text-align: center;
}

/**
 * ==========================================
 * КНОПКА "НАВЕРХ"
 * ==========================================
 */

#back-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1030;
    background-color: #546B2CFF;
    border-radius: 50%;
    border: #00ff80;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff80;
    text-decoration: none;
}

#back-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-top:hover {
    background-color: #000000 !important;
    color: #ffffff;
    border: #546B2CFF;
}

/**
 * ==========================================
 * ОТЛОЖЕННЫЕ СТИЛИ
 * ==========================================
 */

link[rel="lazy-stylesheet"] {
    display: none;
}


.siteBody {
    padding: 2em 0;
}

/* */
.btn-primary, .btn-dark {
    border: 2px solid #7c7c7c;
// другие стили...
}

.btn-primary:hover , .btn-dark:hover {
    border: 2px solid #ffffff;
   // другие стили...
}

.btn-outline-primary {
    font-size: 12px;
    font-weight: bold;
    background: #AECC53FF;
    color: black;
    box-shadow: 0px 10px 20px -10px #546b2c;
    border-radius: 5px;
    text-transform: uppercase;
}

.btn-outline-primary:hover {
    background: black;
    border: 2px solid #AECC53FF;
    text-decoration: none;
    color: #fff;
}


@keyframes myAnimation {
    0% {
        transform: translateY(60px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

.myanimate {
    animation: myAnimation 1.6s ease-in-out;
    animation-fill-mode: both; /* Сохраняет конечное состояние анимации */
}


.icon-violin-key::before {
    content: "";
    display: inline-block;
    width: 3.6em;
    height: 3em;
    background: url('/images/design/scrapp_key.svg') no-repeat center center;
    background-size: contain;
    vertical-align: middle;
    margin-right: 0.3em;
}

.icon-angle-right::before {
    content: "\f105" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block;
}
.icon-angle-left::before {
    content: "\f104" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block;
}

.icon-angle-double-right::before {
    content: "\f101" !important; /* Код иконки fa-angle-double-right */
    font-family: "Font Awesome 6 Free", FontAwesome !important;
    font-weight: 900 !important;
    display: inline-block;
 }

.icon-angle-double-left::before {
    content: "\f100" !important; /* Код иконки fa-angle-double-left */
    font-family: "Font Awesome 6 Free", FontAwesome !important;
    font-weight: 900 !important;
    display: inline-block;
 }

.icon-angle-double-top::before {
    content: "\f102" !important; /* Код иконки fa-angle-double-up */
    font-family: "Font Awesome 6 Free", FontAwesome !important;
    font-weight: 900 !important;
    display: inline-block;
}

.icon-angle-top::before {
    content: "\f106" !important; /* Код иконки fa-angle-double-up */
    font-family: "Font Awesome 6 Free", FontAwesome !important;
    font-weight: 900 !important;
    display: inline-block;
}


/* Фоллбэк, если шрифт не загрузился */
.icon-angle-right, .icon-angle-left, .icon-angle-double-right, .icon-angle-double-left  {
    font-style: normal;
    line-height: 1;
}


.narrow-title {
    font-family: 'PT Sans Narrow', sans-serif;
    font-weight: bold;
    text-align: left;
    font-size: 1.4rem;
}

.display-3 {
    font-family: 'PT Sans Narrow', sans-serif;
    font-weight: bold;
    text-align: left;
    margin-top: 0;
    padding-top: 0;
}

.display-5 {
    font-family: 'PT Sans Narrow', sans-serif;
    color: #aecc53 !important;
    font-weight: normal;
    font-size: 2rem;
    text-align: left;
    margin-top: 0;
    padding-top: 0;
}

.header_green {
    color: #aecc53 !important;
}

.display-6 {
    display: flex;
    font-family: 'PT Sans', sans-serif;
    font-weight: normal;
    font-size: 1rem;
    text-align: left;
}


.imgscale {
    transition: 1s; /* Время эффекта */
}

.imgscale:hover {
    transform: scale(1.1); /* Увеличиваем масштаб */
}

.listdoc {
    margin: 0 0 20px 0;
    padding: 0;
}

.listdoc li {
    display: block;
    margin: 7px 0;
    background: url(/images/icons-doc.svg) 0 4px no-repeat;
    background-size: 18px 18px;
    padding-left: 24px;
}

.btnpanel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 8px;
}


.btnpanel a {
    font-size: small;
    padding: 1rem 1rem;
    color: #A48F65FF;
    font-family: 'PT Sans Narrow', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.03em;
    text-align: center;
    white-space: nowrap;
}


.btn_gold {
    text-decoration: none;
    border: 2px solid rgb(164, 143, 101);
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    min-width: 28ch;
    transition: transform 0.3s ease;
}

.btn_gold:hover {
    box-shadow: 1px 1px 25px 10px rgb(214, 192, 144, 0.4);
    color: #F5D061FF;
    transform: scale(1.02);
}

.btn_gold:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            120deg,
            transparent,
            rgba(214, 192, 144, 0.4),
            transparent
    );
    transition: all 850ms;
}

.btn_gold:hover:before {
    left: 100%;
}

#mainmenu {
    margin-right: 2rem;
}

#mainmenu .navbar-nav .nav-item {
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: small;
    text-transform: uppercase;
}

#mainmenu .navbar-nav .item-337{
   background: #aecc53;
   color: #000000 !important;  /* Чёрный цвет текста */
   text-decoration-color: #000022 !important;
   border: 2px solid #aecc53 !important;

}

#mainmenu .navbar-nav .item-337 .nav-link {
    color: #000000 !important;  /* Чёрный цвет текста */
    text-decoration-color: #000022 !important;
}

#mainmenu .navbar-nav .item-337:hover{
    background: #000022 !important;
    text-decoration-color: #ffffff !important;
    border: 2px solid #aecc53 !important;
}

#mainmenu .navbar-nav .item-337 .nav-link:hover {
    color: #ffffff !important;
    text-decoration-color: #ffffff !important;

}


/*  Контейнер разделителя по умолчанию скрываем */
.navbar-nav .nav-item.divider {
    display: none;
}


/* Owl Карусель */
.owl-carousel .item {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0.2;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4), transparent);
    transition: all 0.3s ease-in-out;
}

.owl-carousel .item .card-body {
    position: static; /* Убираем top: -16rem */
    color: white;
}

.owl-carousel .item .image-container {
    width: 100%;
    height: 0;
    padding-bottom: 66.66%; /* Соотношение высоты к ширине: 2/3 = ~66.66% */
    position: relative;
    overflow: hidden;
}

.owl-carousel .item .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обрезает изображение, чтобы заполнить контейнер */
    object-position: center top; /* Начинаем с верха изображения */
}


.owl-carousel .owl-stage-outer {
    padding: 20px 0; /* Внутренние отступы сверху и снизу — можно регулировать */
}

.owl-carousel .owl-item {
    width: 380px !important; /* Фиксированная ширина слайдов */
    margin-right: 10px; /* Уменьшенный интервал между слайдами */
    margin-left: 10px;
}

.owl-carousel .owl-stage {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Активный центральный элемент */
.owl-carousel .owl-item.active.center .item {
    opacity: 1;
    -webkit-transform: scale3d(1.1, 1.1, 1); /* Чуть больше масштаб */
    transform: scale3d(1.1, 1.1, 1);
}



.sf2-form-group {
    text-align: left; !important;
}

.sf2Style-default .sf2-form-label-wrap label {
        color: white !important;
}

.sf2-form-element-wrap {
    color: white;

// Сам текст чекбокса
.sf2-checkbox-label {
    color: white;
    font-weight: 400;
}

// Ссылка внутри лейбла — должна быть видна на тёмном фоне
.sf2-checkbox-label a {
    color: #aecc53;  // #aecc53 — ваш золотисто-зелёный
text-decoration: underline;

    &:hover {
        color: white;
        text-decoration: none;
    }
}
}

@media (min-width: 1400px) {
    .container, .container-xl, .container-xxl {
        max-width: 1920px !important;
        width: 100%;
        /* Опционально: убираем боковые отступы, чтобы контент шёл от края до края */
        padding-left: 0;
        padding-right: 0;
    }

    .display-3 {

    }

}


/* Main menu dropdown: wider and safe from right viewport overflow */
@media (min-width: 992px) {
    .footer {
        padding-top: 1.5rem;
    }

    /* 1. Контейнер разделителя в flex-меню */
    .navbar-nav .nav-item.divider {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 0.55rem; /* Горизонтальные отступы от соседних пунктов */
        line-height: 1;
    }

    /* 2. Скрываем стандартный <span> из default_separator.php */
    .navbar-nav .nav-item.divider .mod-menu__separator {
        display: none;
    }

    /* 3. Рисуем вертикальную линию через псевдоэлемент */
    .navbar-nav .nav-item.divider::after {
        content: "";
        display: block;
        width: 2px;
        height: 1.5em; /* Высота адаптируется под размер шрифта меню */
        background-color: rgba(255, 255, 255, 0.65); /* Цвет для вашего bg-dark меню */
 *       border-radius: 1px;
    }

    /* чтобы dropdown menu не вылезало за край экрана*/
    #mainmenu  .navbar-nav .dropdown-menu {
        min-width: 20rem;
        width: max-content;
        max-width: calc(100vw - 1.5rem);
        background-color: #2f343a;
        border: 1px solid rgba(255, 255, 255, 0.45);
        right: 0;
        left: auto;
    }

    #mainmenu .navbar-nav .dropdown-menu .nav-item {
        white-space: normal;
    }


}


