@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-VariableFont_wght.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat-Fixed';
    src: url('fonts/Montserrat-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat_Italic';
    src: url('fonts/Montserrat-Italic-VariableFont_wght.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
}

:root {
    --main-gradient: linear-gradient(90deg, #020820 0%, #11255A 35.1%, #4E42B1 66.83%, #8E37BA 100%);
    --gray-1: #333;
    --navy-primary: #012C6C;
    --navy-dark: #052036;
    --orange-primary: #EC6F2A;
    --blue-medium: #467190;
    --white: #FFF;
    --max-width: 1150px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    margin:0 !important ;
}
body {
    font-family: 'Montserrat', -apple-system, Roboto, Helvetica, sans-serif;
    background: var(--white);
    color: var(--gray-1);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}
h2{
 
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 21px;
}

header{
        position: fixed;
    top: 0;
    z-index: 99;
    width: 100%;
}
 ul, ol {
    padding-left: 20px;
}
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: var(--white);
    padding: 10px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo img {
    width: 97px;
    height: 63px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-outline {
    border: 1px solid var(--navy-primary);
    color: var(--navy-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--navy-primary);
    color: var(--white);
}

.custom-logo-link {
    width: 97px;
    margin: 0 auto auto 28%;
}
.top-bar-content .tel{
    color: var(--Gray-1, #333);
font-family: Montserrat;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 130%; /* 20.8px */
display: flex;
gap: 5px;
align-content: center;
width: fit-content;
padding: 0 5px;

}
.btn-primary {
    background: var(--orange-primary);
    color: var(--white);
    border: none;
}

.top-bar-content .btn-primary {
    margin: 0;
}

.btn-primary:hover {
    background: #d55f1f;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--navy-primary);
    font-size: 18px;
    font-weight: 400;
    /* Как в Montserrat Black */
    cursor: pointer;
    user-select: none;
}

/* Анимация стрелки */
.arrow-icon {
    transition: transform 0.3s ease;
}

.language-dropdown.active .arrow-icon {
    transform: rotate(180deg);
}

/* Выпадающий список */
.language-list {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 80px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.language-dropdown.active .language-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-item {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--navy-primary);
    font-size: 16px;
    transition: background 0.2s;
    text-align: center;
}

.language-item:hover {
    background: #f0f4f7;
    color: #EC6F2A;
    /* Цвет стрелочки при ховере */
}

/* Navigation */
.main-nav {
    background: var(--navy-primary);
    padding: 22px 0;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
    /* Важно для позиционирования подменю в будущем */
}

.nav-menu li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
    padding: 5px 0;
}

/* Состояние Active и Current (WP добавляет класс current-menu-item) */
.nav-menu li a.active,
.nav-menu li.current-menu-item>a {
    color: var(--white);
    font-weight: 600;
    position: relative;
}

/* Линия под активным пунктом */
.nav-menu li a.active::after,
.nav-menu li.current-menu-item>a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    /* Регулируй в зависимости от высоты хедера */
    left: 0;
    width: 51px;
    height: 2px;
    background: var(--orange-primary);
}

.nav-menu li a:hover {
    color: var(--white);
}

/* Стили для твоей SVG стрелочки внутри ссылки */
.nav-menu li a svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    /* Чтобы стрелка не сжималась */
}

.nav-menu li:hover>a svg {
    transform: rotate(180deg);
}


/* Базовое скрытое состояние подменю */
.nav-menu li {
    position: relative;
    /* Чтобы подменю позиционировалось относительно родителя */
}

.sub-menu {
    position: absolute;
    top: 55px;
    /* Выпадать строго под ссылкой */
    left: 0;
    background: #ffffff;
    min-width: 250px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 4px;

    /* Скрываем */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Показываем при наведении на родительский <li> */
.nav-menu li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Стили ссылок внутри подменю */
.sub-menu li a {
    color: var(--navy-primary) !important;
    /* Цвет текста в выпадушке */
    padding: 10px 20px !important;
    font-size: 14px;
    font-weight: 500;
    display: block;
    width: 100%;
    transition: background 0.2s ease;
}

.sub-menu li a::after {
    display: none !important;
    /* Убираем оранжевую линию подменю */
}

.sub-menu li a:hover {
    background: #f5f8fa;
    color: var(--orange-primary) !important;
}

.sub-menu li a.active {
    background: #EC6F2A;
    color: #fff !important;
}

.burger {
    width: 30px;
    height: 20px;
    position: relative;
    display: none;
}

.line {
    width: 100%;
    height: 2px;
    background: var(--navy-primary);
    display: block;
    transition: rotate .5s, top .5s, opacity .5s;
}

.line1 {
    position: absolute;
    top: 0;
    left: 0;
}

.line2 {
    position: absolute;
    top: 9px;
    left: 0;
}

.line3 {
    position: absolute;
    top: 18px;
    left: 0;
}

.burger.active .line1 {
    rotate: -45deg;
    top: 10px;
}

.burger.active .line2 {
    opacity: 0;
}

.burger.active .line3 {
    top: 10px;
    rotate: 45deg;
}

.mob-menu {
    display: flex;
    flex-wrap: wrap;
    position: fixed;
    right: -310px;
    top: 56px;
    width: 100%;
    max-width: 300px;
    z-index: 99;
    bottom: 0;
    background: #fff;
    padding: 20px 20px 100px;
    height: fit-content;
    max-height: 100vh;
    border-radius: 10px 0 0 10px;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: right 0.5s ease;
    box-sizing: border-box;
    gap: 15px;
    align-content: baseline;
}

.mob-menu .nav-menu li a.active,
.mob-menu .nav-menu li.current-menu-item>a,
.mob-menu .nav-menu li a {
    color: var(--navy-primary);
    visibility: visible;
}

.mob-menu .nav-menu {
    gap: 10px;
    padding: 0;
}

.mob-menu .nav-menu li {
    width: 100%;
}

.mob-menu .sub-menu {
    position: relative;
    opacity: 1;
    box-shadow: none;
    top: 0;
    padding: 0;
    gap: 10px;
    display: flex;
    flex-wrap: wrap;
}

.mob-menu .sub-menu li a {
    font-weight: 400;
    width: 100%;
    padding: 0 10px !important;
}

.mob-menu .btn {
    margin: 10px auto 0;
    padding: 5px 10px;
}

.mob-menu .language-dropdown {
    width: 100%;
}

.mob-menu .language-selector {
    width: 100%;
    margin: 10px auto;
    justify-content: center;
}

.mob-menu .language-list {
    top: 35px;
    left: 0;
    right: 0;
    margin: auto;
    width: fit-content;
}

.mob-menu .language-list {
    position: static;
}

.none-scroll {
    overflow: hidden;
}

main{
    margin-top: 165px;
}

@media screen and (max-width: 1050px) {
    .nav-menu li a {
        font-size: 14px;
    }
}

@media screen and (max-width: 1000px) {
.nav-menu li a.active::after, .nav-menu li.current-menu-item>a::after{
    bottom: 0;
}

    .custom-logo-link {
        width: 50px;
    }

    .burger {
        display: block;
    }

    .top-bar {
        position: relative;
        z-index: 4;
    }

    .main-nav,
    .top-bar-content .language-dropdown,
    .top-bar-content .btn {
        display: none;
    }
.mob-menu .nav-menu{
    gap: 0;
}
.mob-menu .sub-menu{
    margin-bottom: 10px;
}
    .custom-logo-link {
        margin: 0;
    }

    .mob-menu.active {
        right: 0;
    }
    main{
        margin-top: 56px;
    }
    .mob-menu .sub-menu{
position: relative;
    max-height: 0;       /* Вместо height */
    overflow: hidden;
    opacity: 0;
    transition: max-height 1s ease, opacity 0.9s ease;
    margin-bottom: 0;
    transform: translateY(0px);
    }
    .mob-menu li.active .sub-menu{
        max-height: 1000px;  /* Заведомо больше, чем может быть меню */
    opacity: 1;
        margin-bottom: 10px;
    }
    .mob-menu .btn.tel{
        color: var(--Gray-1, #333);
font-family: 'Montserrat';
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 130%; /* 20.8px */
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 20px;
    }
}