body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

#index {
    padding: 80px 16px 0 16px;
}

#indexLogo {
    max-width: 500px;
    margin: 0 auto 60px auto;
}

#indexCity {
    margin-bottom: 74px;
}

#indexCityImg {
    max-width: 100px;
    margin: 0 auto;
}

#indexBook {
    margin-bottom: 65px;
    text-align: center;
}

#indexBookPhone {
    font-size: 18px;
    line-height: 1.2;
    color: var(--red);
    display: block;
    margin-bottom: 27px;
}

#indexBookLink {
    font-size: 18px;
    line-height: 1.2;
    color: var(--red);
    display: block;
    text-decoration: underline;
    text-transform: uppercase;
    margin-bottom: 27px;
}

#indexBookInfo {
    font-size: 18px;
    line-height: 1.2;
    color: var(--red);
    display: block;
}

#indexMenu {
    margin-bottom: 65px;
    text-align: center;
}

#indexMenuLink {
    font-size: 18px;
    line-height: 1.2;
    color: var(--red);
    display: block;
    text-decoration: underline;
    text-transform: uppercase;
}

#indexServices {
    margin-bottom: 92px;
    text-align: center;
}

#indexServicesText {
    font-size: 18px;
    line-height: 1.2;
    color: var(--red);
    display: block;
}

#indexNewsletter {
    font-family: "Oracle", sans-serif;
    transition: 500ms;
    max-width: 470px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto auto 92px;
}

#indexNewsletterForm {
    border: 1px solid var(--red);
    padding: 30px 38px;
    border-radius: 10px;
    position: relative;
    background-color: #FFFAF1;
    width: 100%;
}

#indexNewsletterHeading {
    text-transform: uppercase;
    color: var(--red);
    line-height: 22px;
    letter-spacing: 1%;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    font-size: 15px;
}

#indexNewsletterInputWrapper {
    position: relative;
}

#indexNewsletterInput {
    color: var(--red);
    font-size: 15px;
    line-height: 20px;
    border: none;
    border-bottom: 1px solid var(--red);
    padding: 9px 0;
}

#indexNewsletterInput::placeholder {
    color: var(--red);
    font-size: 15px;
    line-height: 20px;
    font-family: "Ivory Mono Light", sans-serif;
}

#indexNewsletterInput:focus {
    outline: none;
}

#indexNewsletterButton {
    position: absolute;
    right: 0;
    top: 0;
    text-transform: uppercase;
    color: var(--red);
    padding: 9px 0;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 22px;
    width: auto;
    font-weight: 700;
}

#indexNewsletterSuccess {
    display: none;
    color: var(--red);
    font-size: 15px;
    line-height: 24px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
}

#indexNewsletterSuccess.active {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #FFFAF1;
    border-radius: 10px;
}

#indexNewsletter.fadeOut {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 800px) {

    #index {
        padding: 16px 16px 0;
    }

    #indexLogo {
        max-width: 300px;
        margin: 0 auto 60px auto;
    }

    #indexBook {
        margin-bottom: 50px;
    }

    #indexBookPhone {
        font-size: 16px;
        line-height: 21px;
    }

    #indexBookLink {
        font-size: 16px;
        line-height: 21px;
    }

    #indexBookInfo {
        font-size: 16px;
        line-height: 21px;
    }

    #indexMenu {
        margin-bottom: 50px;
    }

    #indexMenuLink {
        font-size: 16px;
        line-height: 21px;
    }

    #indexServicesText {
        font-size: 16px;
        line-height: 21px;
    }

    #indexNewsletter {
        margin: 0 0 40px;
    }

    #indexNewsletterHeading {
        font-size: 14px;
    }

    #indexNewsletterForm {
        margin: 0 auto;
        padding: 25px;
        width: 100%;
    }

    #indexNewsletterInput {
        padding: 4px 0;
    }

    #indexNewsletterInput, #indexNewsletterInput::placeholder {
        font-size: 14px;
    }

    #indexNewsletterButton {
        font-size: 14px;
        padding: 4px 0;
    }

}