/* Услуга 2026: блоки страницы услуги поверх стилей главной (home.css). Токены те же: --panel, --gold, --mist, --snow. */

/* ---------- Первый экран: графитовая панель под прозрачной шапкой ---------- */
.svc-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(120deg, var(--panel) 40%, var(--panel-2)); color: #fff;
  padding: calc(var(--head-h) + clamp(28px, 4vw, 48px)) 0 clamp(48px, 6vw, 80px);
  border-radius: 0 0 32px 32px;
}
.svc-hero > .wrap { max-width: var(--wrap); padding: 0 var(--gutter); }
.svc-hero .plexus { position: absolute; right: -6%; bottom: -18%; width: min(760px, 70vw); opacity: .5; z-index: -1; pointer-events: none; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 clamp(24px, 3.4vw, 44px); padding: 0; list-style: none; font-size: 14px; color: rgba(255,255,255,.62); }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 10px; color: rgba(255,255,255,.32); }
.crumbs a { color: rgba(255,255,255,.82); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.svc-hero h1 { margin: 0 0 20px; color: #fff; font-size: clamp(2.3rem, 4.4vw, 4.1rem); max-width: 14em; text-wrap: balance; }
.svc-hero h1::after { content: ""; display: block; width: 84px; height: 2px; margin-top: 22px; background: var(--gold); }
.svc-hero .lead { color: rgba(255,255,255,.8); max-width: 34em; margin-bottom: 30px; }
.svc-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-hero .btn-line svg { flex: none; }

/* Карточка «билет»: цена крупно, под ней коротко о лечении */
.svc-ticket {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 26px;
  padding: 24px 26px 22px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.svc-ticket-pic { margin: -10px -12px 20px; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: #2B3138; }
.svc-ticket-pic img { width: 100%; height: 100%; object-fit: cover; }
.svc-price { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.svc-price small { display: block; font-size: 14px; color: rgba(255,255,255,.62); margin-bottom: 4px; }
.svc-price b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1.05; color: var(--panel-gold); letter-spacing: -0.015em; }
.svc-price span { display: block; margin-top: 6px; font-size: 14.5px; color: rgba(255,255,255,.78); }
.svc-facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.svc-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.4; }
.svc-facts svg { flex: none; margin-top: 1px; color: var(--panel-gold); }
.svc-ticket-link { display: inline-block; margin-top: 18px; font-size: 15px; font-weight: 600; color: #fff; text-underline-offset: 4px; }

/* ---------- Когда пора к врачу ---------- */
.svc-when-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px clamp(28px, 5vw, 72px); align-items: start; }
.svc-when-grid .sec-head { margin: 0; }
.svc-signs { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.svc-signs li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--mist); font-size: 16px; line-height: 1.4; }
.svc-signs svg { flex: none; margin-top: 1px; color: var(--gold); }
.svc-urgent { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 22px 28px; border-radius: 22px; }
.svc-urgent p { margin: 0; color: rgba(255,255,255,.82); max-width: 52em; }
.svc-urgent b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 2vw, 1.7rem); color: #fff; margin-bottom: 4px; }
.svc-urgent .btn { flex: none; }

/* ---------- Этапы: одна линия-маршрут, шаги на ней ---------- */
.svc-steps { position: relative; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 20px; }
.svc-steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: linear-gradient(90deg, var(--gold), rgba(176,141,74,.25)); }
.svc-steps li { counter-increment: st; position: relative; padding-top: 66px; }
.svc-steps li::before {
  content: counter(st); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--gold);
  font-family: var(--serif); font-size: 20px; color: var(--graphite);
}
.svc-steps b { display: block; font-size: 17.5px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.svc-steps p { margin: 0; font-size: 15.5px; line-height: 1.5; color: #4A524D; }
@media (min-width: 761px) { .svc-steps[style*="--n:5"], .svc-steps[style*="--n:6"] { gap: 16px; } }

/* ---------- Цены ---------- */
.svc-prices { display: grid; gap: 16px; }
.svc-prices.is-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.svc-prices .prices { background: var(--snow); }
.svc-prices .price-list li { border-bottom-color: var(--stone); }
.svc-prices .price-list li:last-child { border-bottom: 0; }
.svc-price-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 24px; }
.svc-price-foot .note { margin: 0; max-width: 42em; font-size: 14px; }
.svc-price-foot .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.svc-price-foot .link, .lead-col .link { font-weight: 600; text-underline-offset: 4px; }

/* ---------- Работы: заголовок блока, а не подзаголовок ---------- */
#raboty .works-head { margin-top: 0; }

/* ---------- Кто лечит ---------- */
.svc-chief { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(20px, 3vw, 32px); border-radius: 28px; }
.svc-chief-photo { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: #2B3138; }
.svc-chief-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.svc-chief h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.1; color: #fff; }
.svc-chief .role { margin: 0 0 22px; color: rgba(255,255,255,.72); }
.svc-chief .facts { border-top-color: rgba(255,255,255,.16); margin-bottom: 26px; }
.svc-chief .facts li + li { border-left-color: rgba(255,255,255,.16); }
.svc-chief .facts b { color: var(--panel-gold); }
.svc-chief .facts small { color: rgba(255,255,255,.7); }
.svc-chief .row { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-team { margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.svc-team .st { font-style: normal; color: var(--gold); }
.svc .sec-head h2, .svc-text h2 { text-wrap: balance; }

/* ---------- Вопросы: раскрываются по нажатию ---------- */
.svc-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px clamp(28px, 5vw, 72px); align-items: start; }
.svc-faq-grid .sec-head { margin: 0; }
.svc-faq-grid .sec-lead a { color: var(--graphite); font-weight: 600; white-space: nowrap; }
.svc-faq details { border-bottom: 1px solid var(--stone); }
.svc-faq details:first-child { border-top: 1px solid var(--stone); }
.svc-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mist) no-repeat center / 14px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C211F' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform .25s var(--ease);
}
.svc-faq details[open] summary::after { transform: rotate(45deg); }
.svc-faq .a { padding: 0 48px 20px 0; color: #4A524D; }
.svc-faq .a p { margin: 0 0 10px; }

/* ---------- Подробнее о лечении ---------- */
.svc-text-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 80px); align-items: start; }
.svc-text { max-width: 44em; font-size: 17px; line-height: 1.65; }
.svc-text h2 { margin-bottom: 24px; }
.svc-text h3 { margin: 32px 0 10px; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }
.svc-text p, .svc-text ul, .svc-text ol { margin: 0 0 16px; }
.svc-text ul, .svc-text ol { padding-left: 1.2em; }
.svc-text li { margin-bottom: 6px; }
.svc-text li::marker { color: var(--gold); }
.svc-related { position: sticky; top: calc(var(--head-h) + 24px); padding: 22px; border-radius: 22px; background: #fff; }
.svc-related h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.svc-related ul { margin: 0; padding: 0; list-style: none; }
.svc-related a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--mist); text-decoration: none; font-weight: 500; }
.svc-related li:last-child a { border-bottom: 0; }
.svc-related a span { color: var(--slate); transition: transform .25s var(--ease); }
.svc-related a:hover span { transform: translateX(3px); color: var(--graphite); }
.svc-text-grid > :only-child { grid-column: 1 / -1; }

/* ---------- Запись ---------- */
.svc .contact-form { margin-top: 0; }
.svc .contact-form .lead-col h2 { margin: 0 0 12px; font-size: clamp(1.9rem, 3vw, 2.6rem); }
.svc-contacts { margin: 22px 0 14px; display: grid; gap: 10px; }
.svc-contacts dt { font-size: 13.5px; color: var(--slate); }
.svc-contacts dd { margin: 0; font-weight: 500; }

/* ---------- Телефон ---------- */
@media (max-width: 760px) {
  .svc-hero { border-radius: 0 0 22px 22px; padding-top: calc(var(--head-h) + 22px); }
  .crumbs ol { margin-bottom: 20px; font-size: 13px; }
  .svc-hero-grid, .svc-when-grid, .svc-faq-grid, .svc-text-grid, .svc-chief { grid-template-columns: minmax(0, 1fr); }
  .svc-hero h1 { font-size: 2.15rem; }
  .svc-hero h1::after { width: 62px; margin-top: 16px; }
  .svc-hero .ctas .btn { flex: 1 1 100%; }
  .svc-ticket { padding: 20px; border-radius: 20px; }
  .svc-signs { grid-template-columns: minmax(0, 1fr); }
  .svc-urgent { flex-direction: column; align-items: stretch; padding: 20px; }
  .svc-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .svc-steps::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold), rgba(176,141,74,.25)); }
  .svc-steps li { padding: 8px 0 26px 66px; min-height: 46px; }
  .svc-steps li:last-child { padding-bottom: 0; }
  .svc-prices.is-multi { grid-template-columns: minmax(0, 1fr); }
  .svc-price-foot .row .btn { flex: 1 1 100%; }
  .svc-chief-photo { aspect-ratio: 1; max-width: 260px; }
  .svc-chief .row .btn { flex: 1 1 100%; }
  .svc-faq summary { font-size: 16.5px; padding: 17px 0; }
  .svc-faq .a { padding-right: 0; }
  .svc-related { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-faq summary::after, .svc-related a span { transition: none; }
}

/* 21.11: «Кто лечит» — врачи процедуры такими же карточками, как «Команда клиники» на главной (.team-big .doc2).
   Колонок столько, сколько врачей; при 2–3 врачах фото ниже, чтобы карточки не вырастали. Главный врач под ними строкой. */
.svc-team-cards.n-1 { grid-template-columns: minmax(0, 400px); }
.svc-team-cards.n-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-team-cards.n-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-team-cards.n-2 .doc2-photo { aspect-ratio: 3 / 2; }
.svc-team-cards.n-2 .doc2-photo img { object-position: 50% 6%; }
.svc-team-cards.n-3 .doc2-photo { aspect-ratio: 1 / 1.05; }

/* 22.11 (видео Александра): фото главного врача крупнее, тем же «кругом навыпуск», что в полосе первого экрана главной. */
.svc-chief-line { display: flex; align-items: center; gap: 14px 28px; margin-top: 60px; padding: 18px 30px 18px 28px; border-radius: 22px; background: var(--white); box-shadow: 0 1px 0 rgba(28,33,31,.04); }
.svc-chief-line-face { flex: none; align-self: flex-start; margin-top: -54px; }
.svc-chief-line-face img { display: block; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 4px solid var(--gold); background: #fff; box-shadow: 0 12px 28px rgba(15,20,24,.22); }
.svc-chief-line p { flex: 1; min-width: 0; margin: 0; font-size: 16px; line-height: 1.55; color: var(--slate); }
.svc-chief-line b { display: block; margin-bottom: 4px; font-family: var(--serif); font-weight: 500; font-size: clamp(1.2rem, 1.5vw, 1.4rem); line-height: 1.25; color: var(--graphite); }
.svc-chief-line a { flex: none; font-size: 15px; font-weight: 600; color: var(--graphite); text-underline-offset: 4px; }

@media (max-width: 900px) {
  .svc-team-cards.n-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .svc-team-cards .doc2-photo, .svc-team-cards.n-2 .doc2-photo, .svc-team-cards.n-3 .doc2-photo { aspect-ratio: 4 / 5; }
  .svc-team-cards.n-2 .doc2-photo img { object-position: 50% 14%; }
  .svc-team-cards.n-1 .doc2 { flex-basis: 100%; }
  .svc-chief-line { flex-wrap: wrap; gap: 12px 16px; margin-top: 48px; padding: 14px 16px 16px; }
  .svc-chief-line-face { margin-top: -42px; }
  .svc-chief-line-face img { width: 96px; height: 96px; border-width: 3px; }
  .svc-chief-line p { flex-basis: calc(100% - 112px); font-size: 15px; }
  .svc-chief-line b { font-size: 1.12rem; }
}
