﻿.navigation-container {
    padding-left: 30px;
    padding-right: 30px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-container {
    display: flex;
    flex-direction: column; /* контент сверху вниз */
    align-items: stretch;   /* растягиваем по ширине, не центрируем */
    justify-content: flex-start; /* контент начинается сверху */
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    min-height: 60vh;
}

.content-layout {
    flex: 1;
}

.breadcrumbs {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 11.9px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.breadcrumbs a {
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 600;
}

.breadcrumbs a:last-child,
.breadcrumbs a:last-child::before {
    display: inline-block;
    position: relative;
    top: 3px;
}

.breadcrumb-icon{
    margin-bottom: 6px;
    height: 16px;
    width: 18px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px; /* расстояние между пунктами меню */
    width: 262.5px; /* фиксированная ширина */
    margin-top: 32px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.43;
    padding: 8px 14px 8px 19px;
    background-color: #eee;
    color: #003b7f;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s;
    position: relative; /* для псевдоэлементов */
}

.menu-item:hover {
    background-color: #eee !important; /* тот же цвет, что и без hover */
    color: #003b7f !important;
}

.href-und:hover {
    text-decoration: underline
}

/* 2️⃣ Стиль для активного пункта меню */
.menu-item.active {
    background-color: #003b7f !important;
    color: #ffffff !important;
    font-weight: 400;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Правая полоса */
.menu-item::after {
    content: "";
    width: 30.3px;
    height: 100%;
    background-color: #5aa5ff;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.menu-item::before {
    content: ">";
    font-size: 9px;          /* высота стрелки не увеличивается */
    color: #ffffff;           /* белая стрелка */
    position: absolute;
    font-weight: 400;
    right: 14px;              /* от правой полосы */
    transform: translateY(-50%) rotate(90deg) scaleY(2.1); /* растягиваем только по ширине */
    z-index: 2;
}

/* Для первого пункта */
.sidebar-menu .menu-item:first-child::before {
    top: 30%;
}

/* Для всех остальных пунктов */
.sidebar-menu .menu-item:not(:first-child)::before {
    top: 50%;
}

/* Основная layout структура */
.content-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Контейнер для контента */
.content-area {
    margin-top: 32px;
    margin-bottom: 50px;
    flex: 1;
    min-height: 400px;
    background: #fff;
}

/* Основные стили контента */
.section-content {
    padding-bottom: 0;
}

.main-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 25px;
    color: #003b7f;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-title-under {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #003b7f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.main-title-center {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #003b7f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 50px;
}

/* Блоки контента */
.content-block {
    display: flex;
    gap: 30px;
    margin-bottom: 120px;
    align-items: center;
}

.content-block-last {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    align-items: center;
}

.content-block:last-child {
    margin-bottom: 0;
}

/* Контейнеры для изображений и текста */
.image-container {
    flex: 0 0 45%;
    position: relative;
}

.text-container {
    flex: 1;
}

/* Изображения */
.content-image {
    width: 410px;
    height: 100%;
    object-fit: cover;
}

/* Заголовки блоков */
.block-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: #003b7f;
    margin-bottom: 10px;
}

/* Текст блоков */
.block-text {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: #6b6b6b;
}

.block-text p {
    margin-bottom: 15px;
}

.block-text p:last-child {
    margin-bottom: 0;
}

.content-block.image-left .text-container {
    text-align: left;
}

.content-block.image-right .text-container {
    text-align: right;
}

/* Адаптивность */
@media (max-width: 992px) {

    .main-title-center {
        margin-top: 20px;
    }

    .content-block .image-container {
        flex: 1 1 100%; /* контейнер занимает всю ширину блока */
        width: 100%;
    }

    .content-block .content-image {
        width: 100%;   /* изображение растягивается на всю ширину контейнера */
        height: auto;  /* сохраняем пропорции */
    }

    .content-block .text-container {
        width: 100%; /* текст под изображением */
        text-align: left; /* если нужно */
        margin-top: 0px; /* небольшой отступ между изображением и текстом */
    }

    .content-block.image-left .text-container,
    .content-block.image-right .text-container {
        text-align: left; /* выравнивание текста по левому краю */
    }

    .content-block {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 40px;
    }

    .content-block.image-right {
        flex-direction: column-reverse;
    }

    .image-container {
        flex: 0 0 auto;
        width: 100%;
    }

    .content-image {
        height: 250px;
    }

    .main-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .block-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {

    .main-title-center {
        font-size: 20px;
    }

    .content-layout {
        flex-direction: column;
        gap: 20px;
    }

    .navigation-container {
        padding-left: 25px;
        padding-right: 25px;
    }

    .sidebar-menu {
        width: 100%;
        margin-top: 0;
        order: 0;
    }

    .content-area {
        width: 100%;
        order: 1;
        margin-top: 0;
    }

    .image-container {
        flex: 0 0 auto;
        width: 100%;
    }

    .content-image {
        width: 100%;
        height: auto;
    }

    /* Новые стили для мобильного меню */
    .sidebar-menu .menu-item {
        font-size: 12px; /* меньше шрифт */
        padding: 12px 20px; /* можно уменьшить паддинги, если нужно */
    }
}


/* Дополнительные стили для улучшения читаемости */
.block-text strong {
    color: #003b7f;
    font-weight: 700;
}

.block-text ul {
    margin: 15px 0;
    padding-left: 20px;
}

.block-text li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* --- Три столбца о компании --- */
.info-columns {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 60px;
}

.info-column {
    flex: 1;
    text-align: center;
}

.info-image {
    width: 196px;
    height: 196px;
    margin-bottom: 30px;
}

.info-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: #003b7f;
    margin-bottom: 30px;
}

.info-text {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #404040;
    text-align: left;
    line-height: 1.2;
}

@media (max-width: 992px) {
    .info-columns {
        flex-direction: column;
        align-items: center;
    }

    .info-column {
        width: 100%;
        max-width: 500px;
    }
}

.gallery-6 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 60px;
    justify-content: space-between;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-item {
    flex: 0 0 calc(33.333% - 13.333px);
    max-width: 262.5px;
    height: 177.7px;
    overflow: hidden;
    position: relative;
}

.gallery-item:nth-child(3n+1) {
    margin-bottom: 80px;
}

.gallery-6::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 0.3px;
    background-color: #f0f0f0;
    top: calc(177.7px + 50px);
}

.gallery-lines {
    display: flex;
    flex-direction: column;
    gap: 40px; /* расстояние между полосами */
    align-items: center; /* центрируем по горизонтали */
    margin-bottom: 30px; /* отступ между полосами и блоком с картинками */
}

.gallery-lines .line {
    width: 60%; /* длина полосы */
    height: 0.3px; /* толщина полосы */
    background-color: #f0f0f0; /* цвет полосы */
}

.breadcrumbs a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-icon {
    transition: transform 0.3s ease;
}

.breadcrumb-icon:hover {
    transform: scale(1.1);
}

.menu-item {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.menu-item.active::after {
    height: 100%;
    transition: height 0.3s ease;
}

.menu-item::before {
    transition: transform 0.3s ease;
}

.menu-item:hover::before {
    transform: translateY(-50%) rotate(90deg) scaleY(2.5);
}

.image-container {
    overflow: hidden;
    border-radius: 12px;
}

.content-image {
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.image-container:hover .content-image {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 48%;
        max-width: 48%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 0 0 100%;
        max-width: 100%;
        height: auto;
    }
}

.info-image {
    transition: transform 0.4s ease;
    border-radius: 50%;
}

.info-column:hover .info-image {
    transform: scale(1.1);
}

.info-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.info-column.visible .info-text {
    opacity: 1;
    transform: translateY(0);
}

* {
    transition: all 0.3s ease;
}

a, button {
    cursor: pointer;
}

.content-area {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    padding: 30px;
}
