/* TokenGrand: base, cabinet, documents and themes. */
@font-face {
  font-family: Geist Sans;
  src: url("GeistSans-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --text: #0c1324;
  --muted: #64748b;
  --line: #e1e6ef;
  --accent: #3b57ff;
  --card: #ffffffda;
  --shadow: 0 16px 54px #33476b12;
  font-family: Geist Sans, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overscroll-behavior-y: none; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #7884a061 transparent; }
html.is-localizing { scroll-behavior: auto; overflow-anchor: none; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.62; color: var(--muted); }
h2, h3 { line-height: 1.13; letter-spacing: -.035em; }
code, pre { font-family: "Cascadia Code", Consolas, ui-monospace, monospace; }
code { color: #2842a2; overflow-wrap: anywhere; }
pre { overflow-x: auto; line-height: 1.66; }
form { margin: 0; }
input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 14px; background: #fff; border: 1px solid #d6dfed; border-radius: 12px; color: var(--text); }
input::placeholder { color: #747d8c; }
.shell { width: min(1760px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.site-header { padding-top: 28px; position: relative; z-index: 1; }
.header-inner { min-height: 66px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; background: #ffffffe6; border: 1px solid #0000000f; border-radius: 999px; box-shadow: 0 10px 32px #0f172a0d; }
.has-marketing-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 9px; font-size: 1.5rem; font-weight: 600; letter-spacing: -.04em; white-space: nowrap; }
.brand img { border-radius: 50%; object-fit: cover; }
.main-nav, .header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions { justify-self: end; }
.main-nav { justify-content: center; gap: 32px; font-size: .875rem; line-height: 1.25; color: #526075; font-weight: 500; }
.marketing-nav { position: static; }
.marketing-nav a { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; }
.marketing-nav a:nth-child(1) { min-width: 104px; }
.marketing-nav a:nth-child(2) { min-width: 68px; }
.marketing-nav a:nth-child(3) { min-width: 30px; }
.locale { display: flex; gap: 2px; align-items: center; border: 1px solid #e1e4ee; border-radius: 999px; padding: 3px; background: #f3f5fa; }
.locale a { display: inline-flex; justify-content: center; align-items: center; min-width: 34px; height: 28px; border-radius: 999px; padding: 5px 8px; font-size: .72rem; line-height: 1; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.locale [aria-current] { background: white; color: #344bc1; box-shadow: 0 1px 4px #24325b12; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 43px; border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; font-weight: 650; font-size: .93rem; line-height: 1.3; white-space: nowrap; }
.main-nav a, .locale a, .site-footer a { transition: background-color 170ms ease, color 170ms ease, border-color 170ms ease; }
.button.quiet { background: white; border-color: var(--line); color: var(--text); }
.button.header-button { min-width: 170px; min-height: 40px; padding-inline: 20px; background: var(--accent); color: white; font-size: .875rem; font-weight: 500; }
.button.primary { background: linear-gradient(135deg, #0f1422, #090d16); color: white; }
.button.telegram { color: var(--text); background: white; border-color: var(--line); }
.button.telegram svg { height: 18px; width: 18px; color: #229ed9; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.button.danger { color: #972b36; background: #fff3f4; border-color: #efc8cf; }
.link-button { background: transparent; color: var(--accent); border: 0; padding: 7px; }
.hero { position: relative; text-align: center; padding: 144px 0 96px; }
.hero-copy { position: relative; max-width: 880px; margin-inline: auto; padding-inline: 8px; }
.eyebrow { color: #8a9bc1; font-size: .875rem; line-height: 1.43; font-weight: 500; letter-spacing: .24em; }
.hero h1 { min-block-size: 2lh; font-size: 5.5rem; line-height: .93; letter-spacing: -.075em; font-weight: 600; }
.hero-line { display: block; }
.hero-sticker { display: inline-block; transform: rotate(-7deg) translateY(-.08em); vertical-align: .1em; margin-right: 8px; background: var(--accent); border-radius: 18px; padding: 8px 20px; color: white; font-size: .54em; line-height: 1; letter-spacing: -.045em; box-shadow: 0 18px 36px #3b57ff47; }
.hero p { max-width: 720px; min-height: 2lh; margin: 28px auto 0; font-size: 1.125rem; line-height: 2; }
.hero .primary { min-height: 48px; min-width: 216px; margin-top: 36px; font-size: 1rem; font-weight: 500; padding-inline: 28px; }
.client-list { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.client-list span { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 18px; font-size: 1rem; line-height: 1.25; font-weight: 550; border: 1px solid #dfe6f1; background: #ffffffe0; color: #29364f; border-radius: 999px; box-shadow: 0 8px 18px #0f172a04; }
.client-list img { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.float-chip { position: absolute; width: 110px; aspect-ratio: 1; display: grid; place-items: center; color: #111a2d; border: 0; border-radius: 34px; background: linear-gradient(135deg, #edf5ff, #fff, #f8fbff); box-shadow: 0 22px 48px #4d7cff29; }
.float-chip svg { width: 31%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.left-top { left: 4%; top: 115px; }
.left-bottom { left: 8.2%; top: 360px; background: linear-gradient(135deg, #fff6e4, #fff, #fffdf8); box-shadow: 0 22px 48px #ffc65c29; }
.right-top { right: 4%; top: 153px; background: linear-gradient(135deg, #eefaf2, #fff, #fafffd); box-shadow: 0 22px 48px #58b97e29; }
.right-bottom { right: 8.2%; top: 383px; background: linear-gradient(135deg, #f3efff, #fff, #fcfbff); box-shadow: 0 22px 48px #8868ff29; }
.terminal { width: min(760px, 100%); min-height: 227px; margin: 77px auto 0; padding: 20px; border: 1px solid #ffffffb3; border-radius: 30px; overflow: hidden; text-align: left; background: linear-gradient(white, #f7fafc); box-shadow: 0 24px 70px #0f172a1a; }
.terminal-bar { display: flex; align-items: center; gap: 8px; }
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: #f89198; }
.terminal-bar span:nth-child(2) { background: #f4c267; }
.terminal-bar span:nth-child(3) { background: #70cb99; }
.terminal-bar strong { margin-left: auto; color: #8fa0c1; font-size: .6875rem; font-weight: 600; letter-spacing: .24em; }
.terminal pre { margin: 20px 0 0; padding: 0; overflow: visible; color: #26334e; font-size: .875rem; line-height: 1.75rem; tab-size: 2; }
.terminal-line { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal-output { margin-top: 1.75rem; }
.code-highlight { color: #354fdc; }
.code-result { color: #227652; }
.section-block { padding-block: 64px; scroll-margin-top: 24px; }
.section-head { margin-bottom: 30px; }
.section-head h2 { font-size: 2.74rem; margin-top: 14px; font-weight: 600; letter-spacing: -.06em; line-height: 1.04; text-wrap: balance; }
.features .section-head h2 { margin-top: 0; font-size: 2.25rem; }
#tokens .section-head { max-width: 1120px; margin-inline: auto; text-align: center; }
.centered { text-align: center; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 208px)); justify-content: center; gap: 20px clamp(28px, 5.8vw, 84px); margin: 36px auto 0; }
.card { background: var(--card); border: 1px solid #e9edf4; border-radius: 22px; padding: 22px; min-width: 0; box-shadow: var(--shadow); }
.card p { margin-top: 8px; }
.steps .card { position: relative; min-height: 184px; padding: 15px; border-color: #141e3a0d; background: #ffffffa3; box-shadow: 0 18px 44px #28365c0f; }
.steps .card:not(:last-child)::after { content: "»"; position: absolute; left: 100%; width: clamp(28px, 5.8vw, 84px); top: 50%; transform: translateY(-50%); text-align: center; color: #c4d0e5; font-size: 2.15rem; line-height: 1; }
.steps h3 { min-height: 2.4em; font-size: 1rem; line-height: 1.2; font-weight: 600; margin-top: 16px; letter-spacing: -.04em; }
.steps p { font-size: .8125rem; line-height: 20px; }
.step-number { color: #a8b6d1; font-size: .78rem; font-weight: 500; letter-spacing: .22em; }
.privacy-panel { max-width: 896px; min-height: 255px; margin: 37px auto 0; padding: 24px 28px; border: 0; background: #ffffffd6; box-shadow: 0 20px 46px #0f172a0f; border-radius: 30px; }
.privacy-panel .eyebrow { margin: 0; }
.privacy-panel h3 { margin-top: 16px; font-size: 2rem; line-height: 1.2; font-weight: 600; letter-spacing: -.06em; }
.privacy-panel > p:not(.eyebrow) { margin-top: 12px; font-size: .9375rem; line-height: 1.75rem; }
.privacy-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.privacy-chips span { color: #63718e; border: 1px solid #141e3a0f; background: #ffffffc2; box-shadow: 0 8px 24px #212f5908; border-radius: 999px; padding: 8px 14px; font-size: .875rem; line-height: 1.15; }
.token-plans { max-width: 980px; margin-inline: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; min-height: 375px; padding: 24px; border-radius: 30px; border-color: #ffffffe6; background: linear-gradient(135deg, #f8f9fb, #fff 50%, #f3f5f8); box-shadow: 0 18px 36px #94a3b814; }
.plan.featured { background: linear-gradient(135deg, #f5f8ff, #fff 46%, #edf3ff); border-color: #c0d2ffb8; }
.plan:last-child { background: linear-gradient(135deg, #fbf8f1, #fff 48%, #f9f3e7); border-color: #e6d4abb8; }
.plan h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; margin-top: 20px; }
.plan > p { min-height: 3.5em; font-size: 1rem; line-height: 1.75; }
.plan ul { color: #526075; padding-left: 18px; margin: 12px 0 24px; line-height: 1.75; }
.plan .button { margin-top: auto; width: 100%; min-height: 48px; color: white; font-size: 1rem; font-weight: 500; border: 0; background: #0b0f1a; }
.plan.featured .button { background: var(--accent); }
.faq-grid {
  position: relative;
  isolation: isolate;
  width: min(1760px, calc(100% - 64px));
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: start;
  gap: 32px;
}
.faq-grid::before {
  content: "";
  position: absolute;
  inset: 0 -24px 0;
  z-index: -1;
  background: radial-gradient(ellipse at 74% 0, #fcf7dfb0, transparent 66%);
}
.faq-grid .eyebrow { color: #8095b7; letter-spacing: .18em; }
.faq-grid .section-head h2 { max-width: 620px; margin-top: 14px; font-size: 2.74rem; letter-spacing: -.06em; text-wrap: pretty; }
.faq-list { display: grid; gap: 16px; }
.faq-list details { overflow: hidden; overflow-anchor: none; border: 1px solid #ffffffcc; border-radius: 28px; background: #ffffffe0; box-shadow: 0 14px 38px #0f172a0a; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none; min-height: 82px; padding: 20px 24px; font-weight: 600; font-size: 1.125rem; line-height: 1.3; letter-spacing: -.03em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-chevron { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; color: var(--accent); background: #f2f5fb; transition: transform 200ms ease, background-color 200ms ease; }
.faq-chevron svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.faq-list summary[aria-expanded="true"] .faq-chevron, .faq-list details[open]:not([data-animating]) .faq-chevron { transform: rotate(180deg); }
.faq-list details p { padding: 0 24px 22px; font-size: .875rem; line-height: 1.75rem; }
.site-footer { padding: 24px 0 72px; font-size: .94rem; line-height: 1.6; color: #8593b2; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; }
.footer-credit { margin-top: 18px; color: inherit; text-align: center; font-size: .8125rem; }

.auth-shell { padding-block: clamp(58px, 8vw, 105px) 60px; }
.auth-shell > h1 { text-align: center; margin-bottom: 36px; font-size: clamp(2.1rem, 5vw, 3.25rem); line-height: 1.08; letter-spacing: -.068em; }
.auth-card { width: min(100%, 430px); margin-inline: auto; text-align: center; padding: 20px; }
.auth-card .button { width: 100%; margin-top: 13px; min-height: 49px; }
.password-form { display: grid; text-align: left; }
.password-form label { color: var(--muted); margin-bottom: 9px; }
.password-form .field + label { margin-top: 17px; }
.field { position: relative; }
.field svg { position: absolute; width: 17px; height: 17px; top: 50%; left: 15px; transform: translateY(-50%); stroke: var(--accent); stroke-width: 1.7; fill: none; stroke-linecap: round; }
.field input { padding-left: 47px; min-height: 50px; border-radius: 16px; background: #ffffffb3; }
.password-form .primary { margin-top: 54px; }
.auth-card .switch-auth { margin-top: 13px; font-size: .9rem; }
.switch-auth a { color: #344dd8; }
.switch-auth a:hover {text-decoration: underline; }
.verify-code { font: 700 1.4rem Consolas, monospace; letter-spacing: .24em; padding: 14px; margin-top: 14px; border: 1px dashed #94a5d1; border-radius: 10px; }

.notice { padding: 12px 16px; border-radius: 11px; border: 1px solid var(--line); margin: 14px auto 0; background: #eef2ff; }
.notice p { margin: 0 0 6px; color: inherit; }
.notice.success { color: #17644b; border-color: #a9dac8; background: #e8f8f0; }
.notice.error { color: #972b36; border-color: #efc4cd; background: #fff1f3; }

input { transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
input:focus { outline: none; border-color: #8b9cff; box-shadow: none; }
.auth-card { box-shadow: 0 24px 70px #2a39600f; border-color: #e4eaf4; }
.auth-shell { min-height: 660px; }
.auth-shell > h1 { min-height: 1.08em; }
.auth-card .switch-auth { min-height: 1.62em; }

@media (max-width: 1279px) {
  .float-chip { display: none; }
}
@media (max-width: 1023px) {
  .header-inner.has-marketing-nav { display: flex; }
  .header-inner .marketing-nav { display: none; }
  .hero { padding-block: 128px 48px; }
  .hero h1 { font-size: 3.75rem; line-height: 1; }
  .steps { max-width: 720px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .steps .card::after { display: none; }
  .steps h3 { min-height: 1.2em; }
  .section-block { padding-block: 48px; }
  .faq-grid .section-head h2, .section-head h2 { font-size: 2.25rem; }
}
@media (max-width: 767px) {
  .token-plans, .faq-grid { grid-template-columns: 1fr; }
  .faq-grid { gap: 0; }
  .token-plans { max-width: 520px; }
  .plan { min-height: 330px; }
}
@media (max-width: 639px) {
  .shell { width: calc(100% - 28px); }
  .site-header { padding-top: 16px; }
  .header-inner { min-height: 58px; gap: 6px; padding: 9px 10px; }
  .brand { font-size: 1.15rem; gap: 5px; }
  .brand img { width: 25px; height: 25px; }
  .header-actions { gap: 4px; }
  .button.header-button { min-width: 122px; min-height: 34px; font-size: .72rem; padding-inline: 10px; }
  .locale { padding: 2px; }
  .locale a { min-width: 25px; height: 26px; font-size: .62rem; padding-inline: 4px; }
  .header-inner:has(form) { flex-wrap: wrap; border-radius: 19px; }
  .header-inner .main-nav { order: 3; flex-basis: 100%; justify-content: center; padding-block: 5px; gap: 14px; }
  .header-inner .marketing-nav { display: none; }
  .hero { padding-block: 104px 48px; }
  .hero h1 { min-block-size: 3lh; font-size: clamp(2.25rem, 11.8vw, 3rem); line-height: 1; }
  .hero-sticker { margin-right: 4px; padding: 6px 16px; font-size: .54em; }
  .hero p { min-height: 3lh; margin-top: 28px; font-size: 1rem; line-height: 2; }
  .hero .primary { width: 100%; max-width: 340px; }
  .client-list { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px; margin-top: 32px; }
  .client-list span { justify-content: flex-start; min-height: 44px; padding: 9px 14px; font-size: .875rem; }
  .client-list img { width: 22px; height: 22px; flex-basis: 22px; }
  .terminal { margin-top: 64px; min-height: 227px; padding: 18px; }
  .terminal pre { padding: 0; font-size: .75rem; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
  .section-head h2, .faq-grid .section-head h2 { font-size: 2rem; }
  .features .section-head h2 { font-size: 2rem; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps .card { min-height: 156px; padding: 20px; }
  .steps h3 { min-height: 0; font-size: 1.125rem; }
  .steps p { font-size: .875rem; line-height: 1.65; }
  .privacy-panel { padding: 24px; }
  .privacy-panel h3 { font-size: 1.75rem; }
  .privacy-chips { flex-direction: column; align-items: flex-start; }
  .faq-grid { width: calc(100% - 28px); gap: 0; padding-bottom: 32px; }
  .faq-grid::before { inset-inline: 0; }
  .faq-list summary { min-height: 70px; padding-inline: 16px; font-size: 1rem; }
  .faq-list details p { padding-inline: 16px; }

  .site-footer { padding-bottom: 36px; }
}
@media (max-width: 374px) {
  .header-inner { flex-wrap: wrap; border-radius: 24px; gap: 10px; }
  .brand { font-size: 1.1rem; }
  .header-actions { margin-left: auto; }
  .button.header-button { min-width: 112px; font-size: .67rem; padding-inline: 8px; }
  .locale a { min-width: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  
}

:root {
  --surface: #fff;
  --surface-soft: #f7f9fc;
  --focus: #3b57ff55;
  --page-background: #f9fbfe;
  --page-glow-left: #e8f1fd;
  --page-glow-right: #f0edfa;
}
body, .landing {
  background: radial-gradient(ellipse 46rem 32rem at 0 18rem, var(--page-glow-left), transparent 85%),
    radial-gradient(ellipse 42rem 34rem at 100% 22rem, var(--page-glow-right), transparent 85%),
    var(--page-background);
}

html:has(dialog[open]) { overflow: hidden; }

::selection { background: #778cff30; color: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 3px;
}
.theme-toggle { position: relative; display: inline-flex; align-items: center; justify-content: space-between; flex-shrink: 0; width: 66px; height: 34px; padding: 7px; border: 1px solid var(--line); border-radius: 999px; background: #f0f2f7; color: var(--muted); cursor: pointer; }
.theme-toggle::before { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #0f172a14; transition: transform 240ms cubic-bezier(.22,1,.36,1), background-color 240ms ease; }
.theme-toggle svg { position: relative; z-index: 1; display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .theme-sun { color: #394ac0; }
.header-theme { margin-inline: 4px 6px; }

[data-theme="dark"] {
  color-scheme: dark;
  --text: #f1f1f1;
  --muted: #a5a5a5;
  --line: #343434;
  --accent: #8091ff;
  --card: #1b1b1b;
  --surface: #1b1b1b;
  --surface-soft: #252525;
  --focus: #8b9bff77;
  --shadow: 0 16px 48px #00000022;
  --page-background: #101010;
}
[data-theme="dark"] body, [data-theme="dark"] .landing {
  color: var(--text);
  background: var(--page-background);
}

[data-theme="dark"] .theme-toggle { background: #191a1e; }
[data-theme="dark"] .theme-toggle::before { background: #35373e; transform: translateX(30px); }
[data-theme="dark"] .theme-toggle .theme-sun { color: #7e828e; }
[data-theme="dark"] .theme-toggle .theme-moon { color: #e7e9f1; }
[data-theme="dark"] .header-inner { background: #1b1b1bf5; border-color: var(--line); box-shadow: 0 8px 30px #00000014; }
[data-theme="dark"] .card, [data-theme="dark"] .steps .card, [data-theme="dark"] .privacy-panel, [data-theme="dark"] .faq-list details, [data-theme="dark"] .auth-card { background: var(--surface); border-color: var(--line); box-shadow: 0 12px 36px #00000018; }

[data-theme="dark"] .plan, [data-theme="dark"] .plan:last-child { background: #1b1b1b; border-color: var(--line); }
[data-theme="dark"] .plan.featured { background: #242424; border-color: #454545; }
[data-theme="dark"] .terminal { background: #1d1d1d; border-color: var(--line); box-shadow: 0 24px 70px #00000022; }
[data-theme="dark"] .terminal pre { color: #c9d3e5; }
[data-theme="dark"] .code-highlight, [data-theme="dark"] code { color: #a4b4ff; }
[data-theme="dark"] .code-result { color: #5cd6ad; }
[data-theme="dark"] .float-chip { background: #252525; color: #e2e2e2; box-shadow: 0 16px 44px #00000022; }
[data-theme="dark"] .client-list span, [data-theme="dark"] .privacy-chips span { background: #252525; border-color: var(--line); color: #d2d2d2; }
[data-theme="dark"] .client-list img { background: #eff3fa; border-radius: 5px; padding: 2px; }
[data-theme="dark"] .hero-sticker { background: #5d73f5; color: white; }
[data-theme="dark"] .locale { background: #0a0b0e; border-color: var(--line); }
[data-theme="dark"] .locale [aria-current] { background: #282a31; color: #dbe3ff; }
[data-theme="dark"] .main-nav, [data-theme="dark"] .main-nav a, [data-theme="dark"] .site-footer, [data-theme="dark"] .plan ul { color: var(--muted); }

[data-theme="dark"] .button.primary, [data-theme="dark"] .plan .button { background: #292b31; color: #f1f3f7; border: 1px solid #3b3d44; }
[data-theme="dark"] .button.header-button, [data-theme="dark"] .plan.featured .button { background: #5d73f5; color: #fff; }
[data-theme="dark"] .button.quiet, [data-theme="dark"] .button.telegram { background: #1c1e23; border-color: var(--line); color: #d3ddee; }
[data-theme="dark"] .button.telegram svg { color: #62b6ef; }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] .field input { color: var(--text); background: #0b0c0f; border-color: #303239; }
[data-theme="dark"] input::placeholder { color: #7d8da8; }
[data-theme="dark"] input:focus { border-color: #8091ff; box-shadow: none; }

[data-theme="dark"] .auth-card { padding: 26px; border-color: #333; background: #1b1b1b; }
[data-theme="dark"] .auth-card .password-form label { color: #c5c5c5; font-size: 14px; }
[data-theme="dark"] .auth-card .field input { min-height: 52px; border-radius: 12px; border-color: #3a3a3a; background: #242424; color: #f2f2f2; font-size: 16px; caret-color: #f2f2f2; }
[data-theme="dark"] .auth-card .field input::placeholder { color: #989898; }
[data-theme="dark"] .auth-card .field svg { stroke: #a4a4a4; pointer-events: none; }
[data-theme="dark"] .auth-card .field:focus-within svg { stroke: #9aa8ff; }
[data-theme="dark"] .auth-card .field input:focus-visible { border-color: #8090ff; box-shadow: 0 0 0 3px #3b57ff1a; }
[data-theme="dark"] .auth-card .field input:autofill { box-shadow: 0 0 0 1000px #242424 inset; -webkit-text-fill-color: #f2f2f2; }
[data-theme="dark"] .auth-card .field input:-webkit-autofill { box-shadow: 0 0 0 1000px #242424 inset; -webkit-text-fill-color: #f2f2f2; }
[data-theme="dark"] .auth-card .button { min-height: 50px; border-radius: 14px; font-size: 15px; font-weight: 650; }
[data-theme="dark"] .auth-card .button.primary { background: #3b57ff; border-color: #3b57ff; color: #fff; }
[data-theme="dark"] .auth-card .password-form .primary { margin-top: 28px; }
[data-theme="dark"] .auth-card .button.telegram, [data-theme="dark"] .auth-card .button.quiet { background: #252525; border-color: #3b3b3b; color: #ededed; }
[data-theme="dark"] .auth-card .switch-auth { color: #b1b1b1; margin-block: 18px 5px; }
[data-theme="dark"] .auth-card .switch-auth a { color: #a4b0ff; }
@media (max-width: 479px) {
  [data-theme="dark"] .auth-card { padding: 22px 20px; }
}
[data-theme="dark"] .faq-chevron { background: #24262d; color: #a3b2ff; }
[data-theme="dark"] .faq-grid::before { background: none; }
[data-theme="dark"] .eyebrow, [data-theme="dark"] .step-number { color: #91a0bc; }

[data-theme="dark"] .notice.error { background: #34212c; color: #f1b1be; border-color: #5e3546; }
[data-theme="dark"] .notice.success { background: #19372e; color: #8edbbd; border-color: #305e4f; }
[data-theme="dark"] .notice { background: #26304c; border-color: var(--line); }

[data-theme="dark"] th { color: #b2bfd3; }

@media (max-width: 639px) {
  .site-header .header-inner { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; border-radius: 24px; }
  .header-inner .header-actions { display: contents; }
  .header-theme { margin: 0 0 0 auto; }
  .header-inner .header-button { width: 100%; flex-basis: 100%; min-height: 38px; }
  .header-inner .theme-toggle { width: 58px; height: 32px; padding: 6px; }
  .header-inner .theme-toggle::before { width: 24px; height: 24px; }
  [data-theme="dark"] .header-inner .theme-toggle::before { transform: translateX(26px); }

}

/* Shared motion and document styles; landing-page design stays unchanged. */
input:autofill { box-shadow: 0 0 0 1000px var(--surface) inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); }
input:-webkit-autofill { box-shadow: 0 0 0 1000px var(--surface) inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); }
.document-page { background: var(--page-background); }
.document-layout { max-width: 980px; margin-block: 44px 72px; }
.document-back { display: inline-flex; margin-bottom: 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.public-document { min-width: 0; padding: 40px 48px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.document-heading { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.document-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.public-document h1 { max-width: 850px; margin: 0; color: var(--text); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.16; letter-spacing: -.05em; font-weight: 600; overflow-wrap: anywhere; }
.document-heading > p:last-child:not(.document-kicker):not(.document-version) { margin-top: 14px; font-size: 16px; }
.document-version { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.document-section { scroll-margin-top: 24px; }
.document-section + .document-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.public-document h2 { margin: 0 0 14px; font-size: 20px; font-weight: 600; line-height: 1.45; letter-spacing: -.025em; }
.document-section p, .document-section li { color: var(--muted); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.document-section p { margin-bottom: 14px; } .document-section p:last-child { margin-bottom: 0; }
.document-section ul { margin: 0 0 16px; padding-left: 24px; } .document-section li { margin-bottom: 6px; padding-left: 3px; }
.document-section li::marker { color: var(--accent); }
.public-document a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #3b57ff40; }
.document-contact { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }
.pricing-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin-block: 22px; }
.pricing-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.6; }
.pricing-table th, .pricing-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pricing-table thead { background: var(--surface-soft); color: var(--muted); }
.pricing-table thead th { font-size: 13px; font-weight: 500; }
.pricing-table tbody th { font-weight: 550; color: var(--text); }
.pricing-table tbody tr:last-child > * { border-bottom: 0; }
.pricing-table code { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.pricing-table .rate-positive { color: #178466; } .pricing-table .rate-negative { color: #c84b60; }
.public-document .pricing-note { font-size: 14px; }
@media (max-width: 767px) {
 .document-layout { width: calc(100% - 32px); margin-block: 28px 48px; }
 .public-document { padding: 26px 24px; border-radius: 20px; }
 .document-heading { margin-bottom: 24px; padding-bottom: 24px; }
 .public-document h1 { font-size: 32px; } .public-document h2 { font-size: 19px; }
 .document-section p, .document-section li { font-size: 15px; line-height: 1.8; }
 .pricing-table th, .pricing-table td { padding: 12px; }
 .pricing-table { min-width: 560px; }
}
@media (max-width: 389px) {
 .public-document { padding: 24px 18px; }
 .public-document h1 { font-size: 28px; }
 .document-kicker { font-size: 12px; }
}

input:focus-visible, select:focus-visible { outline: 0; border-color: var(--accent); box-shadow: none; }
