/* Специалисты (F3): анкета, кабинет, публичная карточка. Токены — core/css/tokens.css (обе темы). */
.spec-steps { margin: 0 0 1rem; min-width: 0; }
.spec-steps .steps { width: 0; min-width: 100%; }          /* ряд шагов не раздувает колонку кабинета */
.spec-steps .steps li a b { font-weight: inherit; }
/* у неактивных шагов — только номер (подпись — при наведении), у текущего — номер и название */
.spec-steps .steps li { flex: 1 1 0; text-align: center; }
.spec-steps .steps li.is-current { flex: 5 1 auto; text-align: left; }
.spec-steps .steps li:not(.is-current) .spec-steps__t { display: none; }
.spec-steps .steps li a { color: inherit; text-decoration: none; display: block; padding: .1rem 0 .3rem; white-space: nowrap; }
.spec-steps .steps li a:hover { color: var(--accent); }
.spec-actions { margin: 1rem 0 0; position: sticky; bottom: var(--bottom-nav-h, 0px); background: var(--surface);
                padding: .7rem 1.1rem; z-index: 2; border-top: 1px solid var(--line);
                border-radius: 0 0 var(--radius) var(--radius); }
@media (max-width: 959px) { .spec-actions { bottom: calc(62px + env(safe-area-inset-bottom)); } }   /* над нижней панелью */
.spec-list { margin: .3rem 0 0; padding-left: 1.1rem; }
.spec-list li { margin: .15rem 0; }
.spec-rows { list-style: none; margin: 0; padding: 0; }
.spec-rows li { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.spec-rows li:last-child { border-bottom: 0; }
.spec-secnav { margin: 0 0 1rem; }

/* галочки-«чипы» (виды, услуги) */
.chip-checks { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-check { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .85rem;
              border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface);
              cursor: pointer; font-size: .9rem; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check:has(input:checked) { background: var(--role-specialist-bg); border-color: var(--role-specialist); color: var(--role-specialist); font-weight: 620; }
.chip-check:has(input:checked)::before { content: "✓"; margin-right: .35rem; }
.chip-check:has(input:focus-visible) { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.chip-check.is-disabled { opacity: .45; cursor: not-allowed; }

/* выпадающий список с галочками (вопрос «можно несколько») */
.dropcheck { position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.dropcheck__sum { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: .45rem 2.2rem .45rem .8rem;
                  position: relative; }
.dropcheck__sum::-webkit-details-marker { display: none; }
.dropcheck__sum::after { content: ""; position: absolute; right: .9rem; top: 50%; width: .5rem; height: .5rem; border-right: 2px solid var(--muted);
                         border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.dropcheck[open] .dropcheck__sum::after { transform: translateY(-30%) rotate(-135deg); }
.dropcheck__sum.is-empty { color: var(--muted); }
.dropcheck__list { display: grid; gap: .1rem; padding: .3rem .6rem .6rem; max-height: 320px; overflow-y: auto; border-top: 1px solid var(--line); }
.dropcheck__list .check { min-height: 40px; align-items: center; }
.field--other { margin-top: -.5rem; }

/* радиус */
.spec-radius { display: grid; grid-template-columns: 7rem 1fr auto; gap: .7rem; align-items: center; }
.spec-radius input[type=range] { width: 100%; accent-color: var(--role-specialist); min-height: 44px; }
.spec-radius output { font: 600 .9rem var(--font-mono); color: var(--role-specialist); min-width: 4.5rem; text-align: right; }
@media (max-width: 480px) { .spec-radius { grid-template-columns: 6rem 1fr; } .spec-radius output { display: none; } }

/* «Где езжу» */
.spec-where { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: .5rem; }
.spec-where [data-where-chips] { margin: .5rem 0; }
.spec-where__modal { width: min(560px, 96vw); }
.spec-pick { list-style: none; margin: .4rem 0 0; padding: 0; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.spec-pick:empty { display: none; }
.spec-pick li { padding: .15rem .6rem; border-bottom: 1px solid var(--line); }
.spec-pick li:last-child { border-bottom: 0; }
.spec-pick li[hidden] { display: none; }
.spec-pick .check { min-height: 40px; align-items: center; }
.spec-pick button { width: 100%; text-align: left; min-height: 40px; background: none; border: 0; color: inherit; cursor: pointer; font: inherit; }
.spec-pick button:disabled { opacity: .5; cursor: not-allowed; }

/* цены */
.spec-price { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.spec-price:last-child { border-bottom: 0; }
.spec-price__name { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .35rem; }
.spec-price__in { display: grid; grid-template-columns: auto 8.5rem auto 1fr; gap: .45rem; align-items: center; }
@media (max-width: 480px) { .spec-price__in { grid-template-columns: auto 1fr auto; } .spec-price__in input[type=text] { grid-column: 1 / -1; } }

/* документы */
.spec-doc { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.spec-doc:last-child { border-bottom: 0; }
.spec-doc__row { padding: .3rem 0; }
.spec-doc__form { margin-top: .5rem; }
.spec-docimg { margin: .4rem 0; }
.spec-docimg img { max-width: 100%; max-height: 260px; border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* публичная карточка */
.spec-public { max-width: 1100px; margin: 0 auto; }
.spec-hero { display: flex; gap: 1.2rem; align-items: flex-start; margin: 1rem 0 1.4rem; flex-wrap: wrap; }
.spec-hero__in { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: .45rem; }
.spec-hero__in h1 { margin: 0; overflow-wrap: anywhere; }
.spec-hero__fio { margin: 0; }
.spec-public__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; align-items: start; }
@media (max-width: 860px) { .spec-public__grid { grid-template-columns: minmax(0, 1fr); } .spec-public__grid aside { order: -1; } }
.spec-sec > summary { cursor: pointer; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; min-height: 44px; }
.spec-sec > summary .h3 { margin: 0; }
.spec-sec[open] > summary { margin-bottom: .6rem; }
.spec-prices { list-style: none; margin: 0 0 .8rem; padding: 0; }
.spec-prices li { display: flex; justify-content: space-between; gap: .8rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.spec-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.spec-gallery img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.spec-gallery figure { margin: 0; }
.spec-contacts .spec-contact { display: flex; gap: .7rem; align-items: center; min-height: 48px; padding: .4rem 0; color: inherit;
                               text-decoration: none; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.spec-contacts .spec-contact > span { display: flex; flex-direction: column; }
.spec-contacts .spec-contact:hover { color: var(--accent); }
/* G3: «Показать телефон» — кнопка в строке контактов (номер приходит по нажатию) */
.spec-contacts .spec-contact--reveal { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line);
                                       font: inherit; text-align: left; cursor: pointer; }
.spec-contacts .spec-contact--reveal b { color: var(--accent); font-weight: 600; }
.spec-contacts .spec-contact--reveal:disabled { opacity: .6; cursor: progress; }
.spec-req { display: grid; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }

/* «Я специалист» */
.spec-join { max-width: 820px; margin: 0 auto; }
.spec-howto { padding-left: 1.2rem; display: grid; gap: .5rem; margin: 1rem 0 1.4rem; }

/* очередь админа */
.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; display: block; overflow-x: auto; }
.spec-table th, .spec-table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font: 500 .7rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.spec-mini { text-decoration: none; color: inherit; }

/* шаг 8: переключатели плотнее */
.spec-switches .field--switch { margin-bottom: .55rem; }
.spec-switches .h3 { margin-top: .6rem; }
.spec-hero__in .sid-box { align-self: flex-start; max-width: 100%; }
.spec-public aside .btn--wide { white-space: normal; text-align: center; }
.panel > .spec-actions { margin: 1rem -1.1rem -1.1rem; }
.spec-actions__short { display: none; }
@media (max-width: 480px) {                                  /* телефон: одна строка кнопок */
  .spec-actions { flex-wrap: nowrap; gap: .4rem; }
  .spec-actions .btn { padding-inline: .75rem; }
  .spec-actions .btn--specialist { flex: 1; justify-content: center; }
  .spec-actions__long { display: none; }
  .spec-actions__short { display: inline; }
  .spec-actions .btn--quiet .ico { margin: 0; }
}
