* {
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
}

@font-face {
    font-family: "Commissioner";
    src: url(../fonts/Commissioner-Regular.woff2);
}

@keyframes rotate-up-ver-bottom {
    0% {
        transform: rotateX(-90deg);
        transform-origin: 0 100%;
    }

    100% {
        transform: rotateX(0deg);
        transform-origin: 0 100%;
    }
}

.scale-up-ver-bottom {
    animation: rotate-up-ver-bottom 1s;
}

.scale-up-ver-top {
    animation: scale-up-ver-top 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}
@keyframes scale-up-ver-top {
    0% {
        transform: scaleY(0.4);
        transform-origin: 100% 0;
    }
    100% {
        transform: scaleY(1);
        transform-origin: 100% 0;
    }
}

.scale-down-ver-top {
    animation: scale-down-ver-top 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@keyframes scale-down-ver-top {
    0% {
        transform: scaleY(1);
        transform-origin: 100% 0;
    }
    100% {
        transform: scaleY(0);
        transform-origin: 100% 0;
    }
}

html,
body {
    position: relative;
    width: 100vw;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-color: var(--dark-gray) var(--dark-turquoise);
}

body {
    overflow-x: hidden;
    background-color: var(--highlight);
    font-family: "Commissioner", sans-serif;
}

html {
    scroll-behavior: smooth;
}

.global {
    width: 100vw;
    height: auto;
    overflow-x: hidden;
    transition: 0.6s;
    position: relative;
}

.first_img {
    width: 100vw;
    height: clamp(315px, 36vw, 535px);
    background-color: var(--dark-turquoise);
    display: flex;
    align-items: end;
    background-image: url("../img/ornam.svg");
    background-repeat: repeat-x;
    background-position: -35px 360px;
    background-size: 200px 300px;
    margin-bottom: 0px;
    position: relative;
}

@keyframes ani_left {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.first_img img {
    position: absolute;
    top: clamp(20px, 3.8vw, 55px);
    left: 50%;
    transform: translateX(100%);
    animation: ani_left 2s forwards;
    width: 530px;
    height: 257px;
}

.vrezka {
    height: 90px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
    background-color: var(--highlight);
}

.sect_bas {
    width: 100%;
    height: auto;
    padding-bottom: 133px;
    border-bottom: var(--turquoise-opacity05) 1px solid;
}

.div_granic {
    width: 100%;
    height: 100px;
    border-bottom: var(--turquoise-opacity05) 1px solid;
}

.marg_min {
    margin-top: 13px;
}

.marg_top60 {
    margin-top: 60px;
    padding-bottom: 13px;
}

.sect_bas-min {
    display: flex;
    gap: 10px;
    height: auto;
    align-items: center;
}

.min_text {
    font-size: 12px;
    color: var(--turquoise);
    text-transform: uppercase;
}

.hleb svg {
    margin-left: 10px;
    flex-shrink: 0;
}

.sect_bas_text {
    display: flex;
    margin-left: calc(157px + 11vw);
    max-width: 916px;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 60px;
    gap: 30px;
}

.sect_bas_text_syg {
    margin-left: calc(157px + 11vw);
    max-width: 916px;
    margin-top: 40px;
    margin-bottom: 60px;
    color: var(--turquoise);
    line-height: 144%;
}

.no_padding {
    padding-bottom: 0;
}

.no_border_bottom {
    border-style: none;
}

.sect_bas_text-item {
    width: 31.4vw;
    color: var(--turquoise);
    line-height: 144%;
}

.img_syg {
    width: 100%;
    object-fit: cover;
    margin-bottom: 100px;
}

h2 {
    font-size: 36px;
    color: var(--text-turquoise);
    padding-left: 157px;
    line-height: 44px;
    text-indent: 11vw;
    font-weight: 500;
    text-transform: uppercase;
}

.but_fak-flex {
    display: flex;
    gap: 20px;
    margin-top: 60px;
    border: var(--text-turquoise-opacity08);
    width: 100%;
    height: auto;
}

.marg_bot67 {
    margin-bottom: 67px;
}

.slide_but {
    width: clamp(100px, 23.7%, 294px);
    height: 65px;
    border: solid var(--text-turquoise-opacity08) 1px;
    color: var(--text-turquoise-opacity08);
    text-align: center;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s;
    padding: 1.3% 3.2%;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-transform: uppercase;
    color: var(--text-dark-turquoise);
    box-sizing: content-box;
}

.but_start {
    background-color: var(--dark-turquoise);
    color: var(--white);
}

.flflf {
    margin-left: calc(157px + 11vw);
    margin-top: 60px;
}

.tfl {
    line-height: 20px;
    text-transform: uppercase;
    color: var(--text-turquoise);
    height: 60px;
    width: 100%;
    border-bottom: 1px solid var(--turquoise-opacity05);
    display: flex;
    align-items: center;
}

.bor_top {
    border-top: 1px solid var(--turquoise-opacity05);
}

.but1 {
    display: none;
}
.but2 {
    display: flex;
    width: 100%;
    margin-left: calc(157px + 11vw);
    max-width: 916px;
    justify-content: center;
    margin-top: clamp(40px, 12vw, 180px);
    gap: 20px;
    height: auto;
}

.ruk_foto {
    width: clamp(clamp(280px, 28vw, 406px), 34.5vw, 497px);
    background: url("../img/ruk_commyn.webp");
    height: 340px;
    position: relative;
}

.ruk_foto img {
    display: block;
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(280px, 28vw, 406px);
    object-fit: contain;
    opacity: 0;
}

@keyframes ani {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.but2_text {
    width: clamp(280px, 33.6vw, 484px);
}

.but2_text-titul {
    line-height: 20px;
    text-transform: uppercase;
    color: var(--text-turquoise);
    margin-bottom: 20px;
}

.but2_text-item {
    line-height: 23px;
    color: var(--text-dark-turquoise);
}

@media only screen and (min-width: 1240px) {
    .but2 {
        margin-left: auto;
    }
}

@media (hover: hover) and (pointer: fine) {
    .mt_hov:hover {
        color: var(--dark-gray);
        transition: all 0.5s;
    }

    .slide_but:hover {
        background-color: var(--dark-gray);
        transition: all 0.5s;
        color: var(--white);
        cursor: pointer;
    }
}

@media only screen and (max-width: 1330px) {
    .but2 {
        margin-left: auto;
        margin-right: auto;
    }

    .tfl {
        height: 100px;
    }
}

@media only screen and (max-width: 900px) and (min-height: 500px) {
    .sect_bas_text {
        margin-left: 0;
        padding-left: 12.7vw;
        flex-direction: column;
        width: 87%;
    }

    .sect_bas_text_syg {
        margin-left: 0;
        width: 87%;
    }

    .sect_bas_text-item {
        width: 100%;
    }

    h2 {
        padding-left: 12.7vw;
    }
}

@media only screen and (max-width: 900px) {
    .but_fak-flex {
        flex-wrap: wrap;
        justify-content: center;
    }

    .flflf {
        margin-left: 0;
    }
}

@media only screen and (max-width: 900px) and (max-height: 500px) {
    .sect_bas_text_syg {
        margin-left: 0;
    }
}

@media only screen and (max-width: 850px) and (max-height: 499px) {
    .sect_bas_text {
        margin-left: 0;
        width: 100%;
    }

    .sect_bas_text-item {
        width: 45%;
    }
}

@media only screen and (max-width: 710px) {
    .sect_bas_text,
    .sect_bas_text_syg {
        padding-left: 0;
        width: 100%;
    }

    .flflf {
        min-width: 280px;
    }
}

@media only screen and (max-width: 600px) {
    .first_img img {
        width: clamp(280px, 90vw, 480px);
        height: auto;
    }

    h2 {
        width: 100%;
        padding-left: 0;
        text-indent: 0;
        text-align: center;
    }
}

@media only screen and (max-width: 515px) {
    .but_fak-flex {
        justify-content: space-between;
    }

    .slide_but {
        width: clamp(100px, 35%, 294px);
    }

    .but2 {
        flex-direction: column-reverse;
        align-items: center;
    }

    .but2_text {
        width: 100%;
    }

    .but2_text-titul {
        text-align: center;
    }

    .ruk_foto {
        width: 100%;
    }
}

@media only screen and (max-width: 448px) {
    h2 {
        font-size: 30px;
    }
}

@media only screen and (max-width: 390px) {
    h2 {
        font-size: 21px;
        line-height: 1.2;
    }

    .slide_but {
        font-size: 14px;
    }
}

@media only screen and (max-width: 360px) {
    .but_fak-flex {
        flex-direction: column;
        align-items: center;
    }

    .slide_but {
        width: clamp(100px, 80%, 294px);
    }

    .tfl {
        height: 130px;
        font-size: 14px;
    }
}

@media (prefers-color-scheme: dark) {
    .ruk_foto {
        background: url("../img/dark_ruk_commyn.svg");
    }
}

@media only screen and (min-width: 1900px) {
    .first_img {
        height: calc(535px * var(--scale));
        background-position: calc(-35px * var(--scale))
            calc(360px * var(--scale));
        background-size: calc(200px * var(--scale)) calc(300px * var(--scale));
    }

    .first_img img {
        width: calc(530px * var(--scale));
        height: calc(257px * var(--scale));
        top: calc(55px * var(--scale));
    }

    .vrezka {
        height: calc(90px * var(--scale));
    }

    .sect_bas_text {
        max-width: none;
        margin-top: calc(40px * var(--scale));
        gap: calc(30px * var(--scale));
    }

    .flflf {
        margin-top: calc(60px * var(--scale));
    }

    .tfl {
        height: calc(60px * var(--scale));
    }

    .but2 {
        max-width: calc(916px * var(--scale));
        margin-top: calc(180px * var(--scale));
        gap: calc(20px * var(--scale));
    }

    .but2_text {
        width: calc(484px * var(--scale));
    }

    .but2_text-titul {
        font-size: calc(16px * var(--scale));
        line-height: calc(20px * var(--scale));
        margin-bottom: calc(20px * var(--scale));
    }

    .but2_text-item {
        font-size: calc(16px * var(--scale));
        line-height: calc(23px * var(--scale));
    }

    .ruk_foto {
        width: calc(497px * var(--scale));
        height: calc(340px * var(--scale));
        background-size: cover;
    }

    .ruk_foto img {
        width: calc(406px * var(--scale));
    }
}
