:root {
  --red: #e50914;
  --red-dark: #be0710;
  --ink: #111216;
  --muted: #5d626e;
  --line: #e5e7eb;
  --soft: #f7f8fa;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(23, 27, 36, .10);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; line-height: 1.55; background: #fff; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-dark); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #1479ff; outline-offset: 3px; }
.skip-link { position: absolute; z-index: 99; top: -80px; left: 16px; padding: 12px 16px; background: #fff; border: 2px solid var(--red); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { width: min(1220px, calc(100% - 48px)); min-height: 88px; margin: auto; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 34px; align-items: center; padding: 10px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; grid-row: 1 / 3; width: fit-content; }
.brand-logo { display: block; width: 60px; height: 60px; object-fit: contain; border-radius: 50%; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.12; }
.brand-copy strong { font-size: 25px; letter-spacing: -1.3px; font-weight: 850; color: #101114; }
.brand-copy strong span { color: var(--red); }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.language-nav { display: flex; justify-content: flex-end; align-items: center; gap: 7px; }
.language-nav a { display: inline-grid; place-items: center; min-width: 35px; height: 28px; padding: 0 6px; font-size: 11px; font-weight: 750; color: #3f4652; border-radius: 6px; }
.language-nav a:hover, .language-nav a[aria-current="true"] { color: var(--red); background: #fff2f2; }
.primary-nav { display: flex; justify-content: flex-end; align-items: center; gap: clamp(12px, 2.25vw, 30px); padding-top: 3px; }
.primary-nav a { position: relative; padding: 8px 0; font-size: 13px; font-weight: 650; color: #292c32; white-space: nowrap; }
.primary-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px; background: var(--red); }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 9px; background: #fff; width: 42px; height: 40px; color: var(--ink); cursor: pointer; }
.hero { width: min(1220px, calc(100% - 48px)); margin: 24px auto 30px; min-height: 545px; display: grid; grid-template-columns: minmax(0, .98fr) minmax(380px, .9fr); gap: 44px; align-items: center; }
.hero-copy { padding: 28px 0 42px; }
.eyebrow { margin: 0 0 12px; color: #58606d; text-transform: uppercase; letter-spacing: .11em; font-size: 12px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(40px, 5vw, 66px); line-height: 1.035; letter-spacing: -.055em; font-weight: 820; }
h1 span { color: var(--red); }
.hero-lead, .lead { color: #4d535f; font-size: clamp(17px, 1.65vw, 20px); max-width: 640px; line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 54px; padding: 13px 24px; border-radius: 999px; font-weight: 760; text-align: center; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; cursor: pointer; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--red); color: #fff; box-shadow: 0 10px 22px rgba(229,9,20,.17); }
.button-primary:hover { background: var(--red-dark); color: #fff; }
.button-outline { border: 1.5px solid var(--red); background: #fff; color: var(--red); }
.hero-cta { margin-top: 14px; min-width: 320px; font-size: 16px; }
.telegram-mark { display: inline-grid; width: 24px; height: 24px; place-items: center; color: white; font-size: 18px; transform: rotate(-20deg); }
.under-cta { margin: 10px 0 0 20px; color: #6e7480; font-size: 13px; }
.demo-wrap { justify-self: center; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; }
.phone { width: min(320px, 100%); padding: 9px; border: 3px solid #202124; border-radius: 42px; background: #111; box-shadow: 0 22px 42px rgba(0,0,0,.18); transform: rotate(1deg); }
.phone-speaker { width: 86px; height: 14px; background: #111; border-radius: 0 0 12px 12px; position: relative; z-index: 2; margin: 0 auto -14px; }
.phone-screen { overflow: hidden; min-height: 450px; background: #f7f8fb; border-radius: 32px; position: relative; padding-top: 24px; }
.telegram-top { height: 57px; background: #fff; border-bottom: 1px solid #e7eaf0; display: flex; align-items: center; justify-content: space-between; padding: 8px 11px; text-align: center; }
.telegram-top > span:nth-child(2) { display: flex; flex-direction: column; font-size: 12px; }
.telegram-top small { color: #858b97; font-size: 10px; }
.telegram-top .brand-logo { width: 31px; height: 31px; }
.telegram-back { color: #1688e5; font-size: 30px; line-height: .7; }
.chat-area { display: flex; flex-direction: column; gap: 12px; padding: 16px 11px 50px; font-size: 11px; line-height: 1.4; }
.chat-date { color: #77808c; font-size: 9px; text-align: center; background: #fff; border-radius: 20px; padding: 4px 9px; align-self: center; }
.chat-user { background: #318eea; color: #fff; border-radius: 13px 13px 3px 13px; padding: 9px 12px; align-self: flex-end; font-size: 13px; }
.chat-user small { display: block; text-align: right; font-size: 8px; opacity: .8; }
.chat-bot { width: 96%; background: #fff; padding: 12px; border-radius: 13px 13px 13px 3px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.chat-bot p { margin: 7px 0; }
.chat-bot ul, .chat-bot ol { padding-left: 17px; margin: 5px 0 8px; }
.chat-bot li { margin: 2px 0; }
.chat-bot small { display: block; color: #69717c; font-size: 8px; line-height: 1.35; }
.chat-input { position: absolute; bottom: 9px; left: 10px; right: 10px; height: 34px; border: 1px solid #e6e9ef; border-radius: 19px; background: white; color: #8d95a2; display: flex; justify-content: space-between; align-items: center; padding: 0 10px; font-size: 12px; }
.demo-caption { margin: 13px 0 0; max-width: 330px; text-align: center; color: #707784; font-size: 12px; }
.section { padding: 76px max(24px, calc((100% - 1180px) / 2)); }
.section-heading { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.section-heading h2, .section h2 { font-size: clamp(30px, 3.5vw, 42px); line-height: 1.12; letter-spacing: -.04em; margin: 0 0 12px; }
.section-heading > p:not(.eyebrow) { margin: 0; color: var(--muted); }
.feature-section { border-top: 1px solid #f1f2f4; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card { padding: 20px 22px 22px; border-right: 1px solid var(--line); }
.feature-card:last-child { border-right: 0; }
.feature-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; color: var(--red); border: 2px solid #ffe0e2; border-radius: 13px; font-size: 28px; font-weight: 800; }
.feature-card h3 { margin: 17px 0 7px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }
.pricing-section { background: linear-gradient(180deg, #f7f8fa 0%, #fff 100%); }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 1000px; margin: auto; }
.plan-card { position: relative; padding: 30px; background: #fff; border: 1px solid #e9eaee; border-radius: 16px; box-shadow: 0 10px 34px rgba(26,31,42,.04); }
.plan-card-pro { border: 1.5px solid var(--red); }
.plan-card h3 { margin: 0 0 4px; font-size: 25px; letter-spacing: -.03em; }
.plan-badge { position: absolute; top: -13px; right: 20px; padding: 5px 13px; background: var(--red); color: #fff; border-radius: 7px; font-size: 11px; font-weight: 750; }
.price { display: flex; gap: 10px; align-items: baseline; margin: 4px 0 16px; }
.price strong { color: var(--red); font-size: clamp(34px, 4vw, 45px); letter-spacing: -.06em; }
.price span { color: var(--muted); font-size: 16px; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li { position: relative; padding: 7px 0 7px 28px; font-size: 14px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--red); font-weight: 900; font-size: 17px; }
.plan-card .button { width: 100%; }
.plan-note, .pilot-note, .small-note { max-width: 820px; margin: 20px auto 0; text-align: center; color: #59616e; font-size: 13px; }
.pilot-note { margin-top: 7px; font-weight: 650; }
.small-note { margin-top: 5px; font-size: 12px; color: #7a808a; }
.how-section { text-align: center; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1060px; padding: 0; margin: 0 auto 28px; list-style: none; text-align: left; }
.steps-grid li { padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.step-number { color: var(--red); font-weight: 850; font-size: 13px; letter-spacing: .12em; }
.steps-grid h3 { margin: 15px 0 7px; font-size: 18px; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.text-link { display: inline-block; margin-top: 14px; color: var(--red-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.safety-band { background: #fff5f4; border-block: 1px solid #ffe2df; padding: 30px 24px; }
.safety-band > div { max-width: 1000px; margin: auto; display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; }
.safety-symbol { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; font-size: 24px; font-weight: 900; }
.safety-band h2 { margin: 0 0 6px; font-size: 20px; }
.safety-band p { margin: 0; color: #494e58; font-size: 14px; }
.faq-preview { max-width: 1000px; margin: auto; }
.faq-list { max-width: 850px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-list summary { cursor: pointer; font-weight: 720; list-style-position: outside; }
.faq-list details p { margin: 12px 0 0; max-width: 760px; color: var(--muted); }
.page-intro { min-height: 58vh; }
.page-intro > h1 { max-width: 850px; }
.page-intro .lead { margin: 0 0 32px; }
.page-intro .feature-grid { margin-top: 44px; }
.page-intro.narrow { max-width: 920px; margin: auto; }
.page-intro .pricing-section { margin: 24px -24px -76px; padding-left: 24px; padding-right: 24px; }
.demo-section .demo-wrap { margin: 35px auto; }
.info-panel { margin: 32px 0; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.info-panel h2 { font-size: 22px; }
.info-panel p { margin-bottom: 0; color: var(--muted); }
.contact-form { display: grid; gap: 16px; max-width: 700px; }
.contact-form label { display: grid; gap: 7px; font-weight: 700; font-size: 14px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #cfd3da; border-radius: 9px; padding: 12px 13px; color: var(--ink); background: #fff; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .button { justify-self: start; border: 0; }
.form-note, .form-status { color: var(--muted); font-size: 13px; margin: 0; }
.legal-page { line-height: 1.8; }
.legal-page h1 { font-size: clamp(36px, 4vw, 52px); }
.draft-notice { margin: 22px 0; padding: 14px 17px; border-left: 4px solid #dd8a00; background: #fff8e8; color: #5d471b; font-size: 14px; }
.plain-list { padding-left: 22px; }
.plain-list li { padding: 4px 0; }
.missing-value { color: #9a5a00; font-weight: 700; }
.disclaimer { color: var(--muted); font-size: 14px; }
.site-footer { padding: 40px 24px 26px; background: #101216; color: #f4f5f7; }
.footer-inner { width: min(1180px, 100%); margin: auto; display: grid; grid-template-columns: 1fr auto; gap: 22px 32px; align-items: center; }
.footer-brand .brand-copy strong { color: #fff; }
.footer-brand .brand-copy small { max-width: 300px; color: #bdc2cb; }
.footer-brand .brand-logo { width: 48px; height: 48px; background: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; font-size: 13px; color: #d9dce2; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-disclaimer, .copyright { grid-column: 1 / -1; margin: 0; color: #aeb4bf; font-size: 12px; }
.copyright { border-top: 1px solid #31343b; padding-top: 17px; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; column-gap: 14px; }
  .brand { grid-row: 1; }
  .header-tools { grid-column: 2; grid-row: 1; }
  .primary-nav { grid-column: 1 / -1; justify-content: center; flex-wrap: wrap; gap: 9px 22px; padding-top: 10px; }
  .hero { gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr); }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .feature-card:nth-child(2) { border-right: 0; }
  .feature-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 680px) {
  body { font-size: 15px; }
  .header-inner { width: calc(100% - 28px); min-height: 70px; padding: 8px 0; grid-template-columns: 1fr auto; }
  .brand { gap: 9px; }
  .brand-logo { width: 45px; height: 45px; }
  .brand-copy strong { font-size: 21px; }
  .brand-copy small { font-size: 9px; }
  .header-tools { gap: 8px; }
  .language-nav { gap: 1px; }
  .language-nav a { min-width: 28px; height: 27px; padding: 0 4px; font-size: 10px; }
  .menu-toggle { display: inline-grid; place-items: center; width: 39px; height: 37px; }
  .primary-nav { display: none; grid-column: 1 / -1; padding: 12px 0 6px; align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 11px 5px; border-bottom: 1px solid #f0f1f3; }
  .primary-nav a[aria-current="page"]::after { right: auto; width: 3px; height: 24px; top: 9px; bottom: auto; }
  .hero { width: calc(100% - 34px); margin: 12px auto 18px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-copy { padding: 34px 0 10px; }
  h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero-lead, .lead { font-size: 17px; }
  .hero-cta { width: 100%; min-width: 0; padding: 13px 15px; font-size: 14px; gap: 9px; }
  .under-cta { text-align: center; margin-left: 0; }
  .demo-wrap { max-width: 360px; }
  .phone { width: 285px; }
  .phone-screen { min-height: 422px; }
  .section { padding: 57px 20px; }
  .section-heading { margin-bottom: 26px; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .feature-card { padding: 17px 12px; border-right: 1px solid var(--line); }
  .feature-card:nth-child(2) { border-right: 0; }
  .feature-card h3 { font-size: 15px; }
  .feature-card p { font-size: 13px; }
  .plan-grid { grid-template-columns: 1fr; gap: 22px; }
  .plan-card { padding: 24px 21px; }
  .price strong { font-size: 39px; }
  .steps-grid { grid-template-columns: 1fr; }
  .safety-band { padding: 25px 19px; }
  .safety-band > div { grid-template-columns: 34px 1fr; gap: 12px; }
  .safety-symbol { width: 30px; height: 30px; font-size: 19px; }
  .page-intro { min-height: 50vh; }
  .page-intro .pricing-section { margin: 20px -20px -57px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .footer-disclaimer, .copyright { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Private web diagnostics workspace; keeps the approved white/red visual system. */
.account-link { color:var(--red); font-weight:750; }
.web-app-page { max-width:1080px; margin-inline:auto; }
.app-auth, .app-dashboard { max-width:900px; margin:2rem auto; }
.app-auth { padding:clamp(1rem,4vw,2rem); border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 10px 35px rgba(20,20,20,.06); }
.auth-tabs, .dashboard-heading, .chat-controls { display:flex; flex-wrap:wrap; align-items:center; gap:.8rem; }
.app-auth form, .web-chat-form { display:grid; gap:1rem; margin-top:1rem; }
.app-auth label, .web-chat-form label { display:grid; gap:.4rem; font-weight:650; }
.app-auth input, .web-chat-form input:not([type=file]), .web-chat-form select, .web-chat-form textarea { width:100%; padding:.8rem .9rem; border:1px solid #cdd0d4; border-radius:10px; font:inherit; background:#fff; }
.consent-check { display:flex!important; grid-template-columns:auto 1fr; align-items:start; gap:.6rem!important; font-weight:450!important; }
.consent-check input { margin-top:.25rem; }
.app-status { min-height:1.5rem; font-weight:650; color:#7b1c16; }
.dashboard-heading { justify-content:space-between; padding:1rem 0; border-bottom:1px solid var(--line); }
.app-section { margin:2rem 0; padding:clamp(1rem,3vw,1.5rem); border:1px solid var(--line); border-radius:16px; background:#fff; }
.app-plan-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.app-plan-grid .plan-card { margin:0; }
.app-balance { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.balance-card { padding:1rem; border:1px solid var(--line); border-radius:12px; }
.balance-card strong { display:block; font-size:1.5rem; color:var(--red); }
.chat-history { display:grid; gap:.8rem; max-height:28rem; overflow:auto; padding:.8rem 0; }
.chat-message { white-space:pre-wrap; overflow-wrap:anywhere; padding:.9rem 1rem; border-radius:14px; max-width:90%; }
.chat-message.user { justify-self:end; background:#f2f3f5; }
.chat-message.assistant { justify-self:start; border:1px solid #eadada; background:#fffafa; }
.chat-controls { align-items:end; }
.chat-controls label { min-width:145px; flex:1; }
.web-chat-form [type=file] { max-width:100%; }
@media (max-width:700px) {
 .app-plan-grid, .app-balance { grid-template-columns:1fr; }
 .dashboard-heading { align-items:flex-start; }
 .chat-controls { align-items:stretch; }
 .web-app-page { padding-inline:1rem; }
}
