/* 
///////////////////////////
///////////////////////////
///////////////////////////
*/

.main-entrance {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container {
    position: relative;
    /* Обрезает избыточные части, если необходимо */
    display: inline-block;
    /* Чтобы контейнер не растягивался на всю ширину */
}

.button-temp {
    position: absolute;
    z-index: 1;
    top: 80%;
    /* Поднимаем выше от центра */
    left: 5%;
    /* Отступ от левого края */
    transform: translateY(-50%);
}

.button-temp-text p {
    position: absolute;
    z-index: 2;
    top: 78%;
    /* Поднимаем выше от центра */
    left: 10%;
    /* Отступ от левого края */
    transform: translateY(-50%);
    font-size: 30px;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: #0B2C5D;
}

.image-container-text {
    position: absolute;
    top: 40%;
    /* Поднимаем выше от центра */
    left: 5%;
    /* Отступ от левого края */
    transform: translateY(-50%);
    /* Центрируем только по вертикали */
    color: white;
    z-index: 2;
    width: 70%;
    /* Ограничиваем ширину текстового блока */
    text-align: left;
    /* Выравниваем текст по левому краю */
}

.image-container-text p {
    font-size: 60px;
    margin: 0;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    /* Для лучшей читаемости */
}

.image-container-text h3 {
    font-size: 2.2em;
    margin: 10px 0 0 0;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.mask-image {
    display: block;
    width: 100%;
    /* Гарантируем заполнение контейнера */
    height: auto;
    position: relative;
    z-index: 0;
    align-items: center;
    justify-content: center;
}


.about-info {
    display: flex;
    padding-top: 100px;
    flex-direction: row;
}

.about-info-text {
    max-width: 700px;
    margin-left: 50px;
}

.about-info-text h2,
.about-info-text h3,
.about-info-text p {
    color: #024C83;
}

.about-info-text h2 {
    text-transform: uppercase;
    font-size: 50px;
    margin-bottom: 10px
}

.about-info-text h3,
.about-info-text p {
    font-size: 20px;
}



.marquee-container {
    padding: 10px;
    margin-top: 30px;
    background-color: #024C83;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: bold;
    color: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: var(--box-shadow), inset var(--box-shadow);
}

.ipd-divider {
    display: flex;
    width: 100%;
    gap: 5px;
    animation: marquee 20s linear infinite;
    /* Отступ между копиями текста */
}

.ipd-divider span {
    flex: 1;
    /* Равномерное распределение пространства */
    white-space: nowrap;
    /* Запрет переноса текста */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Сдвигаем на половину ширины контейнера */
    }
}

.front-news-text {
    display: flex;
    flex-direction: column;
    color: #024C83;
    align-items: center;
    justify-content: center;

    text-align: center;

}

.front-news-text h1 {
    font-size: 40px;
    margin-bottom: 0.5px;
    text-transform: uppercase;
    font-weight: bold;
}

.front-news-text p {
    font-size: 25px;
    padding-bottom: 20px;
    font-weight: 300;
}



.front-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    grid-auto-rows: minmax(300px, auto);
}

.news-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1 / 1;
}

.grid-image {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

/* Стили для синего прямоугольника */
.blue-rectangle {
    position: absolute;
    top: 300px;
    width: 440px;
    height: 200px;
    background-color: #0DA8CD;
    border-radius: 15px;
    z-index: 1;
}

/* Обновленные стили для оверлея с текстом */
.grid-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: white;
    z-index: 2;
}

.grid-date {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.grid-excerpt {
    font-size: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.news-button {
    text-align: right;
    /* Кнопка выравнена по правому краю */
    margin-top: 50px;
    /* Отступ сверху, если необходимо */
}

.news-more-button {
    display: inline-block;
    /* Для управления размерами и позиционированием */
    background-color: #0DA8CD;
    color: #FFFFFF;
    padding: 10px 160px;
    /* Увеличенные отступы по горизонтали для растягивания кнопки */
    border-radius: 15px;
    /* Скругление углов */
    text-decoration: none;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
    /* Центрирование текста */
}

.news-more-button:hover {
    background-color: #098aa1;
    /* Темнее при наведении */
}










.container-form {
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
    min-height: 0;
    height: auto;
    flex-grow: 1;
    background-color: #024C8333;
    box-shadow: inset 0 8px 15px rgba(0, 0, 0, 0.32);
    /* Добавляем тень сверху */
}

.form-inner-container {
    margin: 20px;
    margin: 0 auto;
}

.yandex-form-card {
    margin: 40px 0;
    padding: 20px;
}

.form-card-content {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1400px;
    /* Ограничение ширины содержимого */
    margin: 0 auto;
}

.form-card-image {
    flex: 0 0 45%;
    max-width: 45%;
}

.form-card-image img {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    /* Увеличили радиус закругления */
    object-fit: cover;
    /* Для правильного отображения изображения */
}


.form-card-title {
    font-size: 40px;
    text-transform: uppercase;
    font-weight: bold;
}

.form-card-excerpt {
    font-size: 20px;
}

.form-card-text {

    flex: 1;
    color: #024C83;
    /* Цвет текста */
}

.form-card-text *:not(.form-card-button) {
    color: inherit;
    /* Наследование цвета для всех элементов кроме кнопок */
}

.reversed .form-card-content {
    flex-direction: row-reverse;
}

.form-card-title {
    margin-top: 0;
    color: inherit;
    /* Наследует цвет от родителя */
    font-size: 1.8em;
}

.form-card-button {
    display: inline-block;
    padding: 12px 25px;
    background: #0DA8CD;
    color: #000 !important;
    /* Переопределение цвета для кнопки */
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s;
}

.form-card-button:hover {
    background: #027a98;
}



.stripe {
    box-shadow: inset 0 10px 25px rgba(0, 0, 0, 0.32);
    height: 45px;
    width: 100%;
}

.stripe-1 {
    background: #0DA8CD;
}

.stripe-2 {
    background: #0F92B1;
}

.stripe-3 {
    background: #0F829E;
    box-shadow: inset 0 10px 25px rgba(0, 0, 0, 0.32), 0 10px 25px rgba(0, 0, 0, 0.32);
}