/* Правки по техническому аудиту 09.10.2026. Подключается в functions.php. */

/* Хлебные крошки на /price, /teaching, /docs */
.yw-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; margin: 0 0 1.25rem; font-size: 0.8125rem; line-height: 1.1875rem; color: #67686b; }
.yw-crumbs a { color: inherit; text-decoration: none; }
.yw-crumbs a:hover { color: #333132; }

/* /price: общий заголовок страницы над первой категорией прайса */
.yw-page-price .price-content .price-section > h1.price-page-title { margin: 0 0 1.5rem; max-width: none; flex: 0 0 auto; font-weight: 400; font-size: 1.9375rem; line-height: 2.3125rem; letter-spacing: -0.1rem; color: #333132; }
.yw-page-price .price-content .price-section > h1.price-page-title ~ h2 { margin-top: 0; color: #333132; }
@media (max-width: 479px) {
    .yw-page-price .price-content .price-section > h1.price-page-title { font-size: 2.125rem; line-height: 2.5625rem; letter-spacing: -0.125rem; }
}

/* Заголовки всплывающих окон: вид прежних h2, но без тега заголовка */
.content-dialog .yw-dialog-title { display: block; margin: 0 0 11px; font-weight: 600; font-size: 36px; line-height: 1.23; letter-spacing: -2px; color: #434345; }
@media (max-width: 640px) {
    .content-dialog .yw-dialog-title { font-size: 28px; }
}
@media (max-width: 479px) {
    .content-dialog .yw-dialog-title { margin-bottom: 6px; }
}

/* Текст только для поисковиков и экранных дикторов (H1 страницы 404) */
.yw-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* /docs: сведения о медицинской организации (коммерческий аудит, 03.11.2026) */
.yw-org-info { margin-top: 4rem; }
.yw-org-item { margin-top: 1.75rem; }
.yw-org-item h3 { margin: 0 0 0.625rem; color: #333132; }
.yw-org-item p { margin: 0.625rem 0; font-size: 0.8125rem; line-height: 1.1875rem; color: #67686b; }
.yw-org-item a, .footer-disclaimer a { color: inherit; text-decoration: underline; }

/* Подвал: после строки с реквизитами дисклеймер налезал на «оставайтесь молодыми» — поднимаем тексты (23.11.2026) */
@media (min-width: 960px) {
    .footer-legal { padding-top: 1.5rem; padding-bottom: 1rem; }
    .footer-disclaimer { padding-top: 1rem; }
    .footer-disclaimer + .footer-disclaimer { margin-top: 0.5rem; }
}
/* Телефон: подвал был фиксированной высоты, слоган стоял поверх дисклеймера — ставим слоган в поток под текстами (23.11.2026) */
@media (max-width: 479px) {
    .site-footer { height: auto; padding-bottom: 2.5rem; }
    .footer-slogan { position: static; top: auto; left: auto; margin: 2rem auto 0; }
}
/* Телефон, /price и /docs: белая подложка плашки «Выберите нужную услугу» закрывала низ логотипа в шапке (23.11.2026) */
@media (max-width: 479px) {
    .document-layout:not(.teaching-layout) > details.page-navigation::before { top: -1.25rem; }
}
/* Главная, спецпредложения: цвета были заданы только для 1-й и 2-й карточки (text-colors.css) — то же для всех карточек (23.11.2026) */
.yw-page-home .specials > article > div > h3 { color: rgb(67, 67, 69); }
.yw-page-home .specials > article > div > p:nth-of-type(1) { color: rgb(103, 104, 107); }
.yw-page-home .specials > article > div > p:nth-of-type(2) { color: rgb(201, 201, 201); }

/* Страницы услуг: блок «Оплата частями — Яндекс Сплит» под кнопками (23.11.2026) */
.ys-split { display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 0 0 18px; padding: 12px 16px; border: 1px solid #e2e2e2; border-radius: 3px; background: #fff; }
.ys-split-ico { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #434345 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 8V5a1 1 0 0 0-1-1H6a2 2 0 0 0 0 4h12a1 1 0 0 1 1 1v3m0 4v3a1 1 0 0 1-1 1H6a2 2 0 0 1-2-2V6'/%3E%3Cpath d='M20 12v4h-4a2 2 0 0 1 0-4h4'/%3E%3C/svg%3E") center / 18px 18px no-repeat; }
.ys-split b { display: block; font-weight: 400; font-size: 15px; line-height: 1.3; letter-spacing: -0.02em; color: #434345; }
.ys-split small { display: block; font-size: 13px; line-height: 1.4; color: #67686b; }

/* Страницы услуг: «Фото до и после» — пары с главной (23.11.2026) */
.ys-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.ys-results-grid figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ys-results-grid img { display: block; width: 100%; height: auto; border-radius: 3px; background: #f5f5f5; }
.ys-results-grid figcaption { font-size: 14px; line-height: 1.4; color: #67686b; }
.ys-results-grid figcaption span { display: block; font-size: 13px; font-style: italic; }

/* Страницы услуг: предупреждение «Имеются противопоказания…» — по UI-kit: без плашки, тонкая линия сверху, обычный вес (23.11.2026) */
.ys .ys-warning { margin: 32px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid #e2e2e2; border-radius: 0; background: none; font-weight: 400; font-size: 14px; line-height: 1.5; letter-spacing: -0.01em; color: #434345; }
.ys .ys-card .ys-warning { margin-top: 18px; padding-top: 14px; }

/* /price: ссылка из раздела прайса на страницу услуги (27.11.2026) */
.yw-price-more { margin: 0 0 1.25rem; font-size: 0.8125rem; line-height: 1.1875rem; color: #67686b; }
.yw-price-more a { color: #434345; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #c9c9c9; }
.yw-price-more a:hover { color: #333132; text-decoration-color: currentColor; }

/* Главная: названия акций и имена врачей стали ссылками — вид прежний, подчёркивание при наведении (27.11.2026) */
.yw-inline-link { color: inherit; font: inherit; letter-spacing: inherit; text-decoration: none; }
.yw-inline-link:hover, .yw-inline-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
