/* Радар удержаний (/radar): стили лендинга, без сборки. */
html, body { margin: 0; padding: 0; background: #F2F1EE; }
body { font-family: 'Onest', sans-serif; color: #17181A; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: #4A9D5F; color: #F2F1EE; }
textarea:focus, input:focus, button:focus-visible, a:focus-visible { outline: 2px solid rgba(74,157,95,0.5); outline-offset: 2px; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 3vw, 44px); }
.logo { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.logo span { color: #4A9D5F; }
.top-links { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.nav-link { transition: opacity 120ms ease; }
.nav-link:hover { opacity: 0.6; }

.radar { flex: 1; width: min(760px, 100%); margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(20px, 3vw, 44px) 72px; box-sizing: border-box; }
.screen { animation: rise 220ms ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pill { display: inline-flex; background: #FFFFFF; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; color: rgba(23,24,26,0.6); box-shadow: 0 2px 10px rgba(23,24,26,0.06); margin-bottom: 20px; }
h1 { margin: 0 0 14px; font-size: clamp(30px, 4.2vw, 44px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
h3 { margin: 0 0 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.lead { margin: 0 0 24px; font-size: 17px; line-height: 1.55; color: rgba(23,24,26,0.65); max-width: 58ch; }
.muted { font-size: 13px; line-height: 1.5; color: rgba(23,24,26,0.5); margin: 12px 0 0; }
.link-muted { color: rgba(23,24,26,0.55); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link-muted:hover { color: #17181A; }

.switch { display: inline-flex; background: #FFFFFF; border-radius: 999px; padding: 4px; box-shadow: 0 2px 10px rgba(23,24,26,0.06); margin-bottom: 20px; }
.switch-btn { border: 0; background: transparent; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 500; color: rgba(23,24,26,0.6); cursor: pointer; transition: background-color 120ms ease, color 120ms ease; }
.switch-btn.is-active { background: #17181A; color: #FFFFFF; }

.key-form { background: #FFFFFF; border-radius: 22px; padding: clamp(20px, 3vw, 28px); box-shadow: 0 4px 20px rgba(23,24,26,0.05); }
.field { display: block; margin-bottom: 14px; }
.field-label { display: block; font-size: 13px; font-weight: 500; color: rgba(23,24,26,0.6); margin-bottom: 6px; }
.field textarea, .field input { width: 100%; box-sizing: border-box; border: 1px solid rgba(23,24,26,0.12); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; background: #FAFAF8; resize: vertical; }
.field textarea { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; line-height: 1.45; }
.howto { margin: 4px 0 14px; font-size: 14px; color: rgba(23,24,26,0.7); }
.howto summary { cursor: pointer; font-weight: 500; color: #4A9D5F; }
.howto ol { margin: 10px 0 0; padding-left: 20px; line-height: 1.55; }
.error { margin: 0 0 12px; padding: 12px 14px; background: rgba(214,77,58,0.08); color: #B23A2A; border-radius: 12px; font-size: 14px; line-height: 1.45; }

.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.actions .muted { margin: 0; max-width: 40ch; }
.btn-dark { display: inline-flex; align-items: center; gap: 8px; background: #17181A; color: #FFFFFF; border: 0; border-radius: 999px; padding: 14px 26px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color 120ms ease; }
.btn-dark:hover { background: #000000; }
.btn-dark[disabled] { opacity: 0.55; cursor: default; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: #FFFFFF; color: #17181A; border: 1px solid rgba(23,24,26,0.12); border-radius: 999px; padding: 13px 22px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color 120ms ease; }
.btn-ghost:hover { background: rgba(23,24,26,0.04); }

.steps { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.step { position: relative; padding-left: 30px; font-size: 16px; color: rgba(23,24,26,0.5); }
.step::before { content: ''; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(23,24,26,0.2); box-sizing: border-box; }
.step.is-done { color: rgba(23,24,26,0.7); }
.step.is-done::before { background: #4A9D5F; border-color: #4A9D5F; }
.step.is-active { color: #17181A; font-weight: 500; }
.step.is-active::before { border-color: #4A9D5F; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(74,157,95,0.35); } 50% { box-shadow: 0 0 0 6px rgba(74,157,95,0); } }

.notice { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.notice-quota { background: rgba(232,168,56,0.14); color: #7A5410; }
.notice-partial { background: rgba(74,157,95,0.12); color: #2F6B3F; }
.notice-write { background: rgba(214,77,58,0.08); color: #B23A2A; }

.sum { margin: 0 0 8px; font-size: clamp(44px, 9vw, 72px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.sum small { font-size: 0.42em; font-weight: 600; color: #4A9D5F; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 8px 0 24px; }
.card { background: #FFFFFF; border-radius: 20px; padding: 22px; box-shadow: 0 4px 20px rgba(23,24,26,0.05); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table td { padding: 8px 0; border-top: 1px solid rgba(23,24,26,0.06); vertical-align: top; }
.table tr:first-child td { border-top: 0; }
.table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
.table td.cnt { text-align: right; white-space: nowrap; color: rgba(23,24,26,0.5); padding-left: 10px; }

.share-box { margin-top: 20px; background: #FFFFFF; border-radius: 20px; padding: 18px; box-shadow: 0 4px 20px rgba(23,24,26,0.05); }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.share-row input { flex: 1; min-width: 220px; border: 1px solid rgba(23,24,26,0.12); border-radius: 999px; padding: 12px 16px; font: inherit; font-size: 14px; background: #FAFAF8; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px clamp(20px, 3vw, 44px); font-size: 13px; color: rgba(23,24,26,0.45); }

@media (max-width: 560px) {
  .top-links { gap: 14px; font-size: 14px; }
  .actions { gap: 12px; }
}
