@import url('fonts.css');

@keyframes Spin {
    to {
        transform: rotate(360deg);
    }
}

:root {
    font-size: 0.52083333333333336vw;
}

a {
    color: inherit;
    text-decoration: none;
}
b {
    font-weight: 900;
}
body {
    background-color: #41D97B;
    font-family: 'Museo Sans Cyrl', sans-serif;
    font-size: 1.6rem;
    line-height: 1;
}
body, h1, h2, p, ul {
    margin: 0;
}
li {
    padding: 0;
}
ul {
    list-style: none;
}
*, *::before, *::after {
    box-sizing: border-box;
}

.is-mobile {
    display: none;
}

.button {
    align-items: center;
    background-color: #41D97B;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 900;
    justify-content: center;
    height: 4rem;
    min-width: 14.2rem;
    padding: 0.6rem 1.2rem;
}
.button:disabled, .button-disabled {
    cursor: default;
    opacity: 0.75;
}
.button-primary {
    background-color: #7477DD;
}
.button-secondary {
    background-color: #dd7474;
}

.form {
    align-items: center;
    display: flex;
    flex-direction: column;
}
.form-button {
    margin-top: 3.6rem;
    width: 24rem;
}
.form-input {
    background-color: #FFFFFF;
    border: none;
    font-family: inherit;
    font-size: 1.8rem;
    outline-color: #7477DD;
    height: 4rem;
    text-indent: 0.8rem;
    width: 32.6rem;
}
.form-row {
    display: block;
    margin-top: 1.6rem;
}
.form-row span {
    color: #FFFFFF;
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.header {
    align-items: center;
    display: flex;
    margin: 9.6rem 12.4rem 8.6rem;
}
.header .button {
    margin-left: auto;
}
.header-logo {
    margin-right: 5.6rem;
    width: 13.2rem;
}
.header-logo img {
    width: inherit;
}
.header-title {
    color: #000000;
    font-size: 6.4rem;
    font-weight: 900;
    user-select: none;
}

.main-item {
    align-items: center;
    border-bottom: 0.1rem solid #E5E5E5;
    display: flex;
    padding: 3.2rem 0;
}
.main-item:first-child {
    padding: 0.7rem 0;
}
.main-item-column  {
    color: #000000;
    display: block;
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1.8rem;
    width: 25%;
}
.main-item-column:nth-child(2) ~ .main-item-column {
    text-align: center;
}
.main-item-type .main-item-value {
    font-weight: 900;
}
.main-list {
    background-color: #FFFFFF;
    margin: 4.6rem 12.4rem;
    padding: 3.6rem;
}

.modal {
    background-color: #333549;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    left: 0;
    padding: 0 64rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 4;
}
.modal:not(.visible) {
    display: none;
}
.modal-close-button {
    align-items: center;
    background: url('/assets/close.svg') center center no-repeat;
    background-size: 2.9rem;
    box-sizing: content-box;
    cursor: pointer;
    height: 2.9rem;
    padding: 3.6rem;
    position: absolute;
    right: 0;
    top: 0;
    width: 2.9rem;
    z-index: 1;
}
.modal-title {
    color: #FFFFFF;
    font-size: 3.6rem;
    line-height: 4.4rem;
    margin-bottom: 5.6rem;
    text-align: center;
}

.overlay {
    background-color: rgba(0,0,0,0.5);
    bottom: 0;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity 0.3s, visibility 0.3s;
    visibility: hidden;
    z-index: 5;
}
.overlay.visible {
    opacity: 1;
    visibility: visible;
}

.spin {
    border: 1rem solid #FFFFFF;
    border-top-color: transparent;
    border-radius: 50%;
    bottom: 0;
    display: none;
    height: 10rem;
    left: 0;
    margin: auto;
    position: fixed;
    right: 0;
    top: 0;
    width: 10rem;
    z-index: 10;
}
.spin.visible {
    animation: Spin 1s infinite linear;
    display: block;
}

@media all and (max-width: 480px) {
    :root {
        font-size: 3.125vw;
    }

    .is-desktop {
        display: none !important;
    }
    .is-mobile {
        display: block;
    }

    .form {
        display: block;
    }
    .form-button {
        display: block;
        margin-top: 2.8rem;
        width: 100%;
    }
    .form-input {
        display: block;

        width: 100%;
    }

    .header {
        flex-direction: column;
        margin: 5.2rem 1.6rem 4rem;
    }
    .header .button {
        margin-left: 0;
        margin-top: 4rem;
    }
    .header-logo {
        margin-bottom: 6.2rem;
        margin-right: 0;
    }
    .header-title {
        font-size: 3.6rem;
        line-height: 4.4rem;
        text-align: center;
    }

    .main-item {
        border-bottom: none;
        display: block;
        padding: 0 !important;
    }
    .main-item-column {
        text-align: left !important;
        width: auto;
    }
    .main-item-cv {
        padding-top: 1.6rem;
    }
    .main-item-cv .button {
        margin-top: 0 !important;
    }
    .main-item-name, .main-item-type {
        border-bottom: 0.1rem solid #E5E5E5;
        padding: 1.6rem 0 2rem;
    }
    .main-item-options {
        padding-bottom: 2rem;
    }
    .main-item-title {
        margin-bottom: 1.4rem;
    }
    .main-item-value .button {
        margin-top: 1.4rem;
        width: 100%;
    }
    .main-list {
        margin: 2.4rem 1rem 8.2rem;
        padding: 1.6rem;
    }

    .modal {
        padding: 0 1.6rem;
    }
    .modal-close-button {
        padding: 1.6rem;
    }
    .modal-title {
        font-size: 2.5rem;
        line-height: 3rem;
        margin-bottom: 2.8rem;
    }
}
