/* ============================================================
   Биллинг ШПД — дизайн-система «Волна» v3 (world-class).
   Аврора-герой, display-типографика Sora, фактура-зерно, объёмные мокапы,
   bento-секции, тонкая анимация. Палитра teal + deep navy.
   ============================================================ */

:root {
  --ink:       #070f1d;
  --ink-2:     #0c1830;
  --body:      #38485e;
  --muted:     #7a8a9c;
  --line:      #e9eef4;
  --line-2:    #dde6ee;
  --bg:        #ffffff;
  --bg-2:      #f6f9fb;
  --bg-3:      #eef4f8;

  --brand:     #11b3a4;
  --brand-600: #0e9c8f;
  --brand-700: #0b8278;
  --brand-50:  #effcfa;
  --brand-100: #d2f5f0;
  --cyan:      #2ee6dd;
  --accent:    #7af2e8;
  --violet:    #6d8bff;

  --grad-brand: linear-gradient(135deg, #16c8b6 0%, #0b8278 100%);
  --grad-cta:   linear-gradient(120deg, #11b3a4, #2ee6dd 55%, #6d8bff);

  --shadow-xs: 0 1px 2px rgba(7,15,29,.05);
  --shadow-sm: 0 2px 8px rgba(7,15,29,.06);
  --shadow:    0 12px 34px rgba(7,15,29,.10);
  --shadow-lg: 0 36px 90px rgba(7,15,29,.26);
  --shadow-brand: 0 14px 40px rgba(17,179,164,.42);

  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-xl: 30px;
  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --display: "Sora", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--brand-700); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0 0 .5em; line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; }
h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.015em; }
p  { margin: 0 0 1rem; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.62; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-700);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--brand); border-radius: 2px; }
.eyebrow.light { color: var(--accent); }
.eyebrow.light::before { background: var(--accent); }
.gtext { background: var(--grad-cta); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  font-weight: 650; font-size: .98rem; line-height: 1; cursor: pointer; padding: .95rem 1.6rem;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 48px rgba(17,179,164,.5); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-700); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,.2); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.08rem 1.9rem; font-size: 1.05rem; }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 60; transition: .28s;
  background: rgba(7,15,29,0); border-bottom: 1px solid transparent; }
.site-header.solid { background: rgba(255,255,255,.8); backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--display); font-weight: 800; font-size: 1.34rem; letter-spacing: -.04em; color: var(--ink); }
.site-header:not(.solid) .brand { color: #fff; }
.brand .mark { width: 36px; height: 36px; flex: none; border-radius: 11px; box-shadow: var(--shadow-brand); }
.nav { display: flex; align-items: center; gap: 1.9rem; }
.navlink { font-weight: 500; font-size: .97rem; color: var(--body); }
.site-header:not(.solid) .navlink { color: rgba(255,255,255,.84); }
.navlink:hover { color: var(--brand); }
.site-header:not(.solid) .navlink:hover { color: #fff; }
.nav .phone { font-weight: 700; color: var(--ink); }
.site-header:not(.solid) .nav .phone { color: #fff; }
@media (max-width: 900px){ .nav .navlink, .nav .phone { display: none; } }

/* ---------- HERO (аврора) ---------- */
.hero { position: relative; overflow: hidden; color: #fff; margin-top: -78px; padding-top: 78px;
  background: radial-gradient(120% 120% at 50% -10%, #0c2036 0%, #070f1d 60%); isolation: isolate; }
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: -2; filter: blur(60px); opacity: .9; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: float 22s var(--ease) infinite alternate; }
.aurora i:nth-child(1){ width: 620px; height: 620px; left: 56%; top: -8%; background: radial-gradient(closest-side, rgba(46,230,221,.55), transparent); }
.aurora i:nth-child(2){ width: 560px; height: 560px; left: 2%;  top: 6%;  background: radial-gradient(closest-side, rgba(17,179,164,.5), transparent); animation-duration: 26s; }
.aurora i:nth-child(3){ width: 520px; height: 520px; left: 34%; top: 28%; background: radial-gradient(closest-side, rgba(109,139,255,.42), transparent); animation-duration: 30s; }
@keyframes float { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(40px,30px,0) scale(1.12); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 60px 60px; -webkit-mask-image: radial-gradient(900px 600px at 60% 10%, #000 25%, transparent 78%); mask-image: radial-gradient(900px 600px at 60% 10%, #000 25%, transparent 78%); }
.grain::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E"); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; padding: 92px 28px 116px; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.78); max-width: 33rem; margin-top: 1.2rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .42rem .85rem; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.9);
  font-size: .82rem; font-weight: 600; backdrop-filter: blur(6px); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(46,230,221,.2); }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-meta { display: flex; align-items: center; gap: 1rem; margin-top: 2.2rem; color: rgba(255,255,255,.66); font-size: .9rem; }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #0b1730; margin-left: -10px;
  background: var(--grad-brand); display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: #fff; font-family: var(--display); }
.avatars span:first-child { margin-left: 0; }
.stars { color: #ffd66b; letter-spacing: 2px; }
@media (max-width: 940px){ .hero .container { grid-template-columns: 1fr; padding: 64px 28px 84px; } .hero-art { display: none; } }

/* продуктовый мокап */
.hero-art { position: relative; perspective: 1400px; }
.mock { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px; padding: 22px; backdrop-filter: blur(16px); box-shadow: var(--shadow-lg); transform: rotateY(-9deg) rotateX(3deg); }
.mock-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mock-top .who { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 600; font-size: .92rem; }
.mock-top .who .ava { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-brand); }
.mock-top .pill { font-size: .72rem; font-weight: 700; padding: .28rem .6rem; border-radius: 999px; background: rgba(46,230,221,.18); color: var(--accent); }
.mock-balance { background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 18px; }
.mock-balance .l { color: rgba(255,255,255,.6); font-size: .8rem; }
.mock-balance .v { font-family: var(--display); color: #fff; font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.mock-chart { margin-top: 16px; }
.mock-chart svg { width: 100%; height: 76px; display: block; }
.mock-rows { margin-top: 14px; display: grid; gap: 8px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: rgba(255,255,255,.78); padding: 8px 10px; background: rgba(255,255,255,.05); border-radius: 10px; }
.mock-row b { color: #fff; font-weight: 600; }
.float-card { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: .9rem; }
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; }
.float-card small { display: block; color: var(--muted); font-weight: 500; font-size: .74rem; }
.float-card.a { right: -18px; top: 18%; animation: bob 6s var(--ease) infinite alternate; }
.float-card.b { left: -24px; bottom: 12%; animation: bob 7s var(--ease) infinite alternate-reverse; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-12px); } }

/* марки городов */
.marquee { overflow: hidden; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.02); }
.marquee .track { display: flex; gap: 3rem; padding: 18px 0; width: max-content; animation: scroll 32s linear infinite; }
.marquee span { color: rgba(255,255,255,.55); font-weight: 600; font-size: .95rem; white-space: nowrap; display: inline-flex; align-items: center; gap: .6rem; }
.marquee span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- секции ---------- */
.section { padding: 104px 0; }
.section.soft { background: var(--bg-2); }
.section.tight { padding: 76px 0; }
.section-head { max-width: 42rem; margin: 0 auto 60px; text-align: center; }
.section-head .eyebrow { justify-content: center; display: inline-flex; }
.section-head h2 { margin-top: .6rem; }
.section-head .lead { color: var(--muted); }

/* ---------- BENTO преимущества ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 20px; }
.bento .cell { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; transition: transform .25s var(--ease), box-shadow .25s; position: relative; overflow: hidden; }
.bento .cell:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.bento .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; margin-bottom: 18px; }
.bento .ic svg { width: 26px; height: 26px; }
.bento h3 { margin-bottom: .4rem; }
.bento p { color: var(--muted); font-size: .96rem; margin: 0; }
.bento .big { grid-column: span 2; grid-row: span 2; background: radial-gradient(120% 120% at 90% 0%, #0c2036, #070f1d); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.bento .big h3 { color: #fff; font-size: 1.7rem; }
.bento .big p { color: rgba(255,255,255,.74); max-width: 26rem; }
.bento .big .speed-viz { position: absolute; top: 28px; left: 30px; right: 30px; display: flex; gap: 8px; align-items: flex-end; height: 120px; opacity: .9; }
.bento .big .speed-viz i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(var(--cyan), var(--brand-700)); }
.bento .dark { background: radial-gradient(120% 120% at 0% 100%, #11362f, #0a1f1c); color: #fff; }
.bento .dark h3 { color: #fff; } .bento .dark p { color: rgba(255,255,255,.72); } .bento .dark .ic { background: rgba(46,230,221,.16); color: var(--accent); }
@media (max-width: 880px){ .bento { grid-template-columns: 1fr 1fr; } .bento .big { grid-column: span 2; grid-row: span 1; } }
@media (max-width: 560px){ .bento { grid-template-columns: 1fr; } .bento .big { grid-column: span 1; } }

/* ---------- тарифы ---------- */
.toggle { display: inline-flex; background: var(--bg-3); border-radius: 999px; padding: 5px; margin: 0 auto 36px; }
.toggle button { border: 0; background: transparent; padding: .55rem 1.2rem; border-radius: 999px; font: inherit; font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; transition: .2s; }
.toggle button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
.toggle .save { color: var(--brand-700); font-size: .78rem; margin-left: .3rem; }
.tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 26px; align-items: stretch; }
.tariff { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.tariff:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tariff.featured { border: 0; color: #fff; background: radial-gradient(130% 130% at 100% 0%, #0c2036, #070f1d); box-shadow: var(--shadow-lg); }
.tariff.featured .name, .tariff.featured .speed b, .tariff.featured .price .amt { color: #fff; }
.tariff.featured .speed span, .tariff.featured .price .per, .tariff.featured li { color: rgba(255,255,255,.8); }
.tariff.featured li .ck { background: rgba(46,230,221,.18); color: var(--accent); }
.tariff .tag { position: absolute; top: -13px; left: 34px; background: var(--grad-cta); color: #062e2a; font-size: .74rem; font-weight: 700; padding: .34rem .85rem; border-radius: 999px; box-shadow: var(--shadow-brand); }
.tariff .name { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.tariff .speed { display: flex; align-items: baseline; gap: .35rem; margin: .5rem 0 .2rem; }
.tariff .speed b { font-family: var(--display); font-size: 3.4rem; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.tariff .speed span { color: var(--muted); font-weight: 600; }
.tariff ul { list-style: none; padding: 0; margin: 1.4rem 0 1.7rem; display: grid; gap: .75rem; }
.tariff li { display: flex; gap: .6rem; align-items: flex-start; color: var(--body); font-size: .95rem; }
.tariff li .ck { flex: none; width: 21px; height: 21px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; margin-top: 1px; }
.tariff li .ck svg { width: 12px; height: 12px; }
.tariff .price { margin-top: auto; }
.tariff .price .amt { font-family: var(--display); font-size: 2.1rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.tariff .price .per { color: var(--muted); }

/* ---------- coverage band (с фото) ---------- */
.coverage { position: relative; border-radius: var(--r-xl); overflow: hidden; color: #fff; box-shadow: var(--shadow-lg);
  background: linear-gradient(120deg, rgba(7,15,29,.92), rgba(11,130,120,.7)), #0c2036;
  background-image: linear-gradient(120deg, rgba(7,15,29,.94), rgba(11,130,120,.55)), url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1600&q=70");
  background-size: cover; background-position: center; }
.coverage .inner { padding: 64px; max-width: 36rem; }
.coverage h2 { color: #fff; }
.coverage p { color: rgba(255,255,255,.82); }

/* ---------- app promo (телефон) ---------- */
.appsec { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.phone { width: 280px; height: 560px; margin: 0 auto; border-radius: 42px; background: #070f1d; border: 9px solid #0c1830; box-shadow: var(--shadow-lg); padding: 16px; position: relative; }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #0c1830; border-radius: 0 0 14px 14px; }
.phone .scr { height: 100%; border-radius: 28px; background: radial-gradient(120% 80% at 50% 0%, #0c2036, #070f1d); padding: 40px 18px 18px; color: #fff; }
.phone .scr .l { color: rgba(255,255,255,.6); font-size: .76rem; }
.phone .scr .v { font-family: var(--display); font-size: 2rem; font-weight: 800; }
.phone .scr .bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.12); margin: 14px 0; overflow: hidden; }
.phone .scr .bar i { display: block; height: 100%; width: 76%; background: linear-gradient(90deg, var(--brand), var(--cyan)); }
.phone .scr .mini { margin-top: 16px; display: grid; gap: 8px; }
.phone .scr .mini div { background: rgba(255,255,255,.06); border-radius: 10px; padding: 10px 12px; font-size: .8rem; color: rgba(255,255,255,.82); display: flex; justify-content: space-between; }
@media (max-width: 880px){ .appsec { grid-template-columns: 1fr; } }

/* ---------- отзывы ---------- */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-xs); }
.quote .stars { color: #ffc24b; letter-spacing: 2px; margin-bottom: 12px; }
.quote p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; }
.quote .who { display: flex; align-items: center; gap: .7rem; margin-top: 18px; }
.quote .who .ava { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.quote .who b { display: block; color: var(--ink); }
.quote .who span { color: var(--muted); font-size: .86rem; }
@media (max-width: 880px){ .quotes { grid-template-columns: 1fr; } }

/* ---------- шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.step .num { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; margin-bottom: 16px; font-size: 1.15rem; }
.step h3 { font-size: 1.05rem; } .step p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 860px){ .steps { grid-template-columns: repeat(2,1fr); gap: 30px; } }

/* ---------- бизнес split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split .panel { background: radial-gradient(120% 120% at 100% 0%, #0c2036, #070f1d); color: #fff; border-radius: var(--r-xl); padding: 46px; box-shadow: var(--shadow-lg); }
.split .panel h3 { color: #fff; font-size: 1.45rem; }
.split .panel ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .9rem; }
.split .panel li { display: flex; gap: .6rem; color: rgba(255,255,255,.86); }
.split .panel li svg { color: var(--accent); flex: none; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); padding: 2px 24px; margin-bottom: 14px; background: #fff; transition: .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 650; color: var(--ink); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.7rem; font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 72px; text-align: center; color: #fff;
  background: radial-gradient(120% 160% at 50% -30%, #11b3a4, #070f1d 62%); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; } .cta-band p { color: rgba(255,255,255,.8); max-width: 38rem; margin: 0 auto 1.9rem; }

/* ---------- футер ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 72px 0 38px; }
.site-footer .cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 34px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .about { color: rgba(255,255,255,.55); max-width: 22rem; font-size: .94rem; }
.site-footer strong { color: #fff; display: block; margin-bottom: 12px; font-size: .92rem; }
.site-footer a { color: rgba(255,255,255,.6); display: block; padding: .32rem 0; font-size: .94rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 24px; font-size: .85rem; color: rgba(255,255,255,.42); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px){ .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ [data-reveal]{opacity:1;transform:none;transition:none} .aurora i,.float-card,.marquee .track{animation:none!important} html{scroll-behavior:auto} }

/* ============================================================
   КАБИНЕТ
   ============================================================ */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; background: var(--bg-2); }
.side { background: var(--ink); color: rgba(255,255,255,.7); padding: 26px 18px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side .brand { color: #fff; padding: 0 10px 22px; }
.side nav { display: grid; gap: 4px; }
.side a { display: flex; align-items: center; gap: .7rem; padding: .74rem .9rem; border-radius: 12px; color: rgba(255,255,255,.72); font-weight: 500; font-size: .95rem; }
.side a svg { width: 19px; height: 19px; opacity: .85; }
.side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side a.active { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.side .who { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.6); font-size: .85rem; }
.side .who b { color: #fff; display: block; }
.app-main { padding: 38px 46px 74px; max-width: 1120px; }
.app-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.app-top h1 { font-family: var(--display); font-size: 1.85rem; margin: 0; }
@media (max-width: 820px){ .app { grid-template-columns: 1fr; } .side { position: static; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 20px; } .side nav, .side .who { display: none; } .app-main { padding: 24px 20px 60px; } }

.balance-hero { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 32px 36px; color: #fff;
  background: radial-gradient(130% 130% at 100% 0%, #0c2036, #070f1d); box-shadow: var(--shadow-lg); }
.balance-hero::after { content: ""; position: absolute; right: -50px; top: -50px; width: 260px; height: 260px; background: radial-gradient(closest-side, rgba(46,230,221,.4), transparent); }
.balance-hero .lbl { color: rgba(255,255,255,.66); font-size: .9rem; position: relative; z-index: 2; }
.balance-hero .amt { font-family: var(--display); font-size: 3.1rem; font-weight: 800; letter-spacing: -.03em; margin: .2rem 0 .1rem; position: relative; z-index: 2; }
.balance-hero .meta { display: flex; gap: 1rem; margin-top: 14px; position: relative; z-index: 2; flex-wrap: wrap; }
.balance-hero .meta .badge { background: rgba(255,255,255,.14); color: #fff; }
.balance-hero .meta .badge.ok { background: rgba(34,197,94,.24); color: #b8f5d6; }
.balance-hero .meta .badge.bad { background: rgba(239,68,68,.22); color: #ffc9c9; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 22px; }
@media (max-width: 760px){ .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-xs); margin-bottom: 22px; }
.card > h2 { font-family: var(--display); font-size: 1.12rem; margin: 0 0 1.1rem; display: flex; align-items: center; gap: .5rem; }
.card > h2 svg { color: var(--brand); width: 20px; height: 20px; }
.card .sub { color: var(--muted); font-size: .9rem; margin: -.6rem 0 1.1rem; }

.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-xs); }
.stat .lbl { color: var(--muted); font-size: .85rem; }
.stat .val { font-family: var(--display); font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin-top: .3rem; }
.stat .val.pos { color: #0f8a4d; } .stat .val.neg { color: #c43838; }

.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 650; padding: .3rem .7rem; border-radius: 999px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: #e6f7ee; color: #0f8a4d; } .badge.bad { background: #fdeaea; color: #c43838; } .badge.gray { background: #eef2f6; color: #5d6b7b; }

table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650; padding: 0 14px 12px; border-bottom: 1px solid var(--line); }
table.tbl td { padding: 14px; border-bottom: 1px solid var(--line); font-size: .94rem; color: var(--body); }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr { transition: background .15s; } table.tbl tbody tr:hover { background: var(--bg-2); }
table.tbl .pos { color: #0f8a4d; font-weight: 650; } table.tbl .neg { color: #c43838; font-weight: 650; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; color: var(--ink); margin-bottom: .4rem; font-weight: 550; }
input, select, textarea { width: 100%; padding: .82rem .9rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: .96rem; color: var(--ink); background: #fff; font-family: inherit; transition: .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(17,179,164,.14); }
textarea { resize: vertical; min-height: 96px; }
.page-title { font-family: var(--display); font-size: 1.8rem; margin: 0 0 1.2rem; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.chat-msg { max-width: 78%; padding: 12px 16px; border-radius: 14px; margin-bottom: 12px; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.chat-msg .meta { font-size: .76rem; color: var(--muted); margin-bottom: 4px; }
.chat-msg.them { background: #fff; border: 1px solid var(--line); }
.chat-msg.me { background: var(--brand-50); border: 1px solid var(--brand-100); margin-left: auto; }
.inline-form { display: flex; gap: .7rem; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin: 0; flex: 1; min-width: 140px; }

.msg { padding: .85rem 1.1rem; border-radius: var(--r-sm); margin-bottom: 16px; font-size: .94rem; border: 1px solid transparent; font-weight: 500; }
.msg.success { background: #e6f7ee; color: #0f8a4d; border-color: #bfe9cf; }
.msg.error   { background: #fdeaea; color: #c43838; border-color: #f3c4c4; }

/* ---------- ВХОД (сплит) ---------- */
.auth { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.auth-brand { position: relative; overflow: hidden; color: #fff; padding: 58px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 120% at 30% 10%, #0c2036, #070f1d 65%); }
.auth-brand .aurora { filter: blur(70px); opacity: .8; }
.auth-brand .inner { position: relative; z-index: 2; }
.auth-brand h2 { color: #fff; font-size: 2.2rem; max-width: 17rem; }
.auth-brand p { color: rgba(255,255,255,.74); max-width: 22rem; }
.auth-brand .points { display: grid; gap: .9rem; margin-top: 1.6rem; }
.auth-brand .points div { display: flex; gap: .6rem; color: rgba(255,255,255,.86); }
.auth-brand .points svg { color: var(--accent); flex: none; }
.auth-form { display: grid; place-items: center; padding: 40px; background: var(--bg-2); }
.auth-card { width: 100%; max-width: 410px; }
.auth-card h1 { font-family: var(--display); font-size: 1.8rem; }
.hint { font-size: .82rem; color: var(--muted); border-top: 1px dashed var(--line-2); margin-top: 20px; padding-top: 16px; line-height: 1.8; }
@media (max-width: 860px){ .auth { grid-template-columns: 1fr; } .auth-brand { display: none; } }
