/* Раздел «Сервисы» (/services/). Подключается после site.css и использует его цветовые токены,
   поэтому светлая/тёмная тема и шрифт совпадают с остальным сайтом. */

/* ---------- Шапка страницы ---------- */
.tool-facts { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tool-facts li {
  display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink-2);
  padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.tool-facts li::before { content: ""; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-2px) rotate(-45deg) scale(.8); }
.tool__head { padding: clamp(20px, 3vw, 32px) 0 clamp(14px, 2vw, 20px); }
.tool__head .crumbs { margin-bottom: 10px; }
.tool__head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.tool__head .detail__tagline { margin-top: 8px; font-size: 1.05rem; }
.tool__head .tool-facts { margin-top: 14px; }
.tool__body { padding: 0 0 clamp(32px, 5vw, 56px); }

.tool-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.tool-cta h2 { margin-bottom: 10px; }
.tool-cta .lead { margin: 0; }
.tool-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Каталог ---------- */
.svc-section { padding-top: clamp(16px, 3vw, 32px); }
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.svc-card {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px 28px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  color: inherit; text-decoration: none; transition: border-color .15s;
}
.svc-card:hover { color: inherit; border-color: var(--line-strong); }
.svc-card:hover .svc-card__title { color: var(--accent); }
.svc-card:hover .svc-card__go svg { transform: translateX(3px); }
.svc-card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--accent-soft); color: var(--accent); margin-bottom: 8px;
}
.svc-card__title { font-size: 1.3rem; transition: color .15s; }
.svc-card__text { color: var(--ink-2); max-width: 46ch; }
.svc-card__points { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; color: var(--ink-3); font-size: .95rem; }
.svc-card__points li { position: relative; padding-left: 18px; }
.svc-card__points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.svc-card__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; font-weight: 500; color: var(--accent); }
.svc-card__go svg { transition: transform .15s; }
.svc-promises { max-width: 980px; }

/* ---------- Общие элементы инструмента ---------- */
.tool-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 28px); }
.tool-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px;
  min-height: 240px; padding: 32px 20px; cursor: pointer;
  border: 2px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--bg);
  transition: border-color .15s, background-color .15s;
}
.tool-drop:hover, .tool-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.tool-drop__ico { width: 52px; height: 52px; color: var(--accent); margin-bottom: 10px; }
.tool-drop__title { font-size: 1.2rem; font-weight: 600; }
.tool-drop__sub { color: var(--ink-2); max-width: 44ch; }
.tool-drop__fine { color: var(--ink-3); font-size: .9rem; margin-top: 12px; }

.tool-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-md); background: var(--bg-tint); border: 1px solid var(--line); }
.tool-seg label { position: relative; }
.tool-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tool-seg span { display: block; padding: 8px 18px; border-radius: var(--r-sm); font-weight: 500; color: var(--ink-2); transition: background-color .15s, color .15s; }
.tool-seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.tool-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.tool-note { color: var(--ink-3); font-size: .93rem; }
.tool-status { min-height: 1.5em; color: var(--ink-2); }
.tool-status.is-err { color: var(--err); }
.tool-status.is-ok { color: var(--ok); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Одна строка заголовка и компактные плашки: инструмент поднимается выше */
.tool__head h1, .tool__head .detail__tagline { max-width: none; }
.tool__head .detail__tagline { margin-top: 4px; }
.tool__head .tool-facts { margin-top: 10px; }
.tool__head .tool-facts li { padding: 4px 10px 4px 8px; font-size: .88rem; }
.tool__head { padding-top: 14px; }
.tool__head .crumbs { margin-bottom: 4px; }
.tool__head h1 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
