/* ============================================
   PROXIMA NOVA FONTS
   ============================================ */

/* Light - основное начертание */
@font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/ProximaNova-Light.woff2') format('woff2'),
       url('fonts/ProximaNova-Light.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* Regular - основное начертание */
@font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/ProximaNova-Regular.woff2') format('woff2'),
       url('fonts/ProximaNova-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Semibold - полужирное */
@font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/ProximaNova-Semibold.woff2') format('woff2'),
       url('fonts/ProximaNova-Semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Black - сверхжирное */
@font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/ProximaNova-Black.woff2') format('woff2'),
       url('fonts/ProximaNova-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Italic версии */
@font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/ProximaNova-RegularIt.woff2') format('woff2'),
       url('fonts/ProximaNova-RegularIt.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/ProximaNova-SemiboldIt.woff2') format('woff2'),
       url('fonts/ProximaNova-SemiboldIt.woff') format('woff');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

#panel{z-index:9999;position: fixed;width: 100%;top:0px}
:root {
  --font-primary: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Proxima Nova', sans-serif;
    color: #545454;
}

html, body {
    line-height: 1.6;
    color: #545454;
    background-color: #fff;
    overflow-x: visible;
    max-width: 100%;
}

a, a:hover, a:focus, a:active {
  text-decoration: none;
}

.container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

/* ============================================
   BRANDBOOK
   ============================================ */

h1{font-weight: 600;font-size: 5em;}
h2{font-weight: 600;font-size: 5em;margin: 40px 0;}
h3{font-weight: 600;font-size: 1.4em;padding: 30px 0px;}
h4{font-weight: 500;}

.fullcontainer{padding:80px 0em;}
.bkgray{background:#333;}
.fixWtext{color:#fff;}

@media (max-width: 800px) {
h2{font-weight: 600;font-size: 3.0em;padding: 20px 0px;}
h3{font-weight: 600;font-size: 1.4em;padding: 20px 0px;}
.fullcontainer{padding:25px 0em;}
}



/* ============================================
   FINISH BRANDBOOK
   ============================================ */

/* Для средних экранов */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Для больших экранов */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Для очень больших экранов */
@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }
}

/* Header styles */
.header {
    background-color: #fff;
    top: 0;
    z-index: 1000;
    background: #f8f8f8;
    padding: 5px 0;
    border-bottom: 1px solid #f1eeee;
    position: fixed;
    width: 100%;
}

.header-row {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.logo-column {
    flex: 0 0 20%;
}

.logo > span{
    font-weight: 600;
    margin: -3px 0px 0px 0px;
}

@media (max-width: 800px) {
.logo > span{
display:none
}
}

.nav-column {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
}

.actions-column {
    flex: 0 0 30%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #18181c;
    text-decoration: none;
    letter-spacing: 1px;
}

/* Main navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 55px;
}

.main-nav > ul > li > a {
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    white-space: nowrap;
    font-weight: 600;
}

.main-nav > ul > li > a:hover {
    color: #3D73D9;
}

/* Стрелка с анимацией */
.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.menu-item-has-children{
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    white-space: nowrap;
    font-weight: 600;
    cursor: pointer;
}

.menu-item-has-children :hover{
    color: #3D73D9;
}

.menu-item-has-children:hover .arrow {
    transform: rotate(180deg);
}

/* Языковой переключатель */
.language-switcher {
    position: relative;
    cursor: pointer;
}

.language-current {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.language-current:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

.language-text {
    font-size: 16px;
}

.language-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 14px;
}

/* Ховер для десктопа */
.language-switcher:hover .language-arrow,
.language-switcher.active .language-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
    min-width: 80px;
}

/* Показываем dropdown при ховере (десктоп) и при active (мобильные) */
.language-switcher:hover .language-dropdown,
.language-switcher.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #007bff;
    color: white;
    padding-left: 20px;
}

.language-option.active {
    background-color: #f8f9fa;
    color: #007bff;
    font-weight: 500;
}

/* Для мобильных устройств - всегда показываем клик */
@media (max-width: 768px) {
    .language-switcher:hover .language-dropdown {
        opacity: 0;
        visibility: hidden;
    }
    
    .language-switcher.active .language-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.contact-button {
    background: #2956AD;
    color: white;
    text-decoration: none;
    padding: 10px 40px;
    border-radius: 4px;
    font-size: 17px;
    transition: background 0.3s;
    white-space: nowrap;
    font-weight: 500;
    border-radius: 28px;
}

.contact-button:hover {
    background: #3D73D9;
}

/* Полноэкранные выпадающие блоки */
.fullscreen-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
    border-top: 1px solid #f0f0f0;
    min-height: 200px;
    background: #eee;
    pointer-events: none;
}

.fullscreen-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content {
    display: flex;
    padding: 40px 0;
    gap: 40px;
    opacity: 1;
    visibility: visible;
}

.dropdown-column {
    flex: 1;
}

.dropdown-column h4 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
}

.dropdown-column ul {
    list-style: none;
}

.doplinemenu {
    border-bottom: #3D73D9 solid 2px;
}

.dropdown-column li {
    margin-bottom: 0px;
}

.dropdown-column a {
    text-decoration: none;
    color: #666;
    font-size: 17px;
    transition: all 0.3s;
    display: block;
    padding: 5px 0;
    font-weight: 500;
}

.dropdown-column a:hover {
    color: #007bff;
    padding-left: 10px;
}

/* Специфичные стили для разных выпадающих меню */
.services-dropdown .dropdown-content {
    justify-content: space-between;
}

.about-dropdown .dropdown-content {
    max-width: 300px;
}

/* Улучшенные стили для плавных переходов */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.services-dropdown {
    z-index: 1001;
}

.about-dropdown {
    z-index: 1000;
}

/* Бургер меню через символы Unicode */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle::before {
    content: '☰'; /* Бургер иконка */
    display: block;
    line-height: 1;
}

.mobile-menu-toggle.active::before {
    content: '✕'; /* Крестик иконка */
}

/* Мобильное меню */
.mobile-menu-panel {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 90%;
    background: #efefef;
    transition: right 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.mobile-menu-panel.active {
    right: 0;
}

.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 22px;
    transition: color 0.3s;
    font-weight: 500;
}

.mobile-menu-link:hover {
    color: #007bff;
}

.mobile-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.mobile-menu-item-has-children.active .mobile-arrow {
    transform: rotate(180deg);
}

/* Мобильные подменю - раскрывающийся список */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-item-has-children.active .mobile-submenu {
    max-height: 1000px;
}

.mobile-submenu-content {
    padding: 15px 20px 20px;
}

.mobile-submenu-group {
    margin-bottom: 20px;
}

.mobile-submenu-group:last-child {
    margin-bottom: 0;
}

.mobile-submenu-group h4 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 0px;
}

.mobile-submenu-group ul {
    list-style: none;
}

.mobile-submenu-group li {
    margin-bottom: 0px;
}

.mobile-submenu-group a {
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.mobile-submenu-group a:hover {
    color: #007bff;
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-language-link {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    display: block;
}

.mobile-contact-button {
    background: #2956AD;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    display: block;
    font-weight: 600;
}

/* Логотип */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
}

main {
    min-height: calc(100vh - 70px);
    position: relative;
    z-index: 1;
    margin: 105px 0 0 0;
}



/* Для мобильной версии - скрываем текст логотипа если нужно */
@media (max-width: 768px) {
    .logo-text {
        display: none;
    }
    
    .logo-image {
        height: 35px;
    }
}

/* Адаптация */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .main-nav ul {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .main-nav ul {
        gap: 20px;
    }
    
    .actions-column {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header-row {
        flex-wrap: wrap;
        padding: 10px 0;
    }
    
    .logo-column {
        flex: 0 0 50%;
    }
    
    .nav-column {
        display: none;
    }
    
    .actions-column {
        flex: 0 0 50%;
        justify-content: flex-end;
        gap: 15px;
    }
    
    .contact-button {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .fullscreen-dropdown {
        display: none !important;
    }
}

/* Main content area */
main {
    min-height: calc(100vh - 70px);
    position: relative;
    z-index: 1;
    margin: 68px 0 0 0;
}

/* Убираем кнопку закрытия внутри меню */
.mobile-menu-close {
    display: none !important;
}