@import url('https://use.typekit.net/kbo8lkh.css');

:root {
  --bs-primary: #4768A9;
  --bs-link-color: #4768A9;
  --bs-link-hover-color: #3C588F;
}

html, body {
    font-family: marine, sans-serif;
}

a {
    color: #4768A9;

    transition: all 0.3s ease-in-out;
}
a:hover {
    color: #4768A9;
}

a.i-link {
    text-decoration-style: dashed;
}
a.i-link:hover {
    text-decoration-style: solid;
}

:focus-visible {outline: none;}


/*** ------- TYPOGRAPHY ------- ***/


h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: poppins, sans-serif;
    text-transform: uppercase;

    font-style: normal;
    letter-spacing: 0.02em;
    line-height: 100%;
    font-weight: 300;
}

h1, .h1 {
    font-size: 36px;
}
h2, .h2 {
    font-size: 32px;
}
h3, .h3 {
    font-size: 21px;
    line-height: 128%;
    font-weight: 500;
}
h4, .h4 {
    font-weight: 600;
    font-size: 13px;
    line-height: 16px;

    color: #848484;
}
h5, .h5 {
    font-size: 16px;
    line-height: 128%;
    font-weight: 500;
}
h6, .h6 {
    font-size: 14px;
    line-height: 128%;
    font-weight: 500;
}

h1 .highlighted, .h1 .highlighted, h2 .highlighted, .h2 .highlighted, h3 .highlighted, .h3 .highlighted, h4 .highlighted, .h4 .highlighted, h5 .highlighted, .h5 .highlighted, h6 .highlighted, .h6 .highlighted {
    font-weight: 600;
    color: #4768A9;
}


/*** ------- FORMS ------- ***/


form {
    font-family: marine, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;

    letter-spacing: 0.02em;

    color: #263238;

    gap: 30px;

    display: flex;
    justify-content: stretch;
    align-items: stretch;
    flex-direction: column;
}

.form-group {
    padding: 0;

    gap: 10px;

    display: flex;
    justify-content: stretch;
    align-items: flex-start;
    flex-direction: column;
}

    input[type="text"].form-control, input[type="email"].form-control, input[type="password"].form-control, .form-control {
        margin: 0;
        padding: 13px 15px;
        border: 2px solid #848484;
        border-radius: 0;
        background: #FFFFFF;

        font-family: marine, sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 18px;
        line-height: 18px;
        /* identical to box height, or 100% */

        letter-spacing: 0.02em;

        height: 50px;
        width: 100%;

        outline: none;
    }
    .form-control:focus {
        box-shadow: none;
        border-color: #4768A9 !important;
        background-color: #FFFFFF;
    }

    select.form-control {
        background: url(../img/caret.svg) #F7F7F7 calc(100% - 16px) 16px no-repeat;
        background-size: 7px 7px;
    }

    textarea.form-control {
        padding-top: 10px;
        padding-bottom: 10px;
        height: 100px;
    }

    .form-group label {
        margin: 0;
        padding: 0;

        font-family: marine, sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 18px;
        line-height: 1;

        letter-spacing: 0.02em;

        color: #263238;
    }

        .form-group label .required {
            color: #C62828;
        }

.btn-primary {
    --bs-btn-bg: #4768A9;
    --bs-btn-border-color: #4768A9;
    --bs-btn-hover-bg: #3C588F;
    --bs-btn-hover-border-color: #3C588F;
    --bs-btn-active-bg: #4768A9;
    --bs-btn-active-border-color: #3C588F;
    --bs-btn-disabled-bg: #4768A9;
    --bs-btn-disabled-border-color: #4768A9;
}

.btn {
    margin: 0;
    padding: 2px 30px 0 30px;
    border: 0;
    border-radius: 0;
    background: #4768A9;
    box-shadow: 0px 5px 30px 10px rgba(71, 104, 169, 0.2);

    font-family: poppins, sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    /* identical to box height */

    letter-spacing: 0.02em;
    text-transform: uppercase;

    color: #FFFFFF;

    gap: 15px;
    white-space: nowrap;

    height: 50px;
    max-width: 360px;

    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;

    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;

    outline: none !important;

    position: relative;
}
.btn:hover, .btn:hover:active, .btn:focus, .btn:active {
    background-color: #3C588F;
    box-shadow: 0px 8px 30px 10px rgba(71, 104, 169, 0.3);
}

    .btn svg {
        margin: -2px 0 0 0;
        width: 24px;
        height: 12px;
    }

        .btn svg path {
            stroke: #ffffff;

            transition: stroke 0.3s ease-in-out;
        }
        .btn:hover svg path {
            stroke: #ffffff;
        }

    .btn.btn-shadow::before {
        pointer-events: none;
        content: "";
        border-radius: 200px;
        background: radial-gradient(50% 50% at 50% 50%, rgba(71, 104, 169, 0.2) 0%, rgba(71, 104, 169, 0) 100%);

        width: 256px;
        height: 256px;

        transition: opacity 0.3s ease-in-out;

        left: -98px;
        z-index: -1;
        opacity: 0.7;
        position: absolute;
    }
    .btn.btn-shadow:hover::before {
        opacity: 1;
    }

    .btn.btn-link {
        margin: 0;
        padding: 10px 0;
        border: 0;
        box-shadow: none;
        background: none;
        outline: none;

        font-weight: 500;
        font-size: 11px;
        line-height: 12px;

        text-align: right;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        text-decoration: none;

        color: #4768A9;

        height: 30px;

        gap: 10px;

        display: flex;
        justify-content: center;
        align-items: flex-start;
    }
    .btn.btn-link:hover {
        color: #C62828;
    }

        .btn.btn-link svg {
            width: 15px;
            height: 9px;
        }

            .btn.btn-link svg path {
                stroke: #4768A9;

                transition: stroke 0.3s ease-in-out;
            }
            .btn.btn-link:hover svg path {
                stroke: #C62828;
            }

    .btn.btn-close {
        margin: 0;
        padding: 0;
        border: 0;
        background: rgba(224, 231, 246, 0.5);
        box-shadow: 0px 10px 20px 5px rgba(255, 255, 255, 0.25);
        outline: none;

        height: 50px;
        width: 50px;

        transition: background 0.3s ease-in-out;

        display: flex;
        justify-content: center;
        align-items: center;
    }
    .btn.btn-close:hover {
        background: rgba(224, 231, 246, 0.75);
    }

        .btn.btn-close svg {
            width: 12px;
            height: 12px;
        }

            .btn.btn-close svg path {
                stroke: #4768A9;

                transition: stroke 0.3s ease-in-out;
            }
            .btn.btn-close:hover svg path {
                stroke: #C62828;
            }


/*** ------- MODAL ------- ***/


.modal {

}

    .modal .modal-content {
        border-radius: 0;
    }

    .modal .modal-header {
    }

        .modal .modal-header h5 {
            padding-top: 2px;
            height: 23px;
        }

        .modal .modal-header .btn-close {
            background-size: 12px 12px;
        }

    .modal .modal-body {
    }

        .modal .modal-body form {
            margin: 0;
        }

    .modal .modal-footer {
        justify-content: space-between;
    }


/*** ------- HELPERS ------- ***/


.inner-block {
    margin: 100px 0;
}

    .centered-header {
        text-align: center;
        color: #263238;
    }

        .centered-header p {
            font-family: marine, sans-serif;
            font-style: normal;
            font-weight: 400;
            font-size: 16px;
            line-height: 150%;

            text-align: center;
            letter-spacing: 0.02em;

            color: rgba(38, 50, 56, 0.75);
        }

.standing-block {
    padding: 0 30px;
}

@media (max-width: 1199px) {
    .standing-block {
        padding: 0 15px;
    }
}

.narrow-form {
    margin: 50px auto;
    width: 100%;
    max-width: 480px;
}

.half-blocks {
    gap: 30px;

    display: flex;
    justify-content: stretch;
    align-items: stretch;
    flex-direction: row;
}

@media (max-width: 1199px) {
    .half-blocks {
        flex-direction: column;
    }
}