body {
    background-color: #fff;
    font-family: "Jost", sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

header {
    height: 100vh;
    width: 100vw;
    margin-top: 100px;
    display: block;
    position: relative
}

section {
    padding: 100px 0 150px;
}

footer {
    width: 100%;
    padding: 30px 0;
}

.box {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    height: 100px;
    background-color: #eee;
}

.navbar a {
    font-size: 20px !important;
}

.carousel-item {
    min-width: 100vw; /* каждый слайд будет занимать всю ширину экрана */
    height: 100vh; /* слайд будет иметь высоту экрана */
    background-size: cover;
    background-position: center;
}

.color1 {
    color: #0f647d !important;
}

.color2 {
    color:#333 !important;
}

.bgc1 {
    background: rgb(3,169,244);
    background: linear-gradient(90deg, rgba(3,169,244,1) 0%, rgba(25,118,210,1) 100%);
}

.bgc2 {
    background-color: #65eaff;
}

.link {
    text-decoration: none;
    color: #2196F3;
    font-weight: 600;
}

.chat-btn {
    cursor: pointer;
    position: fixed;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 20px;
    bottom: 0;
    right: 0;
    z-index: 1000;
    background-color: rgb(67, 216, 84);
    border-radius: 100%;
}

.chat-btn-off {
    position: absolute;
    pointer-events: none;
    top: -260px;
    left: 0;
    opacity: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-btn-off.active {
    display: flex;
    opacity: 1;
    pointer-events: visible;
    transform: translateY(0);
}

.tootlip1 {
    display: block;
    position: absolute;
    right: 60px;
    top: 20%;
    font-weight: 400;
    font-size: 14px;
    color: #000;
    background-color: #E1E1E1;
    padding: 5px 10px;
    border-radius: 10px;
    width: 230px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tootlip1.active {
    display: block;
    width: 500px;
    white-space: normal;
    overflow: visible;
}

.link2 {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    margin-bottom: 10px;
    background-color: rgb(67, 216, 84);
    border-radius: 100%;
}

.link1 {
    text-decoration: none;
}

.link:hover {
    opacity: .7;
}

i {
    font-size: 25px;
}

.carousel-inner img {
    object-fit: contain;
}

.dropdown-item {
    opacity: .7;
}

.dropdown-item.active1 {
    opacity: 1;
}

.forwhom h5 {
    text-align: center;
    padding: 53px;
    border: 3px solid #02458d;
    height: 150px;
}

.section__title {
    font-size: 30px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    text-align: center;
  }

.section__title2 {
    font-size: 25px;
    font-weight: 700;
    color: #0f647d;
    text-transform: uppercase;
    text-align: center;
}

.IP {
    font-size: 18px;
}

.about-text {
    font-size: 35px;
    color: #0f647d;
}

.about-text1 {
    font-size: 25px;
    font-style: italic;
    color: #0f647d;
}

.contact-text {
    font-size: 27px;
    color: #0f647d;
}

.rules-1 {
    font-style: italic;
    font-size: 20px;
}

.tabs {
    display: none;
    width: 70%;
    margin: 0 auto;
    border: 2px solid #000;
}

.tabs.active {
    display: block;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 30px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-template-rows: 300px;
    gap: 10px; /* Уменьшаем зазор между фото */
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}

.gallery-item {
    position: relative;
    overflow: hidden; /* Обеспечивает отсутствие выхода за пределы */
    grid-row: span 2;
    grid-column: span 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Это гарантирует, что изображение будет покрывать весь контейнер */
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Для первого изображения делаем его больше */
.gallery-item.large {
    grid-column: span 2; /* Первое изображение занимает два столбца */
    grid-row: span 2; /* Первое изображение также занимает два ряда */
}

/* Стиль модального окна */
.modal1 {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: 100px; /* Добавляем отступ сверху для учета навигационной панели */
}

.modal1-content {
    max-width: 80%;
    max-height: 80%;
    margin: auto;
}

.close-btn1 {
    position: absolute;
    top: 120px;
    right: 20px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    transition: 0.3s;
}

.close-btn:hover {
    color: #f44336;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    transition: 0.3s;
}

.close-btn:hover {
    color: #87CEEB;
}

.button {
    display: inline-block;
    padding: 20px 30px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.button:active {
    background-color: #004085;
    transform: scale(0.9);
}

.animation {
    display: inline-block;
}

.animation span {
    opacity: 0;
    display: inline-block;
    animation: typing 2s steps(30) forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    100% {
        opacity: 1;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.animation2 {
    opacity: 0;
    animation: fadeIn1 2s ease-in-out forwards;
}

@keyframes fadeIn1 {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animation1 {
    opacity: 0;
    animation: fadeIn2 2s ease-in-out forwards;
}

@keyframes fadeIn2 {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.anim {
    --transform: 0;
    opacity: 0;
    animation: fadeIn3 1s ease-in-out forwards;
}

@keyframes fadeIn3 {
    0% {
        opacity: 0;
        transform: translateX(var(--transform));
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 991px) {
    .box {
        box-shadow: none;
    }

    .carousel-caption:nth-child(1) {
        margin-left: 40px !important;
    }
}


@media (max-width: 768px) {
    .tabs {
        width: 100%;
    }

    .carousel-item:nth-child(1) {
        background-position: -20rem center;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr); /* Два столбца для мобильных устройств */
    }

    .about-text {
        font-size: 20px;
    }

    .about-text1 {
        font-size: 15px;
    }

    .animation {
        font-size: 30px !important;
    }

    .rules-1 {
        font-size: 16px !important;
    }

    .navbar a {
        font-size: 16px !important;
    }
}

@media (max-width: 640px) {
    .carousel-caption p {
        font-size: 35px !important;
    }

    .carousel-caption:nth-child(1) {
        margin: 0 !important;
    }

    .tootlip1 {
        display: none;
    }

    .tootlip1.active {
        width: 300px;
        top: -30%;
        white-space: normal;
        overflow: visible;
    }

    .button-container {
        width: 100%;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .tootlip1.active {
        width: 200px;
        top: -80%;
        white-space: normal;
        overflow: visible;
    }

    .gallery {
        grid-template-columns: repeat(2, 0.5fr); /* Два столбца для мобильных устройств */
        padding: 10px; /* Один столбец для очень маленьких экранов */
    }
}

@media (max-width: 332px) {
    .carousel-caption p {
        font-size: 25px !important;
    }
}
