/* ==========================================================================
   Страница специалиста (single-specialist.php, template-parts/specialist/*).
   Замеры: Tilda /specialists/bondarenko при ширине 1400 — сетка 1320 с x=40,
   карточка первого экрана x=14 шириной 1367. Только flex.
   ========================================================================== */

.spec-page {
    background: #f5f5f5;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #3e3e3e;
}

.spec-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

.spec-section { padding: 90px 0; }
.spec-section--soft  { background: #fafafa; }
.spec-section--white { background: #fff; }

.spec-title {
    margin: 0;
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 36px;
    color: #171717;
}

.spec-title span { color: #0093d5; }
.spec-title strong { font-weight: 600; }

.spec-subtitle {
    max-width: 484px;
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 25px;
    color: #3e3e3e;
}

.spec-subtitle strong { font-weight: 600; color: #171717; }
.spec-subtitle span { color: #0093d5; }
.spec-subtitle a { color: #0093d5; text-decoration: none; }
.spec-subtitle a:hover { text-decoration: underline; }

.spec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 291px;
    max-width: 100%;
    min-height: 68px;
    padding: 0 24px;
    border: 1px solid #3aa5d6;
    border-radius: 49px;
    background: #3aa5d6;
    color: #fff;
    font: 500 16px/1.2 'Montserrat', Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}

.spec-btn:hover { border-color: #2b93c3; background: #2b93c3; color: #fff; }
.spec-btn--outline { border-color: #b1d3e2; background: transparent; color: #3aa5d6; }
.spec-btn--outline:hover { border-color: #3aa5d6; background: #3aa5d6; color: #fff; }

/* ── Первый экран ─────────────────────────────────────────────────────────── */

.spec-hero { padding: 8px 0 0; }

.spec-hero .spec-container {
    max-width: none;
    padding: 0 14px;
}

.spec-hero__card {
    display: flex;
    align-items: flex-start;
    gap: 58px;
    max-width: 1367px;
    min-height: 586px;
    margin: 0 auto;
    padding: 50px 40px 50px 64px;
    border-radius: 16px;
    background: #fff;
}

.spec-hero__photo {
    flex: 0 0 486px;
    height: 486px;
    overflow: hidden;
    border-radius: 12px;
    background: #ecf3f6;
}

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

.spec-hero__body { flex: 1 1 auto; min-width: 0; }

.spec-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 16px;
    line-height: 20px;
    color: #3e3e3e;
}

.spec-crumbs a { color: #171717; font-weight: 500; text-decoration: none; }
.spec-crumbs a:hover { color: #0093d5; }

.spec-hero__name {
    margin: 15px 0 0;
    font-family: 'FuturaPT', Arial, sans-serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 38px;
    color: #171717;
}

.spec-hero__intro {
    max-width: 668px;
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 25px;
    color: #3e3e3e;
}

.spec-hero__intro strong { color: #171717; }
.spec-hero__intro span { color: #0093d5; }

.spec-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 31px 0 0;
    padding: 0;
    list-style: none;
}

.spec-hero__tags li {
    padding: 11px 20px;
    border-radius: 30px;
    background: #eef6fa;
    color: #3aa5d6;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
}

.spec-hero__info {
    display: flex;
    gap: 20px 32px;
    margin-top: 42px;
}

.spec-hero__fact {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 0 1 340px;
    min-width: 0;
}

.spec-hero__icon { flex-shrink: 0; width: 40px; height: 40px; }
.spec-hero__fact-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 20px; color: #171717; }
.spec-hero__fact-text { margin: 4px 0 0; font-size: 16px; line-height: 20px; color: #5e5e5e; }
.spec-hero__fact-text s { margin-right: 6px; color: #9a9a9a; }
.spec-hero__fact-text strong { font-weight: 600; color: #171717; }

.spec-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 43px;
}

/* Окно «Режим работы» (Tilda #popup:mode) */
.spec-schedule {
    width: 656px;
    max-width: calc(100% - 20px);
    padding: 44px 50px 50px;
    border-radius: 12px;
}

.spec-schedule__close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 50%;
    background: #f5f5f5;
    color: #171717;
    cursor: pointer;
}

.spec-schedule__close svg { display: block; width: 100%; height: 100%; }

.spec-schedule__title {
    margin: 0 0 38px;
    font: 500 32px/35px 'FuturaPT', Arial, sans-serif;
    color: #171717;
}

.spec-schedule__list { margin: 0; border-top: 1px solid #ededed; }

.spec-schedule__row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #ededed;
    font: 18px/18px 'Montserrat', Arial, sans-serif;
}

.spec-schedule__row dt { color: #3e3e3e; }
.spec-schedule__row dd { margin: 0; font-weight: 700; color: #171717; }

/* ── О специалисте ────────────────────────────────────────────────────────── */

.spec-about__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.spec-about__aside { flex: 0 0 486px; }

.spec-about__aside .spec-subtitle { max-width: 464px; }

.spec-video {
    position: relative;
    overflow: hidden;
    aspect-ratio: 486 / 273;
    border-radius: 8px;
    background: #000;
}

.spec-video iframe,
.spec-video video,
.spec-video__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

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

.spec-video__play svg { width: 60px; height: 60px; transition: transform .2s; }
.spec-video__play:hover svg { transform: scale(1.1); }

.spec-about__video { margin-top: 44px; }

.spec-about__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 49px;
    padding: 25px 30px;
    border-radius: 8px;
    background: #fff;
}

.spec-about__question p {
    max-width: 216px;
    margin: 0;
    font-size: 16px;
    line-height: 25px;
    color: #3e3e3e;
}

.spec-about__question strong { font-weight: 600; color: #171717; }
.spec-about__question .svc-messengers { gap: 8px; }

.spec-about__list {
    flex: 0 1 739px;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #ececec;
}

.spec-about__list li {
    position: relative;
    padding: 18px 0 18px 28px;
    border-bottom: 1px solid #ececec;
    font-size: 16px;
    line-height: 25px;
    color: #3e3e3e;
}

.spec-about__list li::before {
    content: '—';
    position: absolute;
    top: 18px;
    left: 0;
    color: #0093d5;
    font-weight: 500;
}

.spec-about__list strong { color: #171717; }

/* ── Ленты: дипломы, видео, отзывы ────────────────────────────────────────── */

.spec-slider { overflow: hidden; }

.spec-track {
    display: flex;
    align-items: stretch;
    gap: 11px;
    margin: 19px calc(50% - 50vw) 0 0;
    padding-right: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
}

.spec-track::-webkit-scrollbar { display: none; }
.spec-track.is-dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.spec-track img { -webkit-user-drag: none; }

.spec-diplomas .spec-track { gap: 12px; margin-top: 37px; }
.spec-reviews .spec-track { margin-top: 40px; }

.spec-diplomas__item {
    flex: 0 0 480px;
    height: 336px;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.spec-diplomas__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.spec-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 481px;
    min-width: 0;
    padding: 30px;
    border-radius: 8px;
    background: #fff;
}

.spec-videos .spec-video { aspect-ratio: 421 / 250; }

.spec-videos__text {
    margin: 24px 0 0;
    font-size: 16px;
    line-height: 25px;
    color: #393737;
}

.spec-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 35px;
}

.spec-diplomas .spec-nav { margin-top: 52px; }
.spec-reviews .spec-nav { margin-top: 40px; }

.spec-nav__arrows { display: flex; gap: 8px; }

.spec-nav__arrow {
    width: 66px;
    height: 66px;
    padding: 0;
    border: 0;
    background: none;
    color: #3aa5d6;
    cursor: pointer;
    transition: color .2s, opacity .2s;
}

.spec-nav__arrow svg { display: block; width: 100%; height: 100%; }
.spec-nav__arrow:hover { color: #2b93c3; }
.spec-nav__arrow:disabled { opacity: .35; cursor: default; }

.spec-nav__hint {
    max-width: 190px;
    margin: 0;
    font-size: 16px;
    line-height: 22px;
    color: #7e7e7e;
}

.spec-nav__more {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    padding: 18px 30px;
    border-radius: 40px;
    background: #fff;
    color: #171717;
    font-size: 16px;
    line-height: 19px;
    text-decoration: none;
}

.spec-nav__more:hover { color: #0093d5; }

/* Карточка отзыва */
.spec-card.spec-review { min-height: 427px; }

.spec-review .svc-stars { gap: 10px; }
.spec-review .svc-stars svg { width: 16px; height: 16px; }
.spec-review .svc-stars path { fill: #0093d5; } /* на Тильде звёзды синие (5star.svg) */

.spec-review__text {
    display: -webkit-box;
    margin-top: 16px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 9;
    font-size: 16px;
    line-height: 25px;
    color: #393737;
}

.spec-review__text.is-open { display: block; }
.spec-review__text strong { color: #171717; }

.spec-review__video {
    width: 324px;
    max-width: 100%;
    aspect-ratio: 324 / 198;
    margin-top: 16px;
}

.spec-review__link {
    align-self: flex-start;
    margin-top: 16px;
    padding: 0;
    border: 0;
    background: none;
    color: #0093d5;
    font: 500 16px/25px 'Montserrat', Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.spec-review__link:hover { text-decoration: underline; }
.spec-review__link + .spec-review__link { margin-top: 4px; }

.spec-review__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding-bottom: 24px;
}

.spec-review__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 17px;
    border-top: 1px solid #ebebeb;
    font-size: 16px;
    line-height: 16px;
}

.spec-review__name { font-weight: 700; color: #000; }
.spec-review__date { color: #a1a1a1; text-align: right; white-space: nowrap; }

/* ── Услуги ──────────────────────────────────────────────────────────────── */

.spec-services__list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.spec-services__item { flex: 0 0 calc((100% - 40px) / 3); }

.spec-services__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 1;
    overflow: hidden;
    padding: 30px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}

.spec-services__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 147, 213, .3), rgba(0, 124, 181, 1));
    transition: opacity .3s;
}

.spec-services__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.spec-services__name,
.spec-services__more { position: relative; z-index: 1; }

.spec-services__name {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(184, 184, 184, .2);
    font: 500 22px/28px 'FuturaPT', Arial, sans-serif;
}

.spec-services__more {
    max-height: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 22px;
    opacity: 0;
    transition: max-height .3s, opacity .3s, padding .3s;
}

.spec-services__card:hover .spec-services__img { transform: scale(1.05); }
.spec-services__card:hover .spec-services__more { max-height: 40px; padding-top: 14px; opacity: 1; }

/* ── Классический макет (старые страницы Тильды, /specialists/bogomolov) ─────
   Плашка #f4f5f7 x56 шириной 1283, фото 476 слева закреплено (на Тильде — «fixed»
   с отступом 160), правая колонка 670 с x618. */

.spec-classic { background: #fff; }

.spec-classic__row {
    display: flex;
    align-items: stretch;
    max-width: 1283px;
    margin: 0 auto;
    padding-bottom: 88px; /* отступ на ряде, а не в колонке — фото останавливается на уровне низа слайдера */
}

.spec-classic__aside {
    flex: 0 0 476px;
    margin: 0 32px 0 54px;
    padding-top: 47px;
}

.spec-classic__photo {
    position: sticky;
    top: 160px;
    overflow: hidden;
    border-radius: 8px;
}

.spec-classic__photo img { display: block; width: 100%; height: auto; }

.spec-classic__main {
    flex: 0 1 670px;
    min-width: 0;
    font-family: 'Montserrat', Arial, sans-serif;
}

.spec-classic__intro {
    position: relative;
    min-height: 710px;
    padding: 70px 0 133px;
}

/* Серая плашка первого экрана тянется под фото и до правого края */
.spec-classic__intro::before {
    content: '';
    position: absolute;
    top: 0;
    right: -51px;
    bottom: 0;
    left: -562px;
    z-index: -1;
    border-radius: 12px;
    background: #f4f5f7;
}

.spec-classic__row { position: relative; z-index: 0; }
.spec-classic__aside { position: relative; z-index: 1; }

.spec-classic__crumbs {
    font-size: 14px;
    line-height: 22px;
    color: #949494;
}

.spec-classic__crumbs a { color: inherit; border-bottom: 1px solid; }
.spec-classic__crumbs--top { display: none; }
.spec-classic__crumbs a:hover { color: #009bdd; }

.spec-classic__name {
    margin: 20px 0 0;
    font: 500 32px/38px 'FuturaPT', Arial, sans-serif;
    color: #000;
}

.spec-classic__role {
    margin: 8px 0 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;
    color: #333;
}

.spec-classic__role span { color: #009bdd; }

.spec-classic__metro {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.spec-classic__metro li {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px;
    border-radius: 2px;
    background: #fff;
    font-size: 14px;
    line-height: 1;
    color: #333;
}

.spec-classic__metro svg { width: 16px; height: 11px; }

.spec-classic__facts {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.spec-classic__facts li {
    position: relative;
    padding-left: 30px;
    font-size: 16px;
    line-height: 30px;
    color: #707070;
}

.spec-classic__facts li::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 14px;
    height: 2px;
    background: #009bdd;
}

.spec-classic__facts strong { color: #333; }

.spec-classic__price {
    margin: 20px 0 0;
    font-size: 16px;
    line-height: 25px;
    color: #333;
}

.spec-classic__price s { color: #949494; }

.spec-classic__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 306px;
    max-width: 100%;
    height: 52px;
    margin-top: 20px;
    padding: 0 20px;
    border: 0;
    border-radius: 4px;
    background: #009bdd;
    color: #fff;
    font: 500 14px/1.2 'Montserrat', Arial, sans-serif;
    cursor: pointer;
    transition: background-color .2s;
}

.spec-classic__btn:hover { background: #0086c0; }

.spec-classic__block { padding-top: 55px; }
.spec-classic__block + .spec-classic__block { padding-top: 140px; }

.spec-classic__title {
    margin: 0;
    font: 500 34px/53px 'FuturaPT', Arial, sans-serif;
    color: #000;
}

.spec-classic__title span { color: #0093d5; }

.spec-classic__video {
    aspect-ratio: 670 / 382;
    margin-top: 30px;
    border-radius: 0;
}

.spec-classic__slider {
    position: relative;
    width: 665px;
    max-width: 100%;
    margin-top: 30px;
}

.spec-classic__track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
}

.spec-classic__track::-webkit-scrollbar { display: none; }
.spec-classic__track.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }

.spec-classic__slide {
    flex: 0 0 100%;
    height: 469px;
    padding: 4px;
    scroll-snap-align: start;
}

.spec-classic__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-user-drag: none;
}

.spec-classic__arrow {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    padding: 0;
    border: 0;
    background: none;
    color: #009bdd;
    cursor: pointer;
}

.spec-classic__arrow svg { display: block; width: 100%; height: 100%; }
.spec-classic__arrow--prev { left: 10px; }
.spec-classic__arrow--next { right: 10px; }
.spec-classic__arrow:disabled { opacity: .3; cursor: default; }

.spec-classic__dots {
    display: flex;
    justify-content: center;
    width: 665px;
    max-width: 100%;
    margin: -46px 0 16px; /* точки внутри слайдера; нижний 16px доводит колонку ровно до низа слайдера */
    position: relative;
    pointer-events: none;
}

.spec-classic__dots button {
    width: 25px;
    height: 30px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    pointer-events: auto;
}

.spec-classic__dots button::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    margin: 0 auto;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.spec-classic__dots button.is-active::before { background: #009bdd; }

@media (max-width: 1199px) {
    .spec-classic__aside { flex-basis: 380px; margin: 0 30px 0 30px; }
    .spec-classic__intro::before { left: -440px; right: -30px; }
    .spec-classic__main { padding-right: 30px; }
}

@media (max-width: 991px) {
    .spec-classic__row { flex-direction: column; padding: 0 10px; }
    .spec-classic__aside { flex: 0 0 auto; margin: 0; padding: 20px 20px 0; border-radius: 12px 12px 0 0; background: #f4f5f7; }
    .spec-classic__photo { position: static; max-width: 476px; margin: 0 auto; }
    .spec-classic__main { flex: 0 0 auto; padding: 0 0 60px; }
    .spec-classic__intro { min-height: 0; padding: 24px 20px 40px; border-radius: 0 0 12px 12px; background: #f4f5f7; }
    .spec-classic__intro::before { display: none; }
    .spec-classic__block { padding: 45px 10px 0; }
    .spec-classic__block + .spec-classic__block { padding-top: 60px; }
}

/* Телефон, как на Тильде (res-320): крошки → фото → метро → имя → должность → список */
@media (max-width: 639px) {
    .spec-classic__crumbs { font-size: 12px; line-height: 19px; }
    .spec-classic__crumbs--top { display: block; margin-bottom: 20px; }
    .spec-classic__intro .spec-classic__crumbs { display: none; }
    .spec-classic__intro { display: flex; flex-direction: column; padding-top: 40px; }
    .spec-classic__metro { order: -1; gap: 8px; margin: 0; }
    /* На Тильде плашка — картинка 171×32, на телефоне ужата до 134×25 */
    .spec-classic__metro li { gap: 6px; height: 25px; padding: 0 9px; font-size: 11px; }
    .spec-classic__metro svg { width: 12px; height: 9px; }
    .spec-classic__name { margin-top: 20px; font-size: 28px; line-height: 34px; }
    .spec-classic__role { margin-top: 8px; font-size: 14px; line-height: 22px; }
    .spec-classic__facts { margin-top: 15px; }
    .spec-classic__facts li { padding-left: 20px; font-size: 14px; line-height: 27px; }
    .spec-classic__facts li::before { top: 13px; width: 12px; }
    .spec-classic__btn { align-self: flex-start; margin-top: 30px; margin-left: 4px; }
    .spec-classic__title { font-size: 26px; line-height: 32px; }
    .spec-classic__slide { height: 250px; }
    .spec-classic__dots { margin: 4px 0 0; }
    .spec-classic__dots button::before { background: #d7dde2; box-shadow: none; }
}

/* ── Планшет и телефон ───────────────────────────────────────────────────── */

@media (max-width: 1199px) {
    .spec-hero__card { gap: 36px; padding: 40px; }
    .spec-hero__photo { flex-basis: 400px; height: 400px; }
    .spec-about__aside { flex-basis: 420px; }
}

@media (max-width: 991px) {
    .spec-section { padding: 60px 0; }
    .spec-hero { padding-top: 8px; }
    .spec-hero__card { flex-direction: column; min-height: 0; padding: 30px; }
    .spec-hero__info { flex-wrap: wrap; }
    .spec-hero__photo { flex: 0 0 auto; width: 100%; max-width: 486px; height: auto; aspect-ratio: 1; }
    .spec-about__row { flex-direction: column; }
    .spec-about__aside,
    .spec-about__list { flex: 0 0 auto; width: 100%; }
    .spec-about__aside .spec-subtitle { max-width: none; }
    .spec-services__item { flex-basis: calc((100% - 20px) / 2); }
}

@media (max-width: 639px) {
    .spec-section { padding: 45px 0; }
    .spec-hero { padding-top: 10px; } /* иначе .spec-section даёт 45px под шапкой */
    .spec-hero .spec-container { padding: 0 10px; }
    .spec-hero__card { padding: 20px 20px 30px; border-radius: 12px; }
    .spec-hero__name { margin-top: 16px; font-size: 28px; line-height: 31px; }
    /* Tilda res-320: крошки 15px #565656, разделители и текущая страница — прозрачность .3 */
    .spec-crumbs { font-size: 15px; color: #565656; }
    .spec-crumbs a { color: #565656; }
    .spec-crumbs > span { opacity: .3; }
    .spec-hero__fact-title { font-size: 15px; line-height: 18px; }
    .spec-hero__fact-text { margin-top: 5px; font-size: 15px; line-height: 18px; color: #5e5e5e; }
    .spec-hero__fact-text s { margin-right: 0; color: #5e5e5e; } /* между ценами и так пробел из разметки */
    .spec-hero__tags { margin-top: 20px; }
    .spec-hero__tags li { padding: 8px 16px; font-size: 14px; }
    .spec-hero__info { margin-top: 26px; }
    .spec-hero__fact { flex-basis: 100%; }
    .spec-hero__actions { margin-top: 30px; }
    .spec-btn { width: 100%; min-height: 60px; }

    .spec-title { font-size: 26px; line-height: 30px; }
    .spec-about__row { gap: 36px; }
    .spec-about__question { display: none; } /* на Тильде в мобильной мессенджеров нет */

    .spec-track { gap: 10px; }

    /* Слайдеры (дипломы, видео, отзывы), Tilda res-320 (rec1571098171–261): заголовок 28px
       в две строки, светлые стрелки 48px и подсказка справа от них */
    .spec-slider .spec-title { max-width: 222px; font-size: 28px; line-height: 31px; }
    .spec-slider .spec-nav { gap: 12px; margin-top: 20px; }
    .spec-slider .spec-nav__arrows { flex-shrink: 0; gap: 4px; }
    .spec-slider .spec-nav__arrow { width: 48px; height: 48px; background: center / 100% no-repeat; }
    .spec-slider .spec-nav__arrow[data-track-prev] { background-image: url(https://static.tildacdn.com/tild6431-6265-4731-b637-396561393064/arrow-left.svg); }
    .spec-slider .spec-nav__arrow[data-track-next] { background-image: url(https://static.tildacdn.com/tild6666-3664-4162-a362-623137313364/arrow-right.svg); }
    .spec-slider .spec-nav__arrow svg { display: none; }
    .spec-slider .spec-nav__arrow:disabled { opacity: .5; }
    .spec-slider .spec-nav__hint { flex: 1 1 150px; max-width: none; font-size: 14px; line-height: 21px; letter-spacing: -.2px; }

    /* Дипломы: карточки 320×240 */
    .spec-diplomas .spec-track { gap: 12px; margin-top: 30px; }
    .spec-diplomas__item { flex-basis: 320px; height: 240px; }
    .spec-card,
    .spec-card.spec-review { flex-basis: 300px; min-height: 0; padding: 24px 20px 20px; }
    .spec-nav__more { margin-left: 0; }

    /* Отзывы, Tilda res-320 (rec1571098251): карточка 320 с полями 24, текст 15px,
       имя и дата столбиком, «Смотреть все отзывы» во всю ширину.
       Как на Тильде: карточки одной высоты, длинный текст свёрнут (16 строк) без «Читать полностью» —
       целиком он по «Ссылке на отзыв» */
    .spec-card.spec-review { flex-basis: 320px; padding: 24px; }
    .spec-review__text { margin-top: 16px; font-size: 15px; line-height: 23px; letter-spacing: -.1px; -webkit-line-clamp: 16; }
    .spec-review [data-clamp-toggle] { display: none; }
    .spec-review__link { margin-top: 16px; font-size: 15px; line-height: 20px; text-decoration: underline; text-underline-offset: 3px; }
    .spec-review__footer { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 15px; }
    .spec-review__date { text-align: left; }
    .spec-reviews .spec-nav__more { justify-content: center; width: 100%; }

    .spec-services__item { flex-basis: 100%; }

    .spec-schedule { padding: 30px 20px; }
    .spec-schedule__close { top: 20px; right: 20px; }
    .spec-schedule__title { margin-bottom: 24px; font-size: 26px; }
    .spec-schedule__row { padding: 16px 0; font-size: 16px; }
}
