/* =============================================
   iTOP для стоматологов — Вступление (is-intro)
   ============================================= */
.is-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: #f0f4ff;
    border-radius: 20px;
    padding: 32px;
    margin-top: 24px;
    align-items: stretch;
}

.is-intro__media {
    display: flex;
    align-items: stretch;
    position: relative;
}

.is-intro__photo {
    flex: 0 0 55%;
    width: 55%;
    height: 100%;
    border-radius: 16px;
    display: block;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.is-intro__stat {
    flex: 1;
    background: #003baa;
    border-radius: 16px;
    padding: 24px 28px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: -2px;
    position: relative;
    z-index: 2;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
}

.is-intro__stat-number {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.is-intro__stat-label {
    font-size: 15px;
    line-height: 1.4;
    opacity: 0.9;
}

.is-intro__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.is-intro__title {
    font-size: 32px;
    font-weight: 700;
    font-style: italic;
    color: #003baa;
    margin: 0;
    line-height: 1.2;
}

.is-intro__text {
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    margin: 0;
}

.is-intro__text strong {
    font-weight: 600;
}

.is-intro__cta {
    align-self: flex-start;
}

.is-intro__cta.btn {
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 22px;
    line-height: 1.2;
}

/* =============================================
   iTOP для стоматологов — Автор методики (is-author)
   ============================================= */
.is-author {
    position: relative;
    background: #003baa;
    border-radius: 20px;
    padding: 40px 48px;
    margin-top: 40px;
    color: #fff;
}

.is-author__icon {
    position: absolute;
    top: -48px;
    left: 72px;
    width: 72px;
    height: 72px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.is-author__icon-img {
    display: block;
    width: auto;
    height: 64px;
}

.is-author__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.is-author__text {
    font-size: 20px;
    line-height: 1.6;
    margin: 0;
    color: #fff;
}

.is-author__cta {
    align-self: flex-start;
}

.is-author__cta.btn,
.is-author__cta.btn:link,
.is-author__cta.btn:visited {
    background-color: #fff;
    border-color: #fff;
    color: #003baa;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 22px;
    line-height: 1.2;
}

.is-author__cta.btn:hover,
.is-author__cta.btn:focus,
.is-author__cta.btn:active {
    background-color: #f0f4ff;
    border-color: #f0f4ff;
    color: #003baa;
}

/* =============================================
   iTOP для стоматологов — Аудитория (is-audience)
   ============================================= */
.is-audience {
    background: #f0f4ff;
    border-radius: 20px;
    padding: 40px 48px;
    margin-top: 40px;
}

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

.is-audience__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: stretch;
}

.is-audience__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.is-audience__card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.is-audience__icon {
    width: 48px;
    height: 48px;
    background: #003baa;
    border-radius: 50%;
    flex-shrink: 0;
    margin-bottom: 8px;
    position: relative;
}

.is-audience__icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 4px;
    transform: translate(-50%, -50%);
}

.is-audience__card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

.is-audience__card-text {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

.is-audience__card--cta .is-audience__card-btn {
    margin-top: auto;
    align-self: flex-start;
}

.is-audience__card-btn.btn {
    border-radius: 8px;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 22px;
    line-height: 1.2;
}

.is-audience__photo {
    border-radius: 16px;
    overflow: hidden;
}

.is-audience__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =============================================
   iTOP для стоматологов — Метод (is-method)
   ============================================= */
.is-method {
    background: #f0f4ff;
    border-radius: 20px;
    padding: 40px 48px;
    margin-top: 40px;
}

.is-method__title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a2e;
    margin: 0 0 20px;
}

.is-method__accent {
    color: #003baa;
    font-weight: 700;
}

.is-method__list {
    margin: 0;
    padding-left: 24px;
    font-size: 17px;
    line-height: 1.6;
    color: #333;
}

.is-method__list li {
    margin-bottom: 10px;
}

.is-method__list li:last-child {
    margin-bottom: 0;
}

/* =============================================
   iTOP для стоматологов — Touch to Teach (is-touch)
   ============================================= */
.is-touch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #003baa;
    border-radius: 20px;
    padding: 40px 48px;
    margin-top: 24px;
    color: #fff;
    align-items: center;
}

.is-touch__photo {
    border-radius: 16px;
    overflow: hidden;
}

.is-touch__photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.is-touch__text {
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
    color: #fff;
}

.is-touch__text strong {
    font-weight: 700;
    color: #fff;
}

/* =============================================
   iTOP для стоматологов — Сертификат (is-cert)
   ============================================= */
.is-cert {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #f0f4ff;
    border-radius: 20px;
    padding: 40px 48px;
    margin-top: 40px;
    align-items: center;
}

.is-cert__photo {
    border-radius: 16px;
    overflow: hidden;
}

.is-cert__photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.is-cert__text {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #1a1a2e;
}

.is-cert__text strong {
    color: #003baa;
    font-weight: 700;
}

/* =============================================
   iTOP для стоматологов — Две части курса (is-parts)
   Карточки друг под другом, «таб» со скруглением справа,
   приклеенный к верхнему-левому углу карточки
   ============================================= */
.is-parts {
    background: #003baa;
    border-radius: 20px;
    padding: 40px 48px;
    margin-top: 40px;
}

.is-parts__title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.2;
    margin: 0 0 28px;
}

.is-parts__item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.is-parts__item:last-child {
    margin-bottom: 0;
}

/* «Таб» — уширение слева вверху карточки */
.is-parts__tab {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 44px 16px 28px;
    background: rgba(0, 0, 0, 0.25);
    /* TL совпадает с углом карточки (16px), справа — полукруг, BL заподлицо с левой гранью */
    border-radius: 16px 9999px 9999px 0;
    align-self: flex-start;
    min-width: 260px;
}

.is-parts__item-title {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.is-parts__icon {
    display: inline-flex;
    align-items: center;
    color: #fff;
}

.is-parts__icon svg {
    width: 22px;
    height: 22px;
}

.is-parts__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 36px;
    padding: 24px 32px 32px;
    align-items: start;
}

.is-parts__list {
    column-count: 2;
    column-gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #fff;
}

.is-parts__list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 14px;
    break-inside: avoid;
}

.is-parts__list li:last-child {
    margin-bottom: 0;
}

.is-parts__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

.is-parts__photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* =============================================
   iTOP для стоматологов — Цитата (is-quote)
   Блок-цитата автора методики с фото справа и бейджем
   ============================================= */
.is-quote {
    position: relative;
    background: #f0f4ff;
    border-radius: 20px;
    padding: 56px 48px 40px;
    margin-top: 40px;
    overflow: hidden;
}

.is-quote__badge {
    position: absolute;
    top: 20px;
    left: 28px;
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 14px;
    background: #fff;
    color: #003baa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 9999px;
}

.is-quote__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: center;
}

.is-quote__content {
    position: relative;
    padding-left: 64px;
}

.is-quote__mark {
    position: absolute;
    top: 4px;
    left: 0;
    width: 48px;
    height: 36px;
    color: #003baa;
    opacity: 0.18;
}

.is-quote__text {
    font-size: 24px;
    font-weight: 600;
    font-style: italic;
    line-height: 1.4;
    color: #003baa;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    quotes: none;
    background: none;
}

.is-quote__text::before,
.is-quote__text::after {
    content: none;
    display: none;
    background: none;
}

.is-quote__author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.is-quote__author-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.is-quote__author-role {
    font-size: 15px;
    color: #555;
}

.is-quote__media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.is-quote__photo {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center top;
}

/* =============================================
   iTOP для стоматологов — Куда пойти (is-paths)
   3 карточки-кнопки: Москва / Регионы / Клиники.
   Фото внутри карточки — в плашке со скруглением и отступами.
   ============================================= */
.is-paths {
    margin-top: 40px;
}

.is-paths__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.is-paths__card {
    background: #2760cc;
    border-radius: 20px;
    padding: 20px 20px 28px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.is-paths__card,
a.is-paths__card:link,
a.is-paths__card:visited {
    color: #fff;
    text-decoration: none;
}

a.is-paths__card:hover,
a.is-paths__card:focus {
    background: #003baa;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 59, 170, 0.25);
    color: #fff;
    text-decoration: none;
}

.is-paths__media {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f0f4ff;
}

.is-paths__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.is-paths__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 0;
    padding: 0 8px;
}

/* =============================================
   iTOP для стоматологов — Шапка отзывов (is-reviews-header)
   Заголовок + кнопка «Оставить отзыв».
   Сам список и попап стилизуются в шаблонах компонентов.
   ============================================= */
.is-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    margin: 40px 0 24px;
}

.is-reviews-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

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

/* =============================================
   iTOP для стоматологов — FAQ Вопросы (is-faq)
   Аккордеон на голубом фоне: закрытые пункты — белые пилюли,
   открытый — синий заголовок и развёрнутый ответ снизу.
   Логика раскрытия — в stom.js.
   ============================================= */
.is-faq {
    background: #f0f4ff;
    border-radius: 20px;
    padding: 48px;
    margin-top: 40px;
}

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

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

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

.is-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;
}

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

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

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

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

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

.is-faq__answer p + p {
    padding-top: 4px;
}

/* =============================================
   iTOP для стоматологов — Контакты (is-info)
   Две синие плашки в ряд: адрес слева, контакты справа.
   ============================================= */
.is-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.is-info__card {
    background: #2760cc;
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.is-info__icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 20px;
}

.is-info__heading {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.is-info__list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 17px;
    line-height: 1.6;
}

.is-info__list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 18px;
}

.is-info__list li:last-child {
    margin-bottom: 0;
}

.is-info__list li::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.is-info__list a {
    color: #fff;
    text-decoration: underline;
}

.is-info__list a:hover {
    color: #fff;
    text-decoration: none;
}

/* =============================================
   iTOP для стоматологов — Блог iTOP (is-blog)
   2 колонки карточек: фото сверху, тег/заголовок/текст/кнопка снизу.
   ============================================= */
.is-blog {
    margin-top: 40px;
}

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

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

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

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

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

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

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

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

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

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

.is-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;
}

.is-blog__btn:hover {
    border-color: #999;
    color: #222;
    text-decoration: none;
}

/* =============================================
   iTOP для стоматологов — Поп-ап Telegram (is-tg-popup)
   Модалка с затемнением по центру
   ============================================= */
.is-tg-popup {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.is-tg-popup.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear;
}

.is-tg-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 60, 0.55);
    cursor: pointer;
}

.is-tg-popup__window {
    position: relative;
    width: 520px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 20px;
    padding: 40px 48px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
}

.is-tg-popup.is-visible .is-tg-popup__window {
    transform: scale(1) translateY(0);
}

.is-tg-popup__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    color: #888;
    padding: 0;
}

.is-tg-popup__close:hover {
    color: #222;
}

.is-tg-popup__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-right: 32px;
}

.is-tg-popup__icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.is-tg-popup__title {
    font-size: 22px;
    font-weight: 700;
    color: #003baa;
    margin: 0;
    line-height: 1.3;
}

.is-tg-popup__text {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 0 0 24px;
}

.is-tg-popup__cta.btn {
    border-radius: 8px;
    padding: 14px 32px;
    width: 100%;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    line-height: 1.2;
}
