/* Шапка (меню T257/T228): промежуток между пунктами 24 px вместо 30 px, чтобы меню с двумя иконками помещалось в одну строку с 1366 px. Scavio, 18.10.2026 */
@media screen and (min-width: 981px) {
  .t228 .t228__list_item { padding-left: 12px !important; padding-right: 12px !important; }
  .t228 .t228__list_item:first-child { padding-left: 0 !important; }
  .t228 .t228__list_item:last-child { padding-right: 0 !important; }
}

/* Телефон (до 640 px): основной текст не мельче 16 px, зоны нажатия больше. Scavio, 18.10.2026 */
@media screen and (max-width: 640px) {
  /* Подвал (T344): ссылки 16 px, каждая ссылка по высоте около 30 px (компактный вариант) */
  .t344 .t344__title { font-size: 14px !important; }
  .t344 .t344__descr, .t344 .t344__descr * { font-size: 16px !important; line-height: 1.4 !important; }
  .t344 .t344__descr a { display: inline-block; padding: 4px 0; }
  /* Отзывы на главной (T942) */
  .t942 .t942__review-text, .t942 .t942__review-text * { font-size: 16px !important; line-height: 1.5 !important; }
  /* Слайдер с описанием (T764) */
  .t764 .t764__descr, .t764 .t764__descr * { font-size: 16px !important; line-height: 1.5 !important; }
  /* Врачи (T524): имя и должность */
  .t524 .t524__persname { font-size: 16px !important; line-height: 1.3 !important; }
  .t524 .t524__persdescr, .t524 .t524__persdescr * { font-size: 16px !important; line-height: 1.4 !important; }
  /* Отзывы-слайдер (T605): дата */
  .t605 .t605__descr { font-size: 14px !important; }
  /* Стрелки слайдеров: зона нажатия 44 px, вид кружка прежний */
  .t-slds__arrow { position: relative; }
  .t-slds__arrow::after { content: ""; position: absolute; top: -9px; right: -9px; bottom: -9px; left: -9px; }
  /* Шапка на телефоне: номер и значок меню, зона нажатия 44 px, вид прежний */
  .tmenu-mobile__text a { position: relative; }
  .tmenu-mobile__text a::after { content: ""; position: absolute; top: -13px; right: 0; bottom: -13px; left: 0; }
  .tmenu-mobile .t-menuburger { position: relative; }
  .tmenu-mobile .t-menuburger::after { content: ""; position: absolute; top: -12px; right: -8px; bottom: -12px; left: -8px; }
}

/* Телефон (до 640 px), часть 2: страницы врачей и «Рассрочка». Scavio, 18.10.2026 */
@media screen and (max-width: 640px) {
  /* Врач: должность и текст о враче (T545) */
  .t545 .t545__descr { font-size: 14px !important; }
  .t545 .t545__text, .t545 .t545__text * { font-size: 16px !important; line-height: 1.5 !important; }
  /* Врач: образование и курсы (T550) */
  .t550 .t550__descr, .t550 .t550__descr * { font-size: 14px !important; line-height: 1.45 !important; }
  /* Рассрочка: условия (T547) */
  .t547 .t547__descr, .t547 .t547__descr * { font-size: 16px !important; line-height: 1.5 !important; }
}

/* Главная: заголовок «Стоматология Dental SPA в Челябинске» ниже от шапки, «Мы поможем Вам...» мельче заголовка и без лишнего промежутка (вариант В2). Scavio, 19.10.2026 */
#rec4899131201 { padding-top: 24px !important; }
@media screen and (max-width: 639px) { #rec4899131201 { padding-top: 16px !important; } }
@media screen and (min-width: 1200px) {
  #rec254212353 { padding-top: 0 !important; margin-top: -24px !important; }
  #rec254212353 .tn-elem[data-elem-id="1470209944682"] { top: 70px !important; }
  #rec254212353 .tn-elem[data-elem-id="1470209944682"] .tn-atom { font-size: 36px !important; }
}
@media screen and (min-width: 640px) and (max-width: 1199px) { #rec254212353 { padding-top: 20px !important; } }
@media screen and (min-width: 960px) and (max-width: 1199px) { #rec254212353 .tn-elem[data-elem-id="1470209944682"] .tn-atom { font-size: 32px !important; } }
@media screen and (min-width: 640px) and (max-width: 959px) { #rec254212353 .tn-elem[data-elem-id="1470209944682"] .tn-atom { font-size: 30px !important; } }
@media screen and (max-width: 639px) { #rec254212353 { padding-top: 0 !important; } }
@media screen and (min-width: 480px) and (max-width: 639px) { #rec254212353 .tn-elem[data-elem-id="1470209944682"] .tn-atom { font-size: 26px !important; } }

/* Заголовки страниц и шапка на телефоне. Scavio, 19.10.2026 */
/* «Услуги»: как на главной (В2) */
#rec4899131501 { padding-top: 24px !important; }
@media screen and (max-width: 639px) { #rec4899131501 { padding-top: 16px !important; } }
@media screen and (min-width: 1200px) {
  #rec253097859 { padding-top: 0 !important; margin-top: -24px !important; }
  #rec253097859 .tn-elem[data-elem-id="1470209944682"] { top: 70px !important; }
  #rec253097859 .tn-elem[data-elem-id="1470209944682"] .tn-atom { font-size: 36px !important; }
}
@media screen and (min-width: 640px) and (max-width: 1199px) { #rec253097859 { padding-top: 20px !important; } }
@media screen and (min-width: 960px) and (max-width: 1199px) { #rec253097859 .tn-elem[data-elem-id="1470209944682"] .tn-atom { font-size: 32px !important; } }
@media screen and (min-width: 640px) and (max-width: 959px) { #rec253097859 .tn-elem[data-elem-id="1470209944682"] .tn-atom { font-size: 30px !important; } }
@media screen and (max-width: 639px) { #rec253097859 { padding-top: 0 !important; } }
@media screen and (min-width: 480px) and (max-width: 639px) { #rec253097859 .tn-elem[data-elem-id="1470209944682"] .tn-atom { font-size: 26px !important; } }
/* «О клинике» и «Рассрочка»: заголовок ниже от шапки */
#rec4899131601, #rec4899131801 { padding-top: 24px !important; }
@media screen and (max-width: 639px) { #rec4899131601, #rec4899131801 { padding-top: 16px !important; } }
/* Страница главного врача: имя (H1) крупнее «Образования»; блок с фото ниже закреплённой шапки (блок меню 4944763001) */
#rec286254588 .t545__title { font-size: 40px !important; line-height: 1.2 !important; }
#rec286261230 .t-section__title { font-size: 32px !important; }
@media screen and (min-width: 961px) { #rec286254588 { padding-top: 110px !important; } }
@media screen and (max-width: 639px) { #rec286254588 .t545__title { font-size: 30px !important; } #rec286261230 .t-section__title { font-size: 26px !important; } }
/* Шапка страницы врача (новый блок меню 1272, rec4944763001): как на остальных страницах, 80 px, логотип 80 px, меню через 24 px, значки и кнопка в одну строку */
@media screen and (min-width: 961px) {
  #rec4944763001 .t-menu-base__maincontainer { flex-wrap: nowrap !important; }
  #rec4944763001 .t-menu-base__textlogo { display: none !important; }
  #rec4944763001 .t-menu-base__logowrapper { flex: 0 0 auto !important; width: auto !important; }
  #rec4944763001 .t-menu-base__imglogo { width: auto !important; max-width: none !important; min-width: 0 !important; height: 80px !important; max-height: 80px !important; }
  #rec4944763001 .t-menu-base__leftwrapper { flex: 1 1 auto !important; min-width: 0 !important; justify-content: center !important; }
  #rec4944763001 .t-menu-base__list { gap: 4px 24px !important; flex-wrap: wrap !important; justify-content: center !important; }
  #rec4944763001 .t-menu-base__rightwrapper, #rec4944763001 .t-menu-base__additionalwrapper { flex: 0 0 auto !important; flex-wrap: nowrap !important; align-items: center !important; }
  #rec4944763001 .t-menu-base__buttons { margin-left: 30px !important; }
}
/* Шапка на телефоне: фиолетовая на всех страницах, как на компьютере; логотип Dental SPA слева, номер и меню справа, высота 64 px. 20.10.2026: логотип 400 px WebP 5 КБ вместо PNG 51 КБ */
@media screen and (max-width: 980px) {
  .tmenu-mobile { background-color: #7f4a99 !important; }
  .tmenu-mobile__text, .tmenu-mobile__text a { color: #ffffff !important; }
  .tmenu-mobile .t-menuburger span { background-color: #ffffff !important; }
  .tmenu-mobile__container { display: flex !important; align-items: center !important; gap: 12px; padding-top: 8px !important; padding-bottom: 8px !important; min-height: 64px !important; box-sizing: border-box; }
  .tmenu-mobile__container::before { content: ""; flex: 0 0 auto; width: 115px; height: 48px; background: url("https://static.tildacdn.com/tild6637-3439-4135-b861-376139393033/noroot.png") no-repeat left center / contain; }
  .tmenu-mobile__text { margin-left: auto !important; margin-right: 8px !important; }
}
/* «Цены»: заголовок 30 px на телефоне; ниже от шапки от 960 px (на планшете он и так ниже) */
@media screen and (max-width: 479px) { #rec240190032 .tn-elem[data-elem-id="1602944532770"] .tn-atom { font-size: 30px !important; } }
@media screen and (min-width: 960px) { #rec240190032 { padding-top: 24px !important; } }

/* «О нас»: обложка с фото клиники (rec4948843401): фото сдвинуто так, чтобы логотип на стене не попадал под заголовок; на экранах шире 640 px заголовок слева. Белая полоса над обложкой на телефоне убрана на всех страницах с обложкой: «О нас», «Акции», «Контакты», «Горящие окна», «Пациентам», «Вакансии». Scavio, 19.10.2026 */
#rec4948843401 .t-cover__carrier { background-position: center 52% !important; }
@media screen and (max-width: 640px) { #rec4948843401 .t-cover__carrier { background-position: 8% center !important; } }
@media screen and (min-width: 641px) { #rec4948843401 .t-cover h1 { text-align: left !important; max-width: min(520px, 62%) !important; margin-left: max(20px, calc(50% - 560px)) !important; margin-right: auto !important; } }
@media screen and (max-width: 980px) { #rec4948843401, #rec247838295, #rec240537770, #rec624986009, #rec240850085, #rec899128963 { padding-top: 0 !important; } }

/* Телефон: шапка закреплена при прокрутке; в раскрывающемся меню без логотипа и кнопки с телефоном, меню ниже. Scavio, 19.10.2026 */
@media screen and (max-width: 980px) {
  .tmenu-mobile { position: fixed !important; top: 0; left: 0; right: 0; z-index: 9999; }
  #allrecords { padding-top: 64px; }
  .t228 { position: fixed !important; top: 64px !important; left: 0; right: 0; z-index: 9998; max-height: calc(100vh - 64px); overflow-y: auto; }
  .t228 .t228__leftside, .t228 .t228__right_buttons { display: none !important; }
  .t228 .t228__centercontainer { padding-top: 12px !important; padding-bottom: 4px !important; }
  .t228 .t228__list_item { padding-top: 7px !important; padding-bottom: 7px !important; }
  .t228 .t228__rightcontainer { padding-top: 8px !important; padding-bottom: 18px !important; }
  /* страница главного врача: блок меню 1272 */
  #rec4944763001 .t-menu-base { position: fixed !important; top: 64px !important; left: 0; right: 0; z-index: 9998; max-height: calc(100vh - 64px); overflow-y: auto; }
  #rec4944763001 .t-menu-base__logowrapper, #rec4944763001 .t-menu-base__buttons { display: none !important; }
  #rec4944763001 .t-menu-base__maincontainer { padding-top: 12px !important; padding-bottom: 18px !important; }
  #rec4944763001 .t-menu-base__list { gap: 14px !important; }
  #rec4944763001 .t-menu-base, #rec4944763001 .t-menu-base .t-menu-base__maincontainer { background-color: #7f4a99 !important; }
  #rec4944763001 .t-menu-base a.t-menu__link-item { color: #ffffff !important; }
  #rec4944763001 .t-menu-base__rightwrapper { padding-bottom: 0 !important; margin-top: 0 !important; padding-top: 0 !important; }
  #rec4944763001 .t-menu-base__leftwrapper { margin-bottom: 18px !important; padding-bottom: 0 !important; }
}

/* Scavio 20.10.2026: телефон. Логотип в шапке ссылкой на главную (ссылку вставляет скрипт блока на /podval), кнопка звонка на главной скрыта (номер есть в шапке), кнопка чата Jivo меньше и в углу. Откат: удалить этот блок. */
@media screen and (max-width: 980px) {
  .tmenu-mobile__container .ds-mlogo { flex: 0 0 auto; display: block; width: 115px; height: 48px; background: url("https://static.tildacdn.com/tild6637-3439-4135-b861-376139393033/noroot.png") no-repeat left center / contain; }
  .tmenu-mobile__container:has(.ds-mlogo)::before { display: none; }
  #rec247885404 { display: none !important; }
  jdiv.__jivoMobileButton { transform: scale(.75) !important; transform-origin: right bottom !important; }
}

/* Scavio 21.10.2026: компьютер (от 980 px). Страница показывается сразу, без плавного появления Тильды при первом визите (прозрачна до загрузки HTML + 0,6 с; из-за этого тест скорости иногда не видел отрисовку). Откат: удалить этот блок. */
@media screen and (min-width: 980px) { .t-records { opacity: 1 !important; } }

/* Scavio 21.10.2026: «Лицензии», галерея сканов rec240678265 на компьютере: высота занята заранее, чтобы блок под ней не прыгал при загрузке (CLS 0,249 -> 0). Высоты = итоговая высота слайдера при сканах 1240x1754; при замене сканов на другую пропорцию пересчитать. Откат: удалить этот блок. */
@media screen and (min-width: 1200px) { #rec240678265 .t-slds { min-height: 1110px; } }
@media screen and (min-width: 980px) and (max-width: 1199px) { #rec240678265 .t-slds { min-height: 919px; } }

/* Scavio 21.10.2026: слайдер отзывов T605 (13 страниц), только до запуска его скрипта (у .t-slds стоит visibility: hidden): неактивные отзывы вне потока, стрелки скрыты, под точки 40 px, как после загрузки стилей. Иначе до запуска все отзывы стоят столбиком (на «Отзывах» 6 762 px) и блок ниже прыгает (CLS 0,437 -> 0,002). Откат: удалить этот блок. */
.t605 .t-slds[style*="visibility: hidden"] .t-slds__container { position: relative; }
.t605 .t-slds[style*="visibility: hidden"] .t-slds__item:not(.t-slds__item_active) { position: absolute; top: 0; left: 0; width: 100%; visibility: hidden; }
.t605 .t-slds[style*="visibility: hidden"] .t-slds__arrow_container { display: none; }
.t605 .t-slds[style*="visibility: hidden"] .t-slds__bullet_wrapper { height: 40px; margin: 0; box-sizing: border-box; overflow: hidden; }

/* Scavio 21.10.2026: «Прайс», телефон (до 640 px): заголовки 8 карточек разделов (rec240431654, T851) нажимаются в зоне 44 px вместо 30 px; зона расширена вверх, на пустое поле карточки (снизу вплотную кнопка «Подробнее»). Вид прежний. Откат: удалить этот блок. */
@media screen and (max-width: 640px) {
  #rec240431654 .t-card__link { position: relative; }
  #rec240431654 .t-card__link::after { content: ""; position: absolute; top: -14px; right: 0; bottom: 0; left: 0; }
}

/* Scavio 21.10.2026: мессенджеры. 1) Меню на телефоне: строка «Записаться:» над значками (значки из шапки: Telegram «Поддержка», позже MAX), по центру; шапки T257 и шапка страницы главного врача rec4944763001. 2) «Контакты», блок адреса rec240537771: значки сразу под строкой «Записаться или задать вопрос» (10 px вместо 30 px), рядом со значком подпись из поля «подпись» (title). 3) «Контакты», блок «Мы в соцсетях» rec5031098201 (T345): заголовок и значки по центру, на компьютере по центру кнопок 2ГИС, Google, Яндекс (Zero-блок rec244168409: центр на 260 px левее центра страницы от 1200 px, на 145 px при 980-1199 px). Откат: удалить этот блок. */
@media screen and (max-width: 980px) {
  .t228 .t-sociallinks::before { content: "Записаться:"; display: table-caption; caption-side: top; text-align: center; color: #ffffff; font: 500 16px 'DentalSpaRoboto', Arial, sans-serif; padding: 0 0 10px; }
  .t228 .t-sociallinks__wrapper { margin-left: auto !important; margin-right: auto !important; }
  #rec4944763001 .t-sociallinks::before { content: "Записаться:"; display: block; text-align: center; color: #ffffff; font: 500 16px 'DentalSpaRoboto', Arial, sans-serif; padding: 0 0 10px; }
  #rec4944763001 .t-sociallinks__wrapper { justify-content: center; }
}
#rec240537771 .t-sociallinks { margin-top: 10px !important; }
#rec240537771 .t-sociallinks__item a { display: inline-flex !important; align-items: center; gap: 8px; width: auto !important; text-decoration: none; }
#rec240537771 .t-sociallinks__item a::after { content: attr(title); color: #7f4a99; font: 500 16px 'DentalSpaRoboto', Arial, sans-serif; white-space: nowrap; }
#rec5031098201 .t345-content { display: block !important; height: auto !important; text-align: center; padding: 8px 0 48px; }
#rec5031098201 .t345-text__wrapper { display: block; }
#rec5031098201 .t345-text { font-size: 20px; line-height: 1.3; color: #7f4a99; }
#rec5031098201 .t345-socials { position: static; transform: none; margin-top: 14px; }
#rec5031098201 .t345 .t-sociallinks, #rec5031098201 .t345 .t-sociallinks__wrapper { margin-left: 0 !important; margin-right: 0 !important; }
#rec5031098201 .t345 .t-sociallinks__item { margin-left: 2px; margin-right: 2px; }
@media screen and (min-width: 1200px) { #rec5031098201 .t345-content { position: relative; left: -260px; } }
@media screen and (min-width: 980px) and (max-width: 1199px) { #rec5031098201 .t345-content { position: relative; left: -145px; } }
