/* =========================== Общие стили =========================== */
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #091F5B;
}

/* =========================== Header =========================== */
header {
    width: 100%;
    background-color: #F7F2EC;
    color: #091F5B;
    font-family: "Poppins", sans-serif;
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.625rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #091F5B;
    font-size: 1rem;
    font-weight: 500;
}

.contact-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-social .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #344EAD;
    color: #F7F2EC;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
}

.contact-social .contact-btn {
    background-color: #344EAD;
    color: #F7F2EC;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-social .email {
    font-size: 0.9rem;
    color: #091F5B;
    text-decoration: none;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #091F5B;
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #F7F2EC;
    width: 100%;
    text-align: center;
    padding: 0.625rem 0;
}

.mobile-menu a {
    text-decoration: none;
    color: #091F5B;
    font-size: 1rem;
    padding: 0.5rem 0;
}

.mobile-menu.active {
    display: flex;
}

@media (max-width: 992px) {
    .nav-links, .contact-social {
        display: none;
    }
    .burger {
        display: flex;
    }
}

/* =========================== Секции и галерея =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

.section {
    width: 100%;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
}

/* =========================== Секции с типами видео =========================== */
.section:nth-child(3) {
    background-color: #344EAD; /* новый фон */
    color: #F7F2EC;           /* новый цвет текста */
}

.section:nth-child(4) {
    background-color: #FFF9EF;
    color: #091F5B;
}

.section:nth-child(5) {
    background-color: #D0E4FF;
    color: #344EAD;
}

.section:nth-child(6) {
    background-color: #091F5B;
    color: #F7F2EC;
}

.section:nth-child(7) {
    background-color: #F2F1DF;
    color: #091F5B;
}

.section:nth-child(8) {
    background-color: #6F96D1;
    color: #F7F2EC;
}

.text {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.875rem;
    align-items: flex-start;
}

h1 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 3rem;
    margin: 0;
    line-height: 1.2;
}

h1 span.video-word {
    font-family: "Kalam", cursive;
    font-weight: 700;
    font-style: normal;
    font-size: 3rem;
}

p {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.gallery {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    align-items: flex-start;
}

.video-wrapper {
    flex: 0 0 calc((100% - 2.5rem) / 3);
    max-width: calc((100% - 2.5rem) / 3);
    aspect-ratio: 9 / 16;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0.375rem 1.125rem rgba(0,0,0,0.08);
}

.video-wrapper .video-js,
.video-wrapper video,
.video-wrapper .vjs-tech {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 1200px) {
    .video-wrapper {
        flex: 0 0 calc((100% - 1.25rem) / 2);
        max-width: calc((100% - 1.25rem) / 2);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h1 span.video-word {
        font-size: 2rem;
    }

    p {
        font-size: 0.875rem;
    }

    .mobile-menu a {
        font-size: 1rem;
    }

    .contact-social .icon {
        font-size: 0.9rem;
    }

    .contact-social .contact-btn {
        font-size: 0.85rem;
    }

    .contact-social .email {
        font-size: 0.85rem;
    }

    .gallery {
        gap: 0.75rem;
    }

    .video-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
        aspect-ratio: 9 / 16;
    }
}

/* =========================== HERO =========================== */
.hero {
    position: relative;
    width: 100%;
    background-color: #F7F2EC;
    overflow: visible;
}

.hero-image {
    display: block;
    width: 90%;
    height: auto;
    position: relative;
    top: 0;
    left: 0;
}

.hero-btn {
    position: absolute;
    top: 75.7%;
    left: 47.4%;
    transform: translate(-50%, -50%);
    padding: 0.75rem 1.75rem;
    background-color: #344EAD;
    color: #F7F2EC;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.375rem;
    z-index: 2;
}

.hero-btn:hover {
    background-color: #2d4294;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10%;
    background-color: #344EAD;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero-image {
        position: relative;
        display: block;
    }

    .hero-btn {
        position: absolute;
        z-index: 10;
        left: 53%;
        top: 55%;
        transform: translate(-50%, -50%);
    }
}

/* =========================== CONTACT SECTION =========================== */
.contact-section {
    width: 100%;
    padding: 4rem 1.25rem; /* паддинг по бокам для безопасности */
    background-color: #F2F1DF;
    color: #091F5B;
    box-sizing: border-box;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem; /* немного уменьшил, чтобы не было вылезания */
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.contact-text-block,
.contact-form {
    flex: 1 1 100%; /* по умолчанию 100% */
    max-width: 100%;
    box-sizing: border-box;
}

.contact-text-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.contact-info li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #091F5B;
    text-decoration: none;
    font-weight: 600;
}

.contact-social-icons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.contact-social-icons a img {
    width: 32px;
    height: 32px;
}

/* Форма */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.375rem;
    border: 2px solid #344EAD;
    font-size: 1rem;
    font-family: "Poppins", sans-serif;
    outline: none;
    color: #091F5B;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #091F5B;
}

.contact-submit {
    padding: 0.875rem 1rem;
    background-color: #344EAD;
    color: #F7F2EC;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s;
}

.contact-submit:hover {
    background-color: #2d4294;
}

/* Десктоп — разделение блоков */
@media (min-width: 768px) {
    .contact-text-block {
        flex: 1 1 40%;
        max-width: 40%;
    }

    .contact-form {
        flex: 1 1 55%;
        max-width: 55%;
    }

    .contact-social-icons a img {
        width: 32px;
        height: 32px;
    }
}

/* Мобильная версия */
@media (max-width: 767px) {
    .contact-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-text-block,
    .contact-form {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .contact-social-icons a img {
        width: 28px;
        height: 28px;
    }
}

