:root {
    --as-green: #7bc769;
    --as-font: #fff;
    --as-yellow: #f9b90f;
    --as-yellow-light: #fddd64;
    --as-yellow-dark: #a97213;
    --as-grey: #dcdcdc;
}

body {
    padding: 0;
    margin: 0;
}

body * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    color: var(--as-font);
}

.main {
    position: relative;
    width: 100%;
    min-height: 100dvh;
}

.overflow,
.overflow-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
}

.overflow {
    background-image: image-set(
        url('/images/hero-1.avif') type('image/avif'),
        url('/images/hero-1.webp') type('image/webp'),
        url('/images/hero-1.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: center;
}

.overflow-bg {
    background: rgb(0,0,0);
    background: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.3) 100%);
}

.container {
    position: relative;
    width: 1180px;
    margin: 0 auto;
    z-index: 1;
}

.header-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.logo {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    width: auto;
}

.logo > p {
    font-size: 20px;
}

.logo > a > picture > img {
    margin-right: 20px;
    width: 100px;
}

.logo > p span {
    color: var(--as-yellow);
}

.btn {
    background-color: var(--as-yellow);
    outline: none;
    border: none;
    padding: 21px 35px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    color: #000;
    text-shadow: 0px 0px 0px #000, 0 0 2em #fddd64;
    box-shadow: 0px 4px 5px #a97213;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--as-yellow-light);
}

.header-phone {
    position: relative;
    font-size: 22px;
    text-decoration: none;
    padding-left: 38px;
}

.header-phone:hover {
    color: var(--as-yellow)
}

.header-phone::before {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 60px;
    background-image: url(/images/svg/icon-phone.svg);
    background-size: 55%;
    background-repeat: no-repeat;
    left: 0;
    top: 0px;
}

.header-phone:hover::before {
    fill: var(--as-yellow);
    color: var(--as-yellow);
}

.main-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 50px 0;
    width: 100%;
}

.main-container h1 {
    font-size: 40px;
    text-shadow: 1px 1px 2px #000, 0 0 1em #fff;
    margin-bottom: 50px;
}

.main-container .slogan {
    font-size: 24px;
    font-style: italic;
    line-height: 1.2;
    text-shadow: 1px 1px 2px #000, 0 0 1em #fff;
    margin-bottom: 30px;
}

.main-container.policy p {
    width: 100%;
    padding-bottom: 10px;
    font-size: 15px;
}

.main-container.policy ul {
    width: 100%;
    padding: 20px;
    font-size: 15px;
}

.button {
    width: 628px;
    padding: 30px;
    border-radius: 40px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    padding: 50px 0 30px 0;
}

.footer-info > a {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: right;
}

.footer-info > p {
    font-size: 13px;
    text-align: right;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 60%;
    counter-reset: advantages;
}

.footer-content > div {
    display: block;
    width: 33.3%;
    padding-right: 30px;
    text-align: center;
    text-shadow: 1px 1px 2px #000, 0 0 20px #fff;
    font-size: 19px;
}

.footer-content > div::before {
    counter-increment: advantages;
    content: "0"counter(advantages);
    display: block;
    margin: 0 auto;
    color: var(--as-yellow);
    font-weight: 600;
    font-size: 55px;
    text-shadow: none;
}

@media (max-width: 1179px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 1024px) {
    .logo > p {
        font-size: 18px;
    }

    .header-phone {
        font-size: 18px;
        padding-left: 35px;
    }

    .header-phone::before {
        background-size: 50%;
        top: -2px;
    }

    .btn {
        font-size: 16px;
    }

    .footer-content,
    .footer-info {
        width: 50%;
    }

    .footer-content > div {
        font-size: 15px;
    }

    .footer-content > div::before {
        font-size: 45px;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 364px;
    }

    .header-phone {
        width: 192px;
    }

    .header-container {
        justify-content: space-between;
    }

    .header-container .btn,
    .button,
    .footer-content,
    .footer-info {
        width: 100%;
    }

    .header-container .btn {
        margin-top: 40px;
    }

    .main-container {
        justify-content: center;
    }

    .main-container h1 {
        font-size: 35px;
        text-align: center;
    }

    .main-container .slogan {
        text-align: center;
    }

    .footer-content {
        margin-bottom: 50px;
        align-items: flex-start;
    }

    .footer-content > div {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-info > a,
    .footer-info > p {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .logo,
    .header-phone {
        width: 100%;
    }

    .header-phone {
        margin-top: 30px;
    }

    .main-container h1 {
        font-size: 30px;
    }

    .main-container .slogan {
        font-size: 18px;
    }
}

@media (max-width: 500px) {
    .main-container h1 {
        font-size: 25px;
    }

    .main-container .slogan {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .logo > p {
        font-size: 16px;
    }

    .header-phone {
        text-align: center;
    }

    .header-phone::before {
        left: 70px;
    }

    .main-container h1 {
        font-size: 21px;
    }
}

/** Modal **/
.modal {
    display: none;
    position: fixed;
    z-index: 11;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(38, 38, 38, .7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background: #fff;
    margin: auto;
    padding: 0 0 20px;
    width: 360px;
    height: auto;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 10px;
}

@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0} 
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

.modal-body h2 {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 37.92px;
    text-align: center;
    text-transform: uppercase;
    padding: 20px 0;
    margin: 0;
    color: #000;
}

.modal-body p {
    font-size: 1rem;
    line-height: 1.2;
    color: #000;
    padding-bottom: 30px;
    text-align: center;
}

.modal-header .close {
    position: relative;
    display: block;
    color: var(--as-yellow);
    padding: 13px;
    text-align: right;
}

.modal-header .close:hover,
.modal-header .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    background: #fff;
    color: white;
    height: 50px;
    border-radius: 10px 10px 0 0;
}

.modal-body {
    padding: 2px 16px;
}

.modal-body form {
    width: 90%;
    margin: 0 auto;
}

.modal-body form input {
    width: 100%;
    padding: 15px 20px;
    background: var(--as-grey);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border: 1px solid var(--as-yellow);
    margin-bottom: 20px;
    border-radius: 30px;
    color: #000;
}

.modal-body form input:focus,
.modal-body form input:focus-visible {
    outline: none;
}

.button-modal {
    width: 100%;
    height: 60px;
    background: var(--as-yellow);
    border: none;
    border-radius: 30px;
    color: #000;
    padding: 20px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
}

.button-modal:hover {
    background-color: var(--as-yellow-light);
}

.button-modal:active {
    background-color: var(--as-yellow-dark);
}

.input,
.input::placeholder {
    font-size: 1rem;
    font-weight: 400;
    line-height: 20px;
    text-transform: capitalize;
}

.modal-body > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 100px 0;
}

.modal-body > div a {
    text-decoration: none;
}

.modal-body > div > p {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.46rem;
    text-align: center;
    width: 100%;
    padding: 10px 0;
}

/* Modal Full */
.modal-full {
    display: none;
    width: 100%;
    min-height: 100dvh;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #fff;
    z-index: 2;
}

.modal-full-content {
    display: block;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.modal-full-content .modal-body {
    display: flex;
    height: calc(100dvh - 90px);
    justify-content: center;
    align-items: center;
}

.modal-full-content form {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.modal-full-content .label {
    display: block;
    color: #000;
    padding-bottom: 30px;
    font-size: 22px;
}

.modal-full-content .input,
.modal-full-content .button-modal {
    max-width: 360px;
}

.next-btn {
    width: 100%;
    padding: 15px;
}

p.error {
    display: none;
    color: red;
}

.form-step {
    display: none;
}

.form-step:first-of-type {
    display: block;
}

.modal-full-content select {
    width: 90%;
    padding: 20px;
    margin-bottom: 20px;
    outline: none;
    border: 1px solid var(--as-yellow);
    border-radius: 30px;
    background-color: var(--as-grey);
    color: #000;
}

.modal-full-content select option {
    color: #000;
}

#reviews-list-mobile {
	display: none;
}

.reviews__list {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.reviews__list > .reviews__item {
    width: 31.333333333%;
	margin: 0 1%;
}

.reviews__item {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
}

.reviews__list > .reviews__item:nth-child(1),
.reviews__list > .reviews__item:nth-child(2),
.reviews__list > .reviews__item:nth-child(3) {
    margin-bottom: 50px;
}

.review-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
}

.review-info > p, .review-info > p > span, .review-text {
    color: #000;
    font-size: 13px;
}

.review-avatar {
    width: 20%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: gainsboro;
}

.review-avatar img {
    width: 100%;
    border-radius: 50%;
}

.review-info {
    width: 75%;
}

.review-info > .review-name {
    font-weight: bolder;
    font-size: 14px;
}

.review-info > p:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-info > p > .review-stars {
    color: #f9b90f;
    font-size: 20px;
}

@media (max-width: 999px) {
	#reviews-list {display: none;}
	#reviews-list-mobile {display: flex;}
}