:root {
    --main-color: #27323a;
    --main-background-color: #f2f1ee;
    --background-current-offset: 0px;
    --background-svg-height: 20px;
    --background-current-1: #f2f1ee;
    --background-current-2: transparent;
}

body {
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    /* background-color: var(--main-background-color); */
    color: var(--main-color);
    font-size: 18px;
}


.no-scroll {
    overflow: hidden;
}


input:focus,
textarea:focus {
    outline: none;
}
  
a {
    outline: none;
}

img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.main-container {
    overflow: hidden;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 11;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    width: 380px;
    top: 0;
    right: 0;
    bottom: 0;
    padding-right: 15px;
    padding-left: 15px;
    background-color: #fff;
    z-index: 12;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu__header {
    padding: 20px;
    border-bottom: 1px solid rgb(226, 232, 235);
}

.mobile-menu__logo {
    display: inline-block;
    width: 164px;
}

.mobile-menu__close {
    display: inline-block;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.mobile-menu__body {
    padding: 32px 24px;
}

.mobile-menu__list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-menu__item {
    margin-bottom: 24px;
}

.mobile-menu__item:last-child {
    margin-bottom: 0;
}

.mobile-menu__link {
    position: relative;
    display: inline-block;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-menu__link:hover {
    color: #000;
    text-decoration: none;
}

.mobile-menu__link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #033941;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu__link:hover::before {
    
    opacity: 1;
}

.mobile-menu-open {
    display: none;
    cursor: pointer;

}

/* Header */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 40px 0;
    z-index: 10;
    transition: all 0.3s ease;
    background-color: #fff;
    border-bottom: 1px solid rgb(226, 232, 235);
}

.header__logo {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  color: #033941;
  text-decoration: none;
}

.header__logo:hover {
  color: #033941;
  text-decoration: none;
}

.header__menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__menu-item {
    position: relative;
    padding-left: 32px;
}

.header__menu-item:last-child {
    padding-right: 10px;
}

.header__menu-link {
    position: relative;
    display: inline-block;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.header__menu-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #033941;
    opacity: 0;
    transition: all 0.3s ease;
}

.header__menu-link:hover::before {
    opacity: 1;
}

.header__menu-link:hover {
    text-decoration: none;
    color: #000; 
}

/* Main */

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 220px 0 120px;
    background-image: url("../images/main-img.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
}

.main__button {
    padding: 24px 64px;
    color: #fff;
    border: none;
    border-radius: 50px;
    background-color: #033941;
    transition: all 0.3s ease;
}

.main__button:hover {
    background-color: #02282e;
}


.main__title {
    font-size: 90px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 20px;
}

.main__subtitle {
    font-size: 36px;
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
}

/* Section */

.section-title {
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 20px;
}


.section {
    padding: 96px 0;
    position: relative;
   
}

.section__wave {
    /* background-image: linear-gradient(to bottom, transparent 0px, transparent calc(calc(var(--background-current-offset, 0px) + var(--background-svg-height)) - 2px), var(--background-current-1) calc(calc(var(--background-current-offset, 0px) + var(--background-svg-height)) - 1px), var(--background-current-2) 100%); */

}
.section .main__button {
    margin-top: 40px;
}

.section__img-wrapper {
    border-radius: 30px;
    overflow: hidden;
}

/* Footer */

.footer {
    color: #fff;
    padding: 56px 0;
    background-color: #27323a;
}

.footer__logo {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    color: #fff; 
    text-decoration: none;
}

.footer__logo:hover {
    color: #fff;
    text-decoration: none;
}

.footer__menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__menu-item {
    display: block;
    margin-bottom: 15px;
}

.footer__menu-item:last-child {
    margin-bottom: 0;
}

.footer__menu-link {
    display: inline-block;
    color: #fff;
    font-size: 16px;
    padding: 10px;
    transition: all 0.3s ease;
}

.footer__menu-link:hover {
    color: #fff;
}

.footer__social {
    display: flex;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.footer__social-item {
    margin-right: 15px;
}

.footer__social-link {
    display: inline-block;
    color: #fff;
}

.footer__social-link:hover {
    color: #fff;
    text-decoration: none;
}

/* Form Popup */

.form-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 20vh;
    padding-bottom: 20vh;
    background-color: #fff;
    z-index: 100;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.form-popup.active {
    opacity: 1;
    visibility: visible;
}

.form-popup__close {
    position: fixed;
    top: 20px;
    right: 30px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-popup__body {
    width: 480px;
    margin: 0 auto;
    padding: 60px 40px;
    border-radius: 20px;
    border: 1px solid rgb(226, 232, 235);
}

.form-popup__body .section-title {
    margin-bottom: 40px;
}


.form-popup__form {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.form-popup__form input, .form-popup__form textarea {
    display: block;
    width: 100%;
    margin-bottom: 30px;
    padding: 20px 15px;
    color: #27323a;
    background-color: #f1f5f8;
    border-radius: 20px;
    border: 1px solid transparent;
}


.form-popup__button {
    width: 100%;
    padding: 20px;
}

.invalid {
    border-color: #ff4444 !important;
}
.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}
.spinner svg {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}



.message-popup {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 30px 20px;
    background-color: #fff;
    width: 480px;
    border-radius: 20px;
    border: 1px solid rgb(226, 232, 235);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 101;
}

.message-popup.active {
    opacity: 1;
    visibility: visible;
}

.message-popup__title {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0;
}

/* .message-popup__button {
    width: 100%;
    padding: 15px;
    margin-top: 30px;
}

.message-popup__button:hover {
    background-color: #02282e;
} */





/* Media */

@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}

@media (max-width: 1200px) {

    body {
        font-size: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 38px;
    }

    .header__menu {
        display: none;
    }

    .mobile-menu-open {
        display: block;
    }

    .main__title {
        font-size: 65px;
    }

    .main__subtitle {
        font-size: 25px;
    }
    
   
}

@media (max-width: 992px) {

    .section {
        padding: 30px 0;
    }

    .section .section__img-wrapper {
        margin: 30px 0;
        border-radius: 15px;
    }

    .main__button {
        padding: 18px 45px;
    }

    .section .main__button {
        margin-top: 15px;
    }

    .main {
        min-height: 55vh;
    }
    
}

@media (max-width: 769px) {

    .body {
        font-size: 15px;
    }

    .header {
        padding: 25px 0;
    }

    .main {
        padding: 180px 0 120px;
        min-height: 55vh;
    }

    .main__title {
        font-size: 48px;
    }

    .main__subtitle {
        font-size: 22px;
    }

}

@media (max-width: 540px) {

    .main__title {
        font-size: 8.5vw;
    }

    .main__subtitle {
        font-size: 18px;
    }

    .message-popup {
        width: 85%;
        padding: 20px;
        border-radius: 15px;

    }

    .message-popup__title {
        font-size: 22px;
    }
} 

@media (max-width: 500px) {

    body {
        font-size: 14px;
    }

    .header__logo {
        font-size: 20px;
    }

    .section {
        padding: 30px 0 0;
    }

    .section-title {
        font-size: 33px;
    }

    .section .main__button {
        margin-top: 5px;
    }

    .form-popup {
        padding-left: 15px;
        padding-right: 15px;
    }

    .form-popup__body {
        width: 100%;
    }
}

@media (max-width: 450px) {

    .form-popup__form input, .form-popup__form textarea {
        padding: 15px 10px;
        margin-bottom: 15px;
        font-size: 14px;
    }

    .footer__menu-link {
        padding: 7px 7px 5px 0;
    }
}


@media (max-width: 420px) {

    .form-popup__body {
        padding: 45px 20px;
    }
}

@media (max-width: 400px) {

    .body {
        font-size: 13px;
    }

    p {
        margin-bottom: 15px;
    }

    .mobile-menu {
        width: 100%;
    }

    .main__title {
        font-size: 8.7vw;
    }

    .section-title {
        font-size: 26px;
    }

    .main__subtitle {
        font-size: 16px;
    }

    .main__button {
        padding: 15px 35px;
        font-size: 14px;
    }

    .footer {
        padding: 40px 0;
    }

    .message-popup__title {
        font-size: 20px;
    }
}



@media (max-width: 350px) {
   
}

