/* ============================================================
   BLOG SINGLE PAGE — beautick child theme
   Стили для одиночной записи блога (single-news.php)
   ============================================================ */

/* ── Баннер (хлебные крошки + заголовок) ── */
.blog-hero-banner {
    background-color: rgba(226, 226, 226, 1);
    padding: 40px 0 60px;
    margin-bottom: 50px;
}

.blog-hero-banner .breadcrumbs {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: rgba(0, 0, 0, 1);
    margin-bottom: 30px;
}

.blog-hero-banner .blog-main-h1 {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 52px;
    line-height: 52px;
    letter-spacing: -0.52px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 1);
    max-width: 900px;
    margin: 0;
}

@media (max-width: 768px) {
    .blog-hero-banner .blog-main-h1 {
        font-size: 32px;
        line-height: 38px;
    }
}

/* ── Вводный текст ── */
.blog-intro-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: rgba(0, 0, 0, 1);
    max-width: 800px;
    margin-bottom: 40px;
}

/* ── Ссылки в текстовых блоках блога ── */
.blog-intro-text a,
.blog-section-desc a,
.blog-expert-quote a {
    color: rgba(20, 20, 20, 1);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.blog-intro-text a:hover,
.blog-section-desc a:hover,
.blog-expert-quote a:hover {
    color: rgba(100, 100, 100, 1);
    text-decoration-color: rgba(100, 100, 100, 1);
}

/* ── Отступы между абзацами в WYSIWYG-полях ── */
/* WordPress при нажатии Enter создаёт <p>-теги — задаём отступ между ними */
.blog-intro-text p,
.blog-section-desc p,
.blog-expert-quote p {
    margin-top: 0;
    margin-bottom: 1em;
}

.blog-intro-text p:last-child,
.blog-section-desc p:last-child,
.blog-expert-quote p:last-child {
    margin-bottom: 0;
}

/* ── Форматирование WYSIWYG: bold, italic, underline ── */
.blog-intro-text strong,
.blog-section-desc strong,
.blog-expert-quote strong,
.blog-intro-text b,
.blog-section-desc b,
.blog-expert-quote b {
    font-weight: 700;
}

.blog-intro-text em,
.blog-section-desc em,
.blog-expert-quote em,
.blog-intro-text i,
.blog-section-desc i,
.blog-expert-quote i {
    font-style: italic;
}

.blog-intro-text u,
.blog-section-desc u,
.blog-expert-quote u {
    text-decoration: underline;
}

/* ── Маркированные и нумерованные списки в WYSIWYG ── */
.blog-intro-text ul,
.blog-section-desc ul,
.blog-expert-quote ul {
    list-style: disc;
    padding-left: 1.5em;
    margin-top: 0;
    margin-bottom: 1em;
}

.blog-intro-text ol,
.blog-section-desc ol,
.blog-expert-quote ol {
    list-style: decimal;
    padding-left: 1.5em;
    margin-top: 0;
    margin-bottom: 1em;
}

.blog-intro-text li,
.blog-section-desc li,
.blog-expert-quote li {
    margin-bottom: 0.4em;
    line-height: inherit;
}

/* Вложенные списки */
.blog-intro-text ul ul,
.blog-section-desc ul ul,
.blog-expert-quote ul ul {
    list-style: circle;
    margin-top: 0.4em;
    margin-bottom: 0;
}

.blog-intro-text ol ol,
.blog-section-desc ol ol,
.blog-expert-quote ol ol {
    list-style: lower-alpha;
    margin-top: 0.4em;
    margin-bottom: 0;
}

/* Цитата */
.blog-intro-text blockquote,
.blog-section-desc blockquote,
.blog-expert-quote blockquote {
    border-left: 3px solid rgba(20, 20, 20, 0.2);
    padding-left: 1em;
    margin: 1em 0;
    color: rgba(0, 0, 0, 0.65);
    font-style: italic;
}

/* ── Контейнер страницы ── */
.blog-single-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ── Слайдер (галерея) ── */
.blog-slider-wrapper {
    position: relative;
    margin-bottom: 40px;
}

.blog-slider-wrapper .swiper {
    overflow: hidden;
}

/* ── Фото-слайдеры (галерея + текстовые секции): высота 476px ── */
/* НЕ применяем к карточкам услуг */
#blog-slider-1-wrap .swiper-slide img,
[id^="blog-section-slider-"] .swiper-slide img {
    width: 100%;
    height: 476px;
    object-fit: cover;
    display: block;
    object-position: top;
}

@media (max-width: 768px) {

    #blog-slider-1-wrap .swiper-slide img,
    [id^="blog-section-slider-"] .swiper-slide img {
        height: 300px;
    }
}

/* Карточки услуг: образец берёт размер из aspect-ratio родительской карточки */
#blog-services-slider-wrap .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: top;
}

.blog-slider-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.blog-slider-dots .swiper-pagination-bullet {
    width: 40px;
    height: 1px;
    border-radius: 0;
    background-color: #ccc;
    opacity: 1;
}

.blog-slider-dots .swiper-pagination-bullet-active {
    background-color: rgba(20, 20, 20, 1);
}

/* Кастомные стрелки слайдера — круглые кнопки как на всём сайте */
.blog-swiper-prev,
.blog-swiper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    /* Круглая кнопка 32×32px */
    width: 32px;
    height: 32px;
    border: 1px solid rgba(20, 20, 20, 1);
    border-radius: 50%;
    background: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.blog-swiper-prev:hover,
.blog-swiper-next:hover {
    background: rgba(20, 20, 20, 0.06);
}

.blog-swiper-prev {
    left: -48px;
}

.blog-swiper-next {
    right: -48px;
}

.blog-swiper-prev svg,
.blog-swiper-next svg {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
}

/* Подзаголовок над вводным текстом — стиль как blog-services-title */
.blog-post-subtitle {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 52px;
    letter-spacing: -0.52px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 1);
    margin: 0 0 20px;
}

@media (max-width: 1240px) {
    .blog-swiper-prev {
        left: 0;
    }

    .blog-swiper-next {
        right: 0;
    }
}

/* ── Кнопка "ЗАПИСАТЬСЯ" ── */
.blog-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 330px;
    height: 58px;
    background: rgba(20, 20, 20, 1);
    border: 1px solid rgba(0, 0, 0, 1);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    margin-bottom: 60px;
}

.blog-book-btn:hover {
    background: rgba(60, 60, 60, 1);
    color: white;
}

@media (max-width: 480px) {
    .blog-book-btn {
        width: 100%;
    }
}

/* ── Блок эксперта ── */
.blog-expert-block {
    background-color: rgba(228, 228, 228, 1);
    padding: 40px;
    margin-bottom: 80px;
    /* Figma: width 717, height 330, border-radius 15px */
    max-width: 717px;
    width: 100%;
    min-height: 330px;
    border-radius: 15px;
    box-sizing: border-box;
}

.blog-expert-header {
    display: flex;
    align-items: flex-start;
    /* фото прижато к верху — голова не срезается */
    gap: 30px;
    margin-bottom: 20px;
}

.blog-expert-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    /* показываем верхнюю часть фото — лицо/голова */
    flex-shrink: 0;
}

.blog-expert-meta {
    display: flex;
    flex-direction: column;
}

.blog-expert-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 18px;
    line-height: 21px;
    color: rgba(0, 0, 0, 1);
    margin-bottom: 5px;
}

.blog-expert-name {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 28px;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 1);
    margin-bottom: 5px;
}

.blog-expert-job {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: rgba(0, 0, 0, 1);
}

.blog-expert-quote {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: rgba(0, 0, 0, 1);
    margin: 0;
}

@media (max-width: 600px) {
    .blog-expert-block {
        padding: 25px 20px;
    }

    .blog-expert-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .blog-expert-name {
        font-size: 22px;
    }
}

/* ── Услуги из статьи ── */
.blog-services-section {
    margin-bottom: 80px;
}

.blog-services-title {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 52px;
    letter-spacing: -0.52px;
    text-transform: uppercase;
    margin-bottom: 30px;
    margin-top: 0;
}

.blog-service-card {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    /* Точные размеры по макету: width 270, height 326 */
    width: 100%;
    aspect-ratio: 270 / 326;
}

.blog-service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}

.blog-service-card:hover img {
    transform: scale(1.04);
}

.blog-service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 30px 10px;
    gap: 6px;
}

.blog-service-overlay h3 {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.52px;
    text-align: center;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 1);
    margin: 0;
}

/* «подробнее» — видно на всех экранах */
.blog-service-more {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    text-align: center;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Текстовые секции ── */
.blog-text-section {
    margin-bottom: 80px;
}

.blog-section-title-wrap {
    background-color: rgba(228, 228, 228, 1);
    /* Figma: width 717, height 119 (= padding 40px ×2 + заголовок 38px линия) */
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Figma: gap 10px */
    padding: 40px;
    /* Figma: padding 40px */
    margin-bottom: 30px;
    max-width: 717px;
    /* Figma: width 717 */
    width: 100%;
    box-sizing: border-box;
}

.blog-section-title-wrap h2 {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 38px;
    letter-spacing: -0.32px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 1);
    margin: 0;
}

.blog-section-desc {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: rgba(0, 0, 0, 1);
    max-width: 717px;
    /* Figma: width 717 */
    width: 100%;
    margin-bottom: 40px;
}

@media (max-width: 600px) {
    .blog-section-title-wrap {
        min-width: unset;
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    .blog-section-title-wrap h2 {
        font-size: 24px;
    }

    .blog-services-title {
        font-size: 28px;
    }
}

/* ── Связанные статьи блога внизу ── */
.blog-related-section {
    margin-bottom: 80px;
}

.blog-related-title {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 52px;
    line-height: 52px;
    letter-spacing: -0.52px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 1);
    margin-bottom: 40px;
    margin-top: 0;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .blog-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-related-grid {
        grid-template-columns: 1fr;
    }

    .blog-related-title {
        font-size: 34px;
    }
}

.blog-related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.blog-related-card-img {
    width: 100%;
    aspect-ratio: 368 / 441;
    object-fit: cover;
    object-position: top;
    margin-bottom: 20px;
    display: block;
    transition: opacity 0.3s;
}

.blog-related-card:hover .blog-related-card-img {
    opacity: 0.85;
}

.blog-related-card h4 {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -0.24px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 1);
    margin: 0 0 15px;
}

/* Описание карточки: 3-4 строки с плавным fade снизу через mask-image */
.blog-related-card p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: rgba(0, 0, 0, 1);
    margin: 0 0 25px;
    flex-grow: 1;
    /* 4 строки максимум */
    max-height: calc(24px * 4);
    overflow: hidden;
    /* Fade: первые 60% видны полностью, последние 40% исчезают */
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

.blog-related-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 1);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 1);
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    margin-top: auto;
}

.blog-related-btn:hover {
    background: rgba(0, 0, 0, 1);
    color: white;
}

/* ── Общий отступ снизу перед футером ── */
.blog-single-main {
    padding-bottom: 40px;
}

/* ── Swiper кастомная пагинация (плоские полоски) для блога ── */
/* Неактивная: 50×2px | Активная: ~101×2px */
.blog-swiper-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    min-height: 10px;
}

.blog-swiper-pagination .swiper-pagination-bullet {
    width: 50px !important;
    height: 2px !important;
    border-radius: 2px !important;
    background: rgba(20, 20, 20, 0.25) !important;
    opacity: 1 !important;
    margin: 0 !important;
    transition: width 0.3s ease, background 0.3s ease;
}

.blog-swiper-pagination .swiper-pagination-bullet-active {
    width: 101px !important;
    background: rgba(20, 20, 20, 1) !important;
}


/* ════════════════════════════════════════════════════════════════════
   MOBILE STYLES — max-width: 479px
   Все параметры строго по макету мобильной версии
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 479px) {

    /* ── Контейнер страницы: отступ 43px слева и справа ── */
    .blog-single-container {
        padding-left: 43px;
        padding-right: 43px;
    }

    /* ── Фото-слайдер (#blog-slider-1-wrap): блок 324×551px по Figma ── */
    #blog-slider-1-wrap {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: 324px;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        overflow: hidden;
    }

    #blog-slider-1-wrap .swiper {
        width: 100%;
        overflow: hidden;
    }

    /* 䈛лайд 324px с паддингом 42px → фото 240px */
    #blog-slider-1-wrap .swiper-slide {
        width: 100% !important;
        padding: 0 42px;
        box-sizing: border-box;
    }

    #blog-slider-1-wrap .swiper-slide img {
        width: 100%;
        height: 423px;
        object-fit: cover;
        display: block;
    }

    /* Стрелки фото-слайдера: у краёв 324px блока */
    #blog-slider-1-wrap .blog-swiper-prev {
        left: 0;
        top: 211px;
        transform: translateY(-50%);
        z-index: 20;
    }

    #blog-slider-1-wrap .blog-swiper-next {
        right: 0;
        top: 211px;
        transform: translateY(-50%);
        z-index: 20;
    }

    /* ── Слайдеры текстовых секций: 324px / 240×423px по Figma ── */
    [id^="blog-section-slider-"] {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: 324px;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        overflow: hidden;
    }

    [id^="blog-section-slider-"] .swiper {
        width: 100%;
        overflow: hidden;
    }

    [id^="blog-section-slider-"] .swiper-slide {
        width: 100% !important;
        padding: 0 42px;
        box-sizing: border-box;
    }

    [id^="blog-section-slider-"] .swiper-slide img {
        width: 100%;
        height: 423px;
        object-fit: cover;
        display: block;
        object-position: top;
    }

    [id^="blog-section-slider-"] .blog-swiper-prev {
        left: 0;
        top: 211px;
        transform: translateY(-50%);
        z-index: 20;
    }

    [id^="blog-section-slider-"] .blog-swiper-next {
        right: 0;
        top: 211px;
        transform: translateY(-50%);
        z-index: 20;
    }

    /* Прочие слайдеры (только услуги): полная ширина */
    .blog-slider-wrapper {
        position: relative;
        left: auto;
        transform: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        overflow: visible;
    }

    /* Стрелки для слайдера услуг */
    .blog-slider-wrapper .blog-swiper-prev {
        left: -20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .blog-slider-wrapper .blog-swiper-next {
        right: -20px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Стрелки услуг: карточка 302px ≈ ширина контейнера, стрелки на краях */
    #blog-services-slider-wrap .blog-swiper-prev {
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    #blog-services-slider-wrap .blog-swiper-next {
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    /* SVG в стрелках: 32×32px, не меньше */
    .blog-swiper-prev svg,
    .blog-swiper-next svg {
        width: 32px;
        height: 32px;
    }

    /* Пагинация мобиль: 14×2px неактивная, 28×2px активная */
    .blog-swiper-pagination .swiper-pagination-bullet {
        width: 14px !important;
        height: 2px !important;
        border-radius: 2px !important;
        background: rgba(20, 20, 20, 0.25) !important;
        opacity: 1 !important;
        margin: 0 3px !important;
        transition: width 0.25s ease, background 0.25s ease;
    }

    .blog-swiper-pagination .swiper-pagination-bullet-active {
        width: 28px !important;
        background: rgba(20, 20, 20, 1) !important;
    }

    /* ── Блок эксперта: карточка 346×492, border-radius 15px ── */
    .blog-expert-block {
        max-width: 346px;
        min-height: 492px;
        margin: 0 auto 60px;
        padding: 32px 24px 36px;
        border-radius: 15px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Шапка: фото + текст — центровано вертикально */
    .blog-expert-header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: 24px;
        width: 100%;
        text-align: center;
    }

    /* Фото эксперта: 133×133px */
    .blog-expert-photo {
        width: 133px;
        height: 133px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }

    .blog-expert-meta {
        text-align: center;
        align-items: center;
    }

    /* «совет от»: Montserrat 300 italic 18px / 21px */
    .blog-expert-label {
        font-family: 'Montserrat', sans-serif;
        font-weight: 300;
        font-style: italic;
        font-size: 18px;
        line-height: 21px;
        letter-spacing: 0;
        display: block;
        margin-bottom: 6px;
        text-align: center;
    }

    /* Имя эксперта: Lora 400 20px / 28px, -0.2px, uppercase */
    .blog-expert-name {
        font-family: 'Lora', serif;
        font-weight: 400;
        font-style: normal;
        font-size: 20px;
        line-height: 28px;
        letter-spacing: -0.2px;
        text-transform: uppercase;
        display: block;
        margin-bottom: 4px;
        text-align: center;
    }

    /* Должность: Montserrat 400 16px / 21px, text-align center */
    .blog-expert-job {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 16px;
        line-height: 21px;
        letter-spacing: 0;
        text-align: center;
        display: block;
    }

    /* Цитата: Montserrat 400 16px / 28px */
    .blog-expert-quote {
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 16px;
        line-height: 28px;
        letter-spacing: 0;
        text-align: left;
        width: 100%;
    }

    /* ── Услуги из статьи: заголовок ── */
    .blog-services-title {
        font-family: 'Lora', serif;
        font-weight: 400;
        font-style: normal;
        font-size: 28px;
        line-height: 28px;
        letter-spacing: -0.28px;
        text-transform: uppercase;
        margin-bottom: 24px;
    }

    /* ── Услуги: обёртка 374px по Figma (302px фото + 36px стрелки × 2) ── */
    #blog-services-slider-wrap {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: 374px;
        max-width: calc(100vw - 20px); /* защита на очень узких экранах */
        overflow: visible; /* стрелки не обрезаются */
    }

    /* Swiper: 302px = 374 − 36×2 */
    #blog-services-slider-wrap .swiper {
        overflow: hidden;
        margin: 0 36px;
        width: 302px;
    }

    /* Слайд точно 302px */
    #blog-services-slider-wrap .swiper-slide {
        width: 302px !important;
        display: flex;
        justify-content: center;
    }

    /* Карточка: 302×366px по Figma */
    .blog-service-card {
        width: 302px;
        max-width: 100%;
        aspect-ratio: unset;
        height: 366px;
    }

    .blog-service-card img {
        width: 100%;
        height: 366px;
        object-fit: cover;
    }

    /* «подробнее» — глобальные стили заданы выше */

    /* ── Заголовок текстовых секций (серый фон) ── */
    .blog-section-title-wrap {
        min-width: unset;
        width: 100%;
        padding: 18px 20px;
        box-sizing: border-box;
    }

    .blog-section-title-wrap h2 {
        font-size: 22px;
        line-height: 28px;
    }

    /* ── Кнопка "Записаться" — размеры 302×58px, по макету ── */
    .blog-book-btn {
        /* width: 302px;*/
        max-width: 100%;
        height: 58px;
        border-width: 1px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 40px;
        display: flex;
    }

    /* ── Сетка связанных статей — одна колонка ── */
    .blog-related-grid {
        grid-template-columns: 1fr;
    }

    .blog-related-title {
        font-size: 32px;
        line-height: 38px;
    }

}

/* end @media max-width: 479px */