/* Единая дизайн-система сайта: главная, /telemost и юридические страницы.
   Раньше стили главной жили инлайном в index.html — вынесены сюда, чтобы
   страницы не расходились по виду и файл кешировался между переходами.
   style.css остаётся для payment/success и payment/fail, пока они не переведены. */

:root {
    --bg: #0a0d0b;
    --bg-soft: #0f1411;
    --surface: rgba(255,255,255,0.045);
    --surface-hover: rgba(255,255,255,0.07);
    --border: rgba(255,255,255,0.09);
    --green: #38b86b;
    --green-dark: #168344;
    --green-soft: rgba(56,184,107,0.14);
    --orange: #ff7a1a;
    --white: #ffffff;
    --ink: #111827;
    --ink-soft: #6b7280;
    --line: #e5e7eb;
    --light: #ffffff;
    --light-alt: #f7f9f8;
    --red-orange: #f05a47;
    --radius-lg: 26px;
    --radius-md: 16px;
    --container: 1240px;
    --ease-out: cubic-bezier(.16,1,.3,1);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--white); line-height: 1.5; -webkit-font-smoothing: antialiased; }
  a { font-family: inherit; }
  .wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
  svg { display: block; }

  /* Reveal utility */
  .reveal { opacity: 0; transform: translateY(18px); }
  .reveal.in { animation: revealUp .6s var(--ease-out) forwards; }
  @keyframes revealUp { to { opacity: 1; transform: translateY(0); } }
  .reveal-scale { opacity: 0; transform: scale(.96) translateY(10px); }
  .reveal-scale.in { animation: revealScale .5s ease-out forwards; }
  @keyframes revealScale { to { opacity: 1; transform: scale(1) translateY(0); } }
  .reveal-fade { opacity: 0; }
  .reveal-fade.in { animation: revealFade .7s ease-out forwards; }
  @keyframes revealFade { to { opacity: 1; } }

  /* Buttons */
  .btn-primary { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #06120c; padding: 15px 30px; border-radius: 12px; font-size: 15px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: transform .2s, box-shadow .2s; }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(56,184,107,0.25); }
  .btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
  .btn-ghost { color: rgba(255,255,255,0.7); font-size: 15px; text-decoration: none; padding: 12px 18px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 12px; transition: border-color .2s, color .2s; }
  .btn-ghost:hover { border-color: rgba(255,255,255,0.3); color: var(--white); }

  /* Nav */
  nav { position: sticky; top: 0; padding: env(safe-area-inset-top) 24px 0; background: rgba(10,13,11,0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); z-index: 100; transform: translateZ(0); }
  .nav-inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 0; }
  .logo { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; color: var(--white); text-decoration: none; }
  .logo-dot { width: 26px; height: 26px; border-radius: 9px; background: linear-gradient(135deg, var(--green), var(--green-dark)); flex-shrink: 0; }
  .nav-links { display: flex; gap: 28px; align-items: center; margin-left: auto; margin-right: 20px; }
  .nav-links a { text-decoration: none; color: rgba(255,255,255,0.6); font-size: 14px; transition: color .2s; }
  .nav-links a:hover { color: var(--white); }
  .nav-right { display: flex; align-items: center; gap: 12px; }
  .btn-nav { background: var(--green); color: #06120c !important; padding: 9px 18px; border-radius: 9px; font-weight: 700; font-size: 13px !important; text-decoration: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
  .btn-nav-alt { color: rgba(255,255,255,0.85); padding: 9px 18px; border-radius: 9px; font-weight: 600; font-size: 13px; text-decoration: none; border: 1px solid rgba(255,255,255,0.18); display: inline-flex; align-items: center; transition: border-color .2s, background .2s, color .2s; }
  .btn-nav-alt:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); color: #fff; }
  .hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
  .hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.8); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  @media (max-width: 860px) {
    nav { padding: env(safe-area-inset-top) 20px 0; }
    .nav-inner { padding: 14px 0; }
    .hamburger { display: flex; }
    .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 12px; margin-left: 0; margin-right: 0; order: 1; flex-basis: 100%; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; font-size: 15px; width: 100%; }
  }

  /* ============ HERO ============ */
  .hero { position: relative; padding: 42px 24px 60px; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
  .hero-glow { position: absolute; top: -20%; right: -10%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(56,184,107,0.20) 0%, rgba(56,184,107,0) 70%); pointer-events: none; }
  .hero-glow-2 { position: absolute; bottom: -20%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,122,26,0.08) 0%, rgba(255,122,26,0) 70%); pointer-events: none; }
  .hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: var(--container); margin: 0 auto; width: 100%; }
  .hero-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--green-soft); color: var(--green); padding: 7px 15px; border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 24px; }
  .hero h1 { font-size: 50px; font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 20px; }
  .hero h1 .accent { color: var(--green); }
  .hero p.sub { font-size: 17px; color: rgba(255,255,255,0.62); max-width: 460px; margin-bottom: 32px; }
  .hero-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
  .hero-feature { display: flex; align-items: flex-start; gap: 12px; }
  .hero-feature .icn { width: 34px; height: 34px; border-radius: 9px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .hero-feature strong { display: block; font-size: 14px; font-weight: 700; color: var(--white); }
  .hero-feature span { font-size: 13px; color: rgba(255,255,255,0.5); }
  .hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
  @media (max-width: 640px) {
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta > .cta-drop { width: 100%; }
    .hero-cta > .cta-drop > .btn-primary { width: 100%; justify-content: center; }
    .hero-cta > .btn-ghost { width: 100%; justify-content: center; }
  }
  .hero-note { font-size: 13px; color: rgba(255,255,255,0.4); }

  /* Dropdown: choose Telegram or MAX */
  .cta-drop { position: relative; display: inline-flex; }
  .cta-drop > .btn-primary, .cta-drop > .btn-nav { font-family: inherit; }
  .cta-drop .chev { transition: transform .2s; }
  .cta-drop.open .chev { transform: rotate(180deg); }
  .cta-drop-menu { position: absolute; top: 0; left: calc(100% + 12px); min-width: 200px; display: flex; flex-direction: column; gap: 6px; background: rgba(15,20,17,0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; padding: 10px; opacity: 0; visibility: hidden; transform: translateX(-6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 60; box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
  .cta-drop.open .cta-drop-menu { opacity: 1; visibility: visible; transform: translateX(0); }
  .cta-drop-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 11px; color: white; text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 600; transition: background .15s; }
  .cta-drop-item:hover { background: rgba(255,255,255,0.1); }
  @media (max-width: 640px) {
    .cta-drop-menu { left: 0; right: 0; top: calc(100% + 10px); min-width: 0; transform: translateY(-6px); }
    .cta-drop.open .cta-drop-menu { transform: translateY(0); }
    .cta-drop-item { justify-content: center; }
  }

  /* Hero illustration */
  .hero-illu { position: relative; }
  .call-window { position: relative; background: #101512; border: 1px solid var(--border); border-radius: 20px; padding: 16px; box-shadow: 0 40px 90px rgba(0,0,0,0.5); }
  .call-topbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
  .call-dot { width: 10px; height: 10px; border-radius: 50%; }
  .call-topbar .label { margin-left: 8px; font-size: 12px; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 6px; }
  .call-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .call-tile { position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; display: flex; align-items: flex-end; padding: 8px; }
  .call-tile span.name { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.9); background: rgba(0,0,0,0.35); padding: 2px 7px; border-radius: 100px; }
  .call-tile .avatar-init { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: rgba(255,255,255,0.35); }
  .call-controls { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
  .call-controls .ctl { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); }
  .call-controls .ctl.end { background: #e5484d; color: white; }

  .protocol-float { position: absolute; top: -6%; right: -14%; width: 250px; background: #101512; border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: 0 30px 70px rgba(0,0,0,0.5); animation: floatY 5s ease-in-out infinite; }
  .protocol-float .ph { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--green); margin-bottom: 10px; }
  .protocol-float .pdot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
  .protocol-float .pline { height: 6px; border-radius: 4px; background: rgba(255,255,255,0.08); margin-bottom: 7px; }
  .protocol-float .pline.w60 { width: 60%; }
  .protocol-float .pline.w85 { width: 85%; }
  .protocol-float .pline.w45 { width: 45%; }

  .sent-float { position: absolute; bottom: 4%; right: -18%; display: flex; flex-direction: column; gap: 8px; animation: floatY 6s ease-in-out infinite; animation-delay: .4s; }
  .sent-chip { display: flex; align-items: center; gap: 8px; background: #101512; border: 1px solid var(--border); border-radius: 12px; padding: 9px 13px; box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
  .sent-chip .txt { font-size: 12px; }
  .sent-chip .txt b { display: block; font-size: 12.5px; }
  .sent-chip .txt small { color: rgba(255,255,255,0.45); font-size: 10.5px; }
  .sent-check { color: var(--green); margin-left: 4px; }
  @keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  .flow-line { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
  .flow-line path { stroke-dasharray: 6 320; stroke-dashoffset: 320; animation: drawLine 2.2s var(--ease-out) forwards; animation-delay: .5s; }
  @keyframes drawLine { to { stroke-dashoffset: 0; } }

  @media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 60px; }
    .hero h1 { font-size: 38px; }
    .protocol-float, .sent-float { display: none; }
    .hero-illu { width: 100%; }
  }

  /* ============ LIGHT SECTION BASE ============ */
  .light-section { background: var(--light); color: var(--ink); padding: 110px 24px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  /* flex-колонка + margin:0 auto у детей = сжатие по содержимому вместо заполнения колонки.
     Заметно это только на узких экранах, где карточки визуально не дотягивались до краёв,
     поэтому ширину задаём явно только там — на десктопе раскладка остаётся прежней. */
  @media (max-width: 900px) { .light-section > * { width: 100%; } }
  @media (max-width: 900px) { .light-section { min-height: 0; padding: 72px 20px; } }
  .light-section.alt { background: var(--light-alt); }
  .section-head { text-align: center; margin-bottom: 60px; }
  .section-head h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; }
  .section-head h2 .accent { color: var(--green); }
  .section-head p { font-size: 16px; color: var(--ink-soft); }

  /* ============ TRANSFORMATION ============ */
  .transform-section { max-width: var(--container); margin: 0 auto; }
  .transform-cards { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0 20px; align-items: stretch; }
  .t-col { display: flex; flex-direction: column; }
  .t-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: 0 16px 50px rgba(17,24,39,0.06); display: flex; flex-direction: column; flex: 1; transition: transform .22s, box-shadow .22s; }
  .t-card:hover { transform: translateY(-4px); box-shadow: 0 22px 60px rgba(17,24,39,0.10); }
  .t-badge-wrap { text-align: center; margin-bottom: 16px; }
  .t-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; background: #eef0ef; color: var(--ink-soft); }
  .t-badge.on { background: var(--green-soft); color: var(--green-dark); }
  .t-arrow { display: flex; align-items: center; justify-content: center; color: var(--green); }
  .t-arrow-icon { display: flex; }

  .t-head { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 18px; }
  .t-head .icn { color: var(--green); }
  .t-timer { font-size: 40px; font-weight: 800; margin-bottom: 14px; }
  .wave { display: flex; align-items: center; gap: 2px; height: 34px; margin-bottom: 18px; }
  .wave span { flex: 1; min-width: 2px; background: #d7dcd9; border-radius: 2px; }
  .player { display: flex; align-items: center; gap: 10px; background: var(--light-alt); border-radius: 12px; padding: 10px 12px; margin-bottom: 22px; }
  .player .play { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .player .track { flex: 1; height: 4px; border-radius: 4px; background: #dfe3e1; position: relative; }
  .player .track .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: var(--ink); border-radius: 4px; }
  .player .track .fill::after { content: ""; position: absolute; right: -4px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
  .player .time { font-size: 11px; color: var(--ink-soft); flex-shrink: 0; }
  .t-problems { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
  .t-problem { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink); }
  .t-problem .icn { color: var(--red-orange); flex-shrink: 0; }

  .t-meta { font-size: 12.5px; color: var(--ink-soft); margin: -10px 0 18px; }
  .t-sec { margin-bottom: 14px; }
  .t-sec-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
  .t-sec-title .icn { color: var(--green); }
  .t-line { height: 7px; border-radius: 4px; background: #e9ebe9; margin-bottom: 6px; }
  .t-line.w80 { width: 80%; } .t-line.w60 { width: 60%; } .t-line.w70 { width: 70%; } .t-line.w50 { width: 50%; }
  .t-step-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
  .t-step-row .t-line { flex: 1; margin-bottom: 0; }
  .t-tag { font-size: 10.5px; font-weight: 700; color: var(--orange); background: #fef1e3; padding: 3px 9px; border-radius: 100px; white-space: nowrap; }

  .t-sent-box { display: flex; flex-direction: column; gap: 14px; height: 100%; justify-content: center; }
  .t-sent-item { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--light-alt); }
  .t-sent-item .glyph { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .t-sent-item .info b { display: block; font-size: 14px; font-weight: 700; }
  .t-sent-item .info .status { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--green-dark); font-weight: 600; margin-top: 2px; }

  @media (max-width: 980px) {
    .transform-cards { grid-template-columns: 1fr; gap: 20px; }
    .t-arrow { padding: 4px 0; }
    .t-arrow-icon { transform: rotate(90deg); }
    .section-head h2 { font-size: 30px; }
  }

  /* ============ HOW IT WORKS ============ */
  .how-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--container); margin: 0 auto; align-items: stretch; }
  .how-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 16px 50px rgba(17,24,39,0.06); display: flex; flex-direction: column; transition: transform .22s, box-shadow .22s; }
  .how-card:hover { transform: translateY(-4px); box-shadow: 0 22px 60px rgba(17,24,39,0.10); }
  .how-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-soft); color: var(--green-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
  .how-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; min-height: 46px; }
  .how-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 20px; }
  .how-card p a { color: var(--green-dark); font-weight: 600; }
  .how-bottom { margin-top: auto; }
  .store-pill { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--light-alt); text-decoration: none; transition: border-color .2s, transform .15s; }
  .store-pill:hover { border-color: #c9cfcb; transform: translateY(-1px); }
  .store-pill .stxt { flex: 1; }
  .store-pill .stxt small { display: block; font-size: 10px; color: var(--ink-soft); }
  .store-pill .stxt b { font-size: 14px; color: var(--ink); }
  .msg-pills { display: flex; flex-direction: column; gap: 10px; }
  .msg-pill { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .15s; }
  .msg-pill:hover { border-color: #c9cfcb; transform: translateY(-1px); }
  .msg-pill b { flex: 1; font-size: 14px; }
  .msg-pill .chev { color: var(--ink-soft); }
  @media (max-width: 900px) { .how-cards { grid-template-columns: 1fr; } .how-card h3 { min-height: 0; } }

  /* ============ PRICING ============ */
  .price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--container); margin: 0 auto 32px; align-items: stretch; }
  .price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: 0 16px 50px rgba(17,24,39,0.06); display: flex; flex-direction: column; position: relative; transition: transform .22s, box-shadow .22s; }
  .price-card:hover { transform: translateY(-4px); box-shadow: 0 22px 60px rgba(17,24,39,0.10); }
  .price-card.popular { border: 2px solid var(--green); }
  .popular-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--green); color: #06120c; padding: 5px 16px; border-radius: 100px; font-size: 12px; font-weight: 700; white-space: nowrap; }
  .price-name { font-size: 12px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
  .price-amount { font-size: 36px; font-weight: 800; margin-bottom: 4px; }
  .price-amount span { font-size: 15px; color: var(--ink-soft); font-weight: 400; }
  .price-desc { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 20px; }
  .price-features { list-style: none; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); flex: 1; }
  .price-features li { font-size: 14px; color: var(--ink); padding: 6px 0; display: flex; align-items: center; gap: 9px; }
  .price-features li .icn { color: var(--green); flex-shrink: 0; }
  .price-buttons { display: flex; flex-direction: column; gap: 10px; }
  .btn-login { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--light-alt); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s, transform .15s; width: 100%; }
  .btn-login:hover { border-color: #c9cfcb; transform: translateY(-1px); }
  .btn-login span.label { flex: 1; text-align: left; }
  .btn-login .chev { color: var(--ink-soft); }

  .trial-pill { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; padding: 10px 20px; border-radius: 100px; background: var(--green-soft); border: 1px solid rgba(56,184,107,0.28); color: var(--green-dark); font-size: 14px; font-weight: 600; }
  .trial-pill svg { flex-shrink: 0; }
  @media (max-width: 560px) { .trial-pill { font-size: 13px; padding: 10px 16px; text-align: left; } }
  .price-legal { text-align: center; font-size: 13px; color: var(--ink-soft); max-width: 640px; margin: 0 auto 32px; }
  .price-legal a { color: var(--green-dark); font-weight: 600; }

  .enterprise-cta { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, #0a0d0b, #10201a); border: 1px solid rgba(56,184,107,0.25); border-radius: 22px; padding: 30px 36px; text-decoration: none; box-shadow: 0 20px 60px rgba(0,0,0,0.15); transition: transform .2s, box-shadow .2s; }
  .enterprise-cta:hover { transform: translateY(-2px); }
  .enterprise-left { display: flex; align-items: center; gap: 18px; }
  .enterprise-icn { width: 52px; height: 52px; border-radius: 14px; background: rgba(56,184,107,0.15); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .enterprise-title { font-size: 17px; font-weight: 700; color: white; }
  .enterprise-sub { font-size: 13.5px; color: rgba(255,255,255,0.5); margin-top: 3px; }
  .enterprise-btn { background: var(--green); color: #06120c; padding: 13px 26px; border-radius: 11px; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
  @media (max-width: 900px) { .price-cards { grid-template-columns: 1fr; max-width: 460px; } }
  @media (max-width: 640px) { .price-cards { max-width: none; } }
  @media (max-width: 640px) { .enterprise-cta { flex-direction: column; align-items: flex-start; } .enterprise-btn { width: 100%; text-align: center; } }

  /* ============ REGISTER ============ */
  .register-section { display: none; padding: 100px 24px; background: linear-gradient(160deg, #0a0d0b, #0e1713); text-align: center; }
  .register-section h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
  .register-section .sub { color: rgba(255,255,255,0.55); font-size: 16px; margin-bottom: 36px; }
  .auth-form-box { max-width: 420px; margin: 0 auto; background: var(--white); color: var(--ink); border-radius: 20px; padding: 32px; transition: outline .2s; }
  .auth-form-box .lead { margin-bottom: 20px; color: #374151; font-size: 15px; }
  .btn-submit { width: 100%; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #06120c; padding: 14px; border-radius: 11px; font-size: 15px; font-weight: 700; border: none; cursor: pointer; margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 9px; transition: opacity .2s; }
  .btn-submit:disabled { opacity: .45; cursor: not-allowed; }
  .legal-hint { margin-top: 14px; font-size: 12px; color: #9ca3af; }
  .legal-hint a { color: var(--green-dark); }
  .max-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); text-align: left; }
  .max-note p { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
  .max-note a { color: var(--green-dark); font-weight: 600; font-size: 14px; }
  .max-note code { background: #f3f4f6; padding: 1px 6px; border-radius: 4px; }

  /* ============ FAQ ============ */
  .faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
  .faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
  .faq-q { width: 100%; padding: 19px 22px; font-size: 15px; font-weight: 700; font-family: inherit; color: var(--ink); cursor: pointer; background: none; border: none; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .faq-q .plus { color: var(--green); font-size: 20px; flex-shrink: 0; transition: transform .2s; }
  .faq-item.open .faq-q .plus { transform: rotate(45deg); }
  .faq-a { max-height: 0; overflow: hidden; padding: 0 22px; font-size: 14px; color: #374151; line-height: 1.7; transition: max-height .25s ease, padding .25s ease; }
  .faq-item.open .faq-a { max-height: 400px; padding: 0 22px 20px; }

  /* ============ FOOTER ============ */
  footer { background: var(--bg); color: rgba(255,255,255,0.5); padding: 48px 24px; font-size: 14px; border-top: 1px solid var(--border); }
  .footer-inner { max-width: 920px; margin: 0 auto; }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
  .footer-logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; color: white; margin-bottom: 10px; }
  .footer-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6; }
  .footer-requisites { font-size: 12px; color: rgba(255,255,255,0.28); line-height: 1.8; margin-top: 12px; }
  .footer-col h4 { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
  .footer-col a { display: block; color: rgba(255,255,255,0.45); text-decoration: none; font-size: 13px; margin-bottom: 8px; }
  .footer-col a:hover { color: rgba(255,255,255,0.8); }
  .footer-bottom { border-top: 1px solid var(--border); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.3); }
  @media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

  /* Cookie banner */
  #cookieBanner { position: fixed; bottom: 0; left: 0; right: 0; background: #101512; color: rgba(255,255,255,0.7); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 999; font-size: 13px; flex-wrap: wrap; box-shadow: 0 -4px 20px rgba(0,0,0,0.3); border-top: 1px solid var(--border); }
  #cookieBanner a { color: var(--green); }
  .cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
  .btn-cookie-req { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 12px; }
  .btn-cookie-all { background: var(--green); color: #06120c; padding: 7px 16px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700; border: none; }

  /* Change plan modal (reused logic) */
  #changePlanModal .modal-box { background: white; color: var(--ink); border-radius: 18px; padding: 32px 28px; max-width: 420px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }

  /* Logged-in state (built via safe DOM methods, not innerHTML) */
  .loggedin-box { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ── Блоки страницы /telemost ─────────────────────────────────────────── */
/* У неё длинный текстовый интро вместо иллюстрации, поэтому hero в одну колонку. */
.hero--centered { text-align: center; }
.hero-narrow { position: relative; max-width: 860px; margin: 0 auto; width: 100%; }
.hero--centered .hero-cta { justify-content: center; }
.hero-intro { margin-bottom: 32px; text-align: left; }
.hero-intro p { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.62); margin-bottom: 14px; }
.hero-intro strong { color: rgba(255,255,255,0.92); font-weight: 600; }

.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 18px; }
.prose p { font-size: 16.5px; line-height: 1.75; color: #374151; margin-bottom: 14px; }
@media (max-width: 640px) { .prose h2 { font-size: 24px; } .prose p { font-size: 15px; } }

.demo-wrap { max-width: 720px; margin: 0 auto; }
.t-item { font-size: 14px; color: #374151; line-height: 1.6; padding: 4px 0 4px 16px; position: relative; margin: 0; }
.t-item::before { content: ""; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

/* ── Контент юридических страниц ──────────────────────────────────────── */
/* Базовый body в дизайн-системе тёмный (главная), а текстовые страницы светлые —
   поэтому они помечаются классом на <body>, иначе тёмный текст лёг бы на тёмный фон. */
body.legal-page { background: var(--light); color: var(--ink); }
.legal-content { max-width: 800px; margin: 0 auto; padding: 72px 24px 96px; }
.legal-content h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; }
.legal-content .updated { font-size: 14px; color: var(--ink-soft); margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-content h2 { font-size: 20px; font-weight: 700; margin: 40px 0 12px; color: var(--ink); }
.legal-content h3 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; color: var(--ink); }
.legal-content p, .legal-content li { font-size: 16px; color: #374151; line-height: 1.75; margin-bottom: 12px; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin-bottom: 16px; }
.legal-content li::marker { color: var(--green); }
.legal-content strong { color: var(--ink); font-weight: 700; }
.legal-content a { color: var(--green-dark); font-weight: 600; }
.legal-content .requisites {
  background: var(--light-alt); border: 1px solid var(--line); border-radius: 20px;
  padding: 24px 28px; margin-top: 44px; font-size: 15px; color: #374151; line-height: 1.8;
}
@media (max-width: 640px) {
  .legal-content { padding: 44px 20px 72px; }
  .legal-content h1 { font-size: 30px; }
  .legal-content h2 { font-size: 18px; }
  .legal-content p, .legal-content li { font-size: 15px; }
}

/* ── Подвал ──────────────────────────────────────────────────────────── */
footer { background: var(--bg); color: rgba(255,255,255,0.5); padding: 48px 24px; font-size: 14px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 920px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-logo { font-size: 18px; font-weight: 800; color: white; margin-bottom: 10px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6; }
.footer-requisites { font-size: 12px; color: rgba(255,255,255,0.28); line-height: 1.8; margin-top: 12px; }
.footer-col h4 { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.footer-col a { display: block; color: rgba(255,255,255,0.45); text-decoration: none; font-size: 13px; margin-bottom: 8px; }
.footer-col a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.3); }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
