@font-face {
    font-family: 'Formular';
    src: url(../../fonts/Formular.ttf) format('ttf'), url(../../fonts/Formular.woff) format('woff'), url(../../fonts/Formular.eot) format('eot');
}

@font-face {
    font-family: 'DrukCyr';
    src: url(../../fonts/Druk-Medium-Web.ttf) format('ttf'), url(../../fonts/Druk-Medium-Web.woff) format('woff'), url(../../fonts/Druk-Medium-Web.eot) format('eot');
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0px;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 16px;
}

body {
    min-height: 100vh;
    height: 100%;
    position: relative;
    margin: 0;
    padding: 0 2.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    max-width: 100vw;
}

a {
    color: var(--Black, #0D0D0D);
}

a:-webkit-any-link {
    color: var(--Black, #0D0D0D);
}

a {
    text-decoration: underline;
}

.main-bkg {
    background-color: #0D0D0D;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
    overflow: hidden;
}

.main-bkg #video_content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45rem;
    object-fit: cover;
    z-index: -1;
}

.main-bkg:before {
    content: "";
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.00) 0%, #0D0D0D 100%);
    height: 45rem;
    display: block;
}

.home-page {
    position: relative;
    width: 100%;
}

.title-description {
    color: #FFF;
    font-size: 6rem;
    font-family: 'DrukCyr';
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    text-transform: uppercase;
    width: 67.875rem;
    margin-bottom: 5rem;
    margin-top: 21rem;
}

.home-page h1.title-description-text {
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

.cards-block {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex-shrink: 0;
    margin-bottom: 2.5rem;
}

.cards-block a {
    width: 100%;
}

.main-page-card {
    position: relative;
    border-radius: 1.25rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    background-color: #0D0D0D;
    overflow: hidden;
    width: 100%;
    min-height: 22.5rem;
    height: 22.5rem;
    cursor: pointer;
}

.card-block-mx {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(100% 100% at 0% 100%, #000 0%, rgba(0, 0, 0, 0.00) 100%);
    z-index: 1;
}

.main-page-card:hover .card-img {
    transform: scale(1.02);
}

.main-page-card:not(:last-child) {
    margin-right: 1.25rem;
}

.card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-text {
    position: absolute;
    color: #FFFFFF;
    font-size: 1.75rem;
    font-family: 'DrukCyr';
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    text-transform: uppercase;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 2;
}
.card-text span {
    font-weight: 500;
}

.card-button {
    position: absolute;
    padding: 0.875rem;
    border-radius: 0.5rem;
    color: #0D0D0D;
    background-color: #FFFFFF;
    text-align: center;
    font-size: 0.875rem;
    font-family: 'Formular';
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    text-transform: uppercase;
    right: 1.25rem;
    bottom: 1.25rem;
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 2;
}

.card-button:hover {
    background-color: #F22424;
    color: #FFFFFF;
}

.red-text {
    color: #F22424;
    transition: 0.3s ease;
}
.home-page .title-description .red-text {
    white-space: nowrap;
}

.hiring-block-title h3.title-h3 {
    color: var(--White, #FFF);
    font-family: 'Formular';
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 500;
    line-height: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    margin-top: 0;
    opacity: 0.4;
}

.hiring-block-vacancies {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 -2.5rem 5rem;
}

.hiring-block-vacancies a {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.15);
    width: 100%;
    transition: 0.3s ease;
    padding: 1.5rem 2.5rem;
}

.hiring-block-vacancies a:hover {
    padding-left: 3rem;
    color: #FFFFFF;
    background-color: #F22424;
}

.vacancy {
    color: #FFFFFF;
    cursor: pointer;
    flex: 1 0 0;
}

.vacancy h2.vacancy-title-h2 {
    font-size: 3rem;
    font-family: 'DrukCyr';
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    text-transform: uppercase;
    margin: 0;
}

.icon_city-txt {
    color: var(--White, #FFF);
    text-align: right;
    font-family: Formular;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    text-transform: uppercase;
}

.video-bottom-block {
    position: relative;
    border-radius: 1.25rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    background-color: #0D0D0D;
    overflow: hidden;
    width: 100%;
    height: 40rem;
    cursor: pointer;
    margin-bottom: 2.5rem;
}

.video-bottom-block-mx {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.video-bottom {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-bottom-block-logo {
    position: absolute;
    background: url(../../img/components/body/logo-to.svg) no-repeat;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32rem;
    height: 10rem;
    background-size: contain;
}

/*Video bottom block forward*/

.video-bottom-block-forward {
    position: absolute;
    background: var(--White, #FFF);
    bottom: 5rem;
    right: 5rem;
    width: 5rem;
    height: 5rem;
    transition: 0.3s ease;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    border-radius: 3rem;
}

.video-bottom-block-forward:hover {
    background: var(--Red, #F22424);
}

.video-bottom-block-forward .visible-part,
.video-bottom-block-forward .hidden-part {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 16px;
    height: 16px;
    transition: all .2s ease;
}

.video-bottom-block-forward:hover .visible-part {
    opacity: 0;
    transform: translateX(1rem);
}

.video-bottom-block-forward .hidden-part {
    transform: translateX(-1rem);
}

.video-bottom-block-forward .hidden-part {
    opacity: 0;
}

.video-bottom-block-forward:hover .hidden-part {
    opacity: 1;
    transform: translateX(0rem);
}

/*Scrollbar*/

* {
    scrollbar-color: rgba(242, 36, 36, 1) rgba(0, 0, 0, 0.3);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    height: .25rem;
    opacity: .1;
    width: .25rem;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(242, 36, 36, 1);
}

::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.3);
}

/*Adaptive*/

@media (max-width: 1740px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 1530px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 1280px) {
    html {
        font-size: 13px;
    }
}

@media (max-width: 1000px) {
    html {
        font-size: 12px;
    }

    .cards-block {
        flex-direction: column;
    }

    .main-page-card:not(:last-child) {
        margin-right: 0;
        margin-bottom: 1.25rem;
    }

    .title-description {
        width: 100%;
        font-size: 5rem;
    }

    .card-text {
        text-align: start;
    }

    .button-send-resume {
        margin-top: auto;
    }

    .footer-options {
        flex-direction: column;
    }

}

@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    body {
        padding: 0 1.25rem;
    }

    .vacancies-template {
        padding: 0;
    }

    .red-text {
        font-weight: 100;
    }

    .title-description {
        width: 100%;
        font-size: 2.5rem;
        font-weight: 100;
        margin-bottom: 1.25rem;
        margin-top: 18.5rem;
        text-align: left;
    }

    .info-block {
        width: 100%;
    }

    .main-page-card {
        min-height: auto;
        height: auto;
        aspect-ratio: 16/8;
    }

    .main-page-card .card-text {
        display: none;
    }

    .card-button {
        right: auto;
        left: 1.25rem;
        padding: 0.8125rem 1rem;
    }

    .hiring-block-vacancies {
        margin-bottom: 2.62rem;
    }

    .hiring-block-vacancies a {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem;
        padding: 1.25rem 2.5rem;
    }

    .vacancies-template .hiring-block-vacancies {
        margin-top: 2.5rem;
    }

    .vacancies-graph-text.white {
        text-align: start;
    }

    .vacancy h2.vacancy-title-h2 {
        font-size: 1.75rem;
        font-weight: 100;
    }

    .video-bottom-block {
        height: 30rem;
        margin-bottom: 3.5rem;
    }

    .video-bottom-block-logo {
        width: calc(100% - 2.5rem);
    }

    .video-bottom-block-forward {
        bottom: 1rem;
        left: 50%;
        transform: translate(-50%, -50%);
    }

}

@media (max-width: 360px) {
    .video-bottom-block {
        height: 22.5rem;
    }

    .video-bottom-block-logo {
        width: 16rem;
        height: 5rem;
        top: 44%;
    }
    .video-bottom-block-forward {
        bottom: 0;
    }

    .vacancy h2.vacancy-title-h2 {
        font-size: 1.5rem;
        font-weight: 500;
    }

    .title-description {
        font-size: 2rem;
        font-weight: 500;
        margin-bottom: 1.5rem;
    }

    .title-description .red-text {
        font-weight: 500;
    }

    .main-bkg #video_content {
        height: 30rem;
    }

    .main-bkg:before {
        height: 30rem;
    }

    .vacancies-template .hiring-block-vacancies {
        margin-top: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .cards-block .right-card .card-button{
        max-width: 7.1875rem;
    }
}

@media (min-width: 1900px) {
    .title-description {
        min-width: 66rem;
        width: 66rem;
    }
}

@media (min-width: 2180px) {
    html {
        font-size: 20px;
    }
}

@media (min-width: 2700px) {
    html {
        font-size: 22px;
    }
}

@media (min-width: 3140px) {
    html {
        font-size: 24px;
    }
}