.section-1_Video {
    max-width: 1750px;
    margin: 0 auto min(50px, 10%);
}

html {
    scroll-behavior: smooth;
}

.video-banner-1_Video {
    position: relative;
}

.video-banner-1_Video video {
    width: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 2 / 1;
    border-radius: 0 0 55px 55px;
    filter: brightness(80%);
}

.text-on-video-1_Video {
    max-width: 915px;
    color: white;
    position: absolute;
    top: 40%;
    left: 40%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 60%;
}

.title-1_Video {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(24px, calc(12px + 4vw), 45px);
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1.3;
}

.subtitle-1_Video {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, calc(5px + 1vw), 15px);
    font-weight: 400;
    letter-spacing: 0.2px;
    color: rgba(229, 229, 229, 0.8); /*#d7d7d7*/
    max-width: 500px;
    line-height: 1.5;
}

.buttons-1_Video {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 40px;
}

.buttonV1-1_Video {
    padding: 4px 4px 4px 24px;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, calc(5px + 1vw), 15px);
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: all 0.4s;
    text-decoration: none;
    color: white;
    background-color: #0556d3;
}

.buttonV1-1_Video:hover,
.buttonV1-1_Video:active {
    background-color: #0077ff;
}

.buttonV2-1_Video {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, calc(5px + 1vw), 15px);
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: all 0.5s;
    text-decoration: 1px underline;
    color: white;
}

.buttonV2-1_Video:hover {
    text-decoration: none;
}


.social-icons-1_Video {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    top: 50%;
    right: 1%;
    transform: translateY(-50%);
}

.container-small-1_Video {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon-1_Video,
.media-icon-1_Video {
    display: flex;
    align-items: center;
}

.social-icon-1_Video {
    transition: all 0.5s;
}

.social-icon-1_Video:hover {
    transform: scale(1.05);
}

.group-of-items-1_Video {
    max-width: 1310px;
    margin: 0 auto;
    position: absolute;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    bottom: 5%;
    right: 7%;
    left: 7%;
    color: white;
    gap: 10px 30px;
}

.border-1_Video {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}

.horizontal-1_Video {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 5px;
}

.vertical-1_Video {
    display: flex;
    flex-direction: column;
}

.item-1_Video {
    position: relative;
    background-color: rgba(70, 79, 129, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 15px;
    padding: 15px 17px;
    gap: 8px;
}

.long-1_Video {
    grid-column: span 6;
}

.small-1_Video {
    grid-column: span 4;
}

.social-image-1_Video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    aspect-ratio: 6 / 5;
}

.text-container-1_Video {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 12px 15px;
}

.text-container-1_Video a:hover {
    text-decoration: none;
    align-self: flex-start;
}

.small-title-1_Video {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.body-text-1_Video {
    font-family: 'Inter', sans-serif;
    font-size: clamp(12px, calc(5px + 1vw), 13px);
    font-weight: 400;
    color: #bbbbbb;
    line-height: 1.3;
    letter-spacing: 0.1px;
}

.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.hidden {
    display: none;
}

.modal-content {
    background-color: #e9f2ff;
    padding: min(60px, 5vw) min(90px, 6vw);
    border-radius: 30px;
    max-width: min(85%, 800px);
    position: relative;
    overflow-y: auto;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 25px;
    right: 30px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.1s;
}

.close:hover {
    background-color: #dfdfdf;
}

.text-with-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 60px;
}

.longer,
.shorter {
    flex: 1 0 100px;
}

.modal-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.caption {
    background-color: #e2e6ff;
    color: #0052ff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
}

.title1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(22px, calc(12px + 2vw), 34px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.subtitle23 {
    margin-top: 5px;
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, calc(5px + 1vw), 15px);
    font-weight: 400;
    letter-spacing: 0.2px;
    color: #989898;
}

.modal-right form {
    display: flex;
    flex-direction: column;
    gap: 13px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: min(30px, 5vw);
    background-color: white;
}

.modal-right label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #969696;
    font-weight: 500;
}

.modal-right input {
    margin-bottom: 15px;
    padding-bottom: 2px;
    border: none;
    border-bottom: 1px solid #969696;
    font-size: 16px;
    background: transparent;
    outline: none;
    color: #525252;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.modal-right input::placeholder,
.modal-right textarea::placeholder {
    color: rgba(227, 227, 227, 0.95);
}

.modal-right textarea {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #606060;
    font-weight: 500;
    border: 1px solid #ddd;
    padding: 8px;
    outline: none;
    resize: vertical;
    min-height: 50px;
    max-height: 100px;
}

.modal-right button {
    margin-top: 15px;
    align-self: flex-start;
    border-radius: 999px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    background-color: black;
    color: white;
    transition: all 0.3s;
}

.modal-right button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


.subtitle1 {
    margin-top: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: #5e5e5e;
    line-height: 1.5;
}

.subtitle1 a {
    color: #5e5e5e;
    font-weight: 600;
}

.subtitle23 a {
    font-weight: 500;
    color: #7a7a7a;
}

#scrollContainer {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}


/* Общие стили для всех <=1300px */
@media (max-width: 1300px) {
    .text-on-video-1_Video {
        top: 40%;
        left: 7%;
        right: 10%;
        transform: translate(0, -60%);
        width: auto;
    }

    .group-of-items-1_Video {
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        grid-column-gap: 20px;
        right: 1%;
        left: 1%;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
    }

    .group-of-items-1_Video::-webkit-scrollbar {
        display: none;
    }

    .item-1_Video {
        scroll-snap-align: center;
    }

    .long-1_Video,
    .small-1_Video,
    .medium-1_Video {
        grid-column: auto;
    }
}

/* --- 1300px → 768px --- */
@media screen and (max-width: 1300px) and (min-width: 768px) {
    .video-banner-1_Video video {
        aspect-ratio: 7 / 6;
        border-radius: 0 0 40px 40px;
    }

    .group-of-items-1_Video {
        grid-template-columns: repeat(3, 50%);
        gap: 40px;
    }
}

/* --- 768px → 426px --- */
@media screen and (max-width: 768px) and (min-width: 426px) {
    .video-banner-1_Video video {
        aspect-ratio: 14 / 15;
        border-radius: 0 0 30px 30px;
    }

    .group-of-items-1_Video {
        grid-template-columns: repeat(3, 70%);
        gap: 30px;
    }
}

/* --- ≤ 425px --- */
@media (max-width: 426px) {
    .video-banner-1_Video video {
        aspect-ratio: 9 / 17;
        border-radius: 0 0 25px 25px;
    }

    .group-of-items-1_Video {
        grid-template-columns: repeat(3, 100%);
        gap: 10px;
    }

    .buttons-1_Video {
        flex-direction: column;
        align-items: flex-start;
    }
}
