.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0;
}

.section, .videos-section, .about-clinic, .services-section {
    margin-bottom: 100px;
    margin-top: 100px;
}

.section-header {
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.section-header__title {
    font-size: 24px !important;
    font-weight: 500;
    margin: 0;
}

.section-header__subtitle {
    margin: 0;
    color: #E8E6D4;
    font-size: 16px !important;;
    font-weight: 500;
}

.has-background .section-header__subtitle {
    color: #18383c;
}

.doctor-works__header.section-header {
    margin-left: 0;
    align-items: baseline;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

@media screen and (min-width: 1024px) {
    .section-header {
        margin: 0 auto 30px;
        justify-content: flex-start;
    }

    .carousel .section-header {
        margin-left: 0;
        align-items: baseline;
    }

    .section-header__title {
        font-size: 40px !important;
        text-align: center;
    }

    .section-header__subtitle {
        font-size: 18px !important;
        max-width: 600px;
        text-align: center;
    }
}

.section_header .stocks-section, .branch-addresses {
    /* margin-top: 150px; */
}

.equip-tech {
    margin: 100px 0;
}

.footer.section {
    margin: 100px 0 20px;
}

.doctors-section {
    overflow: hidden;
}

.special-offers {
    overflow: hidden;
    margin-top: 100px;
    gap: 30px;
}

/* .accordion-header перенесён в widgets/accordion.css */

@media (max-width: 1200px) {
    .navbar-section,
    .container {
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 768px) {
    .section, .special-offers, .services-clinic-block, .videos-section, .doctors-section, .stocks-section, .rating-section, .yandex-reviews-section, .about-clinic, .record-reception, .services-section, .equip-tech, .branch-addresses {
        margin: 80px auto;
        padding: 0;
    }

    .container {
        width: calc(100% - 20px);
        margin: 0 auto;
        align-items: center;
        max-width: calc(100% - 20px);
    }
}

.text-center {
    text-align: center;
}

.section__tilte, .section__subtitle {
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.section__buttons,
.doctors-button-wrapper {
    display: flex;
    justify-content: center;
    padding: 30px 20px 0;
    width: 100%;
}

@media screen and (max-width: 1023px) {
    .section-header {
        justify-content: flex-start;
        align-items: baseline;
        width: 100%;
        max-width: 100%;
    }

    .section__tilte, .section-header__title, .section-header__subtitle, .section__subtitle {
        max-width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 767px) {
    .section__tilte, .section-header__title, .section-header__subtitle, .section__subtitle {
        text-align: left;
    }
}
