* {
    --my-size: 50px;
}

body {
    margin: 0;
    /* cursor: url(./icons/cursor-main.svg), auto; */
}

/* a:hover {
    cursor: url(./icons/view-case.svg) 16 16, pointer;
} */

@font-face {
    font-family: 'PicNic';
    src: url(./PicNic.woff2) format('woff2');
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: #6F3DED; /* Цвет фона при выделении */
    color: white;             /* Цвет текста при выделении */
  }

.logo {
    font-family: 'PicNic';
    font-size: 18pt;

}

.container {
    display: flex;
    flex-direction: column;

}

.header {
    display: flex;
    flex-direction: row;
    background: #6F3DED;
    font-size: 18px;
    color: #FFFFFF;
    padding: 15px 50px;
    justify-content: space-between;
    position: sticky;
    z-index: 100;
    top: 0;
    align-items: center;
}

.right-container {
    display: flex;
    flex-direction: row-reverse;
    gap: 50px;

}

.header-mobile {
    display: none;

}

.header-link a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
    /* плавный переход цвета */
}

div {
    font-family: "Inclusive Sans";
    font-weight: 350;
    font-style: normal;
}

.opening {
    display: flex;
    flex-direction: row;
    width: 55%;
    font-size: 36px;
    line-height: 40px;
    padding: 100px 50px 50px 50px;
}

.selected-cases {
    font-size: 36px;
    padding: 50px 50px 25px 50px;
    scroll-margin-top: 2em; /* Остановит прокрутку на 50px выше блока */
}

.common-case {
    display: flex;
    flex-direction: column;
    font-size: 18px;
}

.common-case-links {
    display: flex;
    flex-direction: column;
    gap: 10px;

    img {
        width: 100%;
    }

    font-size: 18px;
}

.common-case-links a {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s ease;
    /* плавный переход цвета */
}

.common-case-links a:hover {
    color: #6F3DED
}

.multidisciplinary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0px 50px 50px 50px;

    img,
    video {
        width: 100%;
    }

    font-size: 18px;
}

.multidisciplinary-five-seven-columns {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.multidisciplinary-five-seven-columns img:nth-child(1) {
    width: calc((5 / 12 * 100%) - 5px);
    /* 5 колонок минус половина отступа */
    object-fit: cover;
    /* Сохраняем пропорции */
}

.multidisciplinary-five-seven-columns img:nth-child(2) {
    width: calc((7 / 12 * 100%) - 5px);
    /* 7 колонок минус половина отступа */
    object-fit: cover;
    /* Сохраняем пропорции */
}

.multidisciplinary-seven-five-columns {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.multidisciplinary-seven-five-columns img:nth-child(1) {
    width: calc((7 / 12 * 100%) - 5px);
    /* 7 колонок минус половина отступа */
    object-fit: cover;
    /* Сохраняем пропорции */
}

.multidisciplinary-seven-five-columns img:nth-child(2) {
    width: calc((5 / 12 * 100%) - 5px);
    /* 5 колонок минус половина отступа */
    object-fit: cover;
    /* Сохраняем пропорции */
}



.footer {
    background: #161616;
    padding: 25px 50px 50px 50px;
}

.get-in-touch {
    font-size: 18px;
    color: #FFFFFF;
    width: 33%;
    padding: 25px 0px;

}

.contact-links {
    width: 66%;
    font-size: 36px;
    padding: 0px 0px 80px 0px;
    color: #FFFFFF;
}

.contact-links a {
    text-decoration: none;
    color: #FFFFFF;
    transition: color 0.3s ease;
    /* плавный переход цвета */
}

.contact-links a:hover {
    color: #6F3DED
}

.bottom {
    display: flex;
    flex-direction: row;
    font-size: 18px;
    color: #ffffff;
    justify-content: space-between;
    align-items: flex-end;

}

.common-image {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0px 50px 25px 50px;

    pointer-events: auto;

    img,
    video {
        width: 100%;
    }
}

.common-image-description {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0px 50px 0px 50px;

    img,
    video {
        width: 100%;
    }
}

.end-margin {
    padding: 0px 50px 25px 50px;
}

.heading {
    display: flex;
    flex-direction: column;
    width: 60%;
    font-size: 36px;
    line-height: 40px;
    padding: 25px 50px 25px 50px;
}

.heading2 {
    display: flex;
    flex-direction: column;
    font-size: 24px;
    line-height: 28px;
    padding: 0px 50px 15px 50px;
}

.text,
.case-text,
.invisible {
    display: flex;
    flex-direction: column;
    width: 85%;
    font-size: 18px;
    line-height: 20px;
    padding: 0px 50px 50px 50px;
}

.smm-heading {
    display: flex;
    flex-direction: column;
    width: 40%;
    font-size: 36px;
    line-height: 40px;
    padding: 100px 50px 15px 50px;
    display: inline-block;
}

.smm-heading a {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s ease;
    /* плавный переход цвета */
}

.smm-text {
    display: flex;
    flex-direction: column;
    width: 40%;
    font-size: 18px;
    line-height: 20px;
    padding: 0px 50px 25px 50px;
}

.common-description {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0px;
}

@media (max-width: 768px) {

    /* Убираем кривые отступы */
    * {
        box-sizing: border-box;
        /* Учитываем padding внутри width */
    }

    .hidden-on-mobile,
    .header {
        display: none;
    }

    .opening {
        font-size: 16px;
        /* Меньший размер текста для мобильных */
        line-height: 20px;
        width: 90%;
        padding: 50px 15px 35px 15px;
    }

    .common-case {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 10px 0px;
        font-size: 16px;
        /* Меньший размер текста для мобильных */
        line-height: 22px;
        width: 100%;
    }


    .get-in-touch,
    .contact-links .bottom {
        width: 100%;
        /* Делаем элементы на всю ширину в мобильной версии */
        text-align: left;
        /* Выравниваем текст по левому краю, если нужно */
    }

    html,
    body {
        /* overflow-x: hidden; */
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;

    }

    .common-image {
        padding: 0px 15px 15px 15px;
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        line-height: 20px;
    }

    .common-image-description {
        padding: 0px 15px 15px 15px;
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        line-height: 20px;
    }

    .common-description {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 5px;
        padding: 15px 0px 30px 0px;
    }

    .smm-heading {
        display: flex;
        flex-direction: column;
        width: 100%;
        font-size: 36px;
        line-height: 40px;
        padding: 50px 15px 5px 15px;
        display: inline-block;

    }

    .heading,
    .heading2 {
        display: flex;
        flex-direction: column;
        padding: 15px 15px 5px 15px;
        /* Теперь слева и справа одинаково */
        /* margin: 0 auto; */
        width: 100%;
        max-width: 100%;
    }

    .case-text {
        display: flex;
        flex-direction: column;
        width: 100%;
        font-size: 18px;
        line-height: 20px;
        padding: 5px 15px 15px 15px;

    }

    .smm-text {
        display: flex;
        flex-direction: column;
        width: 100%;
        font-size: 18px;
        line-height: 20px;
        padding: 0px 15px 0px 15px;

    }

    .multidisciplinary {
        display: flex;
        flex-direction: column;
        gap: 10px;
        font-size: 16px;
        line-height: 20px;
        padding: 15px 15px 15px 15px;

        img,
        video {
            width: 100%;
        }

    }

    .multidisciplinary-five-seven-columns {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 6px;
    }

    .multidisciplinary-five-seven-columns img:nth-child(1) {
        width: calc((5 / 12 * 100%) - 3px);
        /* 5 колонок минус половина отступа */
        object-fit: cover;
        /* Сохраняем пропорции */
    }

    .multidisciplinary-five-seven-columns img:nth-child(2) {
        width: calc((7 / 12 * 100%) - 3px);
        /* 7 колонок минус половина отступа */
        object-fit: cover;
        /* Сохраняем пропорции */
    }

    .multidisciplinary-seven-five-columns {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 6px;
    }

    .multidisciplinary-seven-five-columns img:nth-child(1) {
        width: calc((7 / 12 * 100%) - 3px);
        /* 7 колонок минус половина отступа */
        object-fit: cover;
        /* Сохраняем пропорции */
    }

    .multidisciplinary-seven-five-columns img:nth-child(2) {
        width: calc((5 / 12 * 100%) - 3px);
        /* 5 колонок минус половина отступа */
        object-fit: cover;
        /* Сохраняем пропорции */
    }

    /* Делаем отступы одинаковыми */
    .selected-cases {
        display: flex;
        flex-direction: column;
        padding: 5px 15px;
        /* Теперь слева и справа одинаково */
        /* margin: 0 auto; */
        width: 100%;
        max-width: 100%;
    }

    .end-margin {
        padding: 0px 15px 25px 0px;
    }

    /* Убираем отступы у подвала */
    .footer {
        padding: 15px 15px 0px 15px;
        width: 100%;
    }

    .get-in-touch {
        font-size: 16px;
        line-height: 20px;
    }

    .contact-links {
        width: 85%;
        line-height: 50px;
    }

    .bottom {
        padding: 0px 0px 15px 0px;
        /* width: 100%; */
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .used-fonts {
        width: 45%;
        font-size: 12px;
    }

    .copyright {
        font-size: 12px;
    }

    .header-mobile {
        display: flex;
        flex-direction: row;
        background: #6F3DED;
        font-size: 18px;
        color: #FFFFFF;
        padding: 15px 25px 15px 15px;
        justify-content: space-between;
        position: sticky;
        top: 0;
        align-items: center;
    }

    .logo {
        font-size: 24px;
        /* Меньший размер текста для мобильных */
        line-height: 30px;
    }

    .right-container-mobile {
        display: none;
        /* Скрываем меню по умолчанию */
        flex-direction: column-reverse;
        /* Меню открывается сверху вниз */
        position: absolute;
        /* Помещаем меню поверх других элементов */
        top: 100%;
        /* Ставим меню ниже хедера */
        left: 0;
        width: 100%;
        background-color: #6F3DED;
        /* Цвет фона меню */
        padding: 30px 15px 30px 15px;
        gap: 5px;
        box-sizing: border-box;
    }

    .burger-menu {
        display: block;
        padding: 0px 0px px 0px;
        width: 24px;
        height: auto;
        cursor: pointer;
    }

    .header-links {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .header-links a {
        text-decoration: none;
        color: white;
        /* Цвет ссылок */
    }

    .right-container-mobile.show {
        display: flex;
    }
}

@media (min-width: 2000px) {
    /* Ограничиваем контент внутри контейнера */
    .container {
        max-width: 1800px;
        margin: 0 auto;
    }

    /* Хедер и футер растягиваются на всю ширину экрана
    .header,
    .footer {
        width: 100%;
        /* padding-left: 200px;
        padding-right: 200px; */
    } */

    /* Блоки с контентом выравниваем внутри */
    .common-image, .common-image-description,
    .multidisciplinary, .heading, .heading2, .text, .case-text {
        max-width: 1800px;
        margin: 0 auto;
        /* padding-left: 100px;
        padding-right: 100px; */
    }

    /* Равномерные отступы для блока с описанием */
    .common-description {
        width: 100%;
        padding-right: 100px;
    }

    /* Колонки с изображениями в мультимедиа-блоках */
    .multidisciplinary-five-seven-columns img:nth-child(1),
    .multidisciplinary-seven-five-columns img:nth-child(2) {
        width: calc(5 / 12 * 100%);
    }

    .multidisciplinary-five-seven-columns img:nth-child(2),
    .multidisciplinary-seven-five-columns img:nth-child(1) {
        width: calc(7 / 12 * 100%);
    }
