/* Общие стили */
body {
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu', sans-serif;
    background-color: #f9f9f9;
}

html, body {
    overflow-x: hidden; /* Отключает горизонтальный скролл */
    width: 100%; /* Гарантирует, что body занимает 100% ширины */
}

/* Стили для десктопного хедера */
@media (min-width: 1220px) {
    .container {
        width: 100%;
    }

    .desktop-header-wrapper {
        width: 100%;
        padding: 75px;
        padding-left: 0px;
        height: 686px;
        position: relative;
        margin: 0;
        box-sizing: border-box;
        font-family: 'Ubuntu', sans-serif;
        overflow: hidden;
    }
    
    /* Слои для плавного crossfade слайдера */
    .desktop-header-wrapper .slider-layer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        transition: opacity 2.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    }
    
    .desktop-header-wrapper .slider-layer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, #333 0%, rgba(217, 217, 217, 0.00) 100%), linear-gradient(180deg, rgba(217, 217, 217, 0.00) 50%, #14427F 100%);
        z-index: 1;
    }
    
    .desktop-header-wrapper .slider-layer-1 {
        z-index: 2;
        opacity: 1;
        background-image: url("background.jpg");
    }
    
    .desktop-header-wrapper .slider-layer-2 {
        z-index: 1;
        opacity: 0;
        background-image: url("background1.jpg");
    }
    .desktop-header-container {
        width: 1220px;
        margin: 0 auto;
        position: relative;
        height: 75px;
        color: white;
        z-index: 10;
    }

    .desktop-logo {
        top: 0px !important;
        padding-left: 50px;
        width: 127px;
        height: 51px;
    }

    .desktop-menu {
        position: absolute;
        top: 0px;
        left: 400px;
        display: flex;
        align-items: center;
    }

    .desktop-menu-item {
        position: relative;
        width: 150px;
        margin-right: 0px;
        text-align: center;
    }

    .desktop-menu-item {
        position: relative !important;
    }
    
    .desktop-submenu {
        opacity: 0 !important;
        visibility: hidden !important;
        display: none !important;
        transform: translateX(-50%) translateY(10px) !important;
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
        
    }
    
    .desktop-menu-item:hover .desktop-submenu {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) translateY(0) !important;
        transition-delay: 0.2s !important;
    }
    
    .desktop-menu-item::before {
        content: '' !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        height: 15px !important;
        background: transparent !important;
        z-index: 1001 !important;
    }

    .desktop-menu-item {
        position: relative !important;
    }
    
    .desktop-submenu {
        opacity: 0 !important;
        visibility: hidden !important;
        display: none !important;
        transform: translateX(-50%) translateY(10px) !important;
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;

        text-align: left; /* Выравнивание заголовка по левому краю */
        display: block; /* Блочный элемент для правильного выравнивания */
    }
    
    .desktop-menu-item:hover .desktop-submenu {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) translateY(0) !important;
        transition-delay: 0.2s !important;
    }
    
    .desktop-menu-item::before {
        content: '' !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        height: 15px !important;
        background: transparent !important;
        z-index: 1001 !important;
    }

    .desktop-menu-item:nth-last-child(4) .desktop-submenu{
        height: 370px!important;
    } 
    

    .desktop-menu-item:nth-last-child(2) .desktop-submenu,
    .desktop-menu-item:nth-last-child(1) .desktop-submenu {
        left: -20% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(10px) !important; /* Восстанавливаем центрирование */
    }

    .desktop-menu-item:nth-last-child(2):hover .desktop-submenu,
    .desktop-menu-item:nth-last-child(1):hover .desktop-submenu {
        transform: translateX(-50%) translateY(0) !important; /* Анимация при наведении */
    }

    .desktop-menu a {
        color: #144280;
        font-size: 18px;
        font-weight: 500;
        text-decoration: none;
        display: block;
        padding: 10px 0;
        transition: color 0.2s;
        white-space: normal;
    }

    .desktop-menu a:hover {
        color: #0066cc;
    }

    .desktop-submenu {
        position: absolute;
        top: calc(100% + 15px);
        left: 50%;
        transform: translateX(-50%);
        width: 566px;
        height: 253px;
        background: #EEEEEE;
        box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.25);
        display: none;
        flex-direction: row;
        z-index: 1000;
    }

    .desktop-menu-item:nth-last-child(2) .desktop-submenu,
    .desktop-menu-item:nth-last-child(1) .desktop-submenu {
        left: auto;
        right: 0;
        transform: none;
    }

    .desktop-menu-item:hover .desktop-submenu {
        display: flex;
    }

    .submenu-column {
        width: 50%;
        padding: 30px;
        position: relative;
    }

    .submenu-column.right {
        background: white;
    }

    .submenu-item {
        margin-bottom: 20px !important;
        color: black !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        line-height: 16.21px !important;
        cursor: pointer !important;
        white-space: normal !important;
    } 

    .submenu-item:hover {
        color: #0066cc;
    }

    .submenu-title {
        font-weight: 500;
        margin-bottom: 10px;
        white-space: normal;
        color: black;
    }

    .submenu-description {
        color: #565656;
        font-size: 14px;
        font-weight: 400;
        line-height: 14.19px;
        margin-top: 5px;
        white-space: normal;
    }

    .language-switcher {
        position: relative;
        width: 35px;
        margin-left: 59px;
    }

    .desktop-language-icon {
        width: 35px;
        height: 35px;
        background-image: url('images/languageicon.png');
        background-size: cover;
        background-repeat: no-repeat;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .language-dropdown {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: 107px;
        height: 158px;
        display: none;
        z-index: 1000;
    }

    .language-dropdown-content {
        width: 100%;
        height: 100%;
        background: whitesmoke;
        box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(5px);
        ;
    }

    .language-dropdown-item {
        padding: 12px 30px;
        color: black;
        font-size: 16px;
        font-weight: 500;
        line-height: 16.21px;
        cursor: pointer;
        position: relative;
        box-sizing: border-box;
        width: 100%;
        white-space: nowrap;
    }

    .language-dropdown-item:hover,
    .language-dropdown-item.active {
        background: rgba(173, 216, 230, 1);
    }

    /* Скрываем мобильную версию на десктопе */
    .header-background,
    .mobile-header,
    .side-menu {
        display: none;
    }
}

/* Стили для мобильного хедера */
@media (max-width: 1220px) {
    .header-background {
        position: fixed;
        background: #FFFFFF;
        top: 0;
        left: 0;
        width: 100%;
        height: 75px;
        z-index: -1;
        transition: transform 0.3s ease;
    }

    .mobile-header {
        height: 455px;
        width: 100%;
        position: relative;
        overflow: hidden;
    }
    
    /* Слои для плавного crossfade слайдера */
    .mobile-header .slider-layer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: calc(50% + 70px) center;
        transition: opacity 2.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    }
    
    .mobile-header .slider-layer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, #333 0%, rgba(217, 217, 217, 0.00) 100%), linear-gradient(180deg, rgba(217, 217, 217, 0.00) 50%, #14427F 100%);
        z-index: 1;
    }
    
    .mobile-header .slider-layer-1 {
        z-index: 2;
        opacity: 1;
        background-image: url("background.jpg");
    }
    
    .mobile-header .slider-layer-2 {
        z-index: 1;
        opacity: 0;
        background-image: url("background1.jpg");
    }

    .mobile-logo {
        position: absolute;
        left: 20px;
        top: 30px;
        width: 80px;
        height: 33px;
        z-index: 100;
        object-fit: cover;
    }

    .burger-menu {
        position: absolute;
        top: 29px;
        right: 20px;
        width: 26px;
        height: 16px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 1000;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .burger-menu div {
        width: 26px;
        height: 2px;
        background: white;
        transition: all 0.3s ease;
    }

    .burger-menu.active div:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background: #144280;
    }

    .burger-menu.active div:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active div:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background: #144280;
    }

    .side-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: #FFFFFF;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 999;
        transition: right 0.3s ease;
        padding: 80px 0 20px;
    }

    .side-menu.active {
        right: 0;
    }

    .menu-item {
        border-bottom: 1px solid #E6F0FA;
        position: relative;
    }

    .menu-title {
        padding: 15px 20px;
        color: #0066CC;
        font-size: 18px;
        font-weight: 500;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        transition: all 0.2s;
    }

    .menu-title:hover {
        color: #99CCFF;
        background-color: #F5F7FA;
    }

    .arrow {
        width: 12px;
        height: 12px;
        position: relative;
        transition: transform 0.3s;
    }

    .arrow::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-left: 2px solid #0066CC;
        border-top: 2px solid #0066CC;
        transform: rotate(-135deg);
        transform-origin: 25% 25%;
        transition: transform 0.3s;
    }

    .menu-item.active .arrow::before {
        transform: rotate(45deg);
    }

    .submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background-color: #F5F7FA;
    }

    .menu-item.active .submenu {
        max-height: 500px;
    }

    .submenu a {
        display: block;
        padding: 10px 20px 10px 40px;
        color: #0066CC;
        text-decoration: none;
        font-size: 16px;
        border-top: 1px solid #E6F0FA;
        transition: color 0.2s;
    }

    .submenu a:hover {
        color: #99CCFF;
    }

    .language-switcher-container {
        padding: 15px 0;
        margin-top: 10px;
        display: flex;
        justify-content: flex-start;
        padding-left: 20px;
    }

    .mobile-language-icon {
        width: 35px;
        height: 35px;
        cursor: pointer;
        transition: all 0.3s;
        filter: brightness(0) saturate(100%) invert(25%) sepia(90%) saturate(2000%) hue-rotate(200deg) brightness(90%) contrast(90%);
    }
    
    .mobile-language-icon:hover {
        transform: scale(1.1);
        filter: brightness(0) saturate(100%) invert(25%) sepia(90%) saturate(2000%) hue-rotate(200deg) brightness(90%) contrast(90%);
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Скрываем десктопную версию на мобильных */
    .desktop-header-wrapper {
        display: none;
    }
}

/* Мобильная версия блока "Все новости" */
.mobile-all-news {
    margin-top: 21px;
    display: flex;
    align-items: center;
    width: fit-content;
    cursor: pointer;
    position: relative;
    bottom: auto;
    left: auto;
    margin-bottom: 20px;
}

.mobile-all-news .all-news-text {
    color: #1651A2;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    white-space: nowrap;
}

.mobile-all-news .arrow-icon {
    margin-left: 4px;
}

.mobile-all-news .arrow-icon svg {
    width: 16px;
    height: 16px;
}

.news-container {
    width: 350px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 0px;
}

.news-title {
    color: #2E3146;
    font-size: 28px;
    font-weight: 500;
    line-height: 101.336%;
    letter-spacing: -0.84px;
    margin: 36px 0 23px 0;
}

.main-news {
    width: 350px;
    height: 203px;
    position: relative;
    margin-top: 10px;
    overflow: hidden;
}

.main-news-bg {
    width: 350px;
    height: 203px;
    position: absolute;
    background-color: #D9D9D9;
}

.main-news-img {
    width: 404.88px;
    height: 268.74px;
    position: absolute;
    left: -27.88px;
    top: -48.75px;
    object-fit: cover;
}

.main-news-gradient {
    width: 349.56px;
    height: 203px;
    position: absolute;
    background-color: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #171717 100%);
}

.main-news-text {
    width: 310px;
    height: 54px;
    position: absolute;
    left: 20px;
    top: 78px;
    color: white;
    font-size: 19px;
    font-weight: 500;
    line-height: 19.25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-shadow: 
        0.3px 0.3px 0 #2F4F4F,
        -0.3px -0.3px 0 #2F4F4F,
        0.3px -0.3px 0 #2F4F4F,
        -0.3px 0.3px 0 #2F4F4F;
}

.main-news-date {
    position: absolute;
    left: 20px;
    top: 173px;
    color: white;
    font-size: 10px;
    font-weight: 500;
    line-height: 10.13px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-shadow: 
        0.3px 0.3px 0 #2F4F4F,
        -0.3px -0.3px 0 #2F4F4F,
        0.3px -0.3px 0 #2F4F4F,
        -0.3px 0.3px 0 #2F4F4F;
}

.news-row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.news-row-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.small-news {
    width: 170px;
    height: 170px;
    position: relative;
    overflow: hidden;
}

.small-news-bg {
    width: 170px;
    height: 170px;
    position: absolute;
    background: #F5F5F5;
}

.small-news-img {
    width: 269.06px;
    height: 174.36px;
    position: absolute;
    left: -43.90px;
    top: -0.97px;
    object-fit: cover;
}

.small-news-gradient {
    width: 169.56px;
    height: 170px;
    position: absolute;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #222222 100%);
}

.small-news-text {
    width: 130px;
    position: absolute;
    left: 20px;
    top: 20px;
    color: #2E3146;
    font-size: 17px;
    font-weight: 500;
    line-height: 17.23px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-shadow: 
        0.3px 0.3px 0 #2F4F4F,
        -0.3px -0.3px 0 #2F4F4F,
        0.3px -0.3px 0 #2F4F4F,
        -0.3px 0.3px 0 #2F4F4F;
}

.small-news-text.light {
    color: white;
    font-size: 18px;
    line-height: 18.24px;
    text-shadow: 
        0.3px 0.3px 0 #2F4F4F,
        -0.3px -0.3px 0 #2F4F4F,
        0.3px -0.3px 0 #2F4F4F,
        -0.3px 0.3px 0 #2F4F4F;
}

.small-news-date {
    position: absolute;
    left: 20px;
    top: 140px;
    color: #2E3146;
    font-size: 10px;
    font-weight: 500;
    line-height: 10.13px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-news-date.light {
    color: white;
    text-shadow: 
        0.3px 0.3px 0 #2F4F4F,
        -0.3px -0.3px 0 #2F4F4F,
        0.3px -0.3px 0 #2F4F4F,
        -0.3px 0.3px 0 #2F4F4F;
}

.all-news-link {
    margin-top: 21px;
    display: flex;
    align-items: center;
    width: fit-content;
    cursor: pointer;
    position: relative;
    bottom: auto;
    left: auto;
}

.all-news-text {
    color: #1651A2;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    white-space: nowrap;
}

.arrow-icon {
    margin-left: 4px;
}

.arrow-icon svg {
    width: 16px;
    height: 16px;
}

.up-arrow {
    position: fixed;
    right: 20px;
    bottom: -100px;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    border-radius: 0;
    background-color: transparent;
    border: none;
    padding: 0;
}

.up-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.up-arrow.visible {
    bottom: 10px;
}

/* Десктопная версия новостей (только при ширине больше 1220px) */
@media (min-width: 1220px) {
    .news-container {
        width: 1220px;
        padding-bottom: 0px;
    }
    
    .news-title {
        margin-top: 65px;
        justify-content: center;
        display: flex;
        flex-direction: column;
        color: #2E3146;
        font-size: 52px;
        font-weight: 500;
        line-height: 52.69px;
        width: 226px;
        height: 53px;
        margin: 65px 0 42px 0;
        letter-spacing: normal;
    }
    
    .news-row {
        display: flex;
        margin-top: 20px;
        gap: 24px;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    
    .news-row-bottom {
        display: flex;
        margin-top: 20px;
        gap: 24px;
        justify-content: flex-start;
    }
    
    .main-news {
        width: 792px;
        height: 345px;
        margin-top: 0px;
        flex-shrink: 0;
    }
    
    .main-news-bg {
        width: 792px;
        height: 345px;
        background: #D9D9D9;
    }
    
    .main-news-img {
        width: 794px;
        height: 527px;
        left: -2px;
        top: -118px;
    }
    
    .main-news-gradient {
        width: 792px;
        height: 345px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0.17%, #171717 99.83%);
    }
    
    .main-news-text {
        width: 732px;
        left: 30px;
        top: 173px;
        font-size: 32px;
        line-height: 32.43px;
        height: auto;
        text-shadow: 
        0.3px 0.3px 0 #2F4F4F,
        -0.3px -0.3px 0 #2F4F4F,
        0.3px -0.3px 0 #2F4F4F,
        -0.3px 0.3px 0 #2F4F4F;
    }
    
    .main-news-date {
        left: 30px;
        top: 298px;
        font-size: 17px;
        line-height: 17.23px;
    }
    
    .small-news {
        width: calc(33.333% - 16px);
        height: 345px;
        flex-shrink: 0;
    }
    
    .small-news-bg {
        width: 386px;
        height: 345px;
        background: #F5F5F5;
    }
    
    .small-news-img {
        width: 578px;
        height: 374px;
        left: -83px;
        top: 0;
    }
    
    .small-news-gradient {
        width: 386px;
        height: 345px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0.17%, #171717 99.83%);
    }
    
    .small-news-text {
        width: 326px;
        left: 30px;
        top: 128px;
        font-size: 32px;
        line-height: 32.43px;
    }
    
    .small-news-text.light {
        color: white;
        font-size: 32px;
        line-height: 32.43px;
        text-shadow: 
        0.3px 0.3px 0 #2F4F4F,
        -0.3px -0.3px 0 #2F4F4F,
        0.3px -0.3px 0 #2F4F4F,
        -0.3px 0.3px 0 #2F4F4F;
    }
    
    .small-news-date {
        left: 30px;
        top: 298px;
        font-size: 17px;
        line-height: 17.23px;
    }
    
    .small-news-date.light {
        color: white;
        text-shadow: 
        0.3px 0.3px 0 #2F4F4F,
        -0.3px -0.3px 0 #2F4F4F,
        0.3px -0.3px 0 #2F4F4F,
        -0.3px 0.3px 0 #2F4F4F;
    }
    
    .all-news-link {
        margin-top: 24px;
    }
    
    .all-news-text {
        font-size: 25px;
        line-height: 25.33px;
    }
    
    .arrow-icon {
        margin-left: 10px;
        width: 20px;
        height: 20px;
    }
    
    .up-arrow {
        width: 100px;
        height: 100px;
        right: calc(50% - 600px);
        bottom: -100px;
    }
    
    .up-arrow.visible {
        bottom: 20px;
    }
}

/* ================= FOOTER DESKTOP ================= */
.footer {
    width: 100%;
    height: 520px;
    background: linear-gradient(97deg, #144280 0.78%, #005999 99.22%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 73px;
    color: white;
    text-align: left;
    font-family: Ubuntu;
    font-size: 18px;
}

.footer-container {
    width: 100%;
    height: 404px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 54px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column-1 {
    width: 385px;
    margin-left: 120px;
    display: flex;
    flex-direction: column;
}

.footer-column-1 p {
    font-weight: 400;
    font-size: 18px;
    text-decoration: none;
    color: white;
    margin: 5px 0;
    letter-spacing: -0.66px;
}

.footer-column-2 {
    width: 385px;
    margin-left: 205px;
    display: flex;
    flex-direction: column;
}

.footer-column-2 p {
    margin-top: 0;
    margin-bottom: 30px;
    display: block;
    font-weight: 400;
    color: #FFF;
    font-family: Ubuntu;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 101.336%;
    letter-spacing: -0.75px;
}

.footer-column-2 a {
    margin-bottom: 27px;
    display: block;
    font-weight: 400;
    font-size: 18px;
    text-decoration: none;
    color: white;
    letter-spacing: -0.66px;
}

.footer-column-3 { padding-right: 40px;
    margin-right: 120px;
    width: 305px;
    display: flex;
    flex-direction: column;
}

.footer-column-3 h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 500;
    font-size: 18px;
    color: white;
}

.footer-column-3 p {
    margin-top: 0;
    margin-bottom: 27px;
    font-weight: 400;
    font-size: 18px;
    color: white;
    text-decoration: none;
    letter-spacing: -0.66px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    color: #FFF;
    font-family: Ubuntu;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 101.336%;
    letter-spacing: -0.66px;
}


/* ================= FOOTER MOBILE VERSION ================= */
@media (max-width: 1220px) {
    .footer-column-1 div[style="width: 186px; height: 181px; background: white; margin: 27px 0 27px 0;"],
    .footer-column-1 p[data-i18n="footer.suggestions"] {
        display: none;
    }
    
    .footer {
        height: auto;
        padding: 30px 0;
        margin-top: 120px;
    }
    
    .footer-container {
        height: auto;
        width: 100%; 
        padding: 0;
    }
    
    .footer-content {
        flex-direction: column;
        margin-top: 20px;
        gap: 30px;
        width: 100%; 
        text-wrap: 1;
    }
    
    .footer-column-1 {
        width: 100%;
        height: 48px;
        margin: 0;
        padding: 0; 
        box-sizing: border-box; 
        margin-bottom: 30px;
    }
    
    .footer-column-2 {
        width: 100%;
        margin: 0;
        padding: 0; 
        box-sizing: border-box; 
        font-size: 15px;
    }
    
    .footer-column-3 { padding-right: 40px;
        width: 100%;
        margin: 0;
        padding: 0; 
        box-sizing: border-box; 
        font-size: 16px;
    }
    
    .footer-content {
        padding: 0 20px; 
    }
    
    .footer-column-1 { order: 1; }
    .footer-column-3 { padding-right: 40px; order: 2; }
    .footer-column-2 { order: 3; }
    
    .footer-column p,
    .footer-column a,
    .footer-column h3 {
        font-size: 18px !important;
    }
    
    .footer-bottom {
        margin-top: 40px;
        font-size: 12px;
        padding: 0 20px; 
    }
    
    .footer-column-1 div {
        width: 349px !important;
        height: 120px !important;
        font-size: 16px !important;
    }
    
    .footer-column-1 p {
        font-size: 16px !important;
    }
    
    .footer-column-2 p {
        font-size: 20px !important;
        margin-bottom: 10px;
        font-size: 15px !important;
    }
    
    .footer-column-2 a {
        margin-bottom: 10px;
        font-size: 15px !important;
    }
    
    .footer-column-3 p {
        margin-bottom: 10px;
        font-size: 16px !important;
    }
    
    .footer-column-3 h3 {
        margin-bottom: 10px !important; 
    }
    
    .underlined {
        text-decoration: none !important;
        display: inline; 
        margin-top: 27px;
    }
}

/* Стили для текста в мобильном хедере */
/* Стили для текста в мобильном хедере */
.mobile-header-text {
    width: calc(100% - 40px); /* учитываем padding */
    position: absolute;
    left: 50%;
    top: 150px;
    transform: translateX(-50%);
    color: white;
    font-size: 32px;
    font-family: Ubuntu;
    font-weight: 500;
    line-height: 32.43px;
    text-align: center; /* выравнивание текста по центру */
    word-wrap: break-word;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0 20px; /* отступы по бокам */
    box-sizing: border-box;
}

@media (max-width: 400px) {
    .mobile-header-text {
        width: 90%;
        font-size: 28px;
        line-height: 30px;
    }
}


@media (min-width: 1220px) {
    .header-text-container {
        position: absolute;
        top: 262px;
        left: calc(50% - 600px); /* Смещаем на половину ширины контейнера (1220px/2) */
        width: 1220px; /* Фиксированная ширина как у desktop-header-container */
        text-align: left;
        padding-left: 15px;
        box-sizing: border-box;
        z-index: 10;
    }
    
    .header-title {
        width: auto; /* Убираем фиксированную ширину */
        max-width: 1158px; /* Максимальная ширина как в макете */
        color: #FFF;
        font-family: Ubuntu;
        font-size: 65px;
        font-style: normal;
        font-weight: 500;
        line-height: 101.336%;
        letter-spacing: -1.95px;
        margin: 0 0 8px 0; /* Убираем auto */
    }
    
    .header-subtitle {
        width: auto; /* Убираем фиксированную ширину */
        max-width: 1078px; /* Максимальная ширина как в макете */
        color: #FFF;
        font-family: Ubuntu;
        font-size: 40px;
        font-style: normal;
        font-weight: 500;
        line-height: 101.336%;
        letter-spacing: -1.2px;
        margin: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 1220px) {
    /* ... существующие стили ... */
    
    .header-text-container {
        position: absolute;
        top: 195px;
        left: 50%;
        transform: translateX(-50%);
        text-align: left;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        z-index: 10;
    }
    
    .header-title {
        color: #FFF;
        font-family: Ubuntu;
        font-size: 32px;
        font-style: normal;
        font-weight: 500;
        line-height: 101.336%;
        margin: 0 auto 8px;
        text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    .header-subtitle {
        color: #FFF;
        font-family: Ubuntu;
        font-size: 22px;
        font-style: normal;
        font-weight: 500;
        line-height: 101.336%;
        margin: 0 auto;
        text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .footer-column-1 div[style*="background: white"] {
        display: none !important;
    }
    
    /* Или более конкретный селектор, если у QR-кода есть класс */
    .qr-code {
        display: none !important;
    }
}

/* Планшетная версия для новостей (600px - 1220px) */
@media (min-width: 600px) and (max-width: 1220px) {
    /* Новости */
    .news-container {
        width: 100%;
        max-width: 960px; /* Ограничиваем максимальную ширину */
        margin: 0 auto;
        padding: 0 20px; /* Уменьшенные отступы */
        box-sizing: border-box;
    }

    .news-title {
        margin-top: 65px;
        justify-content: center;
        display: flex;
        flex-direction: column;
        color: #2E3146;
        font-size: 36px;
        font-weight: 500;
        line-height: 52.69px;
        width: 226px;
        height: 53px;
        margin: 65px 0 42px 75px;
        letter-spacing: normal;
    }

    .main-news {
        width: 100%;
        max-width: 700px;
        height: 280px;
        margin: 0 auto;
    }

    .main-news-bg,
    .main-news-gradient {
        width: 100%;
        height: 280px;
    }

    .main-news-img {
        width: 100%;
        height: auto;
        left: 0;
        top: 0;
        object-fit: cover;
    }

    .main-news-text {
        width: 90%;
        max-width: 640px;
        left: 20px;
        top: 140px;
        font-size: 24px;
        line-height: 26px;
    }

    .main-news-date {
        left: 20px;
        top: 240px;
        font-size: 14px;
    }

    .news-row,
    .news-row-bottom {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .small-news {
        width: calc(50% - 10px); /* Две карточки в ряд */
        max-width: 340px;
        height: 240px;
    }

    .small-news-bg,
    .small-news-gradient {
        width: 100%;
        height: 240px;
    }

    .small-news-img {
        width: 100%;
        height: auto;
        left: 0;
        top: 0;
        object-fit: cover;
    }

    .small-news-text {
        width: 90%;
        max-width: 300px;
        left: 20px;
        top: 100px;
        font-size: 20px;
        line-height: 22px;
    }

    .small-news-date {
        left: 20px;
        top: 200px;
        font-size: 12px;
    }

    .mobile-all-news {
        margin: 30px auto;
        justify-content: center;
        margin-left: 75px;
    }

    .all-news-text {
        font-size: 18px;
    }

    .arrow-icon {
        margin-left: 6px;
    }

    .arrow-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Override logo styles to match news.css */
@media (min-width: 1220px) {
    .desktop-logo {
        width: 127px !important;
        height: 53px !important;
        top: 76px !important;
        left: 0 !important;
        padding-left: 0 !important;
    }
}

@media (max-width: 1220px) {
    .mobile-logo {
        width: 100px !important;
        height: 42px !important;
        left: 20px !important;
        top: 20px !important;
    }
}

@media (min-width: 1220px) {
    .desktop-logo {
        top: 76px !important;
        left: 0px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 127px !important;
        height: 53px !important;
        padding-left: 50px !important;
    }
}

