/* ==========================================================================
   main.css — Section styles for Centrmehano WP theme
   Design based on Tilda export page54266773
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   Base / Reset / Typography
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #171717;
    background: #f5f5f5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
a:hover { color: #0093d5; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.2; }
/* cm_h1(): H1 с Тильды скрыт визуально, видимый заголовок без тега h1 выглядит как h1 */
.cm-seo-h1 { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:where(.cm-h1-look) { display: block; margin: 0; font-size: 2em; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 16px; line-height: 1.6; }
p:last-child { margin-bottom: 0; }

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #171717;
    margin-bottom: 12px;
    line-height: 1.2;
}
.section-subtitle {
    font-size: 16px;
    color: #4b5e67;
    margin-bottom: 40px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .section-title { font-size: 26px; }
}

/* --- Buttons --- */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background-color: #0093d5;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color .2s, transform .15s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary:hover {
    background-color: #007db5;
    color: #fff;
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: transparent;
    color: #0093d5;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid #0093d5;
    transition: background-color .2s, color .2s;
    cursor: pointer;
    white-space: nowrap;
}
.btn-secondary:hover {
    background-color: #0093d5;
    color: #fff;
}

/* ==========================================================================
   Hero (главная) — сверено с оригиналом Tilda, rec850812614
   ========================================================================== */

.hero-home {
    position: relative;
    height: 700px;
    background-color: #063f5c;
    overflow: hidden;
    margin: 0 20px 0;
    border-radius: 16px;
}

.hero-home__media {
    position: absolute;
    inset: 0;
}

.hero-home__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Оверлей на видео: linear-gradient(180deg,#005D85→#1D6583) 75% + blur(6px) — значения взяты из #rec850812614 .tn-elem[data-elem-id="1721211100581"] .tn-atom.
   Как в Tilda: блюр — на обёртке (opacity 1), градиент с opacity .75 — на дочернем слое. Если opacity<1 стоит
   на том же элементе, что и backdrop-filter, браузер блюр не рисует и видео остаётся резким. */
.hero-home__overlay {
    position: absolute;
    inset: 0;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.hero-home__overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, #005d85 0%, #1d6583 100%);
    opacity: 0.75;
}

.hero-home__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    padding: 140px 0 64px;
}

.hero-home__left {
    flex: 1 1 460px;
    min-width: 0;
}

.hero-home__content { max-width: 460px; margin-bottom: 40px; }

.hero-home__title {
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 44px;
    font-weight: 500;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 20px;
}

.hero-home__subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: #f6f6f6;
    margin: 0;
}

.hero-home__cta-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
    max-width: none;
}

.hero-home__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 0 32px;
    border: 0;
    background: #fff;
    color: #0093d5;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.2px;
    border-radius: 32px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s;
}
.hero-home__btn:hover { background: #dbe8ee; color: #0093d5; text-decoration: none; }

.hero-home__author {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex: 0 1 446px;
    max-width: 446px;
}

.hero-home__author-info {
    position: relative;
    z-index: 1;
}

.hero-home__author-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.55;
    margin: 0;
}

.hero-home__author-role {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    opacity: .65;
    line-height: 1.55;
    max-width: 280px;
    margin: 4px 0 0;
}

.hero-home__author-photo {
    position: absolute;
    bottom: -190px; /* hero overflow:hidden обрезает по border-radius */
    left: 0;
    right: 0;
}
.hero-home__author-photo img { display: block; width: 100%; height: auto; }

.hero-home__signature {
    position: absolute !important;
    top: -3%;
    left: 0%;
    width: 22% !important;
    height: auto !important;
    z-index: 1;
}

.hero-home__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.hero-home__badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    background: rgba(255,255,255,.12);
    border-radius: 8px;
    -webkit-backdrop-filter: blur(23px);
    backdrop-filter: blur(23px);
}

.hero-home__badge-icon { width: 32px; height: 32px; display: block; }

.hero-home__badge-bold {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    white-space: nowrap;
}

.hero-home__badge-rest {
    font-size: 15px;
    line-height: 1.4;
    color: #d7e2ea;
    margin: 0;
}

/* Десктоп — размеры как в Tilda (rec850812614, замер на 1440, от верха хиро): заголовок 152, плашки 470–650 (высота 180),
   низ хиро 700. Плашка 256×180, отступ 24, иконка 48, зазор иконка→текст 12, текст 15/22.5, между плашками ~6px.
   Контейнер ровно по высоте хиро (700): иначе при росте левой колонки фото автора, привязанное к низу колонки,
   уезжает за обрезку overflow:hidden и не подгружается (lazy-load) */
@media (min-width: 992px) {
    .hero-home__container { box-sizing: border-box; height: 100%; padding: 152px 0 50px; }
    .hero-home__content { margin-bottom: 24px; }
    .hero-home__author-photo { bottom: -137px; } /* низ фото на 787 от верха хиро, как в Tilda */
    .hero-home__badges { gap: 6px; }
    .hero-home__badge { box-sizing: border-box; width: 256px; min-height: 180px; padding: 24px; gap: 0; }
    .hero-home__badge-icon { width: 48px; height: 48px; margin-bottom: 12px; }
    .hero-home__badge-bold,
    .hero-home__badge-rest { line-height: 22.5px; }
}

.hero-home__watch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #f6f6f6;
    text-decoration: none;
}
.hero-home__watch img { width: 30px; height: 30px; }
.hero-home__watch:hover { color: #fff; text-decoration: underline; }

/* Телефон/планшет — по мобильной версии Tilda (rec850812614, 375px):
   заголовок → текст → кнопка → плашки рейтингов → строка с врачом */
@media (max-width: 991px) {
    .hero-home { height: auto; min-height: 0; }
    .hero-home__container {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0;
        padding: 141px 24px 44px;
    }
    .hero-home__left { flex: none; }
    .hero-home__content { max-width: none; margin-bottom: 24px; }
    .hero-home__title { max-width: 252px; margin-bottom: 12px; font-size: 26px; line-height: 27px; letter-spacing: -0.5px; }
    .hero-home__subtitle { font-size: 16px; line-height: 25px; letter-spacing: -0.2px; }

    .hero-home__cta-row { display: block; margin-bottom: 0; }
    .hero-home__btn { width: 100%; font-size: 15px; }
    .hero-home__watch { display: none; }

    .hero-home__badges {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 50px;
    }
    .hero-home__badge {
        position: relative;
        display: block;
        min-height: 97px;
        padding: 20px 16px 20px 81px;
        background: rgba(255, 255, 255, .05);
    }
    .hero-home__badge-icon {
        position: absolute;
        top: 50%;
        left: 23px;
        width: 50px;
        height: 50px;
        transform: translateY(-50%);
    }
    .hero-home__badge-bold { display: block; font-size: 14px; line-height: 19px; white-space: normal; }
    .hero-home__badge-rest { font-size: 14px; line-height: 19px; color: #d7e2ea; }

    .hero-home__author {
        flex: none;
        flex-direction: row;
        align-items: flex-start;
        gap: 13px;
        max-width: none;
        margin: 44px 0 0;
    }
    .hero-home__author-photo {
        position: relative;
        bottom: auto;
        order: -1;
        flex: 0 0 91px;
        width: 91px;
    }
    .hero-home__author-photo .hero-home__signature { display: none; }
    .hero-home__author-info { padding-top: 14px; }
    .hero-home__author-name { font-size: 13px; line-height: 20px; }
    .hero-home__author-role { max-width: 162px; margin-top: 3px; font-size: 12px; line-height: 17px; }
}

@media (max-width: 639px) {
    /* Как в Тильде: карточка тянется по экрану (отступы 4/3px), контент — колонка 320px по центру */
    .hero-home { margin: 0 3px 0 4px; }
    .hero-home__container {
        width: min(320px, calc(100% - 32px));
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
    }
}

/* ==========================================================================
   About
   ========================================================================== */

.section-about {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 20px;
    margin: -30px 20px 0;
    padding: 70px 0;
}

.about__layout {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 60px;
}

.about__text-col {
    flex: 1 1 54%;
    width: 54%;
    max-width: 54%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about__counters-col {
    flex: 1 1 46%;
    width: 46%;
    min-width: 0;
    display: flex;
}

.about__title {
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #171717;
    line-height: 1.1;
    margin: 0 0 24px;
}

.about__title span {
    color: #0093d5;
}

.about__description {
    font-size: 16px;
    color: #3f3f3f;
    line-height: 1.55;
    margin: 0 0 28px;
}

.about__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 0 32px;
    background: #3aa5d6;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.2px;
    border-radius: 32px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s;
    margin-top: auto;
}
.about__link:hover { background: #007db5; color: #fff; text-decoration: none; }

.about__counters {
    display: flex;
    flex-wrap: wrap;
    align-content: stretch;
    gap: 10px;
    width: 100%;
}

.about__counter-item {
    flex: 1 1 calc(50% - 5px);
    width: calc(50% - 5px);
    padding: 32px 28px;
    box-sizing: border-box;
    background: #f5f5f5;
    border-radius: 8px;
}

.about__counter-number {
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 34px;
    font-weight: 500;
    color: #000;
    line-height: 1;
    margin-bottom: 20px;
}

.about__counter-label {
    font-size: 16px;
    color: #3f3f3f;
    line-height: 1.55;
}

/* Телефон/планшет — по мобильной версии Tilda (rec853181833, 375px):
   заголовок → текст → счётчики столбиком → кнопка во всю ширину */
@media (max-width: 991px) {
    .section-about { margin: -30px 20px 0; padding: 70px 0 47px; }
    .section-about .container { padding: 0 20px; }
    .about__layout { flex-direction: column; flex-wrap: nowrap; gap: 0; }
    .about__text-col { display: contents; }
    .about__title {
        order: 1;
        margin: 0 0 18px;
        font-size: 24px;
        line-height: 26px;
        letter-spacing: -0.6px;
    }
    .about__description {
        order: 2;
        margin: 0;
        font-size: 15px;
        line-height: 23px;
    }
    .about__description p { margin: 0; font-size: 15px; line-height: 23px; }
    .about__counters-col { order: 3; width: 100%; margin-top: 23px; }
    .about__counters { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
    .about__counter-item { flex: none; width: 100%; padding: 24px 20px 20px; }
    .about__counter-number { margin-bottom: 4px; font-size: 24px; line-height: 24px; }
    .about__counter-label { font-size: 15px; line-height: 23px; }
    .about__link {
        order: 4;
        width: 100%;
        height: 56px;
        margin-top: 30px;
        font-size: 14px;
    }
}

@media (max-width: 639px) {
    /* Как в Тильде на 375: карточка от 5 до 361px, контент 320px */
    .section-about { margin: -30px 14px 0 5px; }
    .section-about .container { width: min(320px, 100%); max-width: none; margin: 0 0 0 max(0px, calc(50vw - 165px)); padding: 0; }
}

/* ==========================================================================
   Services
   ========================================================================== */

.section-services {
    background: #f5f5f5;
    padding: 80px 0;
}

.services__title {
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #171717;
    line-height: 1.1;
    margin: 0 0 16px;
}

.services__title span {
    color: #0093d5;
}

.services__subtitle {
    font-size: 16px;
    color: #3f3f3f;
    line-height: 1.55;
    margin: 0 0 40px;
    max-width: 800px;
}

.services__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.services__item {
    flex: 1 1 calc(20% - 8px);
    min-width: 180px;
}

.services__link,
.services__item > .services__name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    height: 100%;
    box-sizing: border-box;
    transition: background-color .2s;
}

.services__link:hover {
    background: #f0f0f0;
    color: #171717;
}

.services__icon {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 32px;
    transition: transform .3s;
}

.services__link:hover .services__icon {
    transform: scale(1.14);
}

.services__name {
    font-size: 16px;
    font-weight: 500;
    color: #171717;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .section-services { padding: 60px 0; }
    .services__item { flex: 1 1 calc(33.333% - 7px); }
    .services__title { font-size: 26px; }
}

/* Телефон — по мобильной версии Tilda (rec793099457, 375px): карточки списком, иконка слева */
@media (max-width: 639px) {
    .section-services { padding: 70px 0 50px; }
    .section-services .container { width: min(320px, calc(100% - 40px)); margin: 0 auto; padding: 0; }
    .services__title { max-width: 210px; margin-bottom: 12px; font-size: 28px; line-height: 31px; }
    .services__subtitle { margin-bottom: 33px; font-size: 16px; line-height: 25px; letter-spacing: -0.3px; }
    .services__grid { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
    .services__item { flex: none; width: 100%; min-width: 0; }
    .services__link,
    .services__item > .services__name {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
        min-height: 98px;
        padding: 20px;
        text-align: left;
    }
    .services__icon { flex: 0 0 58px; width: 58px; height: 58px; margin: 0; }
    .services__name { font-size: 15px; line-height: 23px; }
}

/* ==========================================================================
   Методика / патент (главная) — сверено с Tilda rec1189468016
   ========================================================================== */

.method-home {
    background: #f5f5f5;
    padding: 60px 0;
}

.method-home__row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 48px;
}

.method-home__left {
    flex: 70 1 643px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.method-home__title {
    margin: 0 0 32px;
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.1;
    color: #171717;
}

.method-home__title span {
    color: #0093d5;
}

.method-home__text {
    max-width: 550px;
    margin: 0 0 20px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 15px;
    line-height: 23px;
    color: #676767;
}

.method-home__patent {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 540px;
    margin-bottom: 48px;
}

.method-home__patent-icon {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
}

.method-home__patent-text {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 15px;
    line-height: 23px;
    color: #676767;
}

/* span — если текст вставлен из Тильды: её style="color: rgb(...)" WordPress
   при выводе вырезает, поэтому цвет задаём здесь */
.method-home__patent-text strong,
.method-home__patent-text b,
.method-home__patent-text span {
    font-weight: 500;
    color: #171717;
}

/* Кнопка прижата к низу колонки — на уровень нижнего края фото, как в Тильде */
.method-home__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 335px;
    max-width: 100%;
    height: 70px;
    margin-top: auto;
    padding: 0 24px;
    border-radius: 50px;
    background: #0093d5;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.2px;
    text-decoration: none;
    transition: background-color .2s ease-in-out;
}

.method-home__btn:hover {
    background: #0082bd;
    color: #fff;
}

.method-home__photo {
    flex: 0 1 540px;
    min-width: 0;
    height: 480px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.method-home__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
}

/* Планшет/мобила: одна колонка, фото встаёт между абзацем и строкой про патент
   (как в Тильде). Левая обёртка «растворяется», порядок задаём через order. */
@media (max-width: 1199px) {
    .method-home__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .method-home__left { display: contents; }
    .method-home__title  { order: 1; }
    .method-home__text   { order: 2; }
    .method-home__photo  { order: 3; flex: none; width: 100%; max-width: 580px; height: 398px; margin-bottom: 24px; }
    .method-home__patent { order: 4; margin-bottom: 32px; }
    .method-home__btn    { order: 5; margin-top: 0; }
}

/* Телефон — по мобильной версии Tilda (rec1189468016, 375px): иконка над текстом про патент */
@media (max-width: 639px) {
    .method-home { padding: 40px 0; }
    .method-home .container { width: min(320px, calc(100% - 40px)); margin: 0 auto; padding: 0; }
    .method-home__title { margin-bottom: 16px; font-size: 24px; line-height: 26px; }
    .method-home__text { max-width: 298px; margin-bottom: 51px; }
    .method-home__text,
    .method-home__patent-text { font-size: 15px; line-height: 23px; letter-spacing: -0.5px; }
    .method-home__photo { max-width: none; height: 270px; margin-bottom: 28px; }
    .method-home__patent {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        max-width: none;
        margin-bottom: 32px;
    }
    .method-home__patent-icon { flex: 0 0 44px; width: 44px; height: 44px; }
    .method-home__btn { width: 100%; height: 64px; font-size: 15px; }
}

/* ==========================================================================
   ТВ-эксперт (главная) — сверено с Tilda rec1189473926 / rec1189473931 / rec1189473936
   ========================================================================== */

.tv-home {
    background: #f5f5f5;
    padding: 40px 0 60px;
}

.tv-home__title {
    max-width: 805px;
    margin: 0 0 40px;
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.1;
    color: #171717;
}

.tv-home__title span {
    color: #0093d5;
}

/* Лента: обычный горизонтальный скролл, как артборд в Тильде */
.tv-home__track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
}

.tv-home__track::-webkit-scrollbar {
    display: none;
}

.tv-home__track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.tv-home__track.is-dragging iframe {
    pointer-events: none;
}

.tv-home__card {
    flex: 0 0 460px;
    min-width: 0;
}

.tv-home__video {
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.tv-home__video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.tv-home__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.tv-home__logo {
    flex: 0 0 auto;
    width: auto;
    height: 50px;
}

.tv-home__caption {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    color: #000;
}

.tv-home__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.tv-home__arrow {
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transition: opacity .2s;
}

.tv-home__arrow svg {
    display: block;
    width: 100%;
    height: 100%;
}

.tv-home__arrow:disabled {
    opacity: .4;
    cursor: default;
}

.tv-home__hint {
    max-width: 198px;
    margin: 0 0 0 16px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    line-height: 22px;
    color: #7e7e7e;
}

@media (max-width: 1599px) {
    .tv-home__title { font-size: 32px; max-width: 747px; }
    .tv-home__card { flex-basis: 430px; }
    .tv-home__video { height: 240px; }
    .tv-home__caption { font-size: 16px; line-height: 22px; }
}

@media (max-width: 639px) {
    .tv-home { padding: 30px 20px 40px; }
    .tv-home__title { font-size: 28px; margin-bottom: 24px; }
    .tv-home__track { gap: 20px; }
    .tv-home__card { flex-basis: 320px; }
    .tv-home__video { height: 200px; }
    .tv-home__meta { margin-top: 16px; }
    .tv-home__logo { height: 44px; }
    .tv-home__arrow { flex-basis: 48px; width: 48px; height: 48px; }
    .tv-home__hint { max-width: 208px; margin-left: 4px; }
}

/* ==========================================================================
   Основатель (главная) — сверено с Tilda rec1189465441
   ========================================================================== */

.founder-home {
    background: #f5f5f5;
    padding: 60px 0;
}

.founder-home__row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 48px;
}

.founder-home__left {
    flex: 1 1 760px;
    min-width: 0;
}

.founder-home__title {
    max-width: 628px;
    margin: 0;
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.1;
    color: #171717;
}

.founder-home__title span {
    color: #3aa5d6;
}

.founder-home__role {
    max-width: 520px;
    margin: 12px 0 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 18px;
    line-height: 23px;
    color: #676767;
}

/* Карточки фактов — в Тильде это группы: белый фон, радиус 8, паддинг 24 */
.founder-home__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.founder-home__fact {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-radius: 8px;
    background: #fff;
}

.founder-home__dot {
    width: 8px;
    height: 8px;
    margin-bottom: 28px;
    border-radius: 2px;
    background: #0093d5;
}

.founder-home__fact-text {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 18px;
    line-height: 23px;
    color: #676767;
}

.founder-home__fact-text strong,
.founder-home__fact-text b,
.founder-home__fact-text span {
    font-weight: 600;
    color: #171717;
}

.founder-home__photo {
    flex: 0 0 570px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.founder-home__photo img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

@media (max-width: 1599px) {
    .founder-home__title { font-size: 32px; max-width: 565px; }
    .founder-home__role { font-size: 15px; max-width: 435px; }
    .founder-home__fact-text { font-size: 15px; }
    .founder-home__photo { flex-basis: 470px; }
}

@media (max-width: 1199px) {
    .founder-home__row { flex-direction: column; align-items: stretch; gap: 28px; }
    .founder-home__photo { flex: none; width: 100%; max-width: 580px; height: 400px; }
    .founder-home__left { flex: none; }
}

@media (max-width: 639px) {
    .founder-home { padding: 40px 20px; }
    .founder-home__title { font-size: 24px; }
    .founder-home__facts { flex-direction: column; flex-wrap: nowrap; }
    .founder-home__fact { flex: none; width: 100%; }
    .founder-home__photo { height: 300px; }
}

/* ==========================================================================
   First Visit (табы этапов) — сверено с Tilda rec793254823
   ========================================================================== */

.fv {
    background: #f5f5f5;
    padding: 80px 0;
}

.fv__container {
    display: flex;
    align-items: stretch;
    gap: 40px;
}

.fv__nav-col {
    flex: 0 0 380px;
    min-width: 0;
}

.fv__title {
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.1;
    color: #171717;
    margin: 0 0 16px;
}

.fv__title span { color: #0093d5; }

.fv__subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: #3f3f3f;
    margin: 0 0 24px;
}

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

.fv__tab {
    display: flex;
    align-items: center;
    width: 100%;
    height: 78px;
    text-align: left;
    padding: 0 24px;
    background: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    color: #171717;
    cursor: pointer;
    transition: background-color .2s;
    box-sizing: border-box;
}

.fv__tab.is-active {
    background: linear-gradient(90deg, #d6ecf9 0%, #fff 100%);
}

.fv__panel {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-sizing: border-box;
}

.fv__panel-item {
    display: none;
    align-items: stretch;
    gap: 40px;
    width: 100%;
}

.fv__panel-item.is-active {
    display: flex;
    flex: 1;
}

.fv__panel-photo {
    flex: 0 0 45%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.fv__panel-photo img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fv__panel-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    min-width: 0;
}

.fv__panel-title {
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 26px;
    font-weight: 500;
    color: #171717;
    margin: 0 0 16px;
}

.fv__panel-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #3f3f3f;
    margin: 0 0 32px;
}

.fv__panel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 0 32px;
    background: #3aa5d6;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 32px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s;
    margin-top: auto;
}
.fv__panel-btn:hover { background: #007db5; color: #fff; text-decoration: none; }

@media (max-width: 991px) {
    .fv { padding: 60px 0; }
    .fv__container { flex-direction: column; }
    .fv__nav-col { flex: none; width: 100%; }
    .fv__title { font-size: 26px; }
    .fv__panel { padding: 24px; }
    .fv__panel-item { flex-direction: column; }
    .fv__panel-photo { flex: none; width: 100%; height: 260px; }
}

/* Метка этапа и мобильный подзаголовок видны только на телефоне */
.fv__step-label,
.fv__subtitle--mobile { display: none; }

/* Телефон — по мобильной версии Tilda (rec793255063 + rec793351109, 375px):
   вместо вкладок — горизонтальная лента этапов, листается пальцем */
@media (max-width: 639px) {
    .fv { padding: 30px 0; }
    .fv .container { width: min(320px, calc(100% - 40px)); margin: 0 auto; padding: 0; }
    .fv__container { flex-direction: column; gap: 0; }
    .fv__title { max-width: 240px; margin-bottom: 13px; font-size: 28px; line-height: 31px; }
    .fv__subtitle { margin: 0; font-size: 15px; line-height: 23px; }
    .fv__subtitle--desktop { display: none; }
    .fv__subtitle--mobile { display: block; }
    .fv__tabs { display: none; }

    .fv__panel {
        display: flex;
        gap: 22px;
        margin: 32px calc(50% - 50vw) 0;
        padding: 0 calc(50vw - 50%);
        overflow-x: auto;
        border-radius: 0;
        background: none;
        scrollbar-width: none;
    }
    .fv__panel::-webkit-scrollbar { display: none; }

    .fv__panel-item,
    .fv__panel-item.is-active {
        display: flex;
        flex: 0 0 320px;
        flex-direction: column;
        gap: 0;
    }

    .fv__step-label {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: flex-start;
        width: 90px;
        height: 28px;
        margin-bottom: 30px;
        border: 1px solid #0093d5;
        border-radius: 4px;
        font-family: 'Montserrat', Arial, sans-serif;
        font-size: 12px;
        color: #0093d5;
    }
    /* Линия-шкала до метки следующего этапа */
    .fv__step-label::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 100%;
        width: 252px;
        height: 1px;
        background: linear-gradient(90deg, rgba(0, 147, 213, .58) 0%, rgba(0, 147, 213, .22) 100%);
    }
    .fv__panel-item:last-child .fv__step-label::after { display: none; }

    .fv__panel-photo { flex: none; width: 100%; height: 200px; margin-bottom: 30px; border-radius: 6px; }
    .fv__panel-title { margin: 0 0 12px; font-size: 22px; line-height: 24px; }
    .fv__panel-desc { margin: 0; font-size: 15px; line-height: 23px; }
    .fv__panel-btn { display: none; }
    .fv__panel-item:last-child .fv__panel-btn {
        display: inline-flex;
        width: 100%;
        height: 62px;
        margin-top: 20px;
        background: #0093d5;
        font-size: 16px;
        letter-spacing: -0.2px;
    }
}

/* ==========================================================================
   Спецпредложения (главная) — сверено с Tilda rec1189477086
   ========================================================================== */

.offers-home {
    margin: 0 20px;
    padding: 70px 0;
    border-radius: 20px;
    background: linear-gradient(99deg, #0093d5 0%, #6fd2ff 100%);
}

.offers-home__title {
    max-width: 627px;
    margin: 0 auto 32px;
    text-align: center;
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 38px;
    font-weight: 500;
    line-height: 40px;
    color: #fff;
}

.offers-home__cards {
    display: flex;
    gap: 14px;
}

.offers-home__card {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    border-radius: 16px;
    background: #fff;
}

.offers-home__image {
    align-self: stretch;
    height: 218px;
    border-radius: 12px;
    overflow: hidden;
    background: #e1eef4;
}

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

/* Небольшая картинка без фона (сертификат) — по центру на голубом */
.offers-home__image--contain {
    display: flex;
    align-items: center;
    justify-content: center;
}

.offers-home__image--contain img {
    width: auto;
    height: auto;
    max-width: 189px;
    max-height: 180px;
    object-fit: contain;
}

.offers-home__card-title {
    min-height: 72px;
    margin: 18px 0 30px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: #142f3b;
}

.offers-home__card-title span {
    color: #0093d5;
}

.offers-home__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-top: auto;
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1;
}

.offers-home__price {
    font-size: 18px;
    font-weight: 700;
    color: #142f3b;
}

.offers-home__price-old {
    font-size: 16px;
    font-weight: 400;
    color: #8aa0aa;
}

.offers-home__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    max-width: 100%;
    height: 64px;
    margin-top: 29px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 50px;
    background: #0093d5;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .2s ease-in-out;
}

.offers-home__btn:hover {
    background: #0082bd;
    color: #fff;
}

.offers-home__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px 180px;
    margin-top: 32px;
}

.offers-home__bottom-text {
    max-width: 435px;
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 15px;
    line-height: 22px;
    color: #e1eef4;
}

.offers-home__bottom-text strong,
.offers-home__bottom-text b,
.offers-home__bottom-text span {
    font-weight: 600;
    color: #fff;
}

.offers-home__btn--outline {
    height: 66px;
    margin-top: 0;
    border-color: #fff;
    background: transparent;
}

.offers-home__btn--outline:hover {
    background: rgba(255, 255, 255, .15);
}

@media (max-width: 1199px) {
    .offers-home__cards { flex-wrap: wrap; }
    .offers-home__card { flex: 1 1 calc(50% - 7px); }
    .offers-home__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 767px) {
    .offers-home__card { flex-basis: 100%; }
}

/* Телефон — по мобильной версии Tilda (rec1189477086, 360px): карточки без фото, колонка 300px */
@media (max-width: 639px) {
    .offers-home { margin: 0 3px 0 4px; padding: 60px 0; border-radius: 20px; }
    .offers-home .container { width: min(300px, calc(100% - 40px)); margin: 0 auto; padding: 0; }
    .offers-home__title { max-width: 269px; margin: 0 auto 21px; font-size: 28px; line-height: 29px; }
    .offers-home__cards { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
    .offers-home__card { flex: none; width: 100%; padding: 20px; border-radius: 8px; }
    .offers-home__image { display: none; }
    .offers-home__card-title { min-height: 66px; margin: 0 0 24px; font-size: 16px; line-height: 22px; }
    .offers-home__prices { flex-wrap: nowrap; align-items: baseline; gap: 12px; margin-top: 0; line-height: 13px; }
    .offers-home__price { min-width: 125px; letter-spacing: -0.5px; }
    .offers-home__btn { width: 260px; height: 60px; margin-top: 24px; font-size: 15px; letter-spacing: -0.2px; }
    .offers-home__bottom { gap: 20px; margin-top: 28px; }
    .offers-home__bottom-text { max-width: 286px; margin: 0 auto; letter-spacing: -0.5px; }
    .offers-home__btn--outline { width: 100%; height: 60px; margin-top: 0; }
}

/* ==========================================================================
   Team (главная) — сверено с Tilda rec793403935 (заголовок) и rec793403939 (каталог)
   ========================================================================== */

.section-team {
    background: #f5f5f5;
    padding: 80px 0;
}

.team__header { margin-bottom: 40px; }

.team__title {
    max-width: 1090px;
    margin: 0 0 16px;
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 35px;
    color: #171717;
}

.team__title span { color: #0093d5; }

.team__subtitle {
    max-width: 712px;
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    line-height: 25px;
    color: #3f3f3f;
}

.team__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Карточка без подложки: фото (белый фон уже в PNG) + текст под ним */
.team__item {
    flex: 1 1 calc(25% - 15px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    color: #171717;
    text-decoration: none;
}

.team__item:hover { color: #171717; text-decoration: none; }

.team__photo {
    display: block;
    aspect-ratio: 309 / 411;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.team__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.team__info {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.team__name {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 21.6px;
    color: #171717;
}

.team__role {
    margin-top: 8px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 21.7px;
    color: #575757;
}

.team__location {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 21.7px;
    color: #171717;
}

/* «Все специалисты» — белая карточка с круглой стрелкой вместо фото */
.team__photo--more {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team__more-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border: 1px solid #d4e2e9;
    border-radius: 50%;
    transition: border-color .2s;
}

.team__more-circle svg {
    width: 34px;
    height: 14px;
}

.team__item--more:hover .team__more-circle { border-color: #6f9fb4; }

@media (max-width: 991px) {
    .section-team { padding: 60px 0; }
    .team__item { flex-basis: calc(50% - 10px); }
    .team__title { font-size: 26px; line-height: 1.15; }
}

/* Отдельная кнопка «Все специалисты» — только на телефоне */
.team__btn { display: none; }

/* Телефон — по мобильной версии Tilda (rec793403935/36/37, 360–375px):
   колонка 320px, карточки горизонтальной лентой, кнопка «Все специалисты» под ней */
@media (max-width: 639px) {
    .section-team { padding: 70px 0; }
    .section-team .container { width: min(320px, calc(100% - 40px)); margin: 0 auto; padding: 0; }
    .team__header { margin-bottom: 30px; }
    .team__title {
        width: calc(100% + 19px);
        max-width: none;
        margin: 0 0 15px 2px;
        font-size: 28px;
        line-height: 31px;
        letter-spacing: -0.6px;
    }
    .team__subtitle { font-size: 16px; line-height: 25px; }

    .team__grid {
        flex-wrap: nowrap;
        gap: 31px;
        margin: 0 calc(50% - 50vw);
        padding: 0 calc(50vw - 50%) 16px;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: #c4c4c4 transparent;
    }
    .team__grid::-webkit-scrollbar { height: 4px; }
    .team__grid::-webkit-scrollbar-thumb { border-radius: 2px; background: #c4c4c4; }

    .team__item,
    .team__item--more { flex: 0 0 230px; }
    .team__photo { width: 230px; height: 230px; aspect-ratio: auto; border-radius: 32px; }
    .team__info { padding-top: 22px; }
    .team__name { font-size: 16px; line-height: 22px; }
    .team__role,
    .team__location {
        font-size: 15px;
        font-weight: 400;
        line-height: 24px;
        letter-spacing: -0.3px;
        color: #707070;
    }

    .team__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 64px;
        margin-top: 32px;
        border-radius: 32px;
        background: #3aa5d6;
        color: #fff;
        font-family: 'Montserrat', Arial, sans-serif;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: -0.2px;
        text-decoration: none;
    }
    .team__btn:hover { background: #0082bd; color: #fff; }
}

/* ==========================================================================
   Нам доверяют (главная) — сверено с Tilda rec793404152 / rec793404153
   ========================================================================== */

.celeb-home {
    background: #f5f5f5;
    padding: 60px 0;
}

.celeb-home__title {
    max-width: 890px;
    margin: 0 0 16px;
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 35px;
    color: #171717;
}

.celeb-home__title span {
    color: #0093d5;
}

.celeb-home__subtitle {
    max-width: 712px;
    margin: 0 0 30px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    line-height: 25px;
    color: #3f3f3f;
}

/* Лента: горизонтальный скролл, как артборд в Тильде; мышью — перетаскиванием */
.celeb-home__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
}

.celeb-home__track::-webkit-scrollbar {
    display: none;
}

.celeb-home__track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.celeb-home__card {
    position: relative;
    flex: 0 0 340px;
    height: 460px;
    border-radius: 8px;
    overflow: hidden;
    background: #dfe6ea;
}

/* Затемнение снизу уже есть в самих фото (как в Тильде) */
.celeb-home__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.celeb-home__info {
    position: absolute;
    top: 317px;
    left: 20px;
    right: 20px;
}

.celeb-home__name {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 25px;
    color: #fff;
}

.celeb-home__desc {
    margin: 10px 0 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #e0e0e0;
}

@media (min-width: 1600px) {
    .celeb-home__title { font-size: 34px; line-height: 37px; }
    .celeb-home__subtitle { font-size: 18px; line-height: 28px; max-width: 801px; }
}

@media (max-width: 639px) {
    .celeb-home { padding: 40px 20px; }
    .celeb-home__title { font-size: 28px; line-height: 31px; }
    .celeb-home__subtitle { font-size: 15px; line-height: 23px; margin-bottom: 24px; }
    .celeb-home__card { flex-basis: 280px; height: 380px; }
    .celeb-home__info { top: 245px; }
}

/* ==========================================================================
   Отзывы (главная) — сверено с Tilda rec793404450 / rec793404587
   ========================================================================== */

.reviews-home {
    background: #f5f5f5;
    padding: 60px 0;
}

.reviews-home__title {
    max-width: 890px;
    margin: 0 0 12px;
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 35px;
    color: #171717;
}

.reviews-home__title span {
    color: #0093d5;
}

.reviews-home__subtitle {
    max-width: 545px;
    margin: 0 0 30px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    line-height: 25px;
    color: #3f3f3f;
}

.reviews-home__legal {
    margin: 20px 0 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: #a8a8a8;
}

.reviews-home__track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
}

.reviews-home__track::-webkit-scrollbar {
    display: none;
}

.reviews-home__track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.reviews-home__track.is-dragging iframe {
    pointer-events: none;
}

.reviews-home__card {
    flex: 0 0 374px;
    min-width: 0;
}

.reviews-home__video {
    position: relative;
    height: 224px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.reviews-home__poster,
.reviews-home__video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.reviews-home__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.reviews-home__play svg {
    width: 70px;
    height: 70px;
    transition: transform .2s ease-in-out;
}

.reviews-home__play:hover svg {
    transform: scale(1.08);
}

.reviews-home__name {
    margin-top: 20px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 25px;
    color: #000;
}

.reviews-home__text {
    max-width: 365px;
    margin: 10px 0 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 15px;
    line-height: 23px;
    color: #6b6b6b;
}

@media (min-width: 1600px) {
    .reviews-home__title { font-size: 34px; line-height: 37px; }
    .reviews-home__subtitle { font-size: 18px; line-height: 28px; max-width: 634px; }
}

@media (max-width: 639px) {
    .reviews-home { padding: 40px 20px; }
    .reviews-home__title { font-size: 28px; line-height: 31px; }
    .reviews-home__subtitle { font-size: 15px; line-height: 23px; margin-bottom: 24px; }
    .reviews-home__card { flex-basis: 300px; }
    .reviews-home__video { height: 180px; }
    .reviews-home__play svg { width: 56px; height: 56px; }
}

/* ==========================================================================
   CTA Form
   ========================================================================== */

.section-cta-form {
    background: #f5f5f5;
    padding: 80px 0;
}

.cta-form__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-form__subtitle {
    font-size: 15px;
    color: #4b5e67;
    margin-bottom: 32px;
    max-width: 500px;
}

.cta-form__steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.cta-form__step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #4b5e67;
    line-height: 1.5;
}

.cta-form__step-num {
    width: 28px;
    height: 28px;
    background: #0093d5;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.cta-form__price-info {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.cta-form__price-label {
    font-size: 13px;
    color: #4b5e67;
    margin-bottom: 4px;
}

.cta-form__price-value {
    font-size: 32px;
    font-weight: 800;
    color: #0093d5;
}

.cta-form__messenger-hint {
    font-size: 14px;
    color: #4b5e67;
    margin-bottom: 12px;
}

.cta-form__messengers {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-form__messenger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity .2s;
}

.cta-form__messenger-btn:hover { opacity: .85; }

.cta-form__messenger-btn--tg {
    background: #229ed9;
    color: #fff;
}

.cta-form__messenger-btn--wa {
    background: #25d366;
    color: #fff;
}

.cta-form__form-wrap {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.cta-form__privacy {
    font-size: 12px;
    color: #9aa8b0;
    margin-top: 12px;
    line-height: 1.5;
}

.cta-form__privacy a {
    color: #0093d5;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .section-cta-form { padding: 60px 0; }
    .cta-form__title { font-size: 26px; }
    .cta-form__form-wrap { padding: 28px 20px; }
}

/* ==========================================================================
   Vacancy page
   ========================================================================== */

.vac-hero {
    position: relative;
    min-height: 500px;
    background: #f5f5f5;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
}

.vac-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(245,245,245,0.85);
    z-index: 1;
}

.vac-hero .container-fluid { position: relative; z-index: 2; }

.vac-hero__title {
    font-size: 42px;
    font-weight: 800;
    color: #171717;
    margin-bottom: 24px;
    max-width: 640px;
}

.vac-hero__person {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.vac-hero__person-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.vac-hero__person-name {
    font-size: 16px;
    font-weight: 700;
    color: #171717;
    margin-bottom: 2px;
}

.vac-hero__person-role {
    font-size: 13px;
    color: #4b5e67;
}

.vac-about {
    background: #f5f5f5;
    padding: 80px 0;
}

.vac-about__title {
    font-size: 32px;
    font-weight: 700;
    color: #171717;
    line-height: 1.3;
}

.vac-about__subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #0093d5;
    margin-left: 8px;
}

.vac-about__benefits {
    row-gap: 24px;
    margin-top: 40px;
}

.vac-about__benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.vac-about__benefit-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.vac-about__benefit-text {
    font-size: 14px;
    color: #4b5e67;
    line-height: 1.7;
    margin: 0;
}

.vac-list {
    background: #fff;
    padding: 80px 0;
}

.vac-list__tabs { margin-top: 40px; }

.vac-list__nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.vac-list__nav-btn {
    padding: 10px 20px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #171717;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.vac-list__nav-btn.is-active,
.vac-list__nav-btn:hover {
    border-color: #0093d5;
    background: #e8f4fb;
    color: #0093d5;
}

.vac-list__panel { display: none; }
.vac-list__panel.is-active { display: block; }

.vac-salary {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.vac-salary__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #4b5e67;
    display: block;
    margin-bottom: 4px;
}

.vac-salary__value {
    font-size: 22px;
    font-weight: 800;
    color: #0093d5;
}

.vac-block { margin-bottom: 24px; }

.vac-block__title {
    font-size: 15px;
    font-weight: 700;
    color: #171717;
    margin-bottom: 12px;
}

.vac-block__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vac-block__list li {
    font-size: 14px;
    color: #4b5e67;
    line-height: 1.6;
    padding-left: 16px;
    position: relative;
}

.vac-block__list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #0093d5;
}

.vac-list__panel-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #ebebeb;
}

.vac-form {
    background: #f5f5f5;
    padding: 80px 0;
}

.vac-form__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.vac-form__subtitle {
    font-size: 15px;
    color: #4b5e67;
    margin-bottom: 32px;
}

.vac-form__privacy {
    font-size: 12px;
    color: #9aa8b0;
    margin-top: 12px;
}

.vac-form__privacy a { color: #0093d5; text-decoration: underline; }

.vac-form__contact { padding-top: 32px; }

.vac-form__contact-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.vac-form__contact-subtitle {
    font-size: 14px;
    color: #4b5e67;
    margin-bottom: 24px;
}

.vac-form__messenger-hint {
    font-size: 14px;
    color: #4b5e67;
    margin-bottom: 12px;
}

.vac-form__messengers {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.vac-form__messenger-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity .2s;
}

.vac-form__messenger-btn:hover { opacity: .85; }
.vac-form__messenger-btn--tg { background: #229ed9; color: #fff; }
.vac-form__messenger-btn--wa { background: #25d366; color: #fff; }

/* ==========================================================================
   О центре page
   ========================================================================== */

.oc-hero {
    position: relative;
    min-height: 500px;
    background: #fafafa;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 80px 0;
    overflow: hidden;
}

.oc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(250,250,250,0.88);
    z-index: 1;
}

.oc-hero .container-fluid { position: relative; z-index: 2; }

.oc-hero__subtitle {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #0093d5;
    margin-bottom: 12px;
}

.oc-hero__title {
    font-size: 46px;
    font-weight: 800;
    color: #171717;
    margin-bottom: 20px;
}

.oc-hero__intro {
    font-size: 16px;
    color: #4b5e67;
    line-height: 1.7;
    max-width: 600px;
    margin: 0;
}

.oc-mech {
    background: #fff;
    padding: 80px 0;
}

.oc-mech__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.oc-mech__text {
    font-size: 15px;
    color: #4b5e67;
    line-height: 1.8;
    margin: 0;
}

.oc-mech__person {
    background: #f5f5f5;
    border-radius: 20px;
    padding: 28px 24px;
}

.oc-mech__person-photo {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 16px;
}

.oc-mech__person-name {
    font-size: 18px;
    font-weight: 700;
    color: #171717;
    margin-bottom: 4px;
}

.oc-mech__person-role {
    font-size: 13px;
    color: #0093d5;
    font-weight: 600;
    margin-bottom: 12px;
}

.oc-mech__person-bio {
    font-size: 13px;
    color: #4b5e67;
    line-height: 1.6;
    margin: 0;
}

.oc-history {
    background: #f5f5f5;
    padding: 80px 0;
}

.oc-history__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

.oc-history__stats {
    row-gap: 20px;
    margin-bottom: 48px;
}

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

.oc-history__stat-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #0093d5;
    margin-bottom: 6px;
}

.oc-history__stat-label {
    display: block;
    font-size: 13px;
    color: #4b5e67;
    line-height: 1.4;
}

.oc-history__texts { row-gap: 24px; }

.oc-history__text {
    font-size: 14px;
    color: #4b5e67;
    line-height: 1.8;
}

.oc-founder {
    background: #fff;
    padding: 80px 0;
}

.oc-founder__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

.oc-founder__photo {
    width: 100%;
    max-width: 280px;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 3/4;
    margin-bottom: 20px;
}

.oc-founder__name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.oc-founder__role {
    font-size: 13px;
    color: #4b5e67;
    margin: 0;
}

.oc-founder__timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.oc-founder__tl-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #ebebeb;
    align-items: flex-start;
}

.oc-founder__tl-item:last-child { border-bottom: none; }

.oc-founder__tl-year {
    font-size: 14px;
    font-weight: 700;
    color: #0093d5;
}

.oc-founder__tl-event {
    font-size: 14px;
    color: #4b5e67;
    line-height: 1.6;
    margin: 0;
}

.oc-patent {
    background: #f5f5f5;
    padding: 80px 0;
}

.oc-patent__intro {
    font-size: 14px;
    color: #4b5e67;
    line-height: 1.8;
    margin-bottom: 24px;
}

.oc-patent__title {
    font-size: 22px;
    font-weight: 700;
    color: #171717;
    margin-bottom: 16px;
}

.oc-patent__text {
    font-size: 14px;
    color: #4b5e67;
    line-height: 1.8;
    margin: 0;
}

.oc-patent__image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.oc-social {
    background: #fff;
    padding: 80px 0;
}

.oc-social__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.oc-social__subtitle {
    font-size: 16px;
    color: #4b5e67;
    margin-bottom: 40px;
}

.oc-social__list { row-gap: 20px; }

.oc-social__item { }

.oc-social__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background: #f5f5f5;
    border-radius: 16px;
    text-align: center;
    transition: background .2s;
    color: #171717;
}

.oc-social__link:hover {
    background: #e8f4fb;
    color: #171717;
}

.oc-social__name {
    font-size: 16px;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.oc-social__count {
    font-size: 28px;
    font-weight: 800;
    color: #0093d5;
}

.oc-cta {
    background: #f5f5f5;
    padding: 80px 0;
}

.oc-cta__title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 28px;
}

.oc-cta__steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.oc-cta__step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

.oc-cta__step:last-child { border-bottom: none; }

.oc-cta__step-num {
    width: 32px;
    height: 32px;
    background: #0093d5;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.oc-cta__step-text {
    font-size: 14px;
    color: #4b5e67;
    line-height: 1.6;
}

.oc-cta__subtitle {
    font-size: 16px;
    color: #4b5e67;
    margin-bottom: 16px;
}

.oc-cta__price {
    margin-bottom: 20px;
}

.oc-cta__price-label {
    font-size: 13px;
    color: #4b5e67;
    display: block;
    margin-bottom: 4px;
}

.oc-cta__price-value {
    font-size: 36px;
    font-weight: 800;
    color: #0093d5;
}

.oc-cta__price-note {
    font-size: 12px;
    color: #9aa8b0;
    margin-top: 12px;
}

.oc-cta__placeholder {
    font-size: 14px;
    color: #9aa8b0;
    font-style: italic;
}

.oc-cta__messengers { margin-top: 20px; }

.oc-cta__messenger-hint {
    font-size: 14px;
    color: #4b5e67;
    margin-bottom: 12px;
}

.oc-cta__messenger-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: opacity .2s;
}

.oc-cta__messenger-btn:hover { opacity: .85; }
.oc-cta__messenger-btn--tg { background: #229ed9; color: #fff; }
.oc-cta__messenger-btn--wa { background: #25d366; color: #fff; }

/* ==========================================================================
   Grid layouts — Bootstrap-free CSS Grid for all template-parts
   ========================================================================== */

@media (max-width: 991px) {
}
@media (max-width: 575px) {
}

@media (max-width: 991px) {
}
@media (max-width: 575px) {
}

@media (max-width: 991px) {
}
@media (max-width: 767px) {
}

/* Ratings: flex row */
.ratings__row {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

/* CTA Form: centered narrow column */
.cta-form__center {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

/* Locations section */
.section-locations {
    background: #fff;
    padding: 80px 0;
}
.locations__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}
.location-card {
    background: #f5f5f5;
    border-radius: 16px;
    padding: 32px 28px;
}
.location-card__name {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #0093d5;
    margin-bottom: 10px;
}
.location-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #171717;
    margin-bottom: 12px;
}
.location-card__address {
    font-size: 15px;
    color: #0093d5;
    display: block;
    margin-bottom: 6px;
    border-bottom: 1px dashed rgba(0,147,213,.35);
    transition: border-color .2s;
    width: fit-content;
}
.location-card__address:hover { border-color: #0093d5; }
.location-card__metro {
    font-size: 13px;
    color: #636363;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.location-card__metro::before {
    content: 'М';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #e4243c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}
.location-card__hours {
    font-size: 14px;
    color: #171717;
    margin-bottom: 16px;
}
.location-card__phone {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #171717;
    margin-bottom: 16px;
    transition: color .2s;
}
.location-card__phone:hover { color: #0093d5; }
.location-card__map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0093d5;
}
@media (max-width: 767px) {
    .locations__grid { grid-template-columns: 1fr; }
    .section-locations { padding: 48px 0; }
}

/* ==========================================================================
   Vacancy tab JS toggle
   ========================================================================== */
/* ==========================================================================
   Fixes — class name aliases matching existing template-parts
   ========================================================================== */

/* ratings.php uses .rating-item / .rating-item__text */
.rating-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #171717;
    transition: color .2s;
}
.rating-item:hover { color: #0093d5; }
.rating-item__stars { font-size: 18px; color: #f5a623; }
.rating-item__text {
    font-size: 13px;
    color: #4b5e67;
    line-height: 1.4;
}

/* cta-form.php simple centered version */
.cta-form__wrap {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
/* ==========================================================================
   Blog вЂ” archive, single, cards
   ========================================================================== */

/* Archive Hero */
.blog-archive__hero { padding: 60px 0 40px; background: #fafafa; border-bottom: 1px solid #eee; }
.blog-archive__title { font-size: clamp(28px, 4vw, 48px); font-weight: 700; color: #171717; margin: 0 0 12px; }
.blog-archive__desc { font-size: 18px; color: #636363; max-width: 640px; margin: 0; }

/* Category filter */
.blog-archive__cats-filter {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}
.blog-cats-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.blog-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #636363;
    background: #f5f5f5;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.blog-cat-btn:hover { background: #e8f4fc; color: #0093d5; }
.blog-cat-btn--active { background: #0093d5; color: #fff; }
.blog-cat-btn__count { font-size: 11px; opacity: .7; }

/* Posts grid */
.blog-archive__posts { padding: 48px 0 80px; }
.blog-archive__empty { color: #636363; font-size: 16px; }
.blog-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-cards-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Pagination */
.blog-pagination { margin-top: 48px; display: flex; justify-content: center; }
.blog-pagination .page-numbers { display: flex; list-style: none; margin: 0; padding: 0; gap: 6px; }
.blog-pagination .page-numbers li a,
.blog-pagination .page-numbers li span {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: 6px; font-size: 15px; color: #636363; background: #f5f5f5;
    text-decoration: none; transition: background .2s, color .2s;
}
.blog-pagination .page-numbers li a:hover { background: #e8f4fc; color: #0093d5; }
.blog-pagination .page-numbers li span.current { background: #0093d5; color: #fff; }

/* Blog Card */
.blog-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.blog-card__link { display: block; }
.blog-card__image-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #f0f0f0; }
.blog-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card__image { transform: scale(1.04); }
.blog-card__image-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #e8f4fc, #d0e8f5); }
.blog-card__cat {
    position: absolute; top: 12px; left: 12px;
    background: #0093d5; color: #fff;
    font-size: 12px; font-weight: 600;
    padding: 3px 10px; border-radius: 20px;
}
.blog-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.blog-card__date { font-size: 13px; color: #9e9e9e; }
.blog-card__title { font-size: 17px; font-weight: 600; color: #171717; margin: 0; line-height: 1.35; flex: 1; }
.blog-card__title a { color: inherit; text-decoration: none; }
.blog-card__title a:hover { color: #0093d5; }
.blog-card__excerpt { font-size: 14px; color: #636363; line-height: 1.5; margin: 0; }
.blog-card__more { font-size: 14px; font-weight: 600; color: #0093d5; text-decoration: none; margin-top: 4px; }
.blog-card__more:hover { text-decoration: underline; }

/* Single Post Hero */
.blog-post__hero {
    padding: 80px 0 60px;
    background: #171717;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}
.blog-post__hero--has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.7));
}
.blog-post__hero-inner { position: relative; z-index: 1; max-width: 800px; }

/* Breadcrumb */
.blog-post__breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; margin-bottom: 24px; flex-wrap: wrap;
}
.blog-post__breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.blog-post__breadcrumb a:hover { color: #fff; }
.blog-post__breadcrumb span { color: rgba(255,255,255,.4); }

.blog-post__title { font-size: clamp(24px, 3.5vw, 44px); font-weight: 700; line-height: 1.2; margin: 0 0 24px; color: #fff; }
.blog-post__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.blog-post__date { font-size: 14px; color: rgba(255,255,255,.7); }
.blog-post__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-post__cat-tag {
    background: rgba(255,255,255,.15); color: #fff;
    font-size: 12px; font-weight: 600;
    padding: 3px 12px; border-radius: 20px;
    text-decoration: none; transition: background .2s;
}
.blog-post__cat-tag:hover { background: #0093d5; }

/* Single content */
.blog-post__body { padding: 60px 0; }
.blog-post__content { max-width: 800px; font-size: 17px; line-height: 1.75; color: #2a2a2a; }
.blog-post__content h2 { font-size: 26px; font-weight: 700; margin: 40px 0 16px; color: #171717; }
.blog-post__content h3 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; color: #171717; }
.blog-post__content p  { margin: 0 0 20px; }
.blog-post__content ul, .blog-post__content ol { margin: 0 0 20px; padding-left: 24px; }
.blog-post__content li { margin-bottom: 8px; }
.blog-post__content img { max-width: 100%; border-radius: 8px; margin: 24px 0; }
.blog-post__content a { color: #0093d5; }
.blog-post__content blockquote {
    border-left: 4px solid #0093d5; margin: 24px 0;
    padding: 16px 24px; background: #f0f8ff;
    border-radius: 0 8px 8px 0; font-style: italic;
}
.blog-post__empty { padding: 32px; background: #f5f5f5; border-radius: 8px; color: #636363; font-size: 16px; text-align: center; }

/* Share */
.blog-post__share {
    max-width: 800px; margin-top: 40px; padding-top: 32px;
    border-top: 1px solid #eee;
    display: flex; align-items: center; gap: 12px;
}
.blog-post__share-label { font-size: 14px; font-weight: 600; color: #636363; }
.blog-post__share-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    text-decoration: none; transition: transform .2s;
}
.blog-post__share-btn:hover { transform: scale(1.1); }
.blog-post__share-btn--vk  { background: #4C75A3; color: #fff; }
.blog-post__share-btn--tg  { background: #2AABEE; color: #fff; }

/* Related */
.blog-post__related { padding: 60px 0; background: #fafafa; border-top: 1px solid #eee; }
.blog-post__related-title { font-size: 26px; font-weight: 700; margin: 0 0 32px; color: #171717; }

/* Responsive */
@media (max-width: 1024px) {
    .blog-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .blog-cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .blog-cards-grid { grid-template-columns: 1fr; gap: 20px; }
    .blog-cards-grid--3 { grid-template-columns: 1fr; }
    .blog-post__body { padding: 40px 0; }
    .blog-post__hero { padding: 60px 0 40px; }
    .blog-archive__cats-filter { position: static; }
    .blog-cats-filter { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
}


/* ==========================================================================
   Blog Archive — blue tile grid (archive-blog_post.php)
   Pixel-perfect to Tilda design
   ========================================================================== */

/* Hero */
.blog-hero {
    padding: 72px 0 48px;
    background: #f5f8fa;
}
.blog-hero__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: #171717;
    line-height: 1.2;
    margin: 0;
}

/* Category filter */
.blog-filter {
    padding: 24px 0;
    border-bottom: 1px solid #d4e5ec;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}
.blog-filter__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.blog-filter__btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 40px;
    border: 1px solid #d4e5ec;
    font-size: 14px;
    font-weight: 500;
    color: #577380;
    background: #fff;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.4;
}
.blog-filter__btn:hover {
    background: #e6eef2;
    border-color: #b0cdd9;
    color: #3a5560;
}
.blog-filter__btn--active {
    background: #e6eef2;
    border-color: #b0cdd9;
    color: #3a5560;
    font-weight: 600;
}

/* Article grid */
.blog-grid-section {
    padding: 48px 0 80px;
    background: #fff;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Card wrapper */
.blog-card-item {
    list-style: none;
    margin: 0;
    padding: 0;
}
.blog-card-link {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}
.blog-card-link:hover .blog-card-tile__photo {
    transform: scale(1.05);
}

/* Tile card */
.blog-card-tile {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #1a3a4a;
    min-height: 320px;
}

/* Background photo */
.blog-card-tile__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.blog-card-tile__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
    display: block;
}

/* Blue overlay gradient — Tilda style */
.blog-card-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(20, 80, 115, 0.25) 0%,
        rgba(10, 55, 85, 0.55) 40%,
        rgba(5, 35, 60, 0.85) 100%
    );
}

/* Text content on top of overlay */
.blog-card-tile__content {
    position: relative;
    z-index: 1;
    padding: 20px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Category pill */
.blog-card-tile__cat {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    align-self: flex-start;
    backdrop-filter: blur(2px);
}

/* Title */
.blog-card-tile__title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
    margin: 0;
}

/* Short description */
.blog-card-tile__desc {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read more */
.blog-card-tile__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
}

/* Empty + pagination */
.blog-empty {
    font-size: 18px;
    color: #636363;
    text-align: center;
    padding: 60px 0;
}
.blog-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}
.blog-pagination .page-numbers {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}
.blog-pagination .page-numbers li a,
.blog-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 15px;
    color: #577380;
    background: #f0f6f9;
    text-decoration: none;
    transition: background .2s, color .2s;
    border: 1px solid #d4e5ec;
}
.blog-pagination .page-numbers li a:hover { background: #e6eef2; color: #3a5560; }
.blog-pagination .page-numbers li span.current { background: #1a6080; color: #fff; border-color: #1a6080; }

/* Responsive: archive grid */
@media (max-width: 1200px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-card-tile { aspect-ratio: 4 / 5; min-height: 280px; }
}
@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; gap: 16px; }
    .blog-card-tile { aspect-ratio: 16 / 10; min-height: 240px; }
    .blog-filter { position: static; }
    .blog-filter__inner { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .blog-filter__btn { flex-shrink: 0; }
}

/* ==========================================================================
   Blog Single — two-column layout (single-blog_post.php)
   ========================================================================== */

.blog-single {
    padding: 0 0 80px; /* карточка шапки — сразу под меню, как у Тильды */
    background: #f5f5f5;
}
.blog-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 702px) 320px;
    column-gap: 120px;
    row-gap: 24px;
    align-items: start;
    max-width: 1142px;
    margin-left: auto;
    margin-right: auto;
}

/* Main column */
.blog-single__main { min-width: 0; }

/* Card: breadcrumb + title + meta */
.blog-single__card {
    background: #fff;
    border-radius: 16px;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding-top: 50px;
    padding-bottom: 50px;
}
/* Без автора и времени чтения (часть статей в Тильде): плашки ниже заголовка, карточка короче снизу */
.blog-single__card--short { padding-bottom: 40px; }
.blog-single__card--short .blog-single__title { margin-bottom: 75px; }
.blog-single__card-inner {
    max-width: 1206px; /* текст шапки — по левому краю колонки статьи (x 149 при 1456) */
    margin: 0 auto;
    padding: 0 24px;
}

/* Breadcrumb */
.blog-single__breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 8px;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 30px;
}
.blog-single__breadcrumb a,
.blog-single__breadcrumb span { color: rgba(23, 23, 23, .4); text-decoration: none; }
.blog-single__breadcrumb a:hover { color: #171717; }
.blog-single__breadcrumb span:last-child { color: rgba(23, 23, 23, .25); }

/* Title */
.blog-single__title {
    font-size: clamp(22px, 2.5vw, 36px);
    font-weight: 700;
    color: #171717;
    line-height: 1.25;
    text-align: center;
    max-width: 991px; /* ширина заголовка у Тильды — строки переносятся так же */
    margin: 0 auto 50px;
}

/* Meta row */
.blog-single__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.blog-single__meta-row--center { justify-content: center; } /* без автора и времени чтения — как в Тильде */
.blog-single__meta-left {
    display: flex;
    align-items: center;
    gap: 4px;
}
.blog-single__meta-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
/* «Статьи» и дата — плашки 30px, как у Тильды */
.blog-single__type-tag,
.blog-single__date {
    display: inline-flex;
    align-items: center;
    height: 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 400;
}
.blog-single__type-tag {
    justify-content: center;
    min-width: 104px;
    padding: 0 16px;
    background: var(--color-primary);
    color: #fff;
}
.blog-single__date { padding: 0 16px; background: #f2f6f8; color: #5c727b; }
.blog-single__author,
.blog-single__readtime {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    border-radius: 30px;
    background: #f2f6f8;
    font-size: 15px;
    color: #5c727b;
}
.blog-single__author img,
.blog-single__readtime img { flex-shrink: 0; }

/* Cover image */
.blog-single__cover {
    border-radius: 8px;
    overflow: hidden;
    margin: 0 -24px 36px;
}
.blog-single__cover-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Article content */
.blog-single__content {
    font-size: 18px;
    line-height: 1.8;
    color: #2a2a2a;
}
.blog-single__content h3 { font-size: 19px; font-weight: 600; margin: 32px 0 12px; color: #171717; }
.blog-single__content p  { margin: 0 0 20px; }
.blog-single__content ul,
.blog-single__content ol { margin: 0 0 20px; padding-left: 24px; }
.blog-single__content ul { list-style: disc; }
.blog-single__content ol { list-style: decimal; }
.blog-single__content li { margin-bottom: 8px; list-style: inherit; }
.blog-single__content img { max-width: 100%; border-radius: 8px; margin: 24px 0; }
.blog-single__content .cm-image-row {
    display: flex;
    gap: 16px;
    margin: 24px 0;
}
.blog-single__content .cm-image-row img {
    margin: 0;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}
@media (max-width: 640px) {
    .blog-single__content .cm-image-row { flex-direction: column; }
}

/* Eyebrow label above an <h2> — class-based */
.blog-single__content .cm-eyebrow {
    font-size: 20px;
    font-weight: 700;
    color: #3c6c81;
    margin: 40px 0 4px;
}
.blog-single__content .cm-eyebrow + h2 { margin-top: 0; }

/* h2 size matches Tilda: 26px / lh 34px */
.blog-single__content h2 { font-size: 26px; font-weight: 700; line-height: 34px; margin: 40px 0 16px; color: #171717; }

/* Blue leading dash in pseudo-lists */
.blog-single__content .cm-dash { color: #0093d5; font-weight: 700; }

/* Auto-detected section label (paragraph ending with ":") */
.blog-single__content .cm-section-label {
    font-size: 20px;
    font-weight: 700;
    color: #171717;
    margin-top: 32px;
    margin-bottom: 8px;
}

/* Разметка статей по Тильде (blog-restyle.php): отступы зеро-блока статьи при 1456 —
   между абзацами 16, пункты списка 12, надзаголовок → заголовок 12, заголовок → текст 24 */
.blog-single__content p { margin: 0 0 16px; }
.blog-single__content .cm-dash-item { margin: 0 0 12px; }
.blog-single__content p.cm-section-label { margin: 32px 0 12px; line-height: 25px; }
/* --cm-gap-section / --cm-gap-title — отступы конкретной статьи в Тильде (обёртка .cm-post, пишет blog-restyle.php) */
.blog-single__content .cm-post h2 { margin: var(--cm-gap-section, 40px) 0 var(--cm-gap-title, 16px); }
.blog-single__content p.cm-eyebrow { margin: var(--cm-gap-section, 48px) 0 12px; line-height: 27px; }
.blog-single__content .cm-eyebrow + h2,
.blog-single__content .cm-post .cm-eyebrow + h2 { margin: 0 0 var(--cm-gap-title, 24px); }
.blog-single__content .cm-image-row { gap: 12px; }
.blog-single__content .cm-post ul,
.blog-single__content .cm-post ol { margin: 0 0 16px; }
.blog-single__content .cm-post li { margin: 0; line-height: inherit; }
.blog-single__content hr.cm-divider { height: 0; margin: 24px 0; border: 0; border-top: 1px solid #dcdcdc; }
.blog-single__content .cm-image-row img { aspect-ratio: 1; object-fit: contain; padding: 12px; background: #fff; box-sizing: border-box; }
@media (max-width: 640px) {
    .blog-single__content { padding: 0 27px; font-size: 16px; line-height: 26px; }
    .blog-single__content h2 { font-size: 22px; line-height: 28px; }
    .blog-single__content p.cm-eyebrow,
    .blog-single__content p.cm-section-label { font-size: 18px; line-height: 24px; }
    .blog-single__content .cm-image-row { flex-direction: row; }
}

/* Inline promo card (text + button, optional photo) inside article content */
.blog-single__content .cm-promo-card {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 16px;
    overflow: visible;
    margin: 44px 0 28px;
    min-height: 264px;
}
.blog-single__content .cm-promo-card__body {
    flex: 1 1 auto;
    padding: 34px 34px 34px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 264px;
    box-sizing: border-box;
}
.blog-single__content .cm-promo-card__text {
    font-size: 20px;
    font-weight: 400;
    color: #171717;
    margin: 0;
    line-height: 28px;
}
.blog-single__content .cm-promo-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    height: 60px;
    padding: 0 32px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color .2s;
}
.blog-single__content .cm-promo-card__btn:hover { background: var(--color-primary-dk); color: #fff; text-decoration: none; }
.blog-single__content .cm-promo-card__text strong { font-weight: 700; }
.blog-single__content .cm-promo-card__photo { flex-shrink: 0; width: 247px; align-self: flex-start; margin-top: -33px; margin-right: 40px; }
.blog-single__content .cm-promo-card__photo img { width: 100%; height: auto; display: block; margin: 0; border-radius: 0; }
/* Event variant: row of subtitle+date, then a big title, above the button.
   .cm-promo-card__body relies on justify-content:space-between to push the
   button to the bottom against exactly 2 children (text + button) — the
   event variant has 3 (row, title, button), which space-between would
   spread evenly across the card's full height instead. .cm-promo-card__top
   groups the row+title into a single first child so the space-between
   split stays exactly 2-way (content block vs. button). */
.blog-single__content .cm-promo-card__top > .cm-promo-card__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 20px;
}
.blog-single__content .cm-promo-card__subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #171717;
    margin: 0;
}
.blog-single__content .cm-promo-card__subtitle strong { font-weight: 700; }
.blog-single__content .cm-promo-card__date {
    font-size: 16px;
    font-weight: 600;
    color: #0093d5;
    white-space: nowrap;
    margin: 0;
}
.blog-single__content .cm-promo-card__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #171717;
    margin: 0;
}
@media (max-width: 640px) {
    .blog-single__content .cm-promo-card { flex-direction: column; overflow: hidden; }
    .blog-single__content .cm-promo-card__photo { width: 60%; margin-top: 0; margin-right: 0; align-self: center; }
    .blog-single__content .cm-promo-card__title { font-size: 26px; }
}
.blog-single__content a { color: var(--color-primary); text-decoration: underline; }
.blog-single__content a:hover { color: var(--color-primary-dk); }
.blog-single__content blockquote {
    border-left: 4px solid #1a6080;
    margin: 28px 0;
    padding: 16px 24px;
    background: #f0f6f9;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #3a5560;
}
.blog-single__no-content {
    background: #f5f8fa;
    border-radius: 8px;
    padding: 28px;
    font-size: 16px;
    color: #636363;
    text-align: center;
}
.blog-single__no-content a { color: #1a6080; text-decoration: underline; }

/* Sidebar */
.blog-single__sidebar {
    position: sticky;
    top: 148px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Banner: rounded photo */
.blog-sidebar-banner {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
}
.blog-sidebar-banner img {
    width: 100%;
    height: auto;
    display: block;
}
/* Белая надпись внизу картинки (у Тильды — 14px Montserrat, ~40px от низа) */
.blog-sidebar-banner__more {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 39px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #fff;
    text-align: center;
}
.blog-sidebar-banner:hover .blog-sidebar-banner__more { text-decoration: underline; }

/* Карточка «Как записаться на прием?» — как у Тильды: белая подложка 360px (на 20px шире колонки
   с каждой стороны), фото 320×170, кнопка 60px, мессенджеры — голубые плашки */
.blog-sidebar-contact {
    background: #fff;
    border-radius: 8px;
    margin: 0 -20px;
    padding: 20px;
}
.blog-sidebar-contact__image img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}
.blog-sidebar-contact__body {
    padding: 17px 0 0;
}
.blog-sidebar-contact__title {
    font-size: 16px;
    line-height: 21px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px;
}
.blog-sidebar-contact__text {
    max-width: 287px;
    font-size: 15px;
    line-height: 23px;
    color: #3f3f3f;
    margin: 0 0 17px;
}
.blog-sidebar-contact__phone {
    color: #171717;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #9c9c9c;
}
.blog-sidebar-contact__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    background: #3aa5d6;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    border: 0;
    border-radius: 32px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s;
}
.blog-sidebar-contact__btn:hover { background: var(--color-primary-dk); color: #fff; text-decoration: none; }
.blog-sidebar-contact__messengers {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}
.blog-sidebar-contact__messenger {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 60px;
    padding: 0 24px;
    background: #ebf6fb;
    border: 0;
    border-radius: 32px;
    font-size: 15px;
    font-weight: 500;
    color: #171717;
    text-decoration: none;
    flex: 1 1 auto;
}
.blog-sidebar-contact__messenger:hover { background: #dceff8; text-decoration: none; }

/* Внутри текста статьи (мобильный) на карточку не должны действовать стили статьи (.blog-single__content p/a/img) */
.blog-sidebar-contact .blog-sidebar-contact__image img { margin: 0; border-radius: 4px; }
.blog-sidebar-contact .blog-sidebar-contact__title { margin: 0 0 8px; font-size: 16px; line-height: 21px; }
.blog-sidebar-contact .blog-sidebar-contact__text { margin: 0 0 17px; font-size: 15px; line-height: 23px; }
.blog-sidebar-contact .blog-sidebar-contact__phone,
.blog-sidebar-contact .blog-sidebar-contact__messenger { color: #171717; text-decoration: none; }
.blog-sidebar-contact__phone { white-space: nowrap; }

/* Мобильный: карточка встаёт внутрь текста статьи (single-blog_post.php), размеры — как в мобильной Тильде;
   баннера справа у Тильды на мобильном нет */
@media (max-width: 768px) {
    .blog-sidebar-banner { display: none; }
    .blog-sidebar-contact { margin: 24px 0; padding: 16px; }
    .blog-sidebar-contact .blog-sidebar-contact__image img { height: 140px; }
    .blog-sidebar-contact .blog-sidebar-contact__text { font-size: 14px; line-height: 22px; }
    .blog-sidebar-contact__btn { height: 52px; font-size: 14px; }
    .blog-sidebar-contact .blog-sidebar-contact__messenger { height: 52px; padding: 0 19px; font-size: 14px; }
}


/* Related posts in sidebar */
.blog-sidebar-related {
    background: #fff;
    border: 1px solid #d4e5ec;
    border-radius: 12px;
    padding: 20px;
}
.blog-sidebar-related__title {
    font-size: 15px;
    font-weight: 700;
    color: #171717;
    margin-bottom: 16px;
}
.blog-sidebar-related__list { display: flex; flex-direction: column; gap: 12px; }
.blog-sidebar-related__item { list-style: none; }
.blog-sidebar-related__link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: #2a2a2a;
    transition: color .2s;
}
.blog-sidebar-related__link:hover { color: #1a6080; }
.blog-sidebar-related__thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    display: block;
}
.blog-sidebar-related__text {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
    padding-top: 2px;
}

/* Previous / next navigation */
.blog-adjacent {
    padding: 32px 0;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.blog-adjacent__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.blog-adjacent__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #577380;
    text-decoration: none;
    max-width: 46%;
    transition: color .2s;
}
.blog-adjacent__btn:hover { color: #1a6080; }
.blog-adjacent__btn--next { margin-left: auto; flex-direction: row-reverse; text-align: right; }
.blog-adjacent__btn svg { flex-shrink: 0; }

/* Responsive: single post */
@media (max-width: 1100px) {
    .blog-single__layout {
        grid-template-columns: minmax(0, 702px) 300px;
        column-gap: 60px;
        row-gap: 24px;
        max-width: none;
    }
}
@media (max-width: 768px) {
    .blog-single__layout {
        grid-template-columns: 1fr;
    }
    .blog-single__sidebar {
        position: static;
        top: 0;
    }
    .blog-single { padding: 0 0 60px; }
}
/* Мобильная шапка статьи — как у Тильды (375px): карточка сразу под шапкой сайта, всё по левому краю,
   «Статьи» + дата плашками в строку, автор и время чтения — плашками друг под другом */
@media (max-width: 639px) {
    .blog-single { padding-top: 0; }
    .blog-single__card {
        margin: 0 4px 42px;
        padding: 7px 0 12px;
        background: rgba(255, 255, 255, .6);
    }
    .blog-single__card-inner { padding: 0 34px; }
    .blog-single__card--short { padding: 29px 0 40px; margin-bottom: 72px; }
    .blog-single__card--short .blog-single__card-inner { padding: 0 23px; }
    .blog-single__card--short .blog-single__breadcrumb { margin-bottom: 39px; }
    .blog-single__card--short .blog-single__title { margin-bottom: 88px; }
    .blog-single__breadcrumb {
        gap: 0 4px;
        font-size: 12px;
        line-height: 19px;
        margin-bottom: 30px;
    }
    .blog-single__breadcrumb span:last-child { flex-basis: 100%; max-width: 259px; }
    .blog-single__title {
        font-size: 22px;
        line-height: 29px;
        text-align: left;
        margin-bottom: 32px;
    }
    .blog-single__meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .blog-single__type-tag,
    .blog-single__date { font-size: 13px; }
    .blog-single__type-tag { min-width: 90px; }
    .blog-single__date { padding: 0 20px; }
    .blog-single__meta-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .blog-single__author,
    .blog-single__readtime {
        height: 32px;
        padding: 0 16px;
    }
}
@media (max-width: 480px) {
    .blog-adjacent__inner { flex-direction: column; align-items: flex-start; }
    .blog-adjacent__btn--next { margin-left: 0; text-align: left; flex-direction: row; }
}

/* ==========================================================================
   Blog: consultation CTA block (after article content)
   ========================================================================== */

.blog-consult-cta { padding: 40px 0 0; }

.blog-consult-cta__box {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 16px;
    overflow: visible;
    min-height: 424px;
    margin-bottom: 32px;
    position: relative;
}
.blog-consult-cta__form {
    flex: 1 1 auto;
    padding: 50px 34px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
    box-sizing: border-box;
}
.blog-consult-cta__title {
    font-size: 20px;
    font-weight: 700;
    color: #171717;
    line-height: 28px;
    margin: 0 0 12px;
}
.blog-consult-cta__title span { font-weight: 400; }
.blog-consult-cta__desc {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 25px;
    margin: 0 0 20px;
}
.blog-consult-cta__fallback { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.blog-offer__phone-wrap {
    position: relative;
    height: 64px;
    border-radius: 32px;
    background: #f7f7f7;
}
.blog-offer__phone-flag {
    position: absolute;
    left: 20px;
    top: 0;
    height: 64px;
    display: flex;
    align-items: center;
    font-size: 16.8px;
    color: #737f84;
    pointer-events: none;
}
.blog-offer__phone-select {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 64px;
    border: none;
    background: transparent;
    opacity: 0;
    cursor: pointer;
}
.blog-consult-cta__phone,
.blog-offer__phone {
    width: 100%;
    height: 64px;
    border-radius: 32px;
    border: none;
    background: transparent;
    padding: 0 20px 0 68px;
    font-size: 16px;
    color: #000;
}

/* Поле имени — в Тильде оно есть во всех формах, кроме форм записи (lead-form.php, аргумент name_field) */
.blog-consult-cta__name,
.blog-offer__name {
    width: 100%;
    height: 64px;
    border-radius: 32px;
    border: none;
    background: #f7f7f7;
    padding: 0 20px;
    font-size: 16px;
    color: #000;
}
.blog-consult-cta__consent,
.blog-offer__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #737f84;
    line-height: 24px;
}
.blog-consult-cta__consent input,
.blog-offer__consent input { margin-top: 3px; flex-shrink: 0; }
.blog-consult-cta__consent a,
.blog-offer__consent a { color: var(--color-primary); text-decoration: underline; }
.blog-consult-cta__submit,
.blog-offer__submit {
    height: 64px;
    border: none;
    border-radius: 32px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s;
}
.blog-consult-cta__submit:hover,
.blog-offer__submit:hover { background: var(--color-primary-dk); }

.blog-consult-cta__photo {
    position: absolute;
    right: 0;
    top: -16px;
    bottom: 0;
    width: 306px;
}
.blog-consult-cta__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

.blog-consult-author {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 20px 0 4px;
}
.blog-consult-author__photo-wrap {
    flex-shrink: 0;
    width: 110px;
}
.blog-consult-author__photo {
    width: 100%;
    height: auto;
    display: block;
}
.blog-consult-author__info { display: flex; flex-direction: column; justify-content: space-between; }
.blog-consult-author__text { font-size: 18px; color: #707f85; margin: 0; line-height: 27px; }
.blog-consult-author__text strong { color: #171717; font-weight: 600; }
.blog-consult-author__link { font-size: 17px; font-weight: 600; color: var(--color-primary); text-decoration: none; }

.blog-consult-footer-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 20px;
    font-size: 16px;
    border-top: 1px solid #e5e5e5;
}
.blog-consult-footer-row__back { color: var(--color-primary); text-decoration: underline; }
.blog-consult-footer-row__date { color: var(--color-text-muted); text-align: right; }

@media (max-width: 767px) {
    .blog-consult-cta__box { flex-direction: column; overflow: hidden; max-width: 100%; }
    .blog-consult-cta__photo { width: 100%; margin-top: 0; order: -1; }
    .blog-consult-cta__photo img { max-height: 280px; object-fit: cover; }
}

/* ==========================================================================
   Blog: diagnostics offer block (discount CTA)
   ========================================================================== */

.blog-offer { padding: 8px 0 56px; }

.blog-offer__grid {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.blog-offer__grid > .blog-offer__left { flex: 0 0 851px; min-width: 0; }
.blog-offer__grid > .blog-offer__right { flex: 0 0 457px; min-width: 0; }

.blog-offer__left {
    position: relative;
    background: #fff;
    border-radius: 8px;
    min-height: 480px;
    overflow: hidden;
}
.blog-offer__left-text {
    padding: 32px 320px 42px 32px;
}

.blog-offer__title {
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    color: #171717;
    margin: 0 0 20px;
}
.blog-offer__title strong,
.blog-offer__title span { font-weight: 500; color: var(--color-primary); } /* выделение цветом — и <strong>, и <span>, как в остальных заголовках темы */
.blog-offer__subtitle { font-size: 18px; color: var(--color-text-muted); margin: 0 0 20px; }
.blog-offer__subtitle strong { color: #171717; font-weight: 700; }

.blog-offer__benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 543px; /* 216 + 12 + 315: два столбца, как в Тильде */
    margin-bottom: 33px;
}
.blog-offer__benefits > .blog-offer__benefit:nth-child(odd) { flex: 0 0 216px; }
.blog-offer__benefits > .blog-offer__benefit:nth-child(even) { flex: 0 0 315px; }
.blog-offer__benefit {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 28px 0 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
    color: #171717;
}
.blog-offer__benefit-dot {
    width: 7px; height: 7px; border-radius: 2px;
    background: var(--color-primary);
    flex-shrink: 0;
}

.blog-offer__author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.blog-offer__author-name { font-size: 18px; font-weight: 700; color: #171717; margin: 0; }
.blog-offer__author-role { font-size: 16px; color: var(--color-text-muted); margin: 2px 0 0; }
.blog-offer__author-sign { height: 40px; width: auto; flex-shrink: 0; }

.blog-offer__photo {
    position: absolute;
    top: 0;
    right: -181px;
    bottom: 0;
    z-index: 1;
}
.blog-offer__photo img { width: auto; height: 100%; display: block; }

@media (max-width: 767px) {
    .blog-offer__left { min-height: 0; }
    .blog-offer__left-text { padding: 32px 24px; }
    .blog-offer__photo { position: static; height: 220px; overflow: hidden; }
    .blog-offer__photo img { width: 100%; height: 100%; object-fit: cover; }
    .blog-offer__benefits { flex-direction: column; width: auto; }
    .blog-offer__benefits > .blog-offer__benefit:nth-child(n) { flex: none; width: 100%; }
}

.blog-offer__right {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
}
.blog-offer__form-title { font-family: 'FuturaPT', Arial, sans-serif; font-size: clamp(20px, 2vw, 28px); font-weight: 500; line-height: 1.2; color: #171717; margin: 0 0 10px; }
.blog-offer__form-title strong { font-weight: 500; color: var(--color-primary); }
.blog-offer__form-desc { font-size: 18px; font-weight: 500; color: var(--color-text-muted); margin: 0 0 20px; }
.blog-offer__fallback-form { display: flex; flex-direction: column; gap: 14px; }
.blog-offer__price {
    margin: 30px 0 0;
    font-size: 16px;
    color: var(--color-text-muted);
}
.blog-offer__price strong { color: #171717; font-size: 24px; }
.blog-offer__price s { color: #b0b0b0; }

.blog-offer__messenger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 25px;
    padding: 24px 16px;
    background: #f7f7f7;
    border-radius: 8px;
    font-size: 16px;
}
.blog-offer__messenger span { font-size: 14px; line-height: 1.35; color: var(--color-text-muted); }
.blog-offer__messenger-icons { display: flex; gap: 8px; flex-shrink: 0; }
.blog-offer__messenger-icons img { width: 44px; height: 44px; }

@media (max-width: 991px) {
    .blog-offer__grid { flex-direction: column; align-items: stretch; }
    .blog-offer__grid > .blog-offer__left,
    .blog-offer__grid > .blog-offer__right { flex: none; width: 100%; }
}

/* Телефон — по мобильной версии Tilda (rec795913938, 375px): одна белая карточка,
   сначала форма, потом «Что вы получите» списком и строка с врачом (круглое фото) */
@media (max-width: 639px) {
    .blog-offer { padding: 70px 0 0; }
    .blog-offer .container { width: min(360px, 100%); margin: 0 auto; padding: 0; }
    .blog-offer__grid { gap: 0; border-radius: 8px; background: #fff; }
    .blog-offer__grid > .blog-offer__right { order: -1; }

    .blog-offer__right { padding: 50px 26px 0 30px; border-radius: 0; background: none; }
    .blog-offer__form-title { margin: 0 0 16px; font-size: 28px; line-height: 29px; }
    .blog-offer__form-desc { margin: 0 0 20px; font-size: 15px; font-weight: 400; line-height: 23px; color: #3f3f3f; }
    .blog-offer__fallback-form { gap: 10px; }
    .blog-offer__consent { font-size: 13px; line-height: 20px; }
    .blog-offer__price { margin-top: 24px; font-size: 15px; line-height: 23px; color: #3f3f3f; }
    .blog-offer__price strong { display: inline-block; margin: 5px 12px 0 0; font-size: 22px; line-height: 24px; }
    .blog-offer__price s { font-size: 15px; }
    .blog-offer__messenger {
        margin: 20px -6px 0 -10px;
        padding: 12px 10px;
        font-size: 15px;
    }
    .blog-offer__messenger span { max-width: 176px; font-size: 15px; line-height: 20px; color: #3f3f3f; }
    .blog-offer__messenger-icons { gap: 4px; }
    .blog-offer__messenger-icons img { width: 56px; height: 56px; }

    .blog-offer__left { position: relative; min-height: 0; margin-top: 52px; overflow: visible; border-radius: 0; background: none; }
    .blog-offer__left-text { padding: 0 26px 39px 30px; }
    .blog-offer__title { max-width: 232px; margin: 0 0 16px; font-size: 28px; line-height: 29px; }
    .blog-offer__subtitle { margin: 0 0 20px; font-size: 15px; line-height: 23px; color: #3f3f3f; }
    .blog-offer__subtitle strong { font-weight: 700; }
    .blog-offer__benefits { gap: 16px; margin-bottom: 40px; }
    .blog-offer__benefits > .blog-offer__benefit:nth-child(n) {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        padding: 0;
        background: none;
        font-size: 15px;
        line-height: 23px;
        color: #3f3f3f;
    }
    .blog-offer__benefit-dot { width: 6px; height: 6px; margin-top: 9px; }

    /* Строка врача: круглое фото 100px слева, имя и должность справа */
    .blog-offer__author { display: block; min-height: 100px; padding-left: 120px; }
    .blog-offer__author-name { font-size: 14px; line-height: 22px; }
    .blog-offer__author-role { margin: 0; font-size: 13px; line-height: 20px; color: #3f3f3f; }
    .blog-offer__author-sign { display: none; }
    .blog-offer__photo {
        position: absolute;
        right: auto;
        bottom: 39px;
        left: 30px;
        top: auto;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        overflow: hidden;
        background: #e5e5e5;
    }
    .blog-offer__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
}

/* ==========================================================================
   Service page (template-service.php) — стартовый шаблон, содержимое
   донастроим позже
   ========================================================================== */

.service-hero {
    background: #f5f5f5;
    padding: 56px 0 40px;
}

.service-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.service-hero__icon {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.service-hero__title {
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.1;
    margin: 0;
}

.service-content {
    background: #fff;
    padding: 48px 0 80px;
}

.service-content__body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: #3f3f3f;
}
.service-content__body p { margin: 0 0 20px; }
.service-content__body p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Specialist archive/single (archive-specialist.php, single-specialist.php)
   — стартовые шаблоны, содержимое донастроим позже
   ========================================================================== */

.specialists-hero {
    background: #f5f5f5;
    padding: 56px 0 40px;
}
.specialists-hero__title {
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 34px;
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
}

.specialists-archive { background: #fff; padding: 48px 0 80px; }

.specialists-archive__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.specialist-card {
    flex: 1 1 calc(25% - 15px);
    min-width: 220px;
    display: block;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    color: #171717;
    text-decoration: none;
}
.specialist-card:hover { color: #171717; text-decoration: none; }
.specialist-card__photo {
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
}
.specialist-card__name { font-size: 18px; font-weight: 700; margin: 16px 20px 4px; }
.specialist-card__role { font-size: 15px; color: #3f3f3f; margin: 0 20px; }
.specialist-card__location { font-size: 15px; font-weight: 700; margin: 4px 20px 20px; }

@media (max-width: 991px) {
    .specialist-card { flex: 1 1 calc(50% - 10px); }
}
@media (max-width: 575px) {
    .specialist-card { flex: 1 1 100%; }
}

.specialist-hero {
    background: #f5f5f5;
    padding: 56px 0;
}
.specialist-hero__inner {
    display: flex;
    align-items: center;
    gap: 40px;
}
.specialist-hero__photo {
    flex: 0 0 320px;
    border-radius: 12px;
    overflow: hidden;
}
.specialist-hero__photo img { display: block; width: 100%; height: auto; }
.specialist-hero__body { flex: 1 1 auto; min-width: 0; }
.specialist-hero__name {
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 12px;
}
.specialist-hero__role { font-size: 18px; color: #3f3f3f; margin: 0 0 4px; }
.specialist-hero__location { font-size: 18px; font-weight: 700; color: var(--color-text); margin: 0; }

.specialist-content { background: #fff; padding: 48px 0 80px; }
.specialist-content__body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: #3f3f3f;
}

@media (max-width: 767px) {
    .specialist-hero__inner { flex-direction: column; align-items: flex-start; }
    .specialist-hero__photo { flex-basis: auto; width: 100%; max-width: 320px; }
}

/* ==========================================================================
   Contacts page (template-contacts.php) — Tilda page54992297 /contact
   Значения (цвета/радиусы/паддинги/шрифты) сверены с рек799201145 из
   tilda-blocks-page54992297.min.css — карточки белые на серой секции,
   на десктопе контент слева + карта справа во всю высоту блока.
   ========================================================================== */

.contacts-page { background: #fff; }

.contacts-section {
    background: #f5f5f5;
    padding: 30px 20px 75px;
}

.contacts-hero__crumbs { display: block; margin-bottom: 20px; color: #636363; }
.contacts-hero__crumbs span:last-child { color: var(--color-primary); }
.contacts-hero__title {
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 46px;
    font-weight: 500;
    color: #171717;
    margin: 0 0 24px;
}

/* Десктоп: слева контент (карточки + адрес), справа карта во всю высоту блока */
.contacts-layout {
    display: grid;
    grid-template-columns: minmax(0, 620px) 1fr;
    gap: 24px;
    align-items: stretch;
}
.contacts-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacts-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.contacts-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.contacts-card__label { font-size: 16px; color: #171717; opacity: .8; }
.contacts-card__value {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    transition: color .2s;
}
.contacts-card__value:hover { color: var(--color-primary); }
.contacts-card__icons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.contacts-card__icons a { display: block; line-height: 0; transition: opacity .2s; }
.contacts-card__icons a:hover { opacity: .75; }
.contacts-card__icons img { width: 48px; height: 48px; }

.contacts-location__label { font-size: 16px; color: #171717; opacity: .8; }
.contacts-location__card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contacts-location__info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.contacts-location__pin {
    flex-shrink: 0;
    padding: 12px;
    background: #e6f2fa;
    border-radius: 50%;
    box-sizing: content-box;
}
.contacts-location__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contacts-location__name {
    font-size: 16px;
    color: #171717;
    opacity: .8;
}
.contacts-location__address {
    font-size: 19px;
    font-weight: 700;
    color: #171717;
}
.contacts-location__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.contacts-location__btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 15px 28px;
    border-radius: 50px;
    background: #f0f6f8;
    font-size: 16px;
    font-weight: 400;
    color: #171717;
    transition: background .2s;
}
.contacts-location__btn:hover { background: #e3edf1; }

.contacts-map {
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
}
.contacts-map iframe { display: block; width: 100%; height: 100%; min-height: 400px; border: 0; }

@media (max-width: 1024px) {
    .contacts-layout { grid-template-columns: 1fr; }
    .contacts-map { min-height: 360px; }
}
@media (max-width: 767px) {
    .contacts-cards { grid-template-columns: 1fr; }
    .contacts-hero__title { font-size: 30px; }
    .contacts-card { min-height: 0; padding: 24px; gap: 16px; }
    .contacts-location__card { padding: 24px; }
    .contacts-location__info { flex-direction: column; align-items: flex-start; gap: 16px; }
    .contacts-location__actions { flex-direction: column; }
    .contacts-location__btn { width: 100%; }
    .contacts-map { min-height: 280px; }
}
