
html, body {
    margin: 0;
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    opacity: 0;
}


body.fade-in {
    animation: fadeInPage 0.5s ease-in-out forwards;
}

body.fade-out {
    animation: fadeOutPage 0.5s ease-in-out forwards;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOutPage {
    from { opacity: 1; }
    to { opacity: 0; }
}


.content-wrapper {
    flex: 1 0 auto;
}

/* === ПРОГРЕСС-БАР ПРОКРУТКИ === */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: #0033a0;
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
    border-radius: 0 2px 2px 0;
}

/* --- НОВЫЙ ДИЗАЙН ФУТЕРА --- */
.site-footer {
    flex-shrink: 0;
    background-color: #222222;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 40px 0 20px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 0;
    border-top: 1px solid #444444;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    font-size: 26px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    display: flex;
    gap: 2px;
}

.logo-icon span {
    display: block;
    width: 6px;
    height: 22px;
    background-color: #ffffff;
    border-radius: 2px;
}

.logo-icon span:first-child {
    height: 16px;
    margin-top: 6px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #a1a1a1;
}

.footer-right {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-size: 18px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li,
.footer-col ul a {
    font-size: 15px;
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: #ffffff;
}


.copyright-wrapper {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
    text-align: center;
}

.copyright {
    color: #777777;
    font-size: 14px;
}


/* ========================================================================== */
/* ========================= BURGER MENU CSS START ========================== */
/* ========================================================================== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* === Выдвижное мобильное меню === */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    min-width: 260px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 50px;
}



.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.close-btn svg {
    width: 36px;
    height: 36px;
    fill: #ffffff;
    transition: transform 0.3s ease;
}

.close-btn:hover svg {
    transform: scale(1.1);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    width: 100%;
}

.mobile-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 26px;
    font-weight: 600;
    transition: opacity 0.3s ease;
    text-align: center;
}

.mobile-nav a:hover {
    opacity: 0.7;
}

/* Контейнер для прижатия контактов и языков к низу экрана */
.mobile-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 30px;
}

.mobile-contacts {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.mobile-contact-icon {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.mobile-contact-icon:hover {
    transform: translateY(-3px);
}

.mobile-contact-icon svg {
    width: 24px;
    height: 24px;
    fill: #002270;
}

.mobile-langs {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.mobile-langs a {
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
}

.mobile-langs a:not(.active) {
    opacity: 0.5;
}

/* ========================================================================== */
/* ========================== BURGER MENU CSS END =========================== */
/* ========================================================================== */


/* ========================================================================== */
/* ============================ HEADER CSS START ============================ */
/* ========================================================================== */
.header {
    padding: 40px 0;
    width: 100%;
    position: relative;
    z-index: 10;
}
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #ffffff;
    font-weight: 800;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 60px;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    position: relative;
    padding-bottom: 6px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.main-nav a:hover::after {
    opacity: 1;
    transform: translateY(6px);
}

.lang-switcher {
    display: flex;
    gap: 24px;
    align-items: center;
}

.lang-switcher form {
    display: contents;
}


.lang-switcher .lang-btn {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;

    padding: 0;
    padding-bottom: 4px;
    margin: 0;
    font-family: inherit;
    cursor: pointer;

    /* Стили самого текста */
    color: #ffffff;
    opacity: 0.6;
    font-weight: 600;
    font-size: 20px;
    position: relative;
    transition: color 0.3s ease;
}

/* Линия подчеркивания */
.lang-switcher .lang-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: #ffffff; /* Темно-синий/черный */
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Появление линии при наведении */
.lang-switcher .lang-btn:hover::after {
    opacity: 1;
    transform: translateY(4px);
}

/* Активное состояние и наведение */
.lang-switcher .lang-btn.active,
.lang-switcher .lang-btn:hover {
    color: #ffffff;
    opacity: 1;
}

/* === Кнопка Бургер-меню (скрыта на ПК) === */
.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 105;
}

.burger-btn svg {
    width: 36px;
    height: 36px;
    fill: #ffffff;
}

/* Настраиваем размер SVG иконок соцсетей */
.social-icons img {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease;
}

.social-icons a:hover img {
    opacity: 0.7;
}


.header-logo-img {
    max-width: 200px;
    height: auto;
    display: block;
}

/* ========================================================================== */
/* ============================= HEADER CSS END ============================= */
/* ========================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background-color: #364e68;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}


.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.scroll-to-top:hover {
    background-color: #2c4157;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}


.scroll-to-top svg {
    width: 28px;
    height: 28px;
}

/* Ограничиваем размер главного логотипа */
.footer-logo-img {
    max-width: 200px;
    height: auto;
    display: block;
}

/* ========================================= */
/* Мобильная версия                          */
/* ========================================= */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .scroll-to-top svg {
        width: 24px;
        height: 24px;
    }

    .scroll-to-top:hover {
        transform: none;
    }
}