body {
    background-color: #F4EDE0;
    font-family: "Jost", sans-serif;
}

:focus-visible {
    outline: 2px solid #96774B;
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
    outline: none;
}

a {
    text-decoration: none!important;
}

h1, h2, h3 {
    margin: 0!important;
    width: fit-content!important;
}

h2 {
    font-size: 55px;
    font-weight: 600;
    color: #2B2420;
    text-transform: uppercase;
    width: 100%;
    font-family: "EB Garamond", serif;
}

h3 {
    font-size: 32px;
    font-weight: 600;
    color: #2B2420;
    text-transform: uppercase;
    font-family: "EB Garamond", serif;
}

#feedback-success-title {
    margin: 0 auto!important;
}

.container {
    padding-left: 60px!important;
    padding-right: 60px!important;
    max-width: 1600px!important;
}

.container-fluid {
    padding-left: 0px!important;
    padding-right: 0px!important;
}

header {
    padding-top: 16px;
    padding-bottom: 16px;
    background-color: #FBF7EF;
    position: fixed;
    top: 0;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    z-index: 10000;
}

.logo {
    width: 120px;
    height: 50px;
    object-fit: cover;
}

.center-nav-header {
    display: flex;
    align-items: center;
    gap: 24px;
}

.link-center-header {
    color: #2B2420;
    text-decoration: none;
    font-size: 22px;
    transition: all 0.3s ease;
}

.link-center-header:hover {
    color: #6B4F2C;
}

.right-nav-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.burger-menu span {
    display: block;
    width: 30px;
    height: 2px;
    margin: 0 auto;
    background-color: #2B2420;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}

.mobile-nav__link {
    color: #2B2420;
    text-decoration: none;
    font-size: 22px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.mobile-nav__link:hover {
    color: #6B4F2C;
}

.mobile-nav__footer {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(43, 36, 32, 0.12);
}

.mobile-nav__phone {
    color: #2B2420;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav__phone:hover {
    color: #6B4F2C;
}

.mobile-nav__phone-desc {
    margin-top: 4px;
    color: #2B2420;
    font-size: 12px;
    font-weight: 300;
}

.mobile-nav__socials {
    margin-top: 12px;
}

header.is-menu-open .mobile-nav {
    max-height: 480px;
    opacity: 1;
    padding-bottom: 20px;
    margin-top: 16px;
}

header.is-menu-open .burger-menu span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

header.is-menu-open .burger-menu span:nth-child(2) {
    opacity: 0;
}

header.is-menu-open .burger-menu span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

body.mobile-menu-open {
    overflow: hidden;
}

.socials-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-header {
    display: flex;
    flex-direction: column;
    align-items: end;
}

.phone-header .phone {
    color: #2B2420;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-header .phone:hover {
    color: #6B4F2C;
}

.phone-header .phone-desc {
    color: #2B2420;
    font-size: 12px;
    font-weight: 300;
}

.section {
    padding-top: 100px;
}

.row-contacts {
    margin-top: 24px;
    justify-content: space-between;
    row-gap: 24px;
}

.col-left-contact {
    display: flex;
    justify-content: space-between;
}

.item-left-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 50%;
}

.zag-item-left-contact {
    color: #2B2420;
    font-weight: 400;
    font-size: 20px;
}

.value-item-left-contact {
    color: #2B2420;
    font-weight: 500;
    font-size: 20px;
}

.col-left-contact.not-first {
    margin-top: 32px;
}

.flex-value-item-left-contact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-map {
    margin-top: 40px;
    height: 468px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
}

#map-yandex {
  width: 100%;
  height: 468px!important;
}

.list-faq {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.item-faq {
    padding: 24px;
    background-color: #FBF7EF;
    border-radius: 24px;
}

.question-faq {
    color: #2B2420;
    font-size: 20px;
    font-weight: 500;
    position: relative;
    padding-right: 60px;
    cursor: pointer;
    user-select: none;
}

.btn-open-faq {
    position: absolute;
    top: 50%;
    right: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #96774B;
    transform: translateY(-50%);
    font-size: 24px;
    color: #FBF7EF;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.answer-faq {
    color: #2B2420;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.item-faq.active .answer-faq {
    max-height: 500px;
    opacity: 1;
    margin-top: 12px;
}

.item-faq.active .btn-open-faq {
    transform: translateY(-50%) rotate(45deg);
    background-color: #2B2420;
}

.basement {
    background-color: #96774B;
    padding-top: 60px;
    padding-bottom: 30px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.card-feedback {
    background-color: #FBF7EF;
    border-radius: 24px;
    padding: 24px;
}

.row-fields-feedback {
    margin-top: 24px;
    row-gap: 16px;
}

.custom-field {
    border-radius: 16px;
    width: 100%;
    padding: 16px;
    border: 1px solid #dadada;
    border-color: #dadada;
    box-shadow: none!important;
    outline: none!important;
    color: #2B2420;
    font-size: 20px;
    background-color: #FBF7EF;
}

.btn-feedback {
    position: relative;
    background-color: #96774B;
    border: 1px solid #96774B;
    outline: none;
    box-shadow: none;
    padding: 8px;
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 10px;
    color: #FBF7EF;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 30px;
    overflow: hidden;
    transition: color 0.3s ease;
    cursor: pointer;
    z-index: 1;
}

.btn-feedback::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #6B4F2C;
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-feedback:hover::before {
    left: 0;
}

.btn-feedback:hover {
    color: #FBF7EF;
}

footer {
    padding-top: 140px;
}

.phone-footer {
    color: #FBF7EF;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-footer {
    color: #FBF7EF;
    text-decoration: none;
    font-size: 22px;
    transition: all 0.3s ease;
}

.copyright {
    margin-top: 40px;
    color: #FBF7EF;
    font-size: 16px;
    font-weight: 300;
    text-align: center;
}

.custom-checkbox__input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox__checkmark {
    display: block;
    width: 20px;
    height: 20px;
    border: 1px solid #96774B;
    border-radius: 8px;
    background: #96774B;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 3px;
}

.custom-checkbox__checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 0px;
    width: 8px;
    height: 14px;
    border: solid #FBF7EF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-checkbox__input:checked + .custom-checkbox__checkmark {
    background: #96774B;
    border-color: #96774B;
}

.custom-checkbox__input:checked + .custom-checkbox__checkmark::after {
    opacity: 1;
}

.text-checkbox {
    color: #2B2420;
    font-size: 16px;
    font-weight: 400;
}

.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.feedback-modal.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.feedback-modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(43, 36, 32, 0.55);
}

.feedback-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background-color: #FBF7EF;
    border-radius: 24px;
    padding: 32px;
}

.feedback-modal__dialog--success {
    max-width: 480px;
    text-align: center;
}

.feedback-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background-color: #F4EDE0;
    color: #2B2420;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.feedback-modal__close:hover {
    background-color: #96774B;
    color: #FBF7EF;
}

.feedback-form__agree {
    gap: 10px;
    cursor: pointer;
    margin-top: 18px;
}

.feedback-form__checkbox-wrap {
    position: relative;
}

.feedback-form__policy-link {
    color: #2B2420;
    text-decoration: underline !important;
}

.feedback-form__error {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background-color: #f8e8e8;
    color: #8a2f2f;
    font-size: 15px;
}

.custom-field--error {
    border-color: #c96a6a !important;
}

.feedback-success__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.feedback-success__text {
    margin-top: 12px;
    margin-bottom: 0;
    color: #2B2420;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
}

body.feedback-modal-open {
    overflow: hidden;
}

.flex-zag {
    flex-wrap: wrap;
    row-gap: 16px;
}

.img-contacts-section {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}


@media (max-width: 1500px) {
    .container {
        padding-left: 40px!important;
        padding-right: 40px!important;
    }
}

@media (max-width: 991px) {
    .img-contacts-section {
        display: none;
    }
}

@media (max-width: 990px) {
    .center-nav-header {
        display: none;
    }
    .right-nav-header {
        display: none;
    }
    .burger-menu {
        display: flex;
    }
    .mobile-nav {
        display: flex;
    }
    .section {
        padding-top: 60px;
    }
    h2 {
        font-size: 40px;
    }
    footer .center-nav-header {
        display: flex;
        flex-wrap: wrap;
        row-gap: 16px;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 20px!important;
        padding-right: 20px!important;
    }
    .logo {
        width: 100px;
        height: 40px;
    }
    h2 {
        font-size: 32px;
    }
    .item-faq {
        padding: 16px;
        border-radius: 16px;
    }
    .btn-open-faq {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    #map-yandex {
        height: 320px!important;
    }
    .contact-map {
        margin-top: 24px;
        height: 320px;
        border-radius: 16px;
    }
    .basement {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        padding-bottom: 20px;
        padding-top: 40px;
    }
    .card-feedback {
        padding: 16px;
        border-radius: 16px;
    }
    footer {
        padding-top: 80px;
    }
    .feedback-modal__dialog {
        padding: 16px;
        border-radius: 16px;
    }
    #feedback-modal-title {
        font-size: 24px;
    }
    .feedback-modal__close {
        width: 32px;
        height: 32px;
        font-size: 20px;
        top: 8px;
        right: 8px;
    }
    .flex-zag {
        flex-direction: column;
        align-items: start!important;
    }
    .link-footer {
        font-size: 18px;
    }
    .mobile-nav__link {
        font-size: 18px;
    }
    
}

@media (max-width: 575px) {
    .item-left-contact {
        width: 100%;
        align-items: start!important;
    }
    .col-left-contact {
        flex-direction: column;
        row-gap: 16px;
    }
    .col-left-contact.not-first {
        margin-top: 16px;
    }
    .question-faq {
        font-size: 16px;
    }
    .btn-feedback {
        width: 100%;
    }
    h2 {
        font-size: 26px;
    }
    .section {
        padding-top: 50px;
    }
    .value-item-left-contact {
        font-size: 18px;
    }
    h3 {
        font-size: 24px;
    }
    .btn-feedback {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        font-size: 18px;
    }
}