@import "variables.css";
@import "fonts.css";

* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

p {
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
    letter-spacing: 1px;
    color: var(--white);
}

a:hover {
    text-shadow: 0 0 4px #448FFF;
    color: var(--white);
    text-decoration: none;
}

main {
    position: relative;
}

.hidden {
    display: none;
}

/* body */
body {
    font-family: "Commissioner", sans-serif;
    color: var(--white);
    background: var(--secondary);
}

@media screen and (min-width: 768px) {
    body {
        background: var(--secondary);
    }
}

/* custom alert */
.custom-alert {
    font-size: 14px;
    line-height: 24px;
    padding: 2px 0;
    text-align: center;
}

.custom-alert--danger {
    background: #F9F9F9;
    color: var(--red);
}

/* overlay */
.overlay {
    display: none;
}

.overlay.active {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 15;
    background: rgba(4, 20, 37, 0.8);
    backdrop-filter: blur(4px);
    top: 0;
    left: 0;
}

/* input */
.input {
    background: var(--primary);
    border-radius: 0;
    border: 1px solid rgba(68, 143, 255, 0.6);
    color: var(--white);
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    height: initial;
    resize: none;
    transition: none;
}

.input--error {
    border: 1px solid var(--red);
    color: var(--red);
}

.input:focus {
    border: 1px solid rgba(68, 143, 255, 1);
    background: var(--primary);
    color: var(--white);
    box-shadow: none;
}

.merged-inputs {
    display: flex;
    justify-content: space-between;
}

.input--short {
    flex-basis: 49%;
}

.input__password-wrapper {
    position: relative;
}

.input__password_eye {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 70%;
    background: url("../img/opened-eye.svg") no-repeat center;
}

.input__password_eye.active {
    background: url("../img/closed-eye.svg") no-repeat center;
}

@media screen and (min-width: 980px) {
    .input {
        font-size: 20px;
        line-height: 24px;
        height: 52px;
    }
}

/* checkbox */
.checkbox {
    font-size: 12px;
    line-height: 16px;
    cursor: pointer;
}

.checkbox__label {
    display: flex;
    white-space: nowrap;
    align-items: center;
}

.checkbox__label--wrap {
    white-space: normal;
}

.checkbox__exact {
    display: none;
}

.checkbox__fake {
    background: var(--primary);
    height: 20px;
    width: 20px;
    margin-right: 8px;
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid rgba(68, 143, 255, 0.6);
}

.checkbox__exact:checked + .checkbox__fake {
    height: 20px;
    width: 20px;
    position: relative;
    border: 1px solid var(--blue);
}

.checkbox__exact:checked + .checkbox__fake::after {
    position: absolute;
    content: '';
    display: block;
    background: var(--blue);
    width: 12px;
    height: 12px;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox--big {
    font-size: 14px;
    line-height: 20px;
}

.checkbox--big .checkbox__fake {
    height: 40px;
    width: 40px;
    margin-right: 16px;
}

.checkbox--big .checkbox__exact:checked + .checkbox__fake {
    border: 1px solid var(--blue);
    height: 40px;
    width: 40px;
}

.checkbox--big .checkbox__exact:checked + .checkbox__fake::after {
    width: 20px;
    height: 20px;
    background: var(--blue);
}

/* form */
.form__container {
    margin-bottom: 10px;
    flex-grow: 1;
}

.form__container--short {
    width: 49%;
    max-width: 49%;
}

.form__merged-inputs {
    display: flex;
    justify-content: space-between;
}

.form__wrapper {
    max-width: 350px;
    margin: 0 auto;
}

@media screen and (min-width: 980px) {
    .form__container {
        margin-bottom: 18px;
    }
}

@media screen and (min-width: 1440px) {
    .form__wrapper {
        max-width: 476px;
    }
}

/* popup */
.popup {
    background: var(--secondary);
    padding: 8px 16px;
    position: relative;
}

.popup__title {
    font-size: 20px;
    line-height: 24px;
    text-align: center;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 0 8px #448FFF, 0 0 4px #448FFF, 0 0 2px #448FFF;
    margin-bottom: 14px;
    font-weight: 500;
    position: relative;
}

.popup__close-btn {
    position: absolute;
    width: 28px;
    height: 28px;
    right: 17px;
    top: 6px;
    background: url("../img/close.svg") no-repeat center;
    z-index: 1;
    cursor: pointer;
}

.modal-dialog {
    margin: 0;
}

@media screen and (min-width: 576px) {
    .modal-dialog {
        margin: 100px auto;
    }

    .popup {
        box-shadow: 0 0 16px #448fff, 0 0 8px #448fff, 0 0 4px #448fff;
        border: 2px solid var(--white);
        border-radius: 0;
        padding: 32px;
    }

    .popup__title {
        position: absolute;
        top: -59px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 36px;
        line-height: 44px;
        font-weight: 600;
    }

    .popup__close-btn {
        right: -21px;
        top: -48px;
    }
}

@media screen and (min-width: 980px) {
    .popup__title {
        font-size: 36px;
        font-weight: 600;
    }
}

/* custom accordion */
.custom-accordion__button {
    background: var(--blue);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--blue);
    color: var(--white);
    border-radius: 0;
    outline: none;
    padding: 8px 16px;
    font-weight: 500;
    border: none;
    font-size: 20px;
    line-height: 24px;
}

.custom-accordion__button.collapsed {
    background: var(--primary);
}

.custom-accordion__button-angle {
    transition: all .25s ease-in-out;
    filter: drop-shadow(0 0 8px #448FFF) drop-shadow(0 0 4px #448FFF) drop-shadow(0 0 2px #448FFF);
    transform: rotate(180deg);
}

.custom-accordion__button.collapsed .custom-accordion__button-angle {
    transform: rotate(0);
}

.custom-accordion__button:focus {
    outline: none;
}

.custom-accordion__content {
    background: var(--primary);
    color: var(--white);
    letter-spacing: 1px;
    font-size: 16px;
    line-height: 130%;
    padding: 16px;
}

.custom-accordion__item {
    border: 1px solid var(--blue);
}

.custom-accordion__item:not(:last-child) {
    border-bottom: none;
}

@media screen and (min-width: 980px) {
    .custom-accordion__button {
        padding: 16px 32px;
        font-size: 22px;
        line-height: 30px;
    }

    .custom-accordion__content {
        padding: 32px;
        font-size: 20px;
        line-height: 28px;
    }
}

/* popover */
.custom-popover {
    width: 100%;
    bottom: 0;
    left: 0;
    background: var(--secondary);
    position: fixed;
    z-index: 100;
    display: none;
    padding: 16px;
}

.custom-popover.active {
    display: flex;
}

.custom-popover__close-btn {
    position: absolute;
    right: 15px;
    top: -40px;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.custom-popover__title {
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 24px;
    text-shadow: 0 0 4px #448FFF;
    letter-spacing: 1px;
    text-align: center;
}

/* contacts popover */
.contacts-popover {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.contacts-popover__socials {
    display: flex;
}

.contacts-popover__social-item {
    margin: 0 16px;
}

.contacts-popover__contacts {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.contacts-popover__contact {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.contacts-popover__contact-icon {
    margin-right: 8px;
}

/* login popover */
.login-popover {
    flex-direction: column;
}

/* wrapper */
.wrapper {
    padding: 0 12px;
}

@media screen and (min-width: 576px) {
    .wrapper {
        padding: 0 24px;
    }
}

@media screen and (min-width: 768px) {
    .wrapper {
        padding: 0;
        max-width: 723px;
        margin: 0 auto;
    }
}

@media screen and (min-width: 980px) {
    .wrapper {
        max-width: 936px;
    }
}

@media screen and (min-width: 1440px) {
    .wrapper {
        max-width: 1110px;
    }
}

/* section title */
.section-title {
    position: relative;
    font-size: 22px;
    line-height: 26px;
    font-weight: 700;
    text-shadow: 0 0 8px #448FFF, 0 0 4px #448FFF, 0 0 2px #448FFF;
    color: var(--white);
    padding-bottom: 15px;
    padding-left: 28px;
    z-index: 1;
    text-transform: uppercase;
}

.section-title::after {
    position: absolute;
    content: '';
    display: block;
    height: 12px;
    width: 340px;
    left: 0;
    bottom: 5px;
    background: url("../img/title-line.svg") no-repeat left;
    background-size: contain;
    filter: drop-shadow(0px 0px 8px #448FFF) drop-shadow(0px 0px 4px #448FFF) drop-shadow(0px 0px 2px #448FFF);
    pointer-events: none;
    z-index: -1;
}

@media screen and (min-width: 768px) {
    .section-title {
        font-size: 48px;
        line-height: 58px;
        padding-left: 0;
    }

    .section-title::after {
        background: url("../img/title-line-desktop.svg") no-repeat left;
        height: 40px;
        width: 1110px;
        left: -90px;
        bottom: -10px;
        background-size: contain;
    }
}

@media screen and (min-width: 1440px) {
    .section-title {
        padding-left: 90px;
    }

    .section-title::after {
        left: 0;
    }
}

/* simple button */
.simple-button {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    border: 2px solid var(--white);
    height: 42px;
    padding: 0 24px;
    color: var(--white);
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
}

.simple-button:hover {
    filter: drop-shadow(0px 0px 4px #448FFF);
}

.simple-button:active {
    background: var(--blue);
}

.simple-button:active,
.simple-button:focus {
    outline: none;
}

/* button */
.button {
    border-radius: 8px;
    border: 1px solid #FFFFFF;
    background: var(--primary);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 60px;
    color: var(--white);
    text-transform: uppercase;
    position: relative;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    margin: 0 auto;
    outline: none;
    cursor: pointer;
}

.button::before,
.button::after {
    position: absolute;
    content: '';
    display: block;
    width: 16px;
    height: 29px;
    background-size: 100%;
}

.button::before {
    background: url("../img/mech-decoration.svg") no-repeat center;
    left: -13px;
    top: 50%;
    transform: translateY(-50%);
}

.button::after {
    background: url("../img/mech-decoration.svg") no-repeat center;
    right: -13px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
}

.button:focus {
    outline: none;
}

.button:hover {
    box-shadow: 0 0 8px #448FFF, 0 0 4px #448FFF, 0 0 2px #448FFF;
}

.button:active,
.button.active {
    background: var(--blue);
    outline: none;
}

@media screen and (min-width: 768px) {
    .button {
        height: 60px;
        font-size: 18px;
        line-height: 22px;
        padding: 0 80px;
    }

    .button::before,
    .button::after {
        width: 24px;
        height: 43px;
        background-size: 100%;
    }
}

/* burger menu */
.burger-menu {
    background: var(--secondary);
    width: 280px;
    padding: 32px;
}

.burger-menu__links {
    display: flex;
    flex-direction: column;
    margin-bottom: 64px;
}

.burger-menu__link:not(:last-child) {
    margin-bottom: 24px;
}

.burger-menu__button {
    width: 100%;
}

.burger-menu__button:not(:last-child) {
    margin-bottom: 24px;
}

.burger-menu__link {
    color: var(--white);
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
}

.burger-menu__link:hover {
    filter: drop-shadow(0px 0px 2px #448FFF);
}

/* burger menu button */
.burger {
    height: 25px;
    width: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    outline: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.burger__line {
    width: 100%;
    height: 5px;
    background: var(--white);
    flex-grow: 0;
    flex-shrink: 0;
}

.burger:active,
.burger:hover,
.burger:focus {
    outline: none;
}

/* tabs */
.tabs {
    border-radius: 8px;
    border: 1px solid var(--white);
    filter: drop-shadow(0px 0px 4px #448FFF);
    margin: 0 8px;
    position: relative;
}

.tabs__wrapper {
    border-radius: inherit;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tabs::before,
.tabs::after {
    position: absolute;
    content: '';
    display: block;
    width: 18px;
    height: 29px;
}

.tabs::before {
    left: -13px;
    top: 50%;
    transform: translateY(-50%);
    background: url("../img/mech-decoration.svg") no-repeat center;
}

.tabs::after {
    right: -13px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    background: url("../img/mech-decoration.svg") no-repeat center;
}

.tabs__tab {
    flex-basis: 0;
    flex-shrink: 0;
    flex-grow: 1;
    border: none;
    background: var(--primary);
    height: 40px;
    color: var(--gray-medium);
    font-size: 14px;
    line-height: 17px;
    padding: 0;
}

.tabs__tab.active {
    background: var(--blue);
    color: var(--white);
}

.tabs__tab:active,
.tabs__tab:focus {
    outline: none;
}

@media screen and (min-width: 980px) {
    .tabs {
        border: none;
        filter: none;
    }

    .tabs__wrapper {
        justify-content: center;
        padding: 8px 0;
    }

    .tabs::before,
    .tabs::after {
        display: none;
    }

    .tabs__tab {
        flex-basis: 202px;
        flex-grow: 0;
        border-radius: inherit;
        font-size: 18px;
        line-height: 22px;
        height: 60px;
        border: 1px solid var(--white);
        position: relative;
        margin: 0 55px;
    }

    .tabs__tab::after,
    .tabs__tab::before {
        position: absolute;
        content: '';
        display: block;
        width: 24px;
        height: 43px;
        top: 50%;
        background: url("../img/mech-decoration.svg") no-repeat center;
        background-size: cover;
    }

    .tabs__tab::before {
        transform: translateY(-50%);
        left: -18px;
    }

    .tabs__tab::after {
        transform: translateY(-50%) rotate(180deg);
        right: -18px;
    }

    .tabs__tab.active {
        filter: drop-shadow(0px 0px 4px #448FFF);
    }
}

/* header */
.header {
    background: rgba(4, 20, 37, 0.8);
    height: 50px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header__logo {
    width: 100px;
}

.header__nav {
    display: none;
}

.header__buttons {
    display: none;
}

.header__contacts {
    display: none;
}

.header__burger-menu {
    position: absolute;
    right: 0;
    top: 100%;
    display: none;
}

.header__burger-menu.active {
    display: block;
}

@media screen and (min-width: 980px) {
    .header {
        background: transparent;
        height: 90px;
        position: relative;
        margin-bottom: -90px;
    }

    .header__logo {
        width: 165px;
    }

    .header__nav {
        display: flex;
        align-items: center;
    }

    .header__burger-menu {
        display: none;
    }

    .header__nav-item {
        text-decoration: none;
        color: var(--white);
        font-size: 14px;
        line-height: 18px;
        font-weight: 600;
        letter-spacing: 1px;
        margin: 0 16px;
        white-space: nowrap;
        position: relative;
    }

    .header__burger {
        display: none;
    }

    .header__buttons {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header__button:not(:last-child) {
        margin-right: 12px;
    }

    .header__button {
        white-space: nowrap;
    }

    .header__contacts {
        display: none;
        position: absolute;
        background: var(--primary);
        border: 1px solid var(--white);
        box-shadow: 0 0 8px #448FFF, 0 0 4px #448FFF, 0 0 2px #448FFF;
        flex-direction: column;
        padding: 16px;
        top: -17px;
        left: -17px;
    }

    .header__contacts.active {
        display: flex;
    }

    .header__contacts__title {
        text-decoration: none;
        color: var(--white);
        font-size: 14px;
        line-height: 18px;
        font-weight: 600;
        letter-spacing: 1px;
        margin-bottom: 8px  ;
    }

    .header__contacts__contacts {
        display: flex;
        flex-direction: column;
        margin-bottom: 8px;
    }

    .header__contacts__contact {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
    }

    .header__contacts__contact-icon {
        margin-right: 8px;
    }

    .header__contacts__socials {
        display: flex;
    }

    .header__contacts__social-item {
        margin-right: 8px;
    }
}

.header--not-sticky {
    position: relative;
    margin-bottom: initial;
    background: var(--primary);
}

/* welcome-section */
.welcome-section {
    padding: 85px 0 30px;
    background-image: url("../img/welcome-section-bg.png");
    background-position: top center;
    background-repeat: no-repeat;
}

.welcome-section__title {
    text-align: center;
    font-size: 30px;
    line-height: 37px;
    font-weight: 700;
    text-shadow: 0 0 9.47553px #448FFF, 0 0 4.73777px #448FFF, 0 0 2.36888px #448FFF;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.welcome-section__sub-title {
    text-align: center;
    font-size: 20px;
    line-height: 25px;
    font-weight: 400;
    text-shadow: 0 0 9.47553px #448FFF, 0 0 4.73777px #448FFF, 0 0 2.36888px #448FFF;
    color: var(--white);
}

.welcome-section__advantages {
    margin-top: 32px;
}

@media screen and (min-width: 768px) {
    .welcome-section {
        background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 100%), url("../img/welcome-section-bg-desktop.png");
        background-repeat: no-repeat;
        background-position: top center;
        background-size: 150%;
    }

    .welcome-section__title-container {
        padding: 20px 40% 0 0;
        position: relative;
    }

    .welcome-section__title-container::after {
        position: absolute;
        display: block;
        content: '';
        width: 270px;
        height: 270px;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        background: url("../img/globe.png") no-repeat right;
        pointer-events: none;
        animation-name: glow;
        animation-duration: 2s;
        animation-iteration-count: infinite;
        background-size: contain;
    }

    .welcome-section__title {
        text-align: left;
    }

    .welcome-section__sub-title {
        text-align: left;
    }
}

@media screen and (min-width: 980px) {
    .welcome-section {
        padding: 70px 0 30px;
        overflow: hidden;
        position: relative;
    }

    .welcome-section__title {
        font-size: 52px;
        line-height: 64px;
        margin-bottom: 48px;
    }

    .welcome-section__sub-title {
        font-size: 36px;
        line-height: 44px;
    }

    .welcome-section__title-container {
        padding: 50px 25% 0 0;
    }

    .welcome-section__title-container::after {
        width: 420px;
        height: 420px;
        right: -135px;
        top: 55%;
    }

    .welcome-section__advantages {
        margin-top: 48px;
    }
}

@media screen and (min-width: 1440px) {
    .welcome-section__title-container {
        padding: 50px 38% 0 0;
    }

    .welcome-section__title-container::after {
        right: -18px;
        top: 66%;
        width: 455px;
        height: 458px;
    }

    .welcome-section__advantages {
        margin-top: 120px;
    }
}

/* advantages block */
.advantages {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 10px;
    column-gap: 20px;
}

.advantages__item {
    border: 1px solid var(--white);
    border-radius: 10px;
    box-shadow: 0 0 10.3029px #448FFF, 0 0 5.15143px #448FFF, 0 0 2.57572px #448FFF;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(3, 15, 28, 0.8);
}

.advantages__item-icon {
    filter: drop-shadow(0px 0px 5.15143px #448FFF) drop-shadow(0px 0px 2.57572px #448FFF);
    margin-bottom: 12px;
}

.advantages__item-text {
    text-align: center;
    font-size: 9px;
    line-height: 12px;
    color: var(--white);
    text-shadow: 0 0 10.3029px #448FFF, 0 0 5.15143px #448FFF, 0 0 2.57572px #448FFF;
    font-weight: 600;
    letter-spacing: 1px;
}

@media screen and (min-width: 576px) {
    .advantages__item {
        height: 172px;
    }

    .advantages__item-icon {
        width: 68px;
        margin-bottom: 24px;
    }

    .advantages__item-text {
        font-size: 14px;
        line-height: 20px;
    }
}

@media screen and (min-width: 768px) {
    .advantages {
        grid-template-columns: repeat(4, 1fr);
    }

    .advantages__item {
        height: 112px;
    }

    .advantages__item-icon {
        width: 48px;
        margin-bottom: 8px;
    }

    .advantages__item-text {
        font-size: 9px;
        line-height: 12px;
    }
}

@media screen and (min-width: 980px) {
    .advantages {
        position: relative;
        z-index: 2;
    }

    .advantages__item {
        height: 140px;
    }

    .advantages__item-text {
        font-size: 12px;
        line-height: 16px;
    }

    .advantages__item-icon {
        height: 47px;
        width: 56px;
    }
}

@media screen and (min-width: 1440px) {
    .advantages__item {
        height: 172px;
    }

    .advantages__item-icon {
        width: 68px;
        height: 57px;
        margin-bottom: 20px;
    }

    .advantages__item-text {
        font-size: 14px;
        line-height: 20px;
    }
}

/* slider section */
.slider-section {
    background: var(--secondary) url("../img/slider-section-bg.png") no-repeat top;
    padding: 200px 0 0;
    margin-top: -200px;
    border-top: 2px solid rgb(118 124 175 / 16%);
    background-size: cover;
    overflow: hidden;
}

.slider-section__title {
    margin-bottom: 24px;
}

.slider-section__title:before {
    display: block;
    content: " ";
    margin-top: -75px;
    height: 75px;
    visibility: hidden;
    pointer-events: none;
}

.slider-section__tabs {
    margin-bottom: 48px;
}

.slider-section__slider-wrapper {
    padding: 0;
}

@media screen and (min-width: 768px) {
    .slider-section {
        margin-top: -100px;
        padding: 100px 0 0;
    }

    .slider-section__title {
        margin-bottom: 48px;
    }

    .slider-section__slider-wrapper {
        overflow: hidden;
    }
}

@media screen and (min-width: 980px) {
    .slider-section {
        background: url("../img/commissions-section-bg-tablet.png") no-repeat bottom;
        padding: 100px 0 30px;
        border: none;
        position: relative;
        z-index: 1;
    }

    .slider-section__title {
        margin-bottom: 40px;
    }

    .slider-section__title:before {
        display: none;
    }

    .slider-section__slider-wrapper {
        max-width: 900px;
    }
}

@media screen and (min-width: 1440px) {
    .slider-section {
        background: url("../img/commissions-section-bg-desktop.png") center;
        background-size: cover;
        border: none;
        margin-top: -150px;
        padding: 195px 0 30px;
    }

    .slider-section__title {
        margin-bottom: 48px;
    }

    .slider-section__slider-wrapper {
        max-width: 1110px;
    }
}

/* main slider */
.main-slider {
    position: relative;
    padding-bottom: 32px;
}

.main-slider__slide {
    width: 100%;
    padding: 0 12px;
}

.main-slider__pagination {
    position: absolute;
}

.main-slider__pagination-bullet {
    height: 20px;
    width: 20px;
    border: 1px solid var(--blue);
    background: var(--primary);
    display: inline-block;
    border-radius: 50%;
    margin: 0 10px;
    position: relative;
}

.main-slider__pagination-bullet--active::after {
    position: absolute;
    content: '';
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
}

.main-slider__prev,
.main-slider__next {
    display: none;
}

@media screen and (min-width: 980px) {
    .main-slider {
        padding-bottom: 60px;
    }
}

@media screen and (min-width: 1440px) {
    .main-slider__prev,
    .main-slider__next {
        display: block;
        top: 200px;
    }

    .main-slider__next {
        z-index: 2;
    }

    .main-slider__slide {
        padding: 0 104px;
    }
}

/* commissions */
.commissions__item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.commissions__item-image {
    margin: 20px 20px 0 0;
}

.commissions__item-title {
    font-size: 34px;
    line-height: 42px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.commissions__item-text {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 1px;
}

@media screen and (min-width: 576px) {
    .commissions__item {
        margin-bottom: 48px;
    }
}

@media screen and (min-width: 980px) {
    .commissions__item-image {
        width: 200px;
        height: 80px;
        margin-right: 70px;
    }

    .commissions__item-title {
        font-size: 36px;
        line-height: 44px;
        margin-bottom: 24px;
    }

    .commissions__item-text {
        font-size: 20px;
        line-height: 28px;
    }
}

/* conversion */
.conversion__img {
    margin: 0 auto 24px;
    display: block;
    max-width: 100%;
}

.conversion__text {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 36px;
}

.conversion__index {
    text-align: center;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
}

@media screen and (min-width: 576px) {
    .conversion__img {
        margin: 0 auto 32px;
    }
}

@media screen and (min-width: 768px) {
    .conversion__img {
        max-width: 550px;
    }
}

@media screen and (min-width: 980px) {
    .conversion__text {
        font-size: 20px;
        line-height: 28px;
    }

    .conversion__index {
        font-size: 36px;
        line-height: 44px;
    }

    .conversion__img {
        width: 100%;
        max-width: initial;
    }
}

/* payout method */
.payout-method {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--blue);
    background: var(--primary);
    width: 105px;
    height: 66px;
}

.payout-method__icon {
    max-width: 75%;
}

.payout-method__icon {
    width: 60%;
}

/* payouts methods */
.payouts-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.payouts-methods__method {
    margin: 0 6px 12px;
}

@media screen and (min-width: 980px) {
    .payouts-methods__method {
        margin: 0 12px;
    }
}

/* payouts */
.payouts {
    text-align: center;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 1px;
}

.payouts__text-block {
    width: 351px;
    margin: 0 auto 88px;
}

.payouts__methods {
    width: 351px;
    margin: 0 auto;
}

@media screen and (min-width: 576px) {
    .payouts__text-block {
        margin: 0 auto 50px;
    }
}

@media screen and (min-width: 980px) {
    .payouts__text-block {
        font-size: 36px;
        line-height: 44px;
        width: 100%;
        margin-bottom: 150px;
    }

    .payouts__methods {
        width: 100%;
    }

    .payouts-methods__method {
        width: 130px;
        height: 85px;
    }
}

/* brands section */
.brands-section {
    background: var(--primary);
    padding: 12px 0;
}

.brands-section__title {
    margin-bottom: 24px;
}

.brands-section__title:before {
    display: block;
    content: " ";
    margin-top: -285px;
    height: 285px;
    visibility: hidden;
    pointer-events: none;
}

.brands-section__wrapper {
    overflow: hidden;
}

.brands-section__projects-slider-wrapper {
    padding: 0;
}

@media screen and (min-width: 768px) {
    .brands-section {
        padding-top: 24px;
        overflow: hidden;
    }

    .brands-section__wrapper {
        overflow: initial;
    }

    .brands-section__title {
        margin-bottom: 42px;
    }
}

@media screen and (min-width: 980px) {
    .brands-section {
        margin-top: -100px;
        position: relative;
        padding-top: 150px;
        background: url("../img/brands-section-bg.png");
        background-size: auto;
        background-position: bottom;
        padding-bottom: 90px;
    }

    .brands-section__title:before {
        display: none;
    }
}

/* brands slider */
.brands-slider {
    margin-bottom: 24px;
}

.brands-slider__brand {
    filter: grayscale(1);
    background: var(--blue);
    height: 60px;
    width: 120px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
    border: none;
    user-select: none;
}

.brands-slider__brand:last-child {
    margin: 0 0 0 15px;
}

.brands-slider__brand:first-child {
    margin: 0 15px 0 0;
}

.brands-slider__brand.active {
    border: 1px solid var(--white);
    filter: drop-shadow(0px 0px 4px #448FFF) drop-shadow(0px 0px 2px #448FFF);
    box-shadow: inset 0 0 0 3px rgb(0 0 0 / 30%);
}

@media screen and (min-width: 768px) {
    .brands-slider__wrapper {
        justify-content: space-between;
    }
}

@media screen and (min-width: 980px) {
    .brands-slider {
        margin-bottom: 48px;
    }

    .brands-slider__wrapper {
        justify-content: center;
    }

    .brands-slider__brand {
        width: 210px;
        height: 110px;
        border-radius: 30px;
    }

    .brands-slider__brand img {
        width: 60%;
    }
}

/* project */
.project__title {
    font-size: 20px;
    line-height: 25px;
    font-weight: 500;
    margin-bottom: 16px;
}

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

.project__info-list {
    display: flex;
    flex-direction: column;
    padding: 0 8px;
    margin-bottom: 24px;
}

.project__info-item {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    line-height: 20px;
}

.project__info-item:not(:last-child) {
    margin-bottom: 8px;
}

.project__info-item-title {
    display: flex;
    align-items: center;
}

.project__info-item-title-text {
    font-weight: 400;
}

.project__info-item-icon {
    margin-right: 8px;
}

.project__info-item-value {
    font-weight: 600;
    color: var(--blue);
    padding-left: 29px;
}

.project__button {
    margin: 12px auto 24px;
}

@media screen and (min-width: 576px) {
    .project__info-list {
        max-height: 150px;
        flex-wrap: wrap;
    }

    .project__picture {
        width: 497px;
        margin: 0 auto;
    }
}

@media screen and (min-width: 980px) {
    .project__info-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .project__info-list {
        max-height: initial;
        flex-grow: 1;
    }

    .project__title {
        font-size: 36px;
        line-height: 44px;
        margin-bottom: 48px;
    }

    .project__info-item {
        font-size: 20px;
        line-height: 28px;
    }

    .project__info-item-title {
        flex-direction: row;
    }

    .project__picture {
        width: 460px;
        height: 330px;
    }
}

@media screen and (min-width: 1440px) {
    .project__picture {
        width: 618px;
        height: 444px;
    }
}

/* projects slider */
.projects-slider {
    overflow: hidden;
}

.projects-slider__project {
    padding: 0 12px;
}

@media screen and (min-width: 768px) {

}

/* blog section */
.blog-section {
    background: url("../img/blog-section-bg.png") bottom;
    background-size: cover;
    padding: 12px 0;
}

.blog-section__title {
    margin-bottom: 24px;
}

.blog-section__title:before {
    display: block;
    content: " ";
    margin-top: -285px;
    height: 285px;
    visibility: hidden;
    pointer-events: none;
}

.blog-section__wrapper {
    display: flex;
    flex-direction: column;
}

.blog-section__button {
    margin: 24px auto;
}

.blog-section__placeholder {
    padding: 50px 0;
    font-size: 20px;
    line-height: 24px;
    text-shadow: 0 0 8px #448FFF, 0 0 4px #448FFF, 0 0 2px #448FFF;
    text-align: center;
}

@media screen and (min-width: 576px) {
    .blog-section__button {
        margin: 32px auto;
    }
}

@media screen and (min-width: 768px) {
    .blog-section {
        padding: 24px 0;
        overflow: hidden;
    }

    .blog-section__title {
        margin-bottom: 48px;
    }
}

@media screen and (min-width: 980px) {
    .blog-section {
        margin-top: -100px;
        padding: 100px 0;
    }

    .blog-section__title:before {
        display: none;
    }
}

@media screen and (min-width: 1140px) {
    .blog-section__placeholder {
        padding: 200px 0;
    }
}

@media screen and (min-width: 1440px) {
    .blog-section {
        background-size: contain;
        background-repeat: repeat;
    }
}

/* news-list */
.news-list {
    display: flex;
    flex-direction: column;
}

.news-list__article:not(:last-child) {
    margin-bottom: 16px;
}

@media screen and (min-width: 980px) {
    .news-list {
        display: flex;
        justify-content: space-between;
        flex-direction: row;
    }

    .news-list__article {
        flex-basis: 32%;
    }

    .news-list__article:not(:last-child) {
        margin: 0;
    }
}

@media screen and (min-width: 768px) {
    .news-list--horizontal {
        flex-direction: column;
    }
}

@media screen and (min-width: 980px) {
    .news-list--horizontal .news-list__article {
        margin-bottom: 22px;
    }
}

/* news article */
.news-article {
    background: var(--primary);
    border: 1px solid var(--blue);
    padding: 16px;
}

.news-article__image {
    max-width: 100%;
    margin-bottom: 8px;
}

.news-article__publish-date {
    background: var(--blue);
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    display: inline-block;
    height: 18px;
    padding: 0 12px;
    margin-bottom: 16px;
}

.news-article__title {
    color: var(--blue);
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.news-article__text {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 1px;
    color: var(--white);
}

.news-article:hover {
    box-shadow: 0 0 8px #448FFF, 0 0 4px #448FFF;
}


@media screen and (min-width: 768px) {
    .news-article--wide {
        display: flex;
        padding: 32px;
    }

    .news-article--wide .news-article__image {
        width: 305px;
        margin-right: 32px;
        height: fit-content;
    }
}

/* publishers section */
.publishers-section {
    padding: 24px 0;
    overflow: hidden;
}

.publishers-section__content {
    margin-top: 250px;
    padding: 24px 16px;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    position: relative;
}

.publishers-section__image {
    position: absolute;
    top: -250px;
    left: 50%;
    transform: translate(-50%, 0);
    max-height: 250px;
}

.publishers-section__title-text {
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.publishers-section__text {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 1px;
}

.publishers-section__content-wrapper {
    padding: 0;
    max-width: initial;
}

.publishers-section__button {
    margin: 24px auto;
}

@media screen and (min-width: 576px) {
    .publishers-section__content {
        padding: 24px;
    }

    .publishers-section__title-text {
        margin-bottom: 32px;
    }
}

@media screen and (min-width: 980px) {
    .publishers-section {
        background: url("../img/publishers-bg-desktop.png");
        background-size: auto;
        background-position: bottom center;
        position: relative;
        margin-top: -116px;
        padding-top: 83px;
    }

    .publishers-section__image {
        display: none;
    }

    .publishers-section__content {
        margin-top: 0;
        background: none;
    }

    .publishers-section__content-wrapper {
        padding: 0;
        max-width: 936px;
        margin: 0 auto;
    }

    .publishers-section__title {
        margin-bottom: 40px;
    }

    .publishers-section__title-text {
        font-size: 36px;
        line-height: 44px;
        display: block;
        max-width: 60%;
    }

    .publishers-section__text {
        font-size: 20px;
        line-height: 28px;
        display: block;
        max-width: 44%;
        margin-bottom: 128px;
    }

    .publishers-section__button {
        margin: 0 auto 24px 32px;
    }
}

@media screen and (min-width: 1440px) {
    .publishers-section__content-wrapper {
        max-width: 1110px;
    }

    .publishers-section {
        padding-top: 150px;
    }
}

/* partners section */
.partners-section__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.partners-section__icon {
    margin: 0 6px 12px;
}

@media screen and (min-width: 980px) {
    .partners-section {
        padding: 42px 0;
    }

    .partners-section__list {
        justify-content: space-between;
    }
}

/* footer */
.footer {
    background: var(--primary);
    padding: 40px 0;
}

.footer__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__logo {
    width: 160px;
    margin-bottom: 24px;
}

.footer__logo-img {
    width: inherit;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 24px;
}

.footer__contact {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    font-size: 16px;
    line-height: 20px;
}

.footer__contact:not(:last-child) {
    margin-bottom: 8px;
}

.footer__contact-icon {
    margin-right: 8px;
}

.footer__socials-copyright {
    display: flex;
    flex-direction: column;
}

.footer__social-list {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.footer__social-list-item {
    flex-shrink: 0;
    flex-grow: 0;
    margin: 0 15px;
}

.footer__copyright {
    text-align: center;
}

@media screen and (min-width: 980px) {
    .footer__wrapper {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* social link */
.social-link {
    text-decoration: none;
    background: var(--secondary);
    border: 1px solid var(--white);
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    filter: drop-shadow(0px 0px 4px #448FFF);
}

.social-link:active {
    background: var(--blue);
}

/* registration popup */
.registration-popup__input {
    margin-bottom: 10px;
}

.registration-popup__input--short {
    flex-basis: 49%;
}

.registration-popup__merged-inputs {
    display: flex;
    justify-content: space-between;
}

.registration-popup__checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 0 16px;
}

.registration-popup__traffic-title {
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 0 8px #448FFF, 0 0 4px #448FFF, 0 0 2px #448FFF;
    margin-bottom: 16px;
    font-weight: 500;
    display: inline-block;
}

.registration-popup__captcha {
    margin: 8px 0;
}

.registration-popup__main-button {
    margin: 16px auto;
}

/* registration page */
.registration {
    padding: 24px 0;
    background: url("../img/blog-section-bg.png") repeat bottom;
    background-size: cover;
    background-repeat-y: no-repeat;
    overflow-x: hidden;
}

.registration__title {
    margin-bottom: 24px;
}

.registration__traffic-title {
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 0 8px #448FFF, 0 0 4px #448FFF, 0 0 2px #448FFF;
    margin-bottom: 8px;
    font-weight: 500;
    display: inline-block;
}

.registration__checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.registration__button {
    margin: 32px auto 0;
}

@media screen and (min-width: 768px) {
    .registration__title {
        margin-bottom: 48px;
    }
}

@media screen and (min-width: 2000px) {
    .registration {
        background-size: contain;
    }
}

/* auth popup */
.auth-popup__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
}

.auth-popup__auth-button {
    margin-bottom: 8px;
}

.auth-popup__restore-link {
    color: var(--blue);
    font-size: 14px;
    line-height: 20px;
}

/* restore page */
.restore-page {
    padding: 24px 0;
    background: url("../img/blog-section-bg.png") bottom;
    background-size: cover;
    overflow-x: hidden;
}

.restore-page__title {
    margin-bottom: 24px;
}

.restore-page__content {
    padding: 24px 0 128px;
}

.restore-page__button {
    margin: 24px auto 0;
}

@media screen and (min-width: 768px) {
    .restore-page__title {
        margin-bottom: 48px;
    }
}

@media screen and (min-width: 1140px) {
    .restore-page {
        background-size: contain;
        background-repeat-y: no-repeat;
    }
}

/* faq page */
.faq-page {
    padding: 24px 0;
    background: url("../img/blog-section-bg.png") repeat top;
    background-size: cover;
    background-repeat-y: no-repeat;
    overflow-x: hidden;
}

.faq-page__buttons {
    display: flex;
    flex-direction: column;
    position: relative;
    top: initial;
    bottom: initial;
    left: initial;
    z-index: initial;
    margin: 28px 0;
}

.faq-page__slider-button {
    max-width: 160px;
}

.faq-page__slider-button:not(:last-child) {
    margin-bottom: 16px;
}

@media screen and (min-width: 768px) {
    .faq-page__buttons {
        flex-direction: row;
        margin: 68px 0 42px;
    }

    .faq-page__slider-button {
        max-width: initial;
        flex-basis: 0;
        flex-grow: 1;
        padding: 0;
    }

    .faq-page__slider-button:not(:last-child).faq-page__slider-button:not(:first-child) {
        margin: 0 46px;
    }
}

/* news page */
.news-page {
    padding: 24px 0;
}

.news-page__title {
    margin-bottom: 24px;
}

@media screen and (min-width: 768px) {
    .news-page__title {
        margin-bottom: 48px;
    }
}

/* 404 */
.error-page__link {
    display: inline-block;
    margin: 100px auto;
    max-width: 100%;
}

.error-page__img {
    width: 100%;
}

/* login page */
.login-page {
    padding: 24px 0;
    background: url("../img/blog-section-bg.png") bottom;
    background-size: cover;
    overflow-x: hidden;
}

.login-page__title {
    margin-bottom: 24px;
}

.login-page__button {
    margin: 0 auto 16px;
}

.login-page__forgot-password-wrapper {
    text-align: center;
}

@media screen and (min-width: 768px) {
    .login-page__title {
        margin-bottom: 48px;
    }
}

@media screen and (min-width: 1440px) {
    .login-page {
        background-size: contain;
    }
}

/* text-page */
.text-page {
    padding: 24px 0;
    background: url("../img/blog-section-bg.png") bottom;
    background-size: cover;
    overflow-x: hidden;
}

.text-page__text {
    font-size: 20px;
    line-height: 24px;
    color: var(--white);
    text-shadow: 0 0 8px #448FFF, 0 0 4px #448FFF, 0 0 2px #448FFF;
}

.text-page__title {
    margin-bottom: 24px;
}

.text-page__content {
    padding: 24px 0 128px;
}

.text-page__button {
    margin: 16px auto 0;
}

@media screen and (min-width: 768px) {
    .text-page__title {
        margin-bottom: 48px;
    }
}

@media screen and (min-width: 980px) {
    .text-page__text {
        font-size: 26px;
        line-height: 34px;
    }
}
