@font-face {
  font-family: 'Bounded';
  src: url('/fonts/Bounded-Regular.woff2') format('woff2'),
       url('/fonts/Bounded-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bounded';
  src: url('/fonts/Bounded-ExtraLight.woff2') format('woff2'),
       url('/fonts/Bounded-EsxtraLight.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}


:root {
    --accent: #213FC5;
    --blue: #193153;
    --white: #fff;
    --gray: #C4C4C4;

}
html {
    height: 100%;
}
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}
body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--blue);
    font-family: 'Bounded';
    overflow: hidden;
}
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
input,
button,
:focus {
    outline: none;
    border: none;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}
::placeholder {
    color: var(--gray);
}


.main-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 90px;
    padding: 90px 120px;
}

.main-container form {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 720px;
    gap: 24px;
    z-index: 10;
}
.main-container .logo {
    width: 320px;
}

.gear {
    position: absolute;
    height: 100vh;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
}

.fos-title {
    color: var(--white);
    font-family: 'Bounded';
    font-weight: 400;
    font-size: 30px;
    margin-bottom: 40px;
}

.inputs-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 24px;
}

.custom-select,
.inputs-block input {
    display: flex;
    height: 59px;
    width: 100%;
    padding: 0 24px;
    border-radius: 16px;
    background-color: var(--white);
    color: var(--blue);

    font-size: 18px;
    font-family: 'Bounded';
    font-weight: 400;
}

.send-btn {
    height: 61px;
    width: 100%;
    border-radius: 50px;
    background-color: var(--accent);
    color: var(--white);

    font-size: 18px;
    font-family: 'Bounded';
    font-weight: 400;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}
.send-btn:hover {
    transform: translateY(-1px);
}
.send-btn:disabled,
.send-btn._loading {
    opacity: .65;
    cursor: wait;
    transform: none;
}
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.form-notice {
    display: none;
    padding: 14px 18px;
    border-radius: 14px;
    font-family: 'Bounded';
    font-size: 14px;
    line-height: 140%;
}
.form-notice._visible {
    display: block;
}
.form-notice._success {
    background: rgba(63, 185, 80, .16);
    color: #6ee787;
}
.form-notice._error {
    background: rgba(248, 81, 73, .16);
    color: #ff8f89;
}

.agre-text, .agre-text * {
    font-family: 'Bounded';
    font-weight: 300;
    font-size: 14px;
    line-height: 150%;
    color: var(--gray);
}


.custom-select {
    position: relative;
    width: 100%;
}
.custom-select__button {
    font-family: 'Bounded';
    font-weight: 400;
    font-size: 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    color: var(--gray);
    width: 100%;
}
.custom-select__button::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(45deg);
    transform-origin: center center;
    transition: transform .2s ease;
}
.custom-select._active .custom-select__button::after {
    transform: rotate(-135deg);
}
.custom-select__list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 16px;
    list-style: none;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    z-index: 100;
}
.custom-select._active .custom-select__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.custom-select__list li {
    padding: 16px 24px;
    cursor: pointer;
    transition: background-color .15s ease;
}
.custom-select__list li:hover {
    background: color-mix(in srgb, var(--gray) 30%, transparent);
}
.custom-select__list li._active {
    background: var(--accent);
    color: var(--white);
}


@media(max-width: 1720px) {
    .gear {
        right: -250px;
    }
}
@media(max-width: 1440px) {
    .main-container {
        padding: 90px;
    }
    .main-container form {
        width: 600px;
    }
    .gear {
        right: -500px;
    }
    .fos-title {
        font-size: 28px;
    }
}
@media(max-width: 1024px) {
    .main-container {
        padding: 64px;
        gap: 64px;
    }
    .fos-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    .main-container form {
        width: 450px;
    }
    .inputs-block {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .send-btn,
    .custom-select__button,
    .custom-select,
    .inputs-block input {
        height: 48px;
        font-size: 16px;
    }
    .gear {
        right: -500px;
    }
    .send-btn {
        height: 54px;
    }
}
@media(max-width: 550px) {
    body {
        overflow-y: auto;
    }

    .main-container {
        padding: 48px;
        gap: 48px;
    }
    .main-container .logo {
        width: 250px;
    }
    .main-container form {
        width: 100%;
    }
    .fos-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .send-btn,
    .custom-select__button,
    .custom-select,
    .inputs-block input {
        font-size: 14px;
    }
    .agre-text {
        font-size: 12px;
    }
}