@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@100;300;400;500;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a:hover {
    text-decoration: underline;
}


body {
    font-family: 'Raleway', sans-serif;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-wrapper a {
    text-decoration: none;
    color: black;
}

.page-wrapper a:hover {
    text-decoration: underline;
}

.mobile-btn-menu {
    display: none;
}

.wrapper {
    width: 960px;
    max-width: 100%;
    padding: 0 24px;
    margin: 0 auto;
}


header .wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
}

header ul {
    display: flex;
    flex-direction: row;
}

header ul li {
    margin-left: 65px;
    list-style: none;
    position: relative;
}

header ul li:first-child:before {
    content: '';
    background-image: url(./img/ok-menu.svg);
    width: 35px;
    height: 35px;
    display: block;
    position: absolute;
    right: -35px;
    top: -11px;
}

header ul li:last-child {
    text-shadow: 0px 4px 8px #FAC036;
}

header ul li:last-child:before {
    content: '';
    background-image: url(./img/contact-this.svg);
    width: 40px;
    height: 40px;
    display: block;
    position: absolute;
    right: -50px;
    top: -13px;
}


.main {
    padding: 30px 0;
    background: rgba(151, 211, 222, 0.15);
}

.main .main-content-wrap {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.main h2 {
    font-weight: 500;
    font-size: 30px;
    line-height: 35px;
    margin-bottom: 14px;
}

.main-content {
    max-width: 500px;
}

.main-content > p {
    font-size: 14px;
    line-height: 16px;
    margin-bottom: 28px;
}

.main-content-brand {
    margin-top: 60px;
}

.main-content-brand h2 {
    text-align: center;
}

.main-content-brand ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    list-style: none;
}

.main-content-brand li {
    margin: 10px 25px;
    cursor: pointer;
}

.contacts {
    width: 500px;
    padding: 42px 22px;
    background: #FFFFFF;
    border-radius: 20px;
}

.contacts li {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 20px;
}

.contacts li:last-child {
    margin-bottom: 0;
}

.contacts li p {
    width: 160px;
}

.contacts li a {
    width: 200px;
    text-decoration: none;
    color: black;
}

.contacts li a:hover {
    text-decoration: underline;
}

.advantage {
    padding: 45px 0 101px;
    position: relative;
}

.advantage:before {
    content: '';
    background-image: url("./img/Union.svg");
    width: 400px;
    height: 800px;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
}

.advantage-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.advantage-content-wrap {
    margin-bottom: 112px;
}

.advantage-content h2 {
    font-size: 25px;
    line-height: 29px;
    margin-bottom: 30px;
}

.advantage-content ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    width: 535px;
}

.advantage-content li {
    width: 124px;
    height: 124px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("img/circle-2II.svg");
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
}

.advantage-form h2 {
    font-size: 25px;
    line-height: 29px;
    margin-bottom: 15px;
    font-weight: 500;
}

.advantage-form p {
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    margin-bottom: 15px;
}

.advantage-form form {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.advantage-form input {
    background: rgba(151, 211, 222, 0.15);
    border-radius: 15px;
    padding: 20px 20px 20px 60px;
    border: none;
    max-width: 540px;
    width: 100%;
    margin-bottom: 15px;
}

.advantage-form button {
    background: rgba(146, 255, 150, 0.75);
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.25);
    border-radius: 28px;
    padding: 28px 26px;
    border: none;
    margin-left: 150px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.advantage-form button:hover {
    background: #0ac73f;
}

.location {
    background-color: rgba(151, 211, 222, 0.15);
    padding-top: 50px;
    padding-bottom: 50px;
}

.location h2 {
    font-weight: 500;
    font-size: 25px;
    line-height: 29px;
}

.location p {
    font-size: 14px;
    line-height: 16px;
}

.location img {
    text-align: center;
    width: 470px;
    margin: 0 auto;
    display: block;
}

.breaking {
    padding-top: 50px;
    padding-bottom: 50px;
    position: relative;
}

.breaking:before {
    content: '';
    width: 400px;
    height: 482px;
    position: absolute;
    top: 0;
    right: 10%;
    display: block;
    background-image: url("./img/Group 38.svg");
}

.breaking h2 {
    font-weight: 500;
    font-size: 25px;
    line-height: 29px;
}

.breaking p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 16px;
}

.breaking-list {
    margin-top: 35px;
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 800px;
    max-width: 100%;
    gap: 25px 100px;
}

.breaking-list li {
    background-image: url('./img/background-breaking-list.svg');
    width: 200px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 25px;
    box-sizing: border-box;
}

.contact {
    margin-top: 100px;
    background: rgba(151, 211, 222, 0.15);
    border-radius: 15px;
    padding: 20px 60px;
}

.contact h3 {
    font-weight: 500;
    font-size: 25px;
    line-height: 29px;
}

.contact .contacts {
    background: initial;
    padding: 20px 0 0 0;
    width: 660px;
}

.discount {
    width: 408px;
    max-width: 100%;
    background: #FFFFFF;
    box-shadow: 0px 4px 8px rgba(255, 0, 0, 0.25);
    border-radius: 20px;
    margin: 0 auto 60px;
    text-align: center;
    padding: 20px;

}

.discount p {
    margin-top: 15px;
}

footer {
    background-color: rgba(151, 211, 222, 0.25);
    padding: 38px 0 36px 0;
}


footer .wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

v
.footer-contact p {
    margin-bottom: 20px;
}

.footer-contact ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    position: relative;
}

.footer-contact ul:before {
    content: '';
    background-image: url(./img/ok-menu.svg);
    width: 35px;
    height: 35px;
    display: block;
    position: absolute;
    right: -50px;
    top: -6px;
}

.footer-contact ul li {
    width: 29px;
    height: 29px;
    background: rgba(151, 211, 222, 0.83);
    border-radius: 50%;
}

.modal,.modal-thankyou {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #00000070;
    display: none;
}

.modal.show, .modal-thankyou.show {
    display: block;
}

.modal-block, .modal-block-thankyou {
    width: 520px;
    height: 240px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    box-shadow: 2px 2px 12px 2px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 29px 50px;
    box-sizing: border-box;
    overflow: hidden;
}
.modal-block-thankyou {
    height: auto;
}
.modal-block-thankyou{
    text-align: center;
}

.modal-block:before {
    content: '';
    width: 100px;
    height: 100px;
    background: rgba(151, 211, 222, 0.15);
    position: absolute;
    left: -13px;
    top: -10px;
    border-radius: 50%;
}

.modal-block h2 {
    font-weight: 500;
    font-size: 18px;
    line-height: 21px;
    margin-bottom: 16px;
}

.modal-block > p {
    font-weight: 500;
    font-size: 18px;
    line-height: 21px;
    margin-bottom: 26px;
    position: relative;
}

.modal-block > p:before {
    content: '';
    width: 47px;
    height: 47px;
    position: absolute;
    background-image: url(./img/ok-menu.svg);
    background-size: contain;
    left: -45px;
    top: -14px;
}

.modal-block form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
}

.modal-block-input {
    display: flex;
    flex-direction: column;
    width: 250px;
}

.modal-block-input input {
    background: rgba(151, 211, 222, 0.15);
    border-radius: 15px;
    padding: 14px 20px 14px 32px;
    border: none;
    width: 100%;
    margin-bottom: 15px;
}

.modal-block-input input:last-child {
    margin-bottom: 0;
}

.modal-block form button {
    background: rgba(146, 255, 150, 0.75);
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 19px 13px;
    border: none;
    cursor: pointer;
    transition: all 0.5s ease;
}

.modal-block form button:hover {
    background: #0ac73f;
}
.modal-block-thankyou .modal-close,
.modal-block .modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-weight: 100;
    font-size: 26px;
    cursor: pointer;
}

.modal-block-thankyou h2{
    margin-bottom: 20px;
}

@media screen and (max-width: 991px) {
    .wrapper {
        width: 100%;
        margin: 0 auto;
        text-align: center;
        padding: 0 24px;
    }

    header .wrapper {
        padding: 10px 24px;
    }

    header ul li:last-child:before {
        display: none;
    }

    .main .main-content-wrap {
        flex-direction: column;
    }

    .main-content {
        width: 100%;
        max-width: 100%;
    }

    .main-image {
        width: 300px;
        margin: 20px auto;
    }

    .contacts {
        max-width: 100%;
        margin: 0 auto;
    }

    .advantage:before, .breaking:before {
        content: none;
    }

    .advantage-content ul {
        width: 100%;
        gap: 40px;
        justify-content: space-around;
    }

    .advantage-img {
        display: none;
    }

    .breaking-list {
        gap: 40px;
        justify-content: space-around;
        margin: 0;
        width: 100%;
    }
}

@media screen and (max-width: 800px) {
    header {
        position: fixed;
        top: 0;
        width: 100%;
        background: white;
        z-index: 2;
    }

    header ul li:first-child:before {
        content: none;
    }

    header img {
        width: 200px;
    }

    header ul.show {
        display: block;
    }

    header ul {
        position: fixed;
        top: 74px;
        right: 0;
        bottom: 0;
        flex-direction: column;
        gap: 30px;
        background: #97D3DE;
        padding: 80px 70px;
        z-index: 9;
        display: none;
    }

    header ul li {
        font-size: 35px;
        line-height: 41px;
        margin: 0;
    }

    .mobile-btn-menu {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
    }

    .mobile-btn-menu span {
        width: 100%;
        height: 2px;
        display: block;
        background: black;
        position: absolute;
        transition: all 0.5s ease;
    }

    .mobile-btn-menu.active span:nth-child(1) {
        transform: rotate(-45deg);
        bottom: 10px;
    }

    .mobile-btn-menu.active span:nth-child(2) {
        display: none;
    }

    .mobile-btn-menu span:nth-child(2) {
        bottom: calc(50% - 1px);
    }

    .mobile-btn-menu.active span:nth-child(2) {
        display: none;
    }

    .mobile-btn-menu span:nth-child(3) {
        bottom: 0;
    }

    .mobile-btn-menu.active span:nth-child(3) {
        transform: rotate(45deg);
        bottom: 10px;
    }

    .main {
        padding-top: 94px;
    }

    .advantage-form form {
        flex-direction: column;
    }

    .advantage-form button {
        margin-left: 0;
    }

    .location img {
        width: 100%;
        max-width: 470px;
    }

    .contacts li {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .contacts li p {
        margin-bottom: 0;
    }

    footer .wrapper {
        flex-direction: column;
    }

    .footer-contact {
        margin-bottom: 20px;
    }
    .footer-contact ul{
        margin-top: 20px;
    }
    .footer-contact ul:before{
        content: none;
    }
}