/* ------------------------------------------------------------------
   Бесплатные инструменты: /qr/ и /audit/.
   Поверх style.css — те же токены, панели и кнопки.
   ------------------------------------------------------------------ */
:root {
  --ok-soft: #e2f4eb;
  --warn-soft: #fbf0db;
  --err-soft: #fde8eb;
  --mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;
}

/* ---------- шапка раздела ---------- */
.t-hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 60px; align-items: end;
  margin-top: 40px; padding: 64px 70px;
  border: 2px solid var(--stroke); border-radius: var(--r-panel);
  background: linear-gradient(278deg, var(--panel) 0%, var(--panel-2) 100%);
}
.t-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; color: var(--desc); }
.t-crumbs a { color: var(--desc); text-decoration: none; }
.t-crumbs a:hover { color: var(--blue); }
.t-title {
  margin-top: 18px; font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 6.2vw, 112px); line-height: .86; letter-spacing: -0.05em; color: var(--ink);
}
.t-title span { display: block; color: var(--blue); }
.t-lead { font-size: 19px; line-height: 1.5; letter-spacing: -0.02em; color: var(--ink-2); max-width: 36em; }
.t-perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.t-perks li { padding: 9px 16px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-600); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- рабочая панель ---------- */
.t-panel { margin-top: 20px; padding: 44px; border: 2px solid var(--stroke); border-radius: var(--r-panel); background: var(--panel); }
.t-step { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.t-step b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 15px; }
.t-sub { margin-top: 6px; font-size: 15px; color: var(--desc); }

.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.seg button {
  height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--stroke-2); background: var(--panel);
  font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-2); transition: border-color .2s, background .2s, color .2s;
}
.seg button:hover { border-color: var(--blue); color: var(--blue); }
.seg button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.seg--sm button { height: 38px; padding: 0 14px; font-size: 14px; }

.t-fields { display: grid; gap: 14px; margin-top: 20px; }
.t-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.t-field { display: grid; gap: 7px; }
.t-field > span, .t-field > label { font-size: 14px; font-weight: 600; color: var(--desc); letter-spacing: -0.01em; }
.t-field > span i { font-style: normal; font-weight: 500; color: var(--word); }
.t-input, .t-select, .t-area {
  width: 100%; min-width: 0; height: 54px; padding: 0 18px; border: 1px solid var(--stroke-2); border-radius: 16px;
  background: var(--panel); font: 500 17px/1.3 var(--font); color: var(--ink); letter-spacing: -0.01em;
  transition: border-color .2s, box-shadow .2s;
}
.t-area { height: auto; min-height: 110px; padding: 14px 18px; resize: vertical; line-height: 1.45; }
.t-input::placeholder, .t-area::placeholder { color: var(--word); font-weight: 400; }
.t-input:focus, .t-select:focus, .t-area:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.t-note { font-size: 14px; line-height: 1.45; color: var(--desc); }
.t-check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.t-check input { width: 20px; height: 20px; accent-color: var(--blue); }
.t-pass { position: relative; }
.t-pass .t-input { padding-right: 104px; }
.t-pass button { position: absolute; right: 8px; top: 8px; height: 38px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--desc); }

.t-hr { height: 0; margin: 34px 0; border: 0; border-top: 1px solid var(--stroke); }

/* ---------- кнопки поменьше ---------- */
.btn--block { width: 100%; min-width: 0; }
.pill--md { height: 50px; padding: 0 20px; font-size: 15px; font-weight: 600; }
.t-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- статусы ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--ok { background: var(--ok-soft); color: var(--ok); }
.chip--warn { background: var(--warn-soft); color: var(--warn); }
.chip--fail { background: var(--err-soft); color: var(--err); }
.chip--wait { background: var(--card); color: var(--desc); }

/* ---------- советы и FAQ ---------- */
.t-block { margin-top: 20px; padding: 64px 70px; border: 2px solid var(--stroke); border-radius: var(--r-panel); background: linear-gradient(278deg, var(--panel) 0%, var(--panel-2) 100%); }
.t-h2 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 500; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.t-h2 strong { color: var(--blue); font-weight: 500; }
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.tip { padding: 26px 26px 28px; border-radius: var(--r-inner); background: var(--card); border: 1px solid var(--stroke); }
.tip b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.04em; color: var(--blue); font-variant-numeric: tabular-nums; }
.tip h3 { margin-top: 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.tip p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--desc); }
.t-block .faq { margin: 30px 0 0; max-width: none; }

/* ---------- призыв ---------- */
.t-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 30px; align-items: center;
  margin-top: 20px; padding: 60px 70px; border-radius: var(--r-panel); color: #fff;
  background: radial-gradient(120% 140% at 100% 120%, #5a7cff 0%, var(--blue) 45%, #1433c7 100%);
}
.t-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-size: 44px 44px;
  background-image: linear-gradient(to right, rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.10) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse at 80% 60%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 80% 60%, #000 10%, transparent 70%);
}
.t-cta h2 { font-size: clamp(28px, 3.2vw, 46px); font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.t-cta p { margin-top: 14px; max-width: 40em; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.86); }
.t-cta .t-actions { justify-content: flex-end; }
.btn--white { background: #fff; border-color: #fff; color: var(--blue); }
.btn--white:hover { box-shadow: 0 10px 30px -10px rgba(4, 16, 80, .6); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; min-width: 0; }
.btn--ghost:hover { border-color: #fff; box-shadow: none; background: rgba(255,255,255,.1); }

@media (max-width: 1100px) {
  .t-hero { grid-template-columns: minmax(0, 1fr); padding: 50px 44px; }
  .tips { grid-template-columns: minmax(0, 1fr); }
  .t-cta { grid-template-columns: minmax(0, 1fr); }
  .t-cta .t-actions { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .t-hero { margin-top: 16px; padding: 30px 22px 28px; border-radius: 32px; }
  .t-lead { font-size: 17px; }
  .t-panel { padding: 24px 18px; border-radius: 32px; }
  .t-block { padding: 32px 20px; border-radius: 32px; }
  .t-cta { padding: 36px 22px; border-radius: 32px; }
  .t-row { grid-template-columns: minmax(0, 1fr); }
  .t-step { font-size: 20px; }
  .t-hr { margin: 26px 0; }
  .t-cta .btn { width: 100%; min-width: 0; }
}
