* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none !important;
}
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}
html {
    scroll-padding-top: 106px;
    scroll-behavior: smooth;
}
body {
    background: #fff;
    color: #000;
    font: 300 20px 'Montserrat', sans-serif;
    font-optical-sizing: auto;
    line-height: 1.5;
    letter-spacing: -0.013em;
    -webkit-font-smoothing: antialiased;
}

main {
    padding: 106px 0 40px 0;
}
a,
a:visited,
a:hover,
a:active {
    color: #000;
    text-decoration: none;
}
h1,
h2 {
    font: 400 36px 'Playfair Display', serif;
}
h2 {
    font-size: 32px;
}
strong {
    font-weight: 500;
}
p {
    margin: 0.5em 0;
}
p.space {
    margin: 0.5em 0 1.6em 0;
}

.mob,
.hide {
    display: none;
}
.wrap {
    width: 1160px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}
.center {
    text-align: center;
}
.underline {
    text-decoration: underline;
}
.btn {
    display: inline-block;
    min-width: 266px;
    padding: 9px 40px 8px 40px;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    border: 1px solid transparent;
    text-transform: uppercase;
    border-radius: 30px;
    background-image: linear-gradient(0.194turn,rgba(157,145,124,1) 0%,rgba(231,218,188,1) 28%,rgba(247,236,214,1) 62%,rgba(183,169,130,1) 100%);
    transition: border-color .25s;
    cursor: pointer;
}
.btn:hover {
    border-color: #000;
}
.btn + .btn {
    margin-left: 46px;
}
.row {
    display: flex;
}
.contacts a {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: url('/img/telegram.webp') no-repeat center center;
    background-size: cover;
    margin-right: 5px;
}
.contacts a.whatsapp {
    margin-right: 14px;
    background-image: url('/img/whatsapp.webp');
}
.offer,
.privacy,
.cons-pd {
    cursor: pointer;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 100;
    -webkit-box-shadow: 0px -2px 7px 1px rgba(0, 0, 0, 0.26);
    -moz-box-shadow: 0px -2px 7px 1px rgba(0, 0, 0, 0.26);
    box-shadow: 0px -2px 7px 1px rgba(0, 0, 0, 0.26);
}
header .wrap {
    height: 106px;
    align-items: center;
}
.logo {
    display: block;
    width: 500px;
    font-size: 0;
    background: url('/img/logo-t.webp') no-repeat right center;
}
.logo img {
    width: 86px;
    height: 72px;
    margin: 0 20px;
}

main a {
    text-decoration: underline;
    text-underline-offset: 0.15rem;
}
main a.btn {
    text-decoration: none;
}

#top {
    padding: 62px 0 124px 0;
}
#top .wrap {
    padding: 70px 0 70px 52px;
    background: #efede9;
    border-radius: 20px;
}
#top h2 {
    margin: 30px 0 40px 0;
    font: 300 20px 'Montserrat', sans-serif;
}
#top .images {
    position: relative;
}
#top .images img {
    position: absolute;
    top: -100px;
    right: -40px;
    width: 305px;
    border: 2px solid #fff;
    border-radius: 20px;
    transform: rotate(-7deg);
}
#top .images img:last-child {
    top: -10px;
    right: 130px;
    width: 230px;
    transform: rotate(6deg);
}

#advant {
    background: #efede9;
}
#advant .wrap {
    padding: 45px 0;
}
#advant .wrap > div {
    flex: 0 1 31.5%;
    display: flex;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}
#advant img {
    width: 100px;
    margin-left: -35px;
    border: 2px solid #fff;
    border-radius: 5px;
}
#advant .text {
    padding: 10px 10px 10px 23px;
}

#why {
    padding: 80px 0 40px 0;
}
#why div.first {
    flex: 0 0 400px;
}
#why .first img {
    width: 90%;
    margin-top: 54px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
#why .list {
    background: url('/img/v.webp') no-repeat 0 4px;
    background-size: 30px 30px;
    padding: 0 0 20px 58px;
}
#why h3 {
    font-weight: 500;
}

#rest .wrap {
    flex-direction: column;
    width: 760px;
    padding: 90px 0 70px 0;
}
#rest h2 {
    padding: 20px 0 25px 0;
    border-top: 1px solid #000;
    cursor: pointer;
}
#rest h2:after {
    content: '';
    display: block;
    float: right;
    width: 25px;
    height: 25px;
    margin-top: 11px;
    background: url('/img/cross.webp') no-repeat;
    transform: rotate(45deg);
    transition: .2s;
}
#rest h2.close:after {
    transform: rotate(0);
}
.smooth-open {
    overflow: hidden;
    transition-property: height, padding;
    padding: 0 0 20px 0;
}
.close + .smooth-open {
    height: 0;
    padding: 0;
}
#rest .buttons {
    padding: 50px 0 30px 0;
}


footer {
    padding: 60px 0 40px 0;
    background: #efede9;
}
footer .row {
    flex-grow: 1;
    justify-content: space-between;
    padding-bottom: 15px;
}
footer a {
    font-weight: 400;
}
footer a.offer,
footer a.privacy,
footer a.cons-a {
    display: block;
    margin-bottom: 15px;
}
footer .contacts {
    margin: 37px 0 0 0;
}

/* модалку даоработать по этой статье https://any-key.net/modalnoe-okno-html-css/ */
.modal {
    visibility: hidden;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    abackground: rgba(8, 11, 17, 0.9);
    background: rgba(39, 34, 32, .9);
    ooverflow-y: initial !important;
    ttransition: opacity 250ms ease-in, visibility 0ms ease-in 250ms;
}
.modal.show {
    visibility: visible;
    opacity: 1;
    ttransition: opacity 250ms ease-in, visibility 0ms ease-in 0ms;
}
.modal .close {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}
.modal .close img {
    width: 28px;
    height: 22px;
    margin: 9px 6px;
}
.modal-body {
    width: 890px;
    max-height: 95%;
    max-height: calc(100vh - 100px);
    padding: 20px 40px;
    background: #efede9;
    font-weight: 400;
    overflow-y: auto;
}
.modal h3 {
    padding: 20px 0 0 0;
    font-weight: 500;
    text-align: center;
}
.modal-body > strong {
    display: block;
    padding: 20px 0 10px 0;
}
.modal p {
    font-weight: 300;
    padding: 5px 0 10px 0;
}
.modal span.right {
    display: block;
    float: right;
}
.modal table {
    border: 1px solid #000;
    border-collapse: collapse;
}
.modal td {
    width: 45%;
    padding: 6px 10px;
    font-weight: 300;
    vertical-align: top;
    border: 1px solid #000;
    border-collapse: collapse;
}
.modal td + td {
    width: 53%;
}
.modal b {
    font-weight: 400;
}

@media (max-width:1220px) {
    body {
        font-size: 18px;
    }

    .wrap {
        width: auto;
        margin: 0 30px;
    }

    .btn + .btn {
        margin: 20px 0 0 0;
    }

    #top .wrap {
        padding: 70px 0 70px 26px;
    }
    #top .wrap > div:first-child {
        width: 50%;
    }

    #rest .wrap {
        margin: 0 auto;
    }

}

@media (max-width: 980px) {
    html {
        scroll-padding-top: 69px;
    }
    body {
        font-size: 20px;
    }
    .pc {
        display: none;
    }
    .mob,
    nav ul,
    nav ul li {
        display: block;
    }
    h1 {
        font-size: 28px;
        text-align: center;
    }
    h2 {
        padding: 0 30px;
        font-size: 28px;
        text-align: center;
    }
    .wrap {
        margin: 0 15px;
        flex-direction: column;
    }
    .buttons {
        text-align: center;
    }
    .btn {
        width: 100%;
        padding: 9px 30px 8px 30px;
    }

    header .wrap {
        flex-direction: row;
        height: 69px;
    }
    .logo {
        display: block;
        width: 199px;
        font-size: 0;
        background-image: url('/img/logo-t-m.webp');
        background-size: 111px 33px;
    }
    .logo img {
        width: 63px;
        height: 53px;
        margin: 0 15px 0 10px;
    }
    header .contacts {
        order: 2;
        margin-top: 8px;
    }

    main {
        padding: 69px 0 0 0;
    }

    #top {
        padding: 16px 0 304px 0;
    }
    #top .wrap {
        display: block;
        padding: 70px 20px 70px 20px;
    }
    #top .wrap > div:first-child {
        width: 100%;
    }
    #top h2 {
        line-height: 1.45;
    }
    #top .images {
        margin-top: 140px;
    }
    #top .images img {
        right: -20px;
        width: 267px;
    }
    #top .images img:last-child {
        width: 213px;
        right: auto;
        left: -23px;
    }

    #advant .wrap {
        padding: 65px 0 65px 15px;
    }
    #advant .wrap > div {
        flex: 0 1 31.5%;
        margin: 10px 0;
    }

    #why .first img {
        width: 100%;
        margin: 54px 0 40px 0;
    }

    main > .buttons .btn {
        width: 83%;
    }

    #rest .wrap {
        width: auto;
        margin: 0 15px;
    }
    #rest h2 {
        font-size: 23px;
        text-align: left;
    }
    #rest h2:after {
        margin-top: 6px;
    }

    footer {
        padding: 60px 0 10px 0;
    }
    footer .row {
        flex-direction: column;
    }
    footer .row > div,
    footer .row > div.contacts {
        margin: 0 0 30px 0;
    }


    /*
    .modal-body {
        width: auto;
        margin: 0 20px;
        border-radius: 8px;
    }
    */

}

@media (max-width:370px) {
    body {
        font-size: 18px;
    }
    #rest h2 {
        font-size: 21px;
    }
}

@media (max-width:330px) {
    body {
        font-size: 16px;
    }
    .logo img {
        width: 60px;
        height: 50px;
        margin: 0 15px 0 2px;
    }
    .logo {
        width: 182px;
        background-size: 104px 31px;
    }
    #top .wrap {
        padding: 60px 20px 70px 20px;
    }
    #top h2 {
        font-size: 19px;
    }
    .btn {
        padding: 9px 9px 8px 9px;
        min-width: auto;
    }
    #top {
        padding: 16px 0 254px 0;
    }
    #top .images img {
        width: 227px;
    }
    #top .images img:last-child {
        width: 183px;
    }
    #rest h2 {
        padding: 20px 20px 25px 0;
    }
    #rest h2:after {
        margin-right: -20px;
    }
    #rest h2.last:after {
        margin: -10px -20px 0 0;
    }
}

