/* Яра · сайт-вкладки · стиль окна программы: почти чёрный графит, голубой неон,
   острые углы, стеклянные карточки. Компоновка по образцу приложения:
   слева талисман, по центру текст и быстрые кнопки, справа блок с CTA.
   Шрифты локально (OFL): Manrope — текст, Jost — заголовки и капитель.
   Тема: тёмная по умолчанию, светлая — по prefers-color-scheme. */

@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap;
  src: url(fonts/manrope-cyr.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap;
  src: url(fonts/manrope-lat.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-weight: 100 900; font-display: swap;
  src: url(fonts/jost-cyr.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Jost'; font-weight: 100 900; font-display: swap;
  src: url(fonts/jost-lat.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg0: #060709;
  --bg1: #101318;
  --ink: #eef2f5;
  --muted: #96a0ab;
  --accent: #4ed7ee;
  --accent-ink: #04222b;
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(78, 215, 238, 0.38);
  --glow: rgba(78, 215, 238, 0.30);
  --header-bg: rgba(10, 12, 15, 0.82);
  --btn2-bg: rgba(78, 215, 238, 0.10);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg0: #dfe5ea;
    --bg1: #eef1f5;
    --ink: #12181e;
    --muted: #55626e;
    --accent: #0794b8;
    --accent-ink: #ffffff;
    --card: rgba(255, 255, 255, 0.65);
    --line: rgba(7, 90, 115, 0.18);
    --line-strong: rgba(7, 90, 115, 0.40);
    --glow: rgba(7, 148, 184, 0.20);
    --header-bg: rgba(238, 241, 245, 0.85);
    --btn2-bg: rgba(7, 148, 184, 0.10);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg0);
  color: var(--ink);
  font: 15.5px/1.6 'Manrope', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding: clamp(10px, 2.4vw, 36px);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- «окно программы» ---------- */
.shell {
  max-width: 1240px;
  margin: 0 auto;
  background: radial-gradient(800px 360px at 72% -6%, var(--glow), transparent 62%), linear-gradient(180deg, var(--bg1), var(--bg0) 78%);
  border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
  padding: 0 clamp(18px, 3.6vw, 52px) clamp(16px, 2.6vw, 30px);
}
.shell > header { margin: 0 calc(clamp(18px, 3.6vw, 52px) * -1); padding: 0 clamp(14px, 2.2vw, 28px); }
.shell > footer { margin: clamp(22px, 3vw, 40px) calc(clamp(18px, 3.6vw, 52px) * -1) 0; padding: 20px clamp(18px, 3.6vw, 52px) 6px; }

h1, h2, h3, .cap { font-family: 'Jost', 'Manrope', sans-serif; }
.cap { text-transform: uppercase; letter-spacing: 0.22em; font-weight: 500; }

/* ---------- шапка-вкладки ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 22px; height: 66px; max-width: 1160px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.brand .mark { height: 54px; width: auto; display: block; filter: drop-shadow(0 0 10px var(--glow)); }
.brand .bt { display: grid; line-height: 1.2; }
.brand .bt b { font-family: 'Jost'; font-weight: 600; font-size: 17px; letter-spacing: 0.06em; }
.brand .bt small { font-family: 'Jost'; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.nav .links { display: flex; gap: 4px; margin-left: auto; }
.nav .links a {
  color: var(--muted); font-size: 14px; padding: 20px 12px 16px;
  border-bottom: 2px solid transparent;
}
.nav .links a:hover { color: var(--ink); text-decoration: none; }
.nav .links a.active { color: var(--ink); border-bottom-color: var(--accent); }
.nav .links a.tg { display: inline-flex; align-items: center; gap: 7px; padding: 20px 10px 16px; }
.nav .links a.tg svg { width: 20px; height: 20px; fill: var(--accent); }
.nav .links a.tg span { display: none; }
.nav .links a.tg:hover svg { filter: drop-shadow(0 0 6px var(--glow)); }
.btn {
  display: inline-block; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent);
  padding: 10px 18px; border-radius: 0;
  font: 600 14.5px/1 'Jost', sans-serif; letter-spacing: 0.02em;
  text-decoration: none; text-align: center;
  box-shadow: 0 0 16px var(--glow);
  transition: filter 0.15s;
}
.btn:hover { filter: brightness(1.12); text-decoration: none; }
.btn.ghost { background: var(--btn2-bg); color: var(--accent); border: 1px solid var(--line-strong); box-shadow: none; }
.btn.small { padding: 8px 14px; font-size: 13.5px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--accent); width: 40px; height: 40px; cursor: pointer; font-size: 17px; line-height: 1; }

/* стрелки листания вкладок по краям экрана */
.page-arrows { position: fixed; z-index: 60; top: 50%; transform: translateY(-50%); left: 10px; right: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.page-arrows a, .page-arrows span {
  pointer-events: auto;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--card); border: 1px solid var(--line-strong);
  color: var(--accent); font-size: 26px; line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 16px var(--glow);
  font-family: 'Jost', sans-serif;
}
.page-arrows a:hover { filter: brightness(1.2); text-decoration: none; }
.page-arrows span.off { opacity: 0.25; box-shadow: none; border-color: var(--line); pointer-events: none; }

/* ---------- герой ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: clamp(16px, 2.6vw, 40px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 48px) 0 clamp(18px, 2.4vw, 32px);
}
.hc { color: var(--accent); font-size: 10.5px; display: block; margin-bottom: 12px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 58px); font-weight: 600; line-height: 1.04; }
.hero h1 .neon { color: var(--accent); text-shadow: 0 0 24px var(--glow); }
.hero-l p { color: var(--muted); font-size: 14.5px; margin: 14px 0 18px; max-width: 34ch; }
.hero-r .rs { font-size: clamp(18px, 1.9vw, 24px); font-weight: 600; line-height: 1.25; margin-bottom: 10px; }
.hero-r p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.hero-r .note { color: var(--muted); font-size: 11.5px; margin: 12px 0 0; font-family: 'Jost'; letter-spacing: 0.08em; text-transform: uppercase; }

/* талисман: левитация + пульс свечения + смена образов (кроссфейд в JS) */
.robot { position: relative; text-align: center; min-width: 0; max-width: 100%; }
.robot .halo {
  position: absolute; left: 14%; right: 14%; top: 10%; bottom: 6%;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  animation: glowpulse 4.5s ease-in-out infinite;
}
.robot .poses { position: relative; display: inline-block; width: min(100%, 280px); animation: floaty 7s ease-in-out infinite; }
.robot .pose { display: block; width: 100%; height: auto; opacity: 0; transition: opacity 0.45s ease; filter: drop-shadow(0 0 30px var(--glow)); }
.robot .pose.show { opacity: 1; }
.robot .pose.b { position: absolute; inset: 0; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes glowpulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .robot .poses, .robot .halo { animation: none; }
  .robot .pose.b { transition: none; }
}

/* ---------- секции ---------- */
section { padding: clamp(20px, 2.8vw, 36px) 0 0; }
.shead { margin-bottom: 20px; max-width: 780px; }
.shead .cap { color: var(--accent); font-size: 11px; display: block; margin-bottom: 10px; }
.shead h2 { font-size: clamp(22px, 2.8vw, 32px); font-weight: 600; line-height: 1.14; }
.shead p { color: var(--muted); margin-top: 8px; }

.glass {
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px 20px;
  position: relative;
}
.glass::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* возможности: компактная сетка 2-3 колонки */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.feat .fimg { height: 104px; width: auto; display: block; margin-bottom: 10px; }
.feat h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.tag {
  display: inline-block; padding: 2px 9px;
  border: 1px solid var(--line-strong); color: var(--accent);
  font-family: 'Jost'; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
}
.tag.soon { color: var(--muted); border-color: var(--line); }

/* как это работает */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.step .n { font-family: 'Jost'; font-size: 36px; font-weight: 200; color: var(--accent); line-height: 1; }
.step h3 { font-size: 17px; font-weight: 600; margin: 10px 0 6px; }
.step p { color: var(--muted); font-size: 13.5px; }

/* приватность */
.priv { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.priv .glass h3 { font-size: 16px; font-weight: 600; }
.priv .glass p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.priv .glass b { color: var(--ink); }
.priv .wide { grid-column: 1 / -1; border: 1px dashed var(--line-strong); background: none; backdrop-filter: none; }
.priv .wide::before { display: none; }

/* тариф */
/* тариф: три карточки в ряд */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; align-items: start; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pack { text-align: center; padding: 20px; }
.pack .price { font-size: 26px; }
.plan { padding: 24px 26px; }
.plan .cap { color: var(--accent); font-size: 11px; }
.plan .price { font-family: 'Jost'; font-size: 32px; font-weight: 600; margin: 10px 0 2px; }
.plan .per { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.plan ul { list-style: none; display: grid; gap: 8px; margin-bottom: 18px; }
.plan li { color: var(--muted); font-size: 13.5px; padding-left: 20px; position: relative; }
.plan li::before { content: '◆'; position: absolute; left: 0; color: var(--accent); font-size: 9px; top: 4px; }
.plan .seats { margin-top: 14px; color: var(--muted); font-size: 13px; }
.plan .seats b { color: var(--accent); }

/* faq: компактно в 2-3 столбика */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; align-items: start; }
.faq details { border: 1px solid var(--line); background: var(--card); }
.faq summary {
  cursor: pointer; list-style: none; padding: 13px 16px;
  font-family: 'Jost'; font-weight: 600; font-size: 15px;
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 19px; font-weight: 400; flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 16px 13px; color: var(--muted); font-size: 13.5px; }

/* заявка и регистрация */
.apply-box { max-width: 620px; }
.auth { display: flex; gap: 0; margin-bottom: -1px; }
.auth button {
  background: none; border: 1px solid var(--line); border-bottom: none;
  color: var(--muted); cursor: pointer; padding: 11px 22px;
  font: 600 14.5px 'Jost', sans-serif;
}
.auth button.on { color: var(--accent); border-color: var(--line-strong); background: var(--btn2-bg); }
.pane { display: none; }
.pane.on { display: block; }
form.apply { display: grid; gap: 12px; padding: 20px 22px; grid-template-columns: minmax(0, 1fr); }
label { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
input[type=text], input[type=email], input[type=password], textarea {
  background: var(--bg0); color: var(--ink);
  border: 1px solid var(--line); border-radius: 0;
  padding: 10px 13px; font: inherit; width: 100%; min-width: 0;
}
input:focus, textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
textarea { min-height: 64px; resize: vertical; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.check { display: block; position: relative; padding-left: 24px; font-size: 12.5px; color: var(--muted); }
.check input { position: absolute; left: 0; top: 3px; margin: 0; accent-color: var(--accent); }
.form-msg { display: none; padding: 10px 14px; border: 1px solid var(--line-strong); color: var(--accent); font-size: 13.5px; background: var(--btn2-bg); }

/* cta-полоса */
.cta-strip { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-strip p { color: var(--muted); font-size: 14px; }
.cta-strip .cap { color: var(--accent); font-size: 11px; }

/* подвал */
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; max-width: 1160px; margin: 0 auto; }
.foot .fbrand { display: grid; gap: 6px; max-width: 300px; }
.foot .fbrand p { font-size: 12.5px; }
.foot nav { display: grid; gap: 7px; }
.foot nav a { color: var(--muted); }
.foot nav a:hover { color: var(--accent); }
.foot .contacts { display: grid; gap: 7px; }
.foot .fright { margin-left: auto; display: grid; gap: 14px; justify-items: end; text-align: right; }
.foot .fright nav { display: grid; gap: 7px; justify-items: end; }
.legal { margin-top: 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; max-width: 1160px; margin-left: auto; margin-right: auto; }
.legal a { color: var(--muted); }
.legal a:hover { color: var(--accent); }

/* ---------- документ-страницы (оферта, политика) ---------- */
.docwrap {
  max-width: 800px; margin: clamp(14px, 3vw, 36px) auto;
  background: linear-gradient(180deg, var(--bg1), var(--bg0) 80%);
  border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
  padding: 26px clamp(18px, 3.4vw, 44px) 30px;
}
.docwrap h1 { font-size: clamp(22px, 3.4vw, 32px); font-weight: 600; line-height: 1.22; margin: 18px 0 8px; }
.docwrap .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.warn { border: 1px dashed var(--line-strong); padding: 13px 16px; color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.warn b { color: var(--ink); }
.docsec { margin-bottom: 12px; padding: 16px 18px; overflow-wrap: anywhere; }
.docsec h2 { color: var(--accent); font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.docsec p { font-size: 14px; margin-bottom: 7px; }
.docsec p:last-child { margin-bottom: 0; }
.docsec ol, .docsec ul { padding-left: 20px; display: grid; gap: 5px; font-size: 14px; }
.docwrap footer { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 14px; color: var(--muted); font-size: 13px; display: grid; gap: 5px; }
.docwrap footer a { color: var(--muted); }
.docwrap footer a:hover { color: var(--accent); }

/* ---------- адаптив ---------- */
@media (max-width: 1200px) {
  /* на средних ширинах робот меньше — не наезжает на текст справа */
  .robot .poses { width: min(100%, 235px); }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .robot { order: 1; }
  .robot .poses { width: min(46vw, 260px); }
  .hero-l { order: 2; }
  .hero-r { order: 3; }
}
@media (max-width: 900px) {
  .nav { gap: 12px; }
  .nav .links a { font-size: 12.5px; padding: 19px 8px 14px; }
  .nav > .btn { display: none; }
}
@media (max-width: 760px) {
  .nav .links {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--header-bg); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 6px 20px 14px;
  }
  .nav .links.open { display: flex; }
  .nav .links a { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav .links a:last-child { border-bottom: none; }
  .nav .links a.tg { display: inline-flex; padding: 12px 0; }
  .nav .links a.tg span { display: inline; font-size: 15px; color: var(--muted); }
  .burger { display: block; }
  .hero { padding-top: 24px; }
  .robot .poses { width: min(44vw, 200px); }
  .row2 { grid-template-columns: minmax(0, 1fr); }
}
