@font-face {
    font-family: SnellRoundhand;
    font-style: normal;
    font-weight: 700;
    font-stretch: 100%;
    font-display: swap;
    src: url('../assets/fonts/SnellRoundhand.woff2') format('woff2');
}

@font-face {
    font-family: KudryashevDisplay;
    font-style: normal;
    font-weight: 500;
    font-stretch: 100%;
    font-display: swap;
    src: url('../assets/fonts/KudryashevDisplay.woff2') format('woff2');
}

html {
    height: 100%;
    box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
    font-family: "KudryashevDisplay";
}

body,
h2 {
    margin: 0;
}

input,
button,
a {
    font: inherit;
}

button,
a {
    color: currentColor;
}

.im-container {
    max-width: 1460px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.im-main {
    background-image: url('../assets/img/bg-desktop-new.svg');
    background-repeat: no-repeat;
    background-position: center bottom -120px;
}

.im-main__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.im-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #E390BD;
    min-height: 177px;
}

.im-section__title {
    margin-bottom: 50px;
    font-family: 'SnellRoundhand';
    font-size: 60px;
    font-weight: 700;
    line-height: 120%;
    color: #9B8E86;
}

.im-section__text {
    max-width: 700px;
    margin: 0 auto;
    color: #000000;
    font-size: 20px;
    font-weight: 500;
    line-height: 120%;
}

.im-about {
    padding: 100px 0;
}

.im-callback {
    padding-bottom: 86px;
}

.im-callback__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 20px;
    max-width: 700px;
    margin: 45px auto 0;
}

.im-callback__form-input {
    width: 100%;
    padding: 18px 20px;
    border-radius: 10px;
    background: #F8F8F8;
    color: #828282;
    border: none;
    font-size: 20px;
    font-weight: 500;
    line-height: 120%;
}

.im-callback__form-checkbox {
    display: flex;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    color: #828282;
    margin-top: 10px;
}

.im-callback__form-checkbox a {
    text-decoration: underline;
}

.im-callback__form-checkbox > input {
    margin: 0;
    appearance: none;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    border: 1px solid #BDBDBD;
    border-radius: 4px;
}

.im-callback__form-checkbox > input:checked {
    border-color: #fdd27c;
    background-color: #fdd27c;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NDggNTEyIj4KICAgIDxwYXRoIGQ9Ik00MzguNiAxMDUuNGMxMi41IDEyLjUgMTIuNSAzMi44IDAgNDUuM2wtMjU2IDI1NmMtMTIuNSAxMi41LTMyLjggMTIuNS00NS4zIDBsLTEyOC0xMjhjLTEyLjUtMTIuNS0xMi41LTMyLjggMC00NS4zczMyLjgtMTIuNSA0NS4zIDBMMTYwIDMzOC43IDM5My40IDEwNS40YzEyLjUtMTIuNSAzMi44LTEyLjUgNDUuMyAweiIgZmlsbD0iI2ZmZiIvPgo8L3N2Zz4=');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 12px;
}

.im-callback__form-button {
    padding: 15px 94px;
    border-radius: 10px;
    background: #FFEFAF;
    color: #9B8E86;
    font-size: 20px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    margin-top: 30px;
}

.im-footer {
    padding: 44px 0 34px;
    background: #E390BD;
    color: #fff;
}

.im-footer__top {
    display: flex;
    align-items: center;
    column-gap: 128px;
}

.im-footer__links {
    display: flex;
    column-gap: 20px;
    max-width: 743px;
    width: 100%;
    justify-content: space-between;
}

.im-footer__link {
    display: flex;
    align-items: center;
    column-gap: 20px;
    text-decoration: none;
}

.im-footer__link > svg {
    margin-top: 5px;
}

.im-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 44px;
    max-width: 1190px;
}

.im-footer__copyright {
    display: flex;
    align-items: center;
    column-gap: 7px;
}

.im-footer__copyright > svg {
    margin-top: 3px;
}

.im-popup {
  background: #fff;
  width: 734px;
  height: 393px;
  position: relative;
  padding: 30px;
  background-image: url("./img/bg-popup.svg");
}
.im-popup-overlay {
  padding: 0 10px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
}
.im-popup_view_visible {
  visibility: visible;
  opacity: 1;
}
.im-popup__title {
  font-family: Snell Roundhand;
  font-size: 60px;
  font-style: italic;
  font-weight: 700;
  line-height: 72px;
  letter-spacing: 0em;
  text-align: center;
  margin: 0;
  color: #E390BD;
}
.im-popup__sub-title {
  font-family: Snell Roundhand;
  font-size: 40px;
  font-style: italic;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: 0em;
  text-align: center;
  margin: 0;
  color: #9B8E86;
}
.im-popup__close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #9B8E86;
  text-decoration: none;
  cursor: pointer;
}
.im-popup__separator {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #9B8E86;
  margin: 30px 0;
  padding: 0;
  width: 100%;
}

.im-popup__content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100%;
}

.im-popup__content {
  max-width: 398px;
}

@media (max-width: 767px) {
    .im-logo {
        min-height: 90px;
    }

    .im-logo__img {
        width: 185px;
        height: 51px;
    }

    .im-section__title {
        margin-bottom: 25px;   
    }

    .im-about {
        padding: 35px 0;
    }

    .im-callback__form {
        margin-top: 25px;
    }

    .im-callback {
        padding-bottom: 54px;
    }

    .im-footer__top {
        flex-direction: column-reverse;
        row-gap: 30px;
    }
}

@media (max-width: 600px) {
    .im-main {
        background-image: url('../assets/img/bg-mobile.svg');
        background-position: center bottom 30px;
        background-size: cover;
    }

    .im-section__title {
        font-size: 36px;

    }

    .im-section__text {
        font-size: 18px;
		text-align: justify; 
		line-height: 125%;
    }

    .im-footer {
        padding-top: 21px;
        padding-bottom: 27px;
        font-size: 12px;
    }

    .im-footer__bottom {
        flex-direction: column-reverse;
        row-gap: 20px;
        margin-top: 35px;
    }

    .im-footer__links {
        max-width: 285px;
    }

    .im-footer__link {
        flex-direction: column;
        row-gap: 10px;
    }

    .im-footer__link > svg {
        margin-top: 0;
        width: 18px;
        height: 18px;
    }

    .im-footer__logo {
        width: 149px;
        height: 41px;
    }

    .im-callback__form-input {
        padding: 20px;
        font-size: 16px;
    }

    .im-callback__form-checkbox {
        margin-top: 0;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .im-main {
        background-size: unset;
    }
}