@font-face { font-family: Montserrat; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/montserrat-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/montserrat-latin.woff2') format('woff2'); }
:root {
  color-scheme: light;
  --bg: #ffffff; --surface: #ffffff; --text: #192a42; --muted: #617084;
  --blue: #2077ff; --blue-soft: #eaf2ff; --orange: #ff6534; --line: #dce4ef;
  --danger: #ac3025; --safe-bottom: max(16px, env(safe-area-inset-bottom));
  font-family: Montserrat, Arial, sans-serif; font-synthesis: none;
}
* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
html, body { min-height: 100%; background: var(--bg); }
body { margin: 0; color: var(--text); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; }
svg { flex-shrink: 0; width: 20px; height: 20px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.app-shell { width: min(960px, 100%); min-height: 100dvh; margin: 0 auto; padding: 0 24px calc(100px + var(--safe-bottom)); }
.topbar { min-height: 82px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 12px; }
.topbar:has(#back-button[hidden]) .brand { grid-column: 1 / 3; }
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand img { width: 98px; height: 46px; object-fit: contain; }
.brand > span { padding-left: 18px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.step-label { color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.screen { display: none; }
.screen.active { display: block; }
.screen:not(#route-screen) { max-width: 620px; margin-inline: auto; }
.screen-heading { padding: 28px 0 26px; }
.eyebrow { display: block; color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.5; }
h1 { margin: 8px 0 0; font-size: 28px; line-height: 1.25; font-weight: 600; }
h2 { margin: 6px 0 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
h3 { margin: 16px 0 10px; font-size: 21px; font-weight: 600; line-height: 1.3; }
p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.home-heading { margin: 0 -24px 22px; padding: 24px; background: var(--text); color: #fff; }
.home-heading .eyebrow { color: #ffb59c; }
.home-heading h1 span { color: #5899ff; }
.entry-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.entry-service, .route-button, .service-button { position: relative; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); text-align: left; }
.entry-service { min-height: 210px; padding: 20px; display: flex; flex-direction: column; gap: 16px; background: var(--blue-soft); border-color: var(--blue-soft); transition: border-color .15s, background .15s; }
.entry-service > svg { position: absolute; right: 18px; top: 27px; color: var(--blue); }
.entry-service strong, .entry-service small, .route-button strong, .route-button small, .service-button strong, .service-button small { display: block; }
.entry-service strong { font-size: 16px; line-height: 1.35; font-weight: 600; margin-bottom: 8px; }
.entry-service small, .route-button small, .service-button small { font-size: 12px; line-height: 1.6; color: var(--muted); }
.service-icon, .resource-icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; background: var(--orange); color: #fff; border-radius: 50%; }
.quiz-entry { margin-top: 16px; border-bottom: 1px solid var(--line); }
.quiz-entry summary { min-height: 50px; cursor: pointer; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; list-style: none; }
.quiz-entry summary::-webkit-details-marker { display: none; }
.quiz-entry summary > svg:first-child { color: var(--blue); }
.quiz-entry summary > svg:last-child { margin-left: auto; width: 16px; transition: transform .15s; }
.quiz-entry[open] summary > svg:last-child { transform: rotate(180deg); }
.route-list { display: grid; gap: 8px; padding: 8px 0 18px; }
.route-button { min-height: 76px; padding: 14px; display: grid; grid-template-columns: 32px minmax(0, 1fr) 20px; gap: 12px; align-items: center; }
.route-button strong, .service-button strong { font-size: 14px; line-height: 1.4; font-weight: 600; margin-bottom: 4px; }
.route-icon { color: var(--blue); display: grid; place-items: center; }
.route-button > svg { color: var(--muted); width: 16px; }
.section-heading { padding: 30px 0 18px; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.resource-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.resource-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; min-height: 42px; }
.resource-icon { background: var(--blue-soft); color: var(--blue); }
.badge { color: var(--muted); font-size: 10px; font-weight: 600; line-height: 1.6; }
.trial-badge { color: #a4320c; }
.admirra-logo { width: 100px; height: 30px; object-fit: contain; object-position: left; }
.calculator-formula { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 154px; padding: 20px 0; font-size: 13px; text-align: center; }
.calculator-formula svg { color: var(--orange); }
.dashboard-preview { display: block; width: 100%; height: auto; aspect-ratio: 800 / 430; object-fit: contain; margin: 16px 0; }
.resource-actions { margin-top: auto; }
.admirra-card > .download-button { margin-top: auto; }
.primary-button, .download-button { min-height: 48px; width: 100%; padding: 12px 18px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; text-align: center; }
.primary-button svg, .download-button svg { width: 18px; height: 18px; }
.text-button { min-height: 44px; margin: 8px auto 0; padding: 8px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.4; display: flex; align-items: center; justify-content: center; gap: 8px; }
.text-button svg { width: 16px; height: 16px; }
.site-link { padding: 24px 0 0; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 12px; line-height: 1.5; color: var(--muted); text-decoration: none; }
.site-link svg { width: 16px; height: 16px; }
.field { display: grid; gap: 10px; margin-bottom: 20px; }
.field > span { font-size: 12px; font-weight: 600; line-height: 1.6; }
.field em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 400; margin-left: 5px; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #f8faff; color: var(--text); font-size: 16px; }
.field input { min-height: 48px; padding: 12px; }
.field textarea { min-height: 112px; padding: 12px; line-height: 1.5; resize: vertical; }
::placeholder { font-size: 13px; color: #718096; opacity: 1; }
.field-spaced { margin-top: 26px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-stack, .service-list { display: grid; gap: 8px; }
.choice-button { min-height: 48px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 13px; line-height: 1.5; text-align: left; }
.choice-button svg { width: 16px; height: 16px; color: transparent; }
.choice-button.selected, .service-button.selected { border-color: var(--blue); background: var(--blue-soft); }
.choice-button.selected svg { color: var(--blue); }
.service-button { min-height: 96px; padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 10px; align-items: center; }
.service-button > svg { color: var(--muted); }
.service-button.selected > svg { color: var(--blue); }
.service-badge { grid-column: 1 / -1; color: #a4320c; font-size: 10px; font-weight: 600; }
.telegram-person { min-height: 76px; margin-bottom: 22px; padding: 15px 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) 20px; align-items: center; gap: 12px; border-block: 1px solid var(--line); }
.telegram-person > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 16px; font-weight: 600; }
.telegram-person strong, .telegram-person small { display: block; overflow-wrap: anywhere; }
.telegram-person strong { font-size: 14px; }
.telegram-person small { margin-top: 4px; font-size: 12px; color: var(--muted); }
.telegram-person > svg { color: var(--blue); }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.6; padding: 8px 0; }
.consent input { margin: 2px 0; width: 18px; height: 18px; accent-color: var(--blue); }
.action-bar { position: fixed; z-index: 20; left: 50%; bottom: 0; width: min(668px, 100%); padding: 12px 24px var(--safe-bottom); border-top: 1px solid var(--line); background: #fff; transform: translateX(-50%); }
.result-screen { padding-top: 60px; text-align: center; }
.result-icon { width: 58px; height: 58px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.result-icon.error { background: #fff0ed; color: var(--danger); }
.result-screen p { margin-top: 14px; }
.success-actions { margin: 28px auto 0; max-width: 350px; }
#error-screen .download-button { margin-top: 24px; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: calc(80px + var(--safe-bottom)); width: min(410px, calc(100% - 32px)); padding: 14px 16px; border-radius: 8px; background: var(--text); color: #fff; font-size: 12px; line-height: 1.5; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: .2s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }
@media (hover: hover) {
  .entry-service:hover, .route-button:hover, .service-button:hover, .choice-button:hover { border-color: var(--blue); }
  .download-button:hover, .primary-button:hover { background: #1260d8; }
  .text-button:hover, .site-link:hover { color: var(--blue); }
}
@media (max-width: 620px) {
  .app-shell { padding-inline: 18px; }
  .home-heading { margin-inline: -18px; padding: 20px 18px; }
  .entry-services { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .entry-service { min-height: 100px; padding: 16px; flex-direction: row; align-items: center; gap: 14px; }
  .entry-service > span:last-of-type { min-width: 0; padding-right: 15px; }
  .entry-service strong { font-size: 14px; margin-bottom: 5px; }
  .entry-service small { font-size: 11px; line-height: 1.5; }
  .entry-service > svg { right: 10px; top: calc(50% - 9px); width: 16px; height: 18px; }
  .service-icon { width: 36px; height: 36px; }
  .service-icon svg { width: 18px; height: 18px; }
  .resource-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .resource-card { padding: 20px; }
  .calculator-formula { min-height: 100px; font-size: 12px; gap: 8px; }
  .screen-heading { padding-top: 22px; }
}
@media (max-width: 370px) {
  .brand { gap: 10px; }
  .brand > span { padding-left: 10px; font-size: 9px; }
  h1 { font-size: 25px; }
  h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
