/* Страница услуги (page-service.php) — в стиле главной Young Way (UI-kit 23.11.2026: монохром, Inter 400, углы 3px, кнопка с каплей) */
.ys {
    --ys-ink: #333132;
    --ys-head: #434345;
    --ys-text: #67686b;
    --ys-muted: #67686b;
    --ys-line: #e2e2e2;
    --ys-soft: #f8f8f8;
    --ys-media: #f5f5f5;
    --ys-accent: #434345;
    --ys-radius: 3px;
    /* капля бренда — та же, что в кнопках главной (uploads/youngway/7016d604eb8a30ff.svg) */
    --ys-drop: url("/wp-content/themes/youngway/assets/icons/drop-white.svg");
    --ys-drop-dark: url("/wp-content/themes/youngway/assets/icons/drop-dark.svg");
    color: var(--ys-text);
    font-family: Inter, Arial, sans-serif;
    letter-spacing: -0.01em;
}
.ys *, .ys *::before, .ys *::after { box-sizing: border-box; }
.ys a { color: var(--ys-head); }
.ys a:hover { color: var(--ys-ink); }
.ys-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.ys-band { background: var(--ys-soft); }
.ys-section { padding-top: 64px; padding-bottom: 64px; }
.ys-section--tight { padding-top: 24px; }
.ys h1, .ys h2, .ys h3 { margin: 0; font-weight: 400; line-height: 1.18; color: var(--ys-head); text-wrap: balance; }
.ys h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.05em; margin-bottom: 20px; }
.ys h3 { font-size: 19px; letter-spacing: -0.04em; margin-bottom: 10px; }
.ys p { margin: 0 0 14px; }
.ys-lead-p { font-size: 16px; line-height: 1.65; color: var(--ys-text); }
.ys-sub { margin: -8px 0 24px; font-size: 15px; color: var(--ys-muted); }
.ys-note { font-size: 14px; font-style: italic; color: var(--ys-muted); margin-top: 16px; }

/* Хлебные крошки */
/* шапка сайта лежит поверх страницы (position: absolute) — отступ как у .document-layout */
.ys-crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 7.5rem; padding-bottom: 4px; font-size: 14px; color: var(--ys-muted); }
.ys-crumbs a { color: var(--ys-muted); }

/* Первый экран */
.ys-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; padding-top: 28px; padding-bottom: 56px; }
.ys-hero h1 { font-size: clamp(32px, 3.8vw, 48px); letter-spacing: -0.06em; margin-bottom: 20px; }
.ys-lead { font-size: 17px; line-height: 1.6; color: var(--ys-text); max-width: 560px; margin-bottom: 22px; }
.ys-facts { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.ys-fact { padding: 12px 18px; border-radius: var(--ys-radius); background: #fff; border: 1px solid var(--ys-line); }
.ys-fact span { display: block; font-size: 13px; font-style: italic; color: var(--ys-muted); }
.ys-fact b { font-size: 20px; font-weight: 400; letter-spacing: -0.04em; color: var(--ys-head); }
.ys-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
/* кнопка как на главной: текст + ячейка с каплей справа */
.ys-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 250px; min-height: 56px; padding: 0 76px 0 24px; border-radius: var(--ys-radius); background: var(--ys-head); color: #fff !important; font-weight: 500; font-size: 14px; letter-spacing: -0.02em; text-decoration: none; transition: background-color .2s ease-in-out; }
.ys-btn::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 57px; border-left: 1px solid rgba(255, 255, 255, 0.14); background: var(--ys-drop) center / 22px 25px no-repeat; }
.ys-btn:hover { background: var(--ys-ink); }
.ys-btn:focus-visible { outline: 2px solid var(--ys-head); outline-offset: 2px; }
.ys-btn--ghost { background: #fff; color: #333333 !important; border: 1px solid var(--ys-line); }
.ys-btn--ghost::after { border-left-color: var(--ys-line); background-image: var(--ys-drop-dark); }
.ys-btn--ghost:hover { background: #dedede; }
.ys-trust { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--ys-text); margin-bottom: 16px; }
.ys-trust a { color: var(--ys-text); }
.ys-reviewed { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--ys-radius); background: #fff; border: 1px solid var(--ys-line); max-width: 560px; font-size: 14px; line-height: 1.4; color: var(--ys-text); }
.ys-reviewed img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 44px; }
.ys-reviewed small { display: block; color: var(--ys-muted); font-size: 14px; }
.ys-media { border-radius: var(--ys-radius); background: var(--ys-media); min-height: 380px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--ys-text); overflow: hidden; }
.ys-media img { width: 100%; height: 100%; object-fit: cover; }
/* фото в первом экране — целиком, без рамки (23.11) */
.ys-media:has(> img) { padding: 0; background: none; min-height: 0; align-self: start; }
.ys-media > img { display: block; height: auto; object-fit: contain; border-radius: var(--ys-radius); }

/* Таблицы */
.ys-table-box { overflow-x: auto; border: 1px solid var(--ys-line); border-radius: var(--ys-radius); }
.ys-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.ys-table th { background: var(--ys-soft); text-align: left; padding: 14px 20px; font-weight: 500; color: var(--ys-head); }
.ys-table td { padding: 13px 20px; border-top: 1px solid var(--ys-line); color: var(--ys-text); }
.ys-table td:first-child { font-weight: 400; color: var(--ys-head); }
.ys-table .ys-price { text-align: right; font-weight: 500; white-space: nowrap; color: var(--ys-head); }
.ys-compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.ys-compare caption { text-align: left; font-weight: 400; font-size: 19px; letter-spacing: -0.04em; color: var(--ys-head); padding-bottom: 12px; }
.ys-compare th { text-align: left; padding: 10px 12px; font-weight: 500; color: var(--ys-head); border-bottom: 1px solid var(--ys-head); }
.ys-compare td { padding: 12px; border-bottom: 1px solid var(--ys-line); }
.ys-compare td:first-child { font-weight: 500; color: var(--ys-head); }

/* Сетки */
.ys-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; }
.ys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.ys-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.ys-card { background: #fff; border-radius: var(--ys-radius); padding: 28px; }
.ys-card--line { background: transparent; border: 1px solid var(--ys-line); }
.ys-card--soft { background: var(--ys-media); }
.ys-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--ys-text); }
.ys-warning { margin: 18px 0 0; padding: 14px 18px; border-radius: var(--ys-radius); background: #fff; border: 1px solid var(--ys-line); color: var(--ys-ink); font-weight: 500; font-size: 15px; }

/* Этапы */
.ys-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: ys-step; }
.ys-steps li { border: 1px solid var(--ys-line); border-radius: var(--ys-radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; counter-increment: ys-step; }
.ys-steps li::before { content: counter(ys-step); width: 36px; height: 36px; border-radius: 50%; background: var(--ys-head); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 400; }
.ys-steps b { font-size: 17px; font-weight: 400; letter-spacing: -0.03em; color: var(--ys-head); }
.ys-steps span { font-size: 15px; line-height: 1.5; color: var(--ys-text); }

/* Курс и результат */
.ys-stat span { display: block; font-size: 15px; font-style: italic; color: var(--ys-muted); }
.ys-stat b { display: block; font-size: 26px; font-weight: 400; letter-spacing: -0.05em; color: var(--ys-head); margin: 6px 0 8px; }
.ys-stat small { font-size: 15px; color: var(--ys-text); }

/* Препараты */
.ys-drug { text-decoration: none; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.ys-drug b { font-size: 18px; font-weight: 400; letter-spacing: -0.04em; color: var(--ys-head); }
.ys-drug span { font-size: 14px; color: var(--ys-muted); }
.ys-drug em { margin-top: auto; font-style: normal; font-size: 15px; font-weight: 500; color: var(--ys-ink); }
a.ys-drug:hover b { text-decoration: underline; }

/* До и после */
.ys-ba figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ys-ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ys-ba-pair > * { aspect-ratio: 3 / 4; border-radius: var(--ys-radius); background: var(--ys-media); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ys-text); overflow: hidden; }
.ys-ba-pair img { width: 100%; height: 100%; object-fit: cover; }
.ys-ba figcaption { font-size: 14px; color: var(--ys-text); }

/* Врачи */
.ys-doctor { display: flex; flex-wrap: wrap; gap: 20px; }
.ys-doctor-photo { width: 140px; height: 170px; border-radius: var(--ys-radius); background: var(--ys-media); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ys-text); overflow: hidden; }
.ys-doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.ys-doctor-body { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ys-text); }
.ys-doctor-body h3 { font-size: 21px; margin: 0; }
.ys-doctor-body small { font-size: 14px; color: var(--ys-muted); line-height: 1.5; }
.ys-doctor-links { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: auto; font-weight: 500; }

/* Отзывы */
.ys-reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.ys-reviews-head h2 { margin: 0; }
.ys-reviews-head nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: 15px; font-weight: 500; }
.ys blockquote { margin: 0; border: 1px solid var(--ys-line); border-radius: 4px; padding: 24px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.55; color: var(--ys-text); }
.ys blockquote footer { font-size: 14px; color: var(--ys-muted); }

/* Вопросы и ответы — строки с линиями, как список услуг на главной */
.ys-faq { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.ys-faq h2 { margin-bottom: 24px; }
.ys-faq details { background: transparent; border-radius: 0; padding: 0; border-top: 1px solid var(--ys-line); }
.ys-faq details:last-of-type { border-bottom: 1px solid var(--ys-line); }
.ys-faq summary { cursor: pointer; list-style: none; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 400; letter-spacing: -0.03em; color: var(--ys-head); }
.ys-faq summary::-webkit-details-marker { display: none; }
.ys-faq summary::after { content: '+'; font-size: 24px; font-weight: 300; color: var(--ys-head); }
.ys-faq details[open] summary::after { content: '–'; }
.ys-faq details p { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--ys-text); }

/* Смежные услуги */
.ys-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.ys-chips a, .ys-chips span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: var(--ys-radius); border: 1px solid var(--ys-line); background: #fff; text-decoration: none; font-weight: 400; }
.ys-chips a:hover { background: var(--ys-media); }
/* услуга без своей страницы — та же плашка, но не ссылка */
.ys-chips span { color: var(--ys-muted); background: transparent; }

@media (max-width: 860px) {
    .ys-hero { grid-template-columns: 1fr; }
    .ys-media { min-height: 260px; }
    .ys-section { padding-top: 48px; padding-bottom: 48px; }
}
@media (max-width: 479px) {
    .ys-crumbs { padding-top: 6rem; }
    .ys-wrap { padding-left: 20px; padding-right: 20px; }
    .ys-btn { width: 100%; }
}
