body {
    font-family: 'Inter', sans-serif;
    color: #000;
}

.container {
    max-width: 1440px;
    margin: 0 auto;

    padding-right: 25px;
    padding-left: 25px;

    container-type: inline-size;
}

.container.narrow {
    padding-right: 50px;
    padding-left: 50px;
}

h1, .h1 {
    font-weight: 500;
    font-size: 45px;
    line-height: 47px;
    letter-spacing: -0.04em;

    margin-top: 60px;
    margin-bottom: 40px;
}
/* 
h1:first-child, .h1:first-child {
    margin-top: 0;
} */

h2, .h2 {
    font-weight: 500;
    font-size: 40px;
    line-height: 47px;
    letter-spacing: -0.04em;

    margin-top: 60px;
    margin-bottom: 40px;
}

h3, .h3 {
    font-weight: 500;
    font-size: 24px;
    line-height: 27px;
    letter-spacing: -0.02em;

    margin-top: 40px;
    margin-bottom: 16px;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.font-bold {
    font-weight: bold;
}

#backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,.5);
    z-index: 150;
    visibility: hidden;
    opacity: 0;
}

#backdrop.active {
    visibility: visible;
    opacity: 1;
}

#modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;

    visibility: hidden;
    opacity: 0;
}

#modal.active {
    visibility: visible;
    opacity: 1;
    /* transform: translateX(-50%) scale(1); */
}

#modal .modal-dialog {
    margin-right: auto;
    margin-left: auto;
    margin-top: 28px;
    margin-bottom: 28px;
    max-width: 660px;

    position: relative;
    width: auto;
    /* pointer-events: none; */


    z-index: 250;
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
}

#modal .modal-close {
    width: 50px;
    height: 50px;

    background: url(../icons/close.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    float: right;
    cursor: pointer;
    opacity: 0.5;
}

#modal .modal-close:hover {
    opacity: 1;
}

#modal .modal-title {
    margin-top: 0;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .container, .container.narrow {
        padding-right: 15px;
        padding-left: 15px;
    }
}

@media (max-width: 767px) {
    h1, .h1 {
        font-size: 35px;
        line-height: 37px;

        margin-top: 50px;
        margin-bottom: 30px;
    }
    
    h2, .h2 {
        font-size: 30px;
        line-height: 35px;
        margin-top: 40px;
        margin-bottom: 25px;
    }

    h3, .h3 {
        font-weight: 500;
        font-size: 20px;
        line-height: 23px;
        letter-spacing: -0.02em;

        margin-top: 30px;
        margin-bottom: 16px;
    }
}

@media (max-width: 575px) {
	h1, .h1 {
        font-size: 25px;
        line-height: 27px;

        margin-top: 40px;
        margin-bottom: 20px;
    }
    
    h2, .h2 {
        font-size: 22px;
        line-height: 26px;
        margin-top: 30px;
        margin-bottom: 18px;
    }

    h3, .h3 {
        font-weight: 500;
        font-size: 19px;
        line-height: 21px;
        letter-spacing: -0.02em;

        margin-top: 20px;
        margin-bottom: 14px;
    }

    #modal .modal-close {
        width: 25px;
        height: 25px;
    }
}