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

body {
    font-family: "Gothic A1", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #F8F8F8;
}

/* Заголовки и элементы интерфейса (используют Thomsan) */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

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

html {
    scroll-behavior: smooth;
}

.main-container {
    max-width: 1600px;
    margin: 90px auto 0;
    padding: 0 20px;
}

header {
    background-color: #2f3e4d;
    color: #FAFAFA;
    padding: 20px;
    display: flex;
    height: 132px;
    width: 100vw;
    align-items: center;
    justify-content: space-between;
}

.header-container {
    max-width: 1600px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 177px;
    height: auto;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    max-width: 650px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
}

.burger-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .header-container {
        margin: 0 20px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-end;
        background-color: #2f3e4d;
        position: absolute;
        top: 120px;
        left: 0;
        padding: 20px;
        width: 100%;
        z-index: 100;
    }

    .nav-menu.active {
        display: flex;
    }

    .burger-menu {
        display: block;
    }
}

.hero-section {
    background-color: #2f3e4d;
    color: #FAFAFA;
    padding: 10px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30%;
    height: 30%;
    background-color: white;
    transform-origin: 100% 100%;
    transform: skewY(320deg) translateY(50%);
    z-index: 0;
}

.hero-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.explore-services {
    color: #FAFAFA;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 17px;
}

.hero-content h1 {
    font-size: 30px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: #A08D58;
}

.hero-content p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 10px;
    opacity: 0.9;
}

.make-appointment {
    color: #FAFAFA;
    text-decoration: none;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    border-bottom: solid #A08D58 1px;
    padding: 10px 0;
}

.hero-illustration {
    flex: 1;
    max-width: 600px;
}

.hero-illustration img {
    width: 100%;
    max-width: 866px;
    height: auto;
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

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

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-illustration {
        max-width: 100%;
    }

    .hero-section::after {
        width: 30%;
        height: 15%;
    }
}

.partners {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    bottom: 0;
    color: #809DBD;
    margin: 40px 0 0;
}

.partners h2 {
    font-size: 17px;
    text-transform: uppercase;
    font-weight: 700;
}

.partners span {
    display: flex;
    max-width: 1330px;
    opacity: 20%;
    padding: 20px 0 30px;
    flex-wrap: wrap;
    justify-content: space-around;
}

.partners span>img {
    height: 40px;
    width: 166px;
}

@media (max-width: 768px) {
    .partners span {
        flex-direction: column;
        gap: 20px;
    }

}

.map-section {
    position: relative;
    height: 649px;
    text-align: center;
    padding: 40px 20px;
    background-size: cover;
    color: #333;
    display: flex;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
}

.map-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    height: 100%;
    margin: 40px auto;
    background: url('../IMG/map-bg.svg') no-repeat center center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.map-title {
    max-width: 866px;
    font-size: 30px;
    line-height: 72px;
    font-weight: 900;
    color: #4D4637;
}

.highlight-1 {
    color: #071136;
}

.highlight-2 {
    color: #A08D58;
}

.highlight-3 {
    color: #809DBD;
}

.map-text {
    margin: 20px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    color: #4D4637;
    max-width: 786px;
    opacity: 70%;
    text-wrap: wrap;
}

.map-text p {
    text-wrap: wrap;
}

@media (max-width: 768px) {
    .map-section {
        margin: 0;
        padding: 20px;        
        height: 100%;
        max-height: 849px;
    }

    .map-content {
        margin: 0;
        padding: 0 10px;
        height: 90%;
    }

    .map-title {
        font-size: 30px;
        line-height: 36px;
    }

    .map-text {
        font-size: 17px;
        font-weight: 700;
        line-height: 20px;
        color: #4D4637;
        max-width: 786px;
        opacity: 70%;
    }
}

.services-section {
    max-width: 1600px;
    margin: 0 auto;
}

.services-header {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-bottom: 40px;
}

.services-header h1,
h2,
h3 {
    font-size: 30px;
    font-weight: 900;
    max-width: 800px;
}

@media (max-width: 768px) {
    .service-card {
        margin: 20px 0;
    }
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.services-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-card {
    display: flex;
    flex-direction: row;
    margin-bottom: 5px;
    padding: 40px 0 40px 180px;
    justify-content: space-between;
    background-color: white;
    overflow: hidden;
}

.service-card:after {
    content: '';
    position: relative;
    bottom: -270px;
    right: 0;
    width: 80px;
    height: 80px;
    background-color: #F8F8F8;
    transform-origin: 110% 100%;
    transform: skewY(320deg) translateY(50%);
    z-index: 0;
}

.service-card div>img {
    height: 333px;
    width: 333px;
    max-width: 100%;
}

.service-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.service-text h4 {
    font-size: 24px;
    font-weight: 700;
    color: #2E4156;
    margin: 10px 0;
    text-align: left;
    width: 100%;
    max-width: 828px;
}

.service-text p {
    font-size: 17px;
    font-weight: 300;
    color: #4D4637;
    margin-bottom: 20px;
    width: 100%;
    max-width: 673px;
    text-wrap: wrap;
}

.service-text .cta-button {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-family: var(--font-primary);
    font-weight: 400;
    color: #A08D58;
    text-decoration: none;
    transition: background 0.3s ease;
    max-width: 200px;
    height: 53px;
    margin: 20px 0;
    border-bottom: solid #A08D58 1px;
}

.flex-end {
    display: flex !important;
    align-self: flex-end !important;
}

.flex-reverse {
    display: flex !important;
    flex-direction: row-reverse;
    padding: 40px 180px 40px 0;
}

.flex-reverse.service-card:after {
    bottom: -340px;
    right: 0;
    width: 80px;
    height: 80px;
    background-color: #F8F8F8;
    transform-origin: 110% 100%;
    transform: skewY(40deg) translateY(50%);
    z-index: 0;
}

@media (max-width: 768px) {

    .services-header {
        text-align: center;
        align-items: center;
        margin: 20px 0;
    }

    .services-cards {
        gap: 0;
    }

    .service-card {
        display: flex;
        flex-direction: column;
        padding: 20px;
        margin: 10px;
        max-width: 100%;
        background-color: white;
        overflow: hidden;
        flex-wrap: wrap;
        align-items: center;
    }

    .service-card:after {
        display: none;
    }

    .service-text .cta-button {
        align-self: center !important;
        display: flex;
        align-items: center;
        padding: 20px 15px 20px 15px;
        font-size: 18px;
        font-family: var(--font-primary);
        font-weight: 400;
        color: var(--base-white);
        background: var(--heading-color);
        text-decoration: none;
        transition: background 0.3s ease;
        max-width: 300px;
        height: 53px;
        margin: 20px 0;
    }

    .service-text {
        gap: 0;
    }

    .service-text h4 {
        text-align: center !important;
    }

    .flex-end {
        align-self: center !important;
    }

    .flex-reverse {
        display: flex !important;
        flex-direction: column;
    }
}

.service-text .cta-button:hover {
    background: var(--heading-color);
}

.how-we-work-section {
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 1600px;
    padding: 60px 20px;
    background-color: #f7f7f7;
}

.how-we-work-title {
    text-align: center;
    font-size: 30px;
    font-weight: 900;
    color: #071136;
    margin-bottom: 40px;
    max-width: 100%;
}

.how-we-work-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.how-we-work-step {
    background: #ffffff;
    width: 300px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.how-we-work-step img {
    width: auto;
    height: 147px;
    margin-bottom: 15px;
}

.how-we-work-heading {
    font-size: 22px;
    font-weight: 600;
    color: #071136;
    margin-bottom: 10px;
}

.how-we-work-text {
    font-size: 17px;
    color: #4D4637;
    line-height: 21px;
}

.hww-steps {
    display: flex;
    flex-direction: column;
}

/* .hww-steps-img-ver {
    display: none;
} */

@media (max-width: 768px) {

    .how-we-work-section {
        padding: 20px 20px 0;
    }

    .how-we-work-steps {
        flex-direction: column;
        align-items: center;
    }

    .hww-steps {
        flex-direction: row;
    }

    .hww-steps-img {
        display: none;
    }

    /* .hww-steps-img-ver {
        display: block;
    } */
}

.contact-section {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    border-radius: 10px;
    max-width: 1000px;
    width: 100%;
    max-width: 1600px;
    margin: auto;
}

.contact-section img {
    max-width: 675px;
    margin-right: 20px;
}

.contact-content {
    max-width: 830px;
    flex-grow: 1;
}

.contact-content h2 {
    margin-top: 0;
    color: #4D4637;
    font-size: 30px;
    font-weight: 900;
}

.contact-content p {
    margin-bottom: 17px;
    font-weight: 300;
    color: #4D4637;
    max-width: 491px;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #4D4637;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px 18px;
    border: 1px solid #F8F8F8;
    border-radius: 5px;
    font-size: 17px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-content button {
    color: #4D4637;
    background-color: #F8F8F8;
    border: none;
    border-bottom: solid 1px #4D4637;
    padding: 10px 20px;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
}

.form-contacts {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

/* .contact-content button:hover {
    color:#f7f7f7;
    background-color: #4D4637;
  } */

@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
        gap: 20px;
    }

    .contact-content h2,
    p {
        text-align: center;
    }
    
    .form-contacts {
        flex-direction:column;
    }

    .form-group {
        font-size: 17px;
    }
}

.footer {
    background-color: #2E4156;
    color: #FAFAFA;
    padding: 20px 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 512px;
    justify-content: space-around;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-container a {
    text-decoration: none;
    color: #FAFAFA;
    font-size: 17px;
}

ul~a {
    border-bottom: solid #A08D58 1px;
    padding: 10px;
}

/* .footer-logo {
    text-align: left;
    font-size: 18px;
    font-weight: bold;
  } */

.footer-nav {
    display: flex;
    gap: 60px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav a {
    text-decoration: none;
    color: #FAFAFA;
    font-size: 17px;
}

.footer-contact {
    display: flex;
    flex-direction: row;
    gap: 10px;
    text-align: right;
    font-size: 17px;
    justify-content: center;
}

.footer-contact div {
    background-color: #6C7888;
    padding: 5px 10px;
    display: inline-block;
}

.footer-contact a {
    text-decoration: none;
    color: #FAFAFA;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 17px;
    color: #FAFAFA;
}

@media (max-width: 768px) {
    .footer-container {
        max-width: 100%;
        flex-direction: column;
        align-content: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }

    .footer-contact {
        flex-direction: column;
        text-align: center;
    }
}

.about-us {
    background-color: #2f3e4d;
    color: #FAFAFA;
    padding: 10px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.about-us a {
    text-decoration: none;
    color: #FAFAFA;
}

.about-us-card {
    display: flex;
    flex-direction: row;
    margin: 40px 0;
    justify-content: space-between;
    overflow: hidden;
}

.why-step {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

/* .partnership {
    display: flex;
    margin: 40px 0;
    height: max-content;
}

.partnership-container {
    margin: 0 auto;
    max-width: 1600px;
}

.partnership h2 {
    text-align: left;
}

.partnership p {
    max-width: 600px;
}

.partnership-container img {
    width: 100%;
} */

.partnership {
    position: relative;
    /* Устанавливаем контейнер как родительский для абсолютного позиционирования */
    margin: 40px 0;
    height: max-content;
}

.partnership-container {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
}

.partnership-container img {
    width: 100%;
    display: block;
    /* Убираем возможные пробелы вокруг изображения */
}

.partnership-content {
    position: absolute;
    /* Делаем блок с текстом поверх картинки */
    top: 25%;
    /* Сдвиг вниз на 50% от высоты родительского элемента */
    left: 25%;
    /* Сдвиг вправо на 50% от ширины родительского элемента */
    transform: translate(-50%, -50%);
    /* Центрируем текст относительно точки top и left */
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    /* Круглые углы фона */
    max-width: 600px;
    /* Ограничение ширины текста */
}

.partnership-content h2 {
    margin: 0 0 10px 0;
    font-size: 30px;
    font-weight: 900;
}

.partnership-content p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .partnership-container {
        display: flex;
        flex-direction: column-reverse;
    }

    .partnership-content {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        text-align: center;
        padding: 20px;
        border-radius: 10px;
        max-width: 600px;
    }

    .about-us-card {
        flex-direction: column;
        margin: 0;
    }

    .about-us-card img {
        max-width: 100%;
        padding: 10px;
    }

}

.faq {
    display: flex;
    margin: 40px auto;
    max-width: 1600px;
    padding: 20px;
}

.faq-container {
    display: flex;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 40px;
}

.faq-content {
    max-width: 600px;
}

.faq h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.faq p {
    font-size: 17px;
    margin-bottom: 20px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    overflow: hidden;
    color:#4D4637;
}

.faq-question {
    background-color: #fff;
    color:#4D4637;
    border: none;
    padding: 10px 20px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 17px;
}

.faq-question:hover {
    background-color: #e0e0e0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: #fff;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    margin: 10px 0;
}

.faq-item.active .faq-answer {
    max-height: 150px;
    padding: 10px 20px;
}

.faq img {
    max-width: 576px;
    width: 100%;
    flex-shrink: 0;
}

.faq-question::before {
    content: '▼';
    float: left;
    transition: transform 0.3s;
    padding-right: 15px;
    font-family: Arial, Helvetica, sans-serif;
    transition: transform 0.3s, content 0.3s;
}

@media (max-width: 768px) {
    .faq {
        margin-bottom: 0;
    }
}