/* ============================================================
   Облик как у тренажёров репетитор-кузьмин.рф (владелец, 23.09.2026:
   «На dist-tutor.info шрифты тоже сделай антиквой, фон и контейнеры тоже как на сайте тренажеров»).

   1. Заголовки и основной текст — антиква Source Serif 4 (OFL, свои файлы в ./fonts, те же, что на
      репетитор-кузьмин.рф). Интерфейс — шапка, рельса, подвал, меню, кнопки, поля, метки, вкладки —
      остаётся гротеском: у этих элементов свой font-family, а текстовые теги внутри них возвращены ниже.
   2. Холст — слоновая кость #faf9f5 (так с 21.09.2026, --dt-bg в home.css). Статичные листы — белые с
      тонкой тёплой рамкой #ecebe4 вместо парящей тени (как карточки claude.com и тренажёров);
      при наведении на кликабельный лист — рамка темнее и мягкая тень. Всплывающие окна, меню,
      подсказки, календарь, колокольчик остаются с тенью — они над страницей.

   Стили страниц подключаются в теле документа, то есть после этого файла, поэтому правила
   ниже начинаются с `html body` — лишняя специфичность перебивает их без !important
   (!important — только у font-family заголовков и там, где он стоит в исходном правиле).
   Файл подключается в index.tpl последним в <head>. Откат — work/skin-20260923/rollback.sh.
   ============================================================ */

@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/sourceserif4-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/sourceserif4-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/sourceserif4-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/sourceserif4-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(fonts/sourceserif4-cyrillic-ext-italic.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(fonts/sourceserif4-cyrillic-italic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(fonts/sourceserif4-latin-ext-italic.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(fonts/sourceserif4-latin-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root { --dt-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif; }

/* ---------- 1. Антиква ---------- */
html body h1, html body h2, html body h3,
html body .dt-legal__body :is(h4, h5), html body .dt-profile :is(h4, h5) {
    font-family: var(--dt-serif) !important;
    letter-spacing: -.005em !important;
    font-optical-sizing: auto;
}
html body .dt-cat-hero__h1 { font-weight: 700; }   /* главный заголовок первого экрана — жирнее, как на тренажёрах */
/* всё внутри заголовка — его шрифтом: у хвоста ФИО в карточке каталога (span.dt-fio-tail) свой font-family */
html body :is(h1, h2, h3) :is(span, a, b, strong, em, small) { font-family: inherit !important; }

/* основной текст — антиква с приоритетом (владелец, 23.09.2026: «Основные тексты там тоже антиквой сделай»):
   правила каталога и кабинета задают шрифт абзацам сильнее общего правила. В карточке каталога текст лежит и в
   span — образование, специализация, акции; в анкете — сведения об образовании */
html body :is(p, li, td, dd, blockquote, figcaption),
html body .catalog-container .ctlg_object :is(.val, .universityval, .dt-promo-text),
html body .dt-profile .miniblock .info {
    font-family: var(--dt-serif) !important;
    font-optical-sizing: auto;
}
/* ссылки внутри текста — шрифтом текста (общее a{font-family: tahoma} из старого styles.css давало разнобой) */
html body :is(p, li, td, dd, blockquote, figcaption) a:not(.btn):not(.dt-pill) { font-family: inherit !important; }
/* «Все отзывы (N)» в карточке каталога — действие, как соседнее «Смотреть подробнее…»: гротеском */
html body .catalog-container a.dt-more-link { font-family: var(--dt-font) !important; }

/* интерфейс — гротеском, как его блок: шапка, рельсы, подвал, меню, окна, вкладки, пагинация, календарь, подсказки поиска;
   мелкие надписи-метки («Специализация», «Услуги и цены»), чипы, бейджи, сегменты */
html body :is(.block-header, .block-footer, .dt-side, aside.sidebar, .dt-legal__rail, .dt-pf-rail, .dropdown-menu, .modal, .bootstrap-dialog, .ui-dialog,
              .dtc__win, .dt-bell, .dt-dp, .ui-datepicker, .jq-selectbox, .ac_results, .dt-auth, .dt-cat__card, .pagination, .nav)
              :is(p, li, td, dd, blockquote, figcaption, a),
html body :is(p, span, div, li)[class*="title"], html body :is(p, span, div, li)[class*="label"], html body :is(p, span, div, li)[class*="kicker"],
html body [class*="chip"], html body [class*="__tag"], html body [class*="badge"], html body [class*="seg"] {
    font-family: inherit !important;
}

/* ---------- 2. Листы: белые с тонкой тёплой рамкой ---------- */
html body .catalog-container .ctlg_object.teacher_profile_mini,
html body .catalog-container .block_cataloger,
html body .dt-aside__card,
html body .dt-profile .dt-hero,
html body .dt-profile .sideBlocks .block,
html body .dt-profile .miniblocks_set,
html body .dt-profile .dt-profile-albums .album,
html body .dt-card__sec,
html body .dt-quest,
html body .dt-legal__rail,
html body .dt-legal__doc,
html body .dt-mod .feed_row,
html body .rq-toolbar, html body .rq-card, html body .rq-skel, html body .rq-detail,
html body .mo-card, html body .mo-empty,
html body .oa-panel, html body .oa-service,
html body .oc-card,
html body .ot-panel,
html body .mc__stat, html body .mc__filters, html body .mc__card, html body .mc__empty,
html body .rv__hero, html body .rv__filters, html body .rv__card, html body .rv__form, html body .rv__empty,
html body .dt-rev__card,
html body .dt-uc__card, html body .dt-uc__empty,
html body .pad-tile, html body .pad-card,
html body .bal-card, html body .bal-done,
html body .dt-perm .dt-perm__role, html body .dt-perm__group {
    background: #fff;
    box-shadow: inset 0 0 0 1px #ecebe4;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
/* панель фильтров каталога: в home.css фон стоит с !important */
html body .fsearch .ctlgr_filter {
    background: #fff !important;
    box-shadow: inset 0 0 0 1px #ecebe4;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
/* кликабельные листы при наведении — рамка темнее и мягкая тень, как карточки хабов тренажёров */
html body .catalog-container .ctlg_object.teacher_profile_mini:hover,
html body .rq-card:hover, html body .mo-card:hover, html body .mc__card:hover,
html body .rv__card:hover, html body .dt-uc__card:hover, html body .oc-card:hover {
    box-shadow: inset 0 0 0 1px #e2e0d7, 0 12px 28px -18px rgba(31, 30, 29, .18);
}
