.container {
    background-color: transparent !important;
    color: rgba(9,32,63,1)
}

.fixed-bg {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to bottom, 
            rgba(0, 0, 0, 0) 0%,      /* Прозрачный сверху */
            rgba(0, 0, 0, 0.3) 100%   /* Темный снизу */
        ),
        url('../images/bg.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}









/* Стили блока навигации */

.nav-btn {
    background-color: transparent;
    color: rgba(9,32,63,1) !important;
    border: 1px solid rgba(9,32,63,1) !important;
    border-radius: 0px 12px 12px 12px !important;
    margin-right: 10px !important;
    transition: all 0.3s ease;
    font-weight: bold !important;
    font-size: 16px !important;
    padding: 10px 20px !important;
}

.nav-item:not(:last-child) {
    margin-right: 5px !important;  /* Отступ ко всем, кроме последнего */
}

.nav-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(9,32,63,1);
}

/* Стили для гамбургер-меню на мобильных */
.navbar-toggler {
    border: 1px solid rgba(9,32,63,1) !important;
    padding: 6px 10px !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Стили для выпадающего меню на мобильных */
.navbar-collapse {
    background-color: transparent !important;
    padding: 15px !important;
    border-radius: 0px 12px 12px 12px !important;
}

/* Стили для кнопок внутри выпадающего меню */
.navbar-nav .nav-link {
    color: rgba(9,32,63,1)!important;
    font-weight: bold !important;
    font-size: 16px !important;
    padding: 8px 15px !important;
    border: 1px solid rgba(9,32,63,1) !important;
    border-radius: 0px 12px 12px 12px !important;
    margin-bottom: 8px !important;
    display: inline-block !important;
    width: 100% !important;
    text-align: center !important;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 4px 12px rgba(9,32,63,1) !important;
}

/* Скрыть стандартный бутстраповский бэкграунд */
.navbar {
    background-color: transparent !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}









/* Стили для титульной страницы */

.topic {
    font-size: 450%;
    margin-bottom: 40px; /* Отступ снизу */
    color: rgba(9,32,63,1) ;         /* Цвет текста */
}

.top_text {
    font-size: 180%;
    margin-bottom: 60px; /* Отступ снизу */
    color: rgba(9,32,63,1) ;           /* Цвет текста */
}

@media (max-width: 768px) {
    .topic {
        font-size: 250%;
        text-align: center; /* Текст по центру */
    }

    .top_text {
        font-size: 100%;
        text-align: center; /* Текст по центру */
    }
}

.logo-sidebar {
    display: flex;
    align-items: flex-start;
} 

.logo {
    max-width: 400px;          /* Максимальная ширина логотипа = 150px */
    height: auto;              /* Высота подстраивается автоматически (сохраняет пропорции) */
    display: block;            /* Убирает лишние отступы под изображением */
}

hr {
    border: 0;                          /* Убирает стандартную границу */
    height: 1px;                        /* Толщина линии */
    background-color: rgb(0, 0, 0);     /* Цвет линии */
}

h1 {
    margin-top: 60px !important;
}

.presentation-btn {
    background: radial-gradient(circle at center, rgba(9,32,63,1) 0%, rgba(83,120,149,1) 100%);
    border-radius: 12px !important;
    padding: 12px 30px !important;
    color: white !important;
    font-weight: 700 !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.presentation-btn:hover {
    background: radial-gradient(circle at center, rgba(83,120,149,1) 0%, rgba(9,32,63,1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.presentation-btn:active {
    transform: translateY(0);
}

.btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}











/* Стили для страницы с отзывами */

/* Карточка письма */
.letter-card {
background: transparent; /* прозрачный фон */
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
cursor: pointer;
transition: all 0.3s ease;
width: 300px; /* фиксированная ширина блока */
position: relative;
border: 2px solid transparent;
margin: 0 auto;  /* 0 — сверху/снизу, auto — слева/справа */
}

.letter-card img {
width: 100%;
height: 100%;
object-fit: cover; /* или cover — если нжно обрезать */
display: block;    /* убирает лишний отступ снизу */
border-radius: 12px 12px 0 0; /* опционально: скругление верхних углов */
}

@media (max-width: 1400px) {
    .letter-card {
    width: 200px; /* уменьшаем ширину карточки */
        }
}

@media (max-width: 992px) {
    .letter-card {
    width: 300px; 
        }
}

.letter-card:hover {
transform: translateY(-8px);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
border-color: #0d6efd;
}

.letter-card:active {
transform: translateY(-2px);
}

/* Изображение - занимает весь блок, масштабируется по высоте */
.letter-card img {
width: 100%;
height: 100%; /* занимает всю высоту карточки */
object-fit: cover; /* обрезает изображение, сохраняя пропорции */
display: block;
transition: transform 0.5s ease;
}

.letter-card:hover img {
transform: scale(1.05);
}

/* Стили для модального окна с изображением */

/* Убираем фон модального окна */
#letterModal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}
  
/* Хедер с затемнённым фоном для кнопки */
#letterModal .modal-header {
position: absolute;
top: 0;
right: 0;
z-index: 1050;
background: transparent;
backdrop-filter: blur(4px);
border-radius: 0 0 0 12px;
}

/* Кнопка закрытия - белая и крупнее */
#letterModal .btn-close {
width: 32px;
height: 32px;
opacity: 1;
filter: brightness(0) invert(1);
transition: all 0.3s ease;
}

#letterModal .btn-close:hover {
transform: scale(1.2);
opacity: 1;
}

/* Боди - без отступов, изображение на всю ширину */
#letterModal .modal-body {
display: flex;
justify-content: center;
align-items: center;
}

#letterModal .modal-body img {
max-height: 90vh;
max-width: 95vw;
object-fit: contain;
border-radius: 8px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Фон модального окна затемнённый */
#letterModal .modal {
background-color: rgba(0, 0, 0, 0.85);
}

/* Анимация появления изображения */
#letterModal .modal-body img {
opacity: 0;
transform: scale(0.95);
transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#letterModal.show .modal-body img {
opacity: 1;
transform: scale(1);
}

/* Адаптивность */
@media (max-width: 768px) {
    #letterModal .modal-body img {
        max-height: 80vh;
        max-width: 95vw;
    }

    #letterModal .btn-close {
        width: 28px;
        height: 28px;
    }
}












/* Стили галереи фото */
.gallery-container {
    margin: 50px auto;
    max-width: 1400px; /* ограничение максимальной ширины для центрирования */
}

.thumbnail-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 0;
}

.thumbnail-img {
    cursor: pointer;
    transition: all 0.3s ease;
    transition: opacity 0.3s;
    border: 2px solid transparent;
    width: 60%;
    border-radius: 4px;
}

.thumbnail-img:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-left: -60px;
}

.text-column {
    text-align: left;
}

.text-column h2 {
    font-size: 26px; /* ещё меньше для планшетов */
}


/* Мобильная версия */
@media (max-width: 991px) {
    .project-container {
        flex-direction: column;
    }
    
    /* Главное фото по центру */
    .main-image {
        width: auto !important;
        height: auto !important; /* Автоматическая высота для сохранения пропорций */
        max-height: 400px;
        object-fit: cover !important; /* Вписывает изображение, сохраняя пропорции */
        margin-left: 0 !important;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    .main-image {
        height: auto;
        max-height: 400px;
        margin-left: 0px
    }

    /* Миниатюры в ряд под фото */
    .thumbnail-column {
        order: 2;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        padding: 0 15px !important;
        margin-bottom: 20px;
        margin-top: 20px !important;
    }
    
    .thumbnail-img {
        width: 80px; /* фиксированная ширина для миниатюр */
        height: auto;
        border-radius: 4px;
    }
    
    /* Текст внизу */
    .text-column {
        order: 3;
        padding: 0 15px !important;
    }

    .text-column h2 {
        font-size: 20px; /* самый маленький для мобильных */
        margin-bottom: 15px;
    }
    
    .text-column p {
        margin-bottom: 12px;
    }
}











/* Стили для Страницы Контакты */

.our_social i,
.our_contacts i, 
.our_ofices {
    display: block;
    font-size: 48px;
}












/* Стили для футера */
footer {
    background-color: transparent;
    color: black;
    padding: 20px 0;
    font-size: 14px;
}
.footer-copyright {
    line-height: 24px;
}

.social-icon {
    background-color: transparent;
    color:rgba(9,32,63,1);
    font-size: 200%;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icon:hover {
    transform: translateY(-5px);
}












/* Страница с новостями */


.block-link {
    display: block;
    text-decoration: none;
    color: inherit;  
}

.news_image {
    background: transparent; /* прозрачный фон */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    height: 250px;
    width: 100%; /* ширина блока по ширине полосы */
    position: relative;
    margin: 0 auto;  /* 0 — сверху/снизу, auto — слева/справа */
    }
    
    .news_image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* или cover — если нжно обрезать */
    display: block;    /* убирает лишний отступ снизу */
    }

    .news_image:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        transform: translateY(-4px);
    }

    @media (max-width: 768px) {
        .news_image {
            width: 100% !important;
            

        }
    }

    .news_content p {
        font-size: 87%;
    }
