* {
    box-sizing: border-box;
}
@font-face {
    font-family: "Opinion-Pro-Extra-Condensed";
    src: local("Opinion-Pro-Extra-Condensed-Light"),
        url("/f/fonts/opinionproextracondensed-light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: "Montserrat";
    src: local("Montserrat-Medium"), url("/f/fonts/montserrat-medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
}
body {
    font-family: "Opinion-Pro-Extra-Condensed";
    margin: 0;
}
a {
    text-decoration: none;
}

.main {
    padding: 75px 15% 435px 0;
    display: flex;
    justify-content: flex-end;
    background-image: url(../img/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: right;
}
.main__content {
    width: 740px;
}
.main__header {
    display: flex;
    align-items: center;
    /* justify-content: center; */
}
.main__phone {
    font-size: 36px;
    line-height: 23px;
    font-weight: 700;
    color: #00152e;
    margin-right: 90px;
    margin-left: 115px;
    white-space: nowrap;
}
.main__phone:hover {
    text-decoration: underline 2px;
}
.main__link:first-child {
    margin-right: 25px;
}

.main__inner {
    text-align: center;
}
.main__title {
    font-size: 90px;
    line-height: 90px;
    color: #01a0bd;
    margin-bottom: 30px;
    letter-spacing: 2px;
    /* width: 697px; */
}
.main__subtitle {
    font-size: 48px;
    line-height: 36px;
    font-weight: 300;
    color: #258e3c;
    margin-bottom: 50px;
}
.main__subtitle span {
    text-transform: uppercase;
}
.find-button {
    width: 294px;
    background-color: #f9d02b;
    border-radius: 5px;
    font-family: "Montserrat";
    font-size: 18px;
    padding: 15px 30px;
    line-height: 24px;
    color: #00152e;
    transition: 0.5s;
    white-space: nowrap;
}
.button {
    font-family: "Montserrat";
}
.find-button:hover {
    background-color: #ffd83c;
    transition: 0.5s;
}
.main__name {
    font-size: 30px;
    line-height: 36px;
    font-weight: 300;
    color: #00152e;
    margin-top: 70px;
    padding-left: 25px;
}
.questionnaire {
    display: flex;
}
.questionnaire__content {
    background-color: #005f7d;
    width: 50%;
    padding-top: 80px;
}
.questionnaire__inner {
    text-align: center;
}
.questionnaire__title {
    font-size: 70px;
    line-height: 60px;
    font-weight: 700;
    color: #fefefe;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.questionnaire__text {
    font-size: 36px;
    line-height: 60px;
    font-weight: 700;
    color: #fefefe;
    margin-bottom: 50px;
}
.questionnaire__row {
    display: flex;
    margin-top: 140px;
    justify-content: center;
    margin-bottom: 160px;
}
.questionnaire__item {
    font-size: 36px;
    line-height: 48px;
    font-weight: 700;
    color: #fefefe;
    /* width: 290px; */
    margin-right: 75px;
    letter-spacing: 2px;
}
.questionnaire__item span {
    font-size: 70px;
    line-height: 72px;
    text-transform: uppercase;
}
.questionnaire__phone {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-top: 5px;
    margin-bottom: 47px;
    white-space: nowrap;
}
.questionnaire__phone:hover {
    text-decoration: underline 2px;
}
.questionnaire__social {
    display: flex;
    justify-content: space-around;
}
.questionnaire__photo {
    width: 50%;
    background-image: url(../img/photo.jpg);
    height: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.questionnaire__photo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
@media (max-width: 1600px) {
    .main {
        /* background-position-x: center; */
        padding: 50px 10% 320px 0;
    }
    .questionnaire__row {
        margin-top: 100px;
        margin-bottom: 100px;
    }
}
@media (max-width: 1460px) {
    .main {
        padding: 50px 10% 270px 0;
    }
    .main__title {
        font-size: 80px;
        line-height: 80px;
    }
    .questionnaire__item {
        font-size: 32px;
        line-height: 45px;
    }
    .questionnaire__item span {
        font-size: 65px;
        line-height: 69px;
    }
    .questionnaire__phone {
        margin-bottom: 37px;
    }
}
@media (max-width: 1260px) {
    .main {
        padding: 50px 0 170px 0;
        background-position-x: 59%;
    }
    .main__title {
        font-size: 73px;
        line-height: 73px;
    }
    .main__name {
        text-align: center;
        padding-left: 0;
    }
    .questionnaire__content {
        padding: 35px 15px 15px;
    }
    .questionnaire__text {
        font-size: 33px;
        line-height: 43px;
    }
    .questionnaire__row {
        flex-direction: column;
        text-align: center;
        margin-bottom: 0;
    }
    .questionnaire__item {
        width: 100%;
        margin-right: 0;
    }
    .questionnaire__column {
        width: 100%;
    }
    .questionnaire__phone {
        margin-top: 20px;
        margin-bottom: 15px;
    }
    .questionnaire__link {
        margin: 0 5px;
    }
    .questionnaire__social {
        justify-content: center;
    }
}
@media (max-width: 990px) {
    .main {
        padding: 30px 0 90px 0;
    }
    .main__header {
        justify-content: end;
    }
    .main__inner {
        text-align: right;
    }
    .main__name {
        text-align: right;
    }
    .main__content {
        padding-right: 25px;
    }
    .main__icon {
        width: 43px;
        height: 43px;
    }
    .main__phone {
        font-size: 32px;
    }
    .main__title {
        font-size: 60px;
        line-height: 60px;
    }
    .main__subtitle {
        font-size: 40px;
    }
    .find-button {
        font-size: 16px;
        padding: 13px 20px;
    }
    .main__name {
        font-size: 26px;
        line-height: 30px;
        margin-top: 50px;
    }
    .questionnaire__title {
        font-size: 55px;
        margin-bottom: 10px;
    }
    .questionnaire__text {
        font-size: 25px;
        line-height: 32px;
    }
    .questionnaire__item span {
        font-size: 52px;
    }
    .questionnaire__phone {
        font-size: 40px;
    }
    .questionnaire__link img {
        width: 43px;
        height: 43px;
    }
}
@media (max-width: 765px) {
    .main {
        background-position-x: right;
        background-position-y: bottom;
        background-size: auto;
    }
    .main__phone {
        margin: 0;
    }
    .main__header {
        justify-content: space-around;
    }
    .main__inner {
        text-align: center;
    }
    .main__title {
        font-size: 55px;
        line-height: 55px;
    }
    .main__subtitle {
        font-size: 38px;
    }
    .main__content {
        padding: 0;
    }
    .main__name {
        text-align: center;
    }
    .questionnaire {
        flex-direction: column-reverse;
    }
    .questionnaire__photo {
        width: 100%;
        height: 350px;
        background-position-y: -180px;
    }
    .questionnaire__content {
        width: 100%;
        padding: 15px;
    }
    .questionnaire__row {
        margin-top: 40px;
    }
    .questionnaire__title {
        font-size: 45px;
    }
    .questionnaire__text {
        margin-bottom: 25px;
    }
    .questionnaire__phone {
        font-size: 34px;
    }
    .questionnaire__link img {
        width: 33px;
        height: 33px;
    }
}
@media (max-width:600px) {
    .questionnaire__photo {
        background-position-y: center;
    }
}
@media (max-width: 500px) {
    .main {
        padding: 15px;
    }
    .main__phone {
        font-size: 28px;
    }
    .main__icon {
        width: 33px;
        height: 33px;
    }
    .main__title {
        font-size: 31px;
        line-height: 38px;
        margin-bottom: 10px;
    }
    .main__subtitle {
        font-size: 27px;
        margin-bottom: 30px;
    }
    .find-button {
        font-size: 14px;
        padding: 10px 15px;
    }
    .main__name {
        font-size: 23px;
        line-height: 25px;
        margin-top: 30px;
    }
    .questionnaire__title {
        margin-bottom: 0;
    }
    .questionnaire__text {
        letter-spacing: 1px;
        font-size: 18px;
    }
}
