/* =============================================
   Школа гигиены — полноразмерный баннер (sg-intro)
   ============================================= */
.sg-intro {
    width: 100%;
    margin: 40px 0;
}

.sg-intro__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px;
}

/* =============================================
   Школа гигиены — баннер с методикой (sg-banner)
   ============================================= */
.sg-banner {
    border-radius: 20px;
    overflow: hidden;
}

.sg-banner__header {
    background: linear-gradient(to bottom, #003baa, #fff);
    padding: 40px 40px 30px;
}

.sg-banner__title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.2;
    margin: 0;
}

.sg-banner__inner {
    background: #fff;
    padding: 0 40px 40px;
}

.sg-banner__body {
    display: flex;
    gap: 24px;
    align-items: center;
}

.sg-banner__photo {
    flex: 0 0 55%;
}

.sg-banner__photo img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.sg-banner__links {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.sg-banner__pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #2760cc;
    border-radius: 40px;
    padding: 14px 20px;
    text-decoration: none;
    transition: background 0.2s;
}

.sg-banner__pill:hover {
    background: #1a4fba;
}

.sg-banner__pill-text {
    flex: 1;
    color: #fff;
}

.sg-banner__pill-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sg-banner__pill-desc {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.85;
}

.sg-banner__pill-icons {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sg-banner__pill-icon {
    width: 40px;
    height: 40px;
    background: #003baa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-banner__pill-icon img {
    width: 32px;
    height: 32px;
}

/* =============================================
   Плашка с кнопкой/кнопками (sg-cta)
   ============================================= */
.sg-cta {
    background: #f0f4ff;
    border-radius: 20px;
    padding: 80px 6vw;
    text-align: center;
}

.sg-cta .btn {
    border-radius: 12px;
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 700;
    padding: 24px 56px;
    line-height: 1.2;
}

/* Вариант с тремя кнопками — выбор города */
.sg-cta--three {
    display: flex;
    justify-content: center;
    gap: 54px;
    flex-wrap: nowrap;
    margin-bottom: 40px;
    padding: 80px 3vw;
}

.sg-cta--three .btn {
    font-size: clamp(13px, 1vw, 16px);
    padding: 18px 20px;
    white-space: nowrap;
}

/* =============================================
   Адаптив
   ============================================= */
@media (max-width: 768px) {
    .sg-banner {
        padding: 24px;
    }

    .sg-banner__title {
        font-size: 24px;
    }

    .sg-banner__body {
        flex-direction: column;
    }

    .sg-banner__photo {
        flex: none;
    }

    .sg-cta {
        padding: 32px 20px;
    }

    .sg-cta .btn {
        width: 100%;
        max-width: 100%;
        padding: 18px 20px;
        font-size: 16px;
        white-space: normal;
    }

    .sg-cta--three {
        flex-direction: column;
        gap: 12px;
    }
}


/* =============================================
   Заголовок секции
   ============================================= */
.sg-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

/* =============================================
   Заголовок отзывов с кнопкой
   ============================================= */
.sg-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    margin: 40px 0 24px;
}

.sg-review-popup-trigger {
    flex-shrink: 0;
}

/* =============================================
   Блог о здоровой улыбке (sg-blog)
   ============================================= */
.sg-blog {
    margin-top: 40px;
}

.sg-blog__header {
    margin-bottom: 32px;
}

.sg-blog__title {
    font-size: 36px;
    font-weight: 700;
    font-style: italic;
    color: #003baa;
    margin: 0 0 8px;
}

.sg-blog__subtitle {
    font-size: 17px;
    color: #555;
    margin: 0;
}

.sg-blog__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sg-blog__card {
    background: #f2f2f2;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sg-blog__img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.sg-blog__body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sg-blog__tag {
    font-size: 13px;
    font-weight: 500;
    color: #003baa;
    margin-bottom: 6px;
}

.sg-blog__card-title {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.sg-blog__desc {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 auto;
}

.sg-blog__btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    width: fit-content;
    margin-top: 20px;
}

.sg-blog__btn:hover {
    border-color: #999;
}

/* Адаптив — одна колонка, компактнее */
@media (max-width: 768px) {
    .sg-blog {
        margin-top: 28px;
    }

    .sg-blog__header {
        margin-bottom: 20px;
    }

    .sg-blog__title {
        font-size: 24px;
    }

    .sg-blog__subtitle {
        font-size: 14px;
    }

    .sg-blog__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sg-blog__img {
        height: 180px;
    }

    .sg-blog__body {
        padding: 18px 20px 22px;
    }

    .sg-blog__tag {
        font-size: 12px;
    }

    .sg-blog__card-title {
        font-size: 18px;
    }

    .sg-blog__desc {
        font-size: 14px;
    }
}

/* =============================================
   FAQ Вопрос-ответ (sg-faq)
   ============================================= */
.sg-faq {
    background: #f0f4ff;
    border-radius: 20px;
    padding: 48px;
    margin-top: 40px;
}

.sg-faq__title {
    color: #003baa;
    font-size: 36px;
    font-weight: 700;
    font-style: italic;
    margin: 0 0 32px;
}

.sg-faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sg-faq__item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.sg-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    color: #222;
    text-align: left;
    gap: 16px;
}

.sg-faq__icon {
    font-size: 24px;
    font-weight: 300;
    color: #003baa;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sg-faq__item.is-open .sg-faq__question {
    background: #003baa;
    color: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
}

.sg-faq__item.is-open .sg-faq__icon {
    transform: rotate(45deg);
    color: #fff;
}

.sg-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.sg-faq__answer p {
    padding: 0 24px 20px;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* =============================================
   Обёртка блока контакта (sg-contact-wrap)
   ============================================= */
.sg-contact-title {
    font-size: 36px;
    font-weight: 700;
    font-style: italic;
    color: #003baa;
    margin: 40px 0 24px;
}

.sg-contact-title + .sg-contact-wrap {
    margin-top: 0;
}

.sg-contact-wrap {
    margin-top: 28px;
    padding: 18px;
    background: #f2f2f2;
    border-radius: 20px;
}

.sg-contact-wrap .contacts-detail .grid-list--items .grid-list__item {
    background: #fff;
}

/* =============================================
   Контакты (sg-contacts)
   ============================================= */
.sg-contacts {
    background: #f0f4ff;
    border-radius: 20px;
    padding: 48px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.sg-contacts__title {
    color: #003baa;
    font-size: 42px;
    font-weight: 700;
    font-style: italic;
    margin: 0;
    flex-shrink: 0;
}

.sg-contacts__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sg-contacts__phone,
.sg-contacts__email {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

.sg-contacts__phone:hover,
.sg-contacts__email:hover {
    color: #003baa;
}

.sg-contacts__socials {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.sg-contacts__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: opacity 0.2s ease;
}

.sg-contacts__social img {
    width: 32px;
    height: 32px;
    display: block;
}

.sg-contacts__social--max img {
    width: 28px;
    height: 28px;
}

.sg-contacts__social:hover {
    opacity: 0.7;
}

/* Адаптив */
@media (max-width: 768px) {
    .sg-contacts {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
        gap: 20px;
    }

    .sg-contacts__title {
        font-size: 28px;
    }

    .sg-contacts__phone,
    .sg-contacts__email {
        font-size: 18px;
    }

    .sg-contacts__socials {
        gap: 12px;
    }
}

