/* Общий стиль сайта alertbot.aimap.am вне Telegram (главная и страницы для бизнеса).
   Оформление как у boardgames.aimap.am: серый фон, белые карточки 24px без рамок, синий блок,
   жёлтые кнопки-«таблетки». Все переменные живут на .site, чтобы не задевать Mini App. */
@import url("/fonts/fonts.css");

.site {
  --bg: #f2f4f8; --surface: #fff; --ink: #10131c; --muted: #596174; --line: #dde2ec;
  --brand: #2a47f5; --on-brand: #fff; --link: #2a47f5; --night: #10131c; --on-night: #f4f6fb;
  --c-blue: #5b7bff; --c-red: #ff6a55; --c-yellow: #ffcb3d; --c-green: #35c28a; --c-violet: #a987ff;
  --c-pink: #ff93c4; --c-cyan: #3fc9e6; --c-orange: #ff9d45; --c-lime: #bfdc4a; --on-color: #10131c;
  --soft-yellow: #fff4cf; --soft-blue: #e6ebff; --soft-green: #def6ec; --soft-red: #ffe5e1;
  --display: "Geologica", "Helvetica Neue", Arial, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100dvh; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site {
    --bg: #0c0e15; --surface: #171b26; --ink: #f2f4fa; --muted: #a3acc0; --line: #2b3142;
    --brand: #3d58ff; --link: #93a6ff; --night: #f2f4fa; --on-night: #10131c;
    --soft-yellow: #3a3013; --soft-blue: #1d2442; --soft-green: #142e24; --soft-red: #3a1d1a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] .site {
  --bg: #0c0e15; --surface: #171b26; --ink: #f2f4fa; --muted: #a3acc0; --line: #2b3142;
  --brand: #3d58ff; --link: #93a6ff; --night: #f2f4fa; --on-night: #10131c;
  --soft-yellow: #3a3013; --soft-blue: #1d2442; --soft-green: #142e24; --soft-red: #3a1d1a;
  color-scheme: dark;
}
.site *, .site *::before, .site *::after { box-sizing: border-box; }
.site a { color: var(--link); }
.site :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.site h1, .site h2, .site h3, .site p { margin: 0; }
.site h1, .site h2, .site h3 { text-wrap: balance; }
.site .display, .site h1, .site h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
.site .wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.site main > * + * { margin-top: 12px; }
.site { scroll-padding-top: 72px; }

/* Шапка */
.site .s-head { position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-top: env(safe-area-inset-top, 0px); }
.site .s-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.site .logo { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.site .s-head nav { display: flex; gap: 22px; }
.site .s-head nav a { color: var(--ink); text-decoration: none; font-size: 15.5px; white-space: nowrap; }
.site .s-head nav a:hover { color: var(--link); }
@media (max-width: 860px) { .site .s-head nav { display: none; } }

/* Блоки */
.site .panel { background: var(--surface); border-radius: 24px; padding: 22px; }
@media (min-width: 768px) { .site .panel { padding: 36px; } }
.site .hero { background: var(--brand); color: var(--on-brand); border-radius: 24px; padding: 26px 22px; display: grid; gap: 22px; }
@media (min-width: 768px) { .site .hero { padding: 48px 44px; } }
.site .hero h1 { font-size: clamp(2.1rem, 6vw, 4.2rem); line-height: 1.04; max-width: 18ch; }
.site .hero .lede { font-size: clamp(16px, 2vw, 19px); max-width: 60ch; opacity: .95; }
.site .hero a:not(.btn) { color: inherit; }
.site .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.site .h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.1; }
.site .sub { color: var(--muted); max-width: 64ch; margin-top: 10px; }
.site .muted { color: var(--muted); }

/* Кнопки */
.site .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.site .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; text-decoration: none; white-space: nowrap; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.site .btn-yellow { background: var(--c-yellow); color: var(--on-color); }
.site .btn-yellow:hover { background: var(--c-orange); }
.site .btn-white { background: rgba(255,255,255,.16); color: var(--on-brand); }
.site .btn-white:hover { background: rgba(255,255,255,.26); }
.site .btn-dark { background: var(--night); color: var(--on-night); }
.site .btn-soft { background: var(--bg); color: var(--ink); }
.site .btn-soft:hover { background: var(--line); }

/* Сетки и карточки */
.site .grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.site .grid-2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.site .grid-4 { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .site .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .site .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 700px) { .site .card.wide { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; } .site .card.wide .go { margin-top: 0; } }
.site .card.wide > div { display: grid; gap: 6px; }
.site .card { background: var(--surface); border-radius: 24px; padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; color: var(--ink); text-decoration: none; }
.site a.card:hover { box-shadow: inset 0 0 0 2px var(--brand); }
.site .card h3 { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.2; }
.site .card p { color: var(--muted); font-size: 15.5px; }
.site .card .go { color: var(--link); font-weight: 600; font-size: 15.5px; margin-top: 4px; }
.site .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; line-height: 1; }
.site .i-yellow { background: var(--soft-yellow); }
.site .i-blue { background: var(--soft-blue); }
.site .i-green { background: var(--soft-green); }
.site .i-red { background: var(--soft-red); }
.site .tile { background: var(--c-yellow); color: var(--on-color); border-radius: 24px; padding: 22px; display: grid; gap: 8px; align-content: start; text-decoration: none; }
.site .tile:hover { background: var(--c-orange); }
.site .tile h3 { font-family: var(--display); font-weight: 600; font-size: 21px; }
.site .tile p { font-size: 15.5px; opacity: .85; }
.site .tile.dark { background: var(--night); color: var(--on-night); }

/* Шаги, списки, чипы */
.site .steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 22px; }
.site .step { background: var(--bg); border-radius: 18px; padding: 18px; display: grid; gap: 6px; }
.site .step b { font-family: var(--display); font-weight: 600; font-size: 17px; }
.site .step span { color: var(--muted); font-size: 15px; }
.site .num { width: 32px; height: 32px; border-radius: 50%; background: var(--c-yellow); color: var(--on-color); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.site .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.site .chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--bg); font-size: 15.5px; color: var(--ink); }
.site .ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.site .ticks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; }
.site .ticks li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--soft-green); color: #15774a; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 2px; }
.site .note { background: var(--soft-yellow); border-radius: 18px; padding: 18px 20px; }
.site .split { display: grid; gap: 22px; }
@media (min-width: 900px) { .site .split { grid-template-columns: 1.1fr 1fr; align-items: start; } }

/* Вопросы */
.site details.qa { background: var(--bg); border-radius: 18px; padding: 0 18px; }
.site details.qa + details.qa { margin-top: 8px; }
.site details.qa summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.site details.qa summary::-webkit-details-marker { display: none; }
.site details.qa summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
.site details.qa[open] summary::after { content: "–"; }
.site details.qa p { padding-bottom: 16px; color: var(--muted); }

.site .s-foot { padding-block: 28px 44px; color: var(--muted); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site .s-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (prefers-reduced-motion: reduce) { .site * { transition: none !important; } }
