/* ==========================================================================
   Сайт Aura — оформление.

   Задача: сайт читается как продолжение приложения, но без визуального шума.
   Токены те же, что в окне Aura (desktop/renderer/app.css): тёмный фон, акцент,
   который меняется на лету, «шёлковый» canvas и зерно. Дальше — минимализм:
   вместо коробок со стеклом тонкие линии, много воздуха, акцент только там,
   где он что-то значит.

   Страница статичная: ни сборки, ни внешних шрифтов, ни CDN.
   ========================================================================== */

:root {
  /* Акцент подставляется скриптом из палитры темы (как в приложении) */
  --accent: #ff3b52;
  --accent-text: #fff;
  --accent-soft: rgba(255, 59, 82, 0.14);

  --bg: #08080b;
  --text: #edeef6;
  --muted: #8b91a8;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.022);

  --radius: 12px;
  --radius-lg: 20px;

  /* Палитра «шёлка»: сюда её кладёт скрипт при смене темы, отсюда её берут
     и фон страницы, и живое окно приложения */
  --silk-a: 128, 22, 40;
  --silk-b: 96, 18, 52;
  --silk-c: 140, 30, 34;

  --wrap: 1140px;
  --nav: 64px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav) + 24px);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; }
p { margin: 0; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--accent-text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── фон ──────────────────────────────────────────────────────────────── */

/* «Шёлк» живёт в верхней части страницы, ниже уходит в спокойный тёмный фон:
   так первый экран остаётся живым, а контент читается без пёстрого фона */
#silk {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: blur(80px) saturate(1.15);
  opacity: 0.62;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* Затемнение: сверху — под шапку, ниже — чтобы фон не мешал тексту */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 8, 11, 0.6) 0%, rgba(8, 8, 11, 0) 12%),
    linear-gradient(180deg, rgba(8, 8, 11, 0) 6%, rgba(8, 8, 11, 0.66) 40%,
      rgba(8, 8, 11, 0.93) 68%, rgba(8, 8, 11, 0.97) 100%);
}

body.theme-mono #silk { filter: blur(80px) saturate(0); }
body.theme-marble #silk { filter: none; opacity: 0.4; }
body.theme-marble .vignette {
  background:
    linear-gradient(180deg, rgba(8, 8, 11, 0.5) 0%, rgba(8, 8, 11, 0) 12%),
    linear-gradient(180deg, rgba(8, 8, 11, 0) 6%, rgba(8, 8, 11, 0.78) 44%,
      rgba(8, 8, 11, 0.95) 70%, rgba(8, 8, 11, 0.98) 100%);
}

main, header, footer { position: relative; z-index: 2; }

/* ── каркас ───────────────────────────────────────────────────────────── */

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

.section { padding: 108px 0; }
.section--tight { padding: 76px 0; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.h2 {
  font-size: clamp(29px, 3.4vw, 43px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.lead {
  color: var(--muted);
  font-size: clamp(15.5px, 1.3vw, 17px);
  max-width: 58ch;
  margin-top: 18px;
  line-height: 1.62;
}

.head { max-width: 720px; margin-bottom: 56px; }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.head--center .lead { margin-left: auto; margin-right: auto; }

/* ── кнопки ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.12s, color 0.18s;
}

.btn:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.04); }
.btn:active { transform: scale(0.985); }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.btn--primary {
  background: #fff;
  border-color: transparent;
  color: #0c0d12;
  font-weight: 600;
}
.btn--primary:hover { background: rgba(255, 255, 255, 0.9); }

.btn--accent {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-text);
  font-weight: 600;
}
.btn--accent:hover { filter: brightness(1.08); }

.btn--big { padding: 14px 26px; font-size: 15.5px; }

/* ── знак Aura ────────────────────────────────────────────────────────── */

.mark { display: block; color: var(--accent); flex: none; }
.mark__glow { fill: currentColor; opacity: 0.14; animation: mark-breathe 4s ease-in-out infinite; }
.mark__ring { fill: none; stroke: currentColor; stroke-width: 1.7; opacity: 0.5; }
.mark__ring--tilt { stroke-width: 1.3; opacity: 0.3; }
.mark__orbit { transform-origin: 16px 16px; animation: mark-orbit 9s linear infinite; }
.mark__sat { fill: currentColor; }
.mark__core { fill: currentColor; }
.mark__shine { fill: #fff; opacity: 0.85; }

@keyframes mark-orbit { to { transform: rotate(360deg); } }
@keyframes mark-breathe {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.26; }
}

/* ── шапка ────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav);
  display: flex;
  align-items: center;
  background: rgba(8, 8, 11, 0.55);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: border-color 0.25s, background 0.25s;
}
.nav.is-scrolled { background: rgba(8, 8, 11, 0.82); border-bottom-color: var(--line); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__name { font-size: 15.5px; font-weight: 600; letter-spacing: 0.4px; }
.brand__mark { width: 22px; height: 22px; }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__link {
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.18s, background 0.18s;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); }

.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 14px; }

.themes { display: flex; align-items: center; gap: 6px; }

.theme-dot {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.theme-dot:hover { transform: scale(1.16); }
.theme-dot.is-active { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14); }

.nav__burger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}

/* На телефоне палитра переезжает в раскрытое меню */
.themes--menu { display: none; }

/* ── первый экран ─────────────────────────────────────────────────────── */

.hero { padding: 92px 0 0; text-align: center; }

.hero__badge {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0 auto 34px;
  font-size: 13px;
  color: var(--muted);
}
.hero__badge b { color: var(--text); font-weight: 500; }
.hero__badge i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok, #3fd08a);
  box-shadow: 0 0 0 4px rgba(63, 208, 138, 0.14);
}
.hero__badge span { color: rgba(255, 255, 255, 0.2); }

.hero__title {
  position: relative;
  display: inline-block;
  font-size: clamp(64px, 12vw, 138px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.hero__title .mark {
  position: absolute;
  top: 0.08em;
  right: -0.42em;
  width: 0.23em;
  height: 0.23em;
}

.hero__tagline {
  margin-top: 26px;
  font-size: clamp(17px, 2vw, 23px);
  color: var(--text);
  opacity: 0.94;
}

.hero__lead {
  margin: 18px auto 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 16.5px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; }

/* Кадр приложения: тонкая рамка, мягкое свечение акцента под ним */
.hero__stage { position: relative; margin-top: 72px; }
.hero__stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4%;
  width: 70%;
  height: 78%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-soft), rgba(0, 0, 0, 0) 76%);
  filter: blur(56px);
  z-index: -1;
}

.shot {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: rgba(10, 10, 13, 0.6);
  overflow: hidden;
}
.shot img { width: 100%; height: auto; }
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── возможности ──────────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 44px;
}

.feature { border-top: 1px solid var(--line); padding: 26px 0 34px; }
.feature__icon { color: var(--accent); margin-bottom: 16px; }
.feature__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature__title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature__text { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* Остальные умения — одной строкой: перечислять их карточками не нужно */
.more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.pill {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.pill b { color: var(--text); font-weight: 500; }

/* ── шаги ─────────────────────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 44px; }
.step { border-top: 1px solid var(--line); padding-top: 24px; }
.step__num { font-size: 12px; letter-spacing: 1.4px; color: var(--accent); }
.step__title { font-size: 18px; font-weight: 600; margin: 14px 0 8px; }
.step__text { color: var(--muted); font-size: 14.5px; }
.step__text b { color: var(--text); font-weight: 500; }

/* ── двухколоночные блоки ─────────────────────────────────────────────── */

.split { display: grid; grid-template-columns: 1fr 0.85fr; gap: 64px; align-items: center; }

/* ── внешний вид ──────────────────────────────────────────────────────── */

.theme-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.theme-card {
  padding: 7px 7px 0;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.theme-card:hover { background: var(--surface); transform: translateY(-2px); }
.theme-card.is-active { border-color: var(--line-strong); background: var(--surface); }

.theme-card__preview {
  width: 88px;
  height: 58px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.theme-card__preview span {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.theme-card__name {
  padding: 11px 2px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}
.theme-card.is-active .theme-card__name { color: var(--text); }
.theme-card__name small { display: none; }

/* ── демонстрация ─────────────────────────────────────────────────────── */

.split--demo { grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }

.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pill--btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.pill--btn svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
.pill--btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.pill--btn:disabled { opacity: 0.45; cursor: default; }

.demo-note { margin-top: 24px; font-size: 13px; color: var(--muted); max-width: 44ch; }

/* Окно повторяет приложение: шапка, реплики, состояние и поле ввода */
.demo-window {
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 9, 12, 0.74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.demo-window__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.demo-window__mark { width: 20px; height: 20px; color: var(--accent); transition: color 0.35s; }
.demo-window__name { font-size: 14px; font-weight: 600; }
.demo-window__buttons { margin-left: auto; display: flex; gap: 10px; color: var(--muted); }
.demo-window__buttons svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Состояние меняет цвет знака — как в самом приложении */
.demo-window[data-state="listening"] .demo-window__mark { color: #4c9bff; }
.demo-window[data-state="thinking"] .demo-window__mark { color: #ffa23a; }
.demo-window[data-state="speaking"] .demo-window__mark { color: #3fd08a; }
.demo-window[data-state="listening"] .demo-window__mark .mark__orbit { animation-duration: 3.4s; }
.demo-window[data-state="thinking"] .demo-window__mark .mark__orbit { animation-duration: 1.8s; }

.demo-window__body {
  padding: 20px 18px;
  min-height: 240px;
  max-height: 330px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.demo-window__empty { margin: auto; color: var(--muted); font-size: 14px; text-align: center; }

.demo-msg {
  max-width: 80%;
  padding: 11px 14px;
  border-radius: 15px;
  font-size: 14.5px;
  line-height: 1.5;
  animation: demo-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.demo-msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-text);
  border-bottom-right-radius: 5px;
}
.demo-msg--aura {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.demo-msg__act {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.demo-msg--aura .demo-msg__act b { color: var(--text); font-weight: 500; }

.demo-typing { display: inline-flex; gap: 4px; align-items: center; height: 12px; }
.demo-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: demo-blink 1.1s ease-in-out infinite; }
.demo-typing i:nth-child(2) { animation-delay: 0.15s; }
.demo-typing i:nth-child(3) { animation-delay: 0.3s; }

.demo-window__state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 20px 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.demo-window__status { display: inline-flex; align-items: center; gap: 8px; }
.demo-window__status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.demo-window[data-state="listening"] .demo-window__status { color: #4c9bff; }
.demo-window[data-state="thinking"] .demo-window__status { color: #ffa23a; }
.demo-window[data-state="speaking"] .demo-window__status { color: #3fd08a; }

.demo-wave { display: flex; align-items: flex-end; gap: 3px; height: 13px; margin-left: auto; opacity: 0; transition: opacity 0.25s; }
.demo-wave i { width: 2.5px; height: 5px; border-radius: 2px; background: #3fd08a; animation: demo-wave 0.9s ease-in-out infinite; }
.demo-wave i:nth-child(2) { animation-delay: 0.15s; }
.demo-wave i:nth-child(3) { animation-delay: 0.3s; }
.demo-wave i:nth-child(4) { animation-delay: 0.45s; }
.demo-window[data-state="speaking"] .demo-wave { opacity: 1; }

.demo-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 14px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s;
}
.demo-composer:focus-within { border-color: var(--line-strong); }
.demo-composer__field {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  padding: 9px 0;
}
.demo-composer__field::placeholder { color: var(--muted); }
.demo-composer__send {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0c0d12;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
}
.demo-composer__send:hover { background: #fff; }
.demo-composer__send:active { transform: scale(0.94); }
.demo-composer__send svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

@keyframes demo-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes demo-blink {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}
@keyframes demo-wave {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}

/* ── живое окно приложения в первом экране ───────────────────────────── */

/* Окно собрано из тех же элементов, что и настоящее: шапка, меню, погода,
   курс, имя, плеер и загрузка ПК. Все цвета — из переменных темы, поэтому
   при переключении темы оно перекрашивается вместе с сайтом. Палитру «шёлка»
   внутрь окна подставляет скрипт: --silk-a, --silk-b, --silk-c. */
.window {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(72% 82% at 20% 16%, rgba(var(--silk-a), 0.5), rgba(0, 0, 0, 0) 72%),
    radial-gradient(62% 72% at 84% 80%, rgba(var(--silk-c), 0.45), rgba(0, 0, 0, 0) 74%),
    radial-gradient(50% 60% at 50% 50%, rgba(var(--silk-b), 0.35), rgba(0, 0, 0, 0) 76%),
    rgba(9, 9, 12, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.window__mark { width: 21px; height: 21px; }
.window__name { font-size: 14.5px; font-weight: 600; letter-spacing: 0.3px; }
.window__buttons { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.window__btn {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: default;
}
.window__btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
button.window__btn { cursor: pointer; transition: color 0.18s, background 0.18s; }
button.window__btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.window__nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 14px 18px 0;
  font-size: 13.5px;
  color: var(--muted);
}
.window__tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px 10px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}
.window__tab svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.window__tab:hover { color: var(--text); }
.window__tab.is-active { color: var(--text); border-bottom-color: rgba(255, 255, 255, 0.5); }

.window__body { padding: 26px 26px 30px; }

/* Экраны окна: Главная, Команды, ИИ, Модель — переключаются как в приложении */
.window__screen { display: none; }
.window__screen.is-active { display: block; animation: screen-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
.window__screen.is-active[data-screen="home"] { display: grid; grid-template-columns: 190px 1fr 190px; gap: 28px; }

@keyframes screen-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

.window__side { display: flex; flex-direction: column; gap: 26px; font-size: 12.5px; color: var(--muted); }
.window__side--right { align-items: stretch; }

/* погода и курс — как на главной приложения */
.w-weather { display: flex; align-items: flex-start; gap: 12px; }
.w-weather svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--text); stroke-width: 1.4; stroke-linecap: round; opacity: 0.9; }
.w-weather b { display: block; font-size: 30px; font-weight: 500; color: var(--text); line-height: 1.1; letter-spacing: -0.02em; }
.w-weather span { display: block; }

.w-rates { display: flex; gap: 12px; }
.w-rates__mark { font-size: 22px; line-height: 1; color: var(--text); opacity: 0.85; }
.w-rates__label { letter-spacing: 1.2px; font-size: 10.5px; text-transform: uppercase; margin-bottom: 8px; }
.w-rates__row { display: flex; align-items: baseline; gap: 7px; margin-bottom: 5px; }
.w-rates__row > span { width: 30px; }
.w-rates__row b { color: var(--text); font-weight: 500; }
.w-rates__row i { font-style: normal; font-size: 11.5px; }
.w-rates__row .is-down { color: var(--danger, #ff5c7a); }
.w-rates__row .is-up { color: var(--ok, #3fd08a); }

/* центр: имя, кнопки, плеер */
.window__center { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.window__hero { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.window__logo {
  position: relative;
  display: inline-block;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.window__logo .mark { position: absolute; top: 0.06em; right: -0.42em; width: 0.23em; height: 0.23em; }
.window__tagline { font-size: 12.5px; color: var(--muted); }

.window__actions { display: flex; gap: 10px; margin-top: 8px; }
.window__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
}
.window__action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.window__action:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.window__action--primary { background: rgba(255, 255, 255, 0.95); border-color: transparent; color: #0c0d12; font-weight: 600; }
.window__action--primary:hover { background: #fff; }

/* плеер */
.window__player {
  width: 100%;
  max-width: 470px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px 14px;
  padding: 14px 16px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(12, 12, 16, 0.6);
}
.window__cover {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}
.window__cover svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.window__track { min-width: 0; text-align: left; }
.window__track b { display: block; font-size: 14px; font-weight: 600; }
.window__track span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.window__wave { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; height: 20px; }
.window__wave i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.13); transition: background 0.3s; }
.window__player.is-playing .window__wave i { background: var(--accent); animation: window-wave 0.9s ease-in-out infinite; }
.window__player.is-playing .window__wave i:nth-child(2n) { animation-delay: 0.14s; }
.window__player.is-playing .window__wave i:nth-child(3n) { animation-delay: 0.26s; }
.window__player.is-playing .window__wave i:nth-child(5n) { animation-delay: 0.38s; }

@keyframes window-wave {
  0%, 100% { height: 5px; opacity: 0.7; }
  50% { height: 18px; opacity: 1; }
}

.window__controls { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; }
.window__ctl {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text);
  opacity: 0.75;
  cursor: default;
}
.window__ctl svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.window__ctl svg.fill { fill: currentColor; stroke: none; }
button.window__ctl { cursor: pointer; transition: opacity 0.18s, background 0.18s; }
button.window__ctl:hover { opacity: 1; background: rgba(255, 255, 255, 0.07); }
.window__ctl--play {
  width: 42px; height: 42px;
  margin: 0 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0c0d12;
  opacity: 1;
}
.window__ctl--play svg { fill: currentColor; stroke: none; }
.window__ctl--play:hover { background: #fff; }
.window__ctl--play .window__icon-pause { display: none; }
.window__player.is-playing .window__ctl--play .window__icon-play { display: none; }
.window__player.is-playing .window__ctl--play .window__icon-pause { display: block; }

.window__volume { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.window__volume svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.window__slider {
  appearance: none;
  -webkit-appearance: none;
  width: 78px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}
.window__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 0;
  cursor: pointer;
}
.window__slider::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--accent); }

/* загрузка ПК */
.w-metric__head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.w-metric__head b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.w-metric__bar { height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.w-metric__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2, #ff8a5c));
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.window.is-live .w-metric__bar i { width: var(--value, 0%); }

.w-quick { display: flex; gap: 8px; margin-top: auto; justify-content: flex-end; position: relative; }
.w-quick button {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.w-quick button:hover, .w-quick button.is-open { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.07); }
.w-quick svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.w-quick button:first-child::after {
  content: "3";
  position: absolute;
  top: -5px; right: -5px;
  min-width: 15px; height: 15px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 9.5px;
  font-weight: 600;
}

/* Всплывающие панели у быстрых кнопок — как в приложении */
.w-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 214px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 10, 13, 0.97);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.55);
  display: none;
  text-align: left;
  z-index: 3;
}
.w-pop.is-open { display: block; animation: screen-in 0.2s ease both; }
.w-pop b { display: block; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; font-weight: 500; }
.w-pop span { display: block; font-size: 12.5px; color: var(--text); padding: 6px 0; border-top: 1px solid var(--line); }
.w-pop span:first-of-type { border-top: 0; }
.w-pop span i { font-style: normal; color: var(--muted); }

/* Экраны «Команды», «ИИ» и «Модель» */
.w-screen { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.w-screen__head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.w-screen__head b { font-size: 15.5px; font-weight: 600; }
.w-screen__head span { font-size: 12.5px; color: var(--muted); }

.w-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.w-row b { display: block; font-size: 14px; font-weight: 500; }
.w-row span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

.w-toggle {
  width: 36px; height: 20px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.w-toggle::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.w-toggle.is-on { background: var(--accent); }
.w-toggle.is-on::after { transform: translateX(16px); }

.w-engines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.w-engine {
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.w-engine b { display: block; font-size: 13.5px; font-weight: 500; }
.w-engine span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.w-engine:hover { border-color: var(--line-strong); }
.w-engine.is-picked { border-color: var(--accent); background: var(--accent-soft); }

.w-select {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.w-select__box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s;
}
.w-select__box:hover { border-color: var(--line-strong); }
.w-select__box i { font-style: normal; color: var(--muted); }

.w-models { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.w-model-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.w-model-card b { display: block; font-size: 13.5px; font-weight: 500; }
.w-model-card span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.w-model-card:hover { border-color: var(--line-strong); }
.w-model-card.is-picked { border-color: var(--accent); background: var(--accent-soft); }
.w-model-card__dot {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.w-model-card__dot svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.w-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 13.5px; }
.w-note { font-size: 12px; color: var(--muted); }

.window__hint {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.window__hint b { color: var(--text); font-weight: 500; }

/* ── обычный день ─────────────────────────────────────────────────────── */

.day-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.day-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
}
.day-card__time { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.day-card__quote { font-size: 15.5px; color: var(--text); }
.day-card__text { font-size: 14px; color: var(--muted); margin-top: auto; }
.day-card svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── аккаунт ──────────────────────────────────────────────────────────── */

.account { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.account__side { position: sticky; top: calc(var(--nav) + 30px); }

.tabs { display: flex; gap: 4px; margin-bottom: 26px; }
.tabs button {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.tabs button:hover { color: var(--text); }
.tabs button.is-active { border-color: var(--line-strong); background: var(--surface); color: var(--text); }

.form { display: flex; flex-direction: column; gap: 15px; max-width: 430px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; color: var(--muted); }
.field input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.18s;
}
.field input:focus { outline: none; border-color: var(--line-strong); }
.field__hint { font-size: 12px; color: var(--muted); }
.form__note { font-size: 13.5px; color: var(--muted); min-height: 20px; }
.form__note--bad { color: var(--danger, #ff5c7a); }
.form__note--ok { color: var(--ok, #3fd08a); }

.account-card { padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.022); }
.account-card + .account-card { margin-top: 16px; }
.account-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.account-card p { color: var(--muted); font-size: 14px; }

.token-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.account-plan { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.account-plan b { color: var(--text); font-weight: 500; }
.account-plan span { color: var(--text); }
.token {
  flex: 1;
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 13.5px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.account-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.account-list div { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.account-list b { color: var(--text); font-weight: 500; }
.account-list i { font-style: normal; color: var(--muted); min-width: 22px; }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.danger { border-color: rgba(255, 92, 122, 0.4); color: var(--danger, #ff5c7a); }
.danger:hover { border-color: var(--danger, #ff5c7a); background: rgba(255, 92, 122, 0.08); }

/* ── профиль ──────────────────────────────────────────────────────────── */

.profile {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 26px 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
}

.profile__avatar {
  width: 84px;
  height: 84px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2, #ff8a5c));
  color: var(--accent-text);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.profile__ident { flex: 1; min-width: 220px; }
.profile__name { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.profile__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.profile__meta b { color: var(--text); font-weight: 500; }
.profile__badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  color: var(--muted);
}
.profile__badge--dev { border-color: var(--accent); color: var(--accent); }

.profile__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.profile__rename { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.profile__rename input {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.profile__rename input:focus { outline: none; border-color: var(--line-strong); }

.profile__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.profile__grid .account-card { margin: 0; }
.profile__limit { font-size: 24px; font-weight: 600; color: var(--text); margin-top: 4px; }

.devices { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.devices li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.devices li:first-child { border-top: 0; padding-top: 0; }
.devices b { color: var(--text); font-weight: 500; }
.devices i { font-style: normal; font-size: 12.5px; }

.account-card--danger { margin-top: 16px; border-color: rgba(255, 92, 122, 0.28); }

/* ── безопасность ─────────────────────────────────────────────────────── */

.privacy { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }

.privacy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.privacy__item { background: #0b0b0f; padding: 26px; }
.privacy__item svg { width: 20px; height: 20px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.privacy__item b { display: block; font-size: 15.5px; margin-bottom: 6px; }
.privacy__item span { color: var(--muted); font-size: 14px; }

/* ── что нового ───────────────────────────────────────────────────────── */

.news { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.release__version { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.release__date { color: var(--muted); font-size: 14px; margin-top: 10px; }
.release__badge {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  color: var(--text);
}

.changes { display: flex; flex-direction: column; }
.change { display: flex; gap: 16px; border-top: 1px solid var(--line); padding: 18px 0; }
.change i {
  width: 6px; height: 6px;
  margin-top: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}
.change div { color: var(--muted); font-size: 15px; }
.change b { color: var(--text); font-weight: 600; }

/* ── скачать ──────────────────────────────────────────────────────────── */

.download {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  padding: 64px 48px;
  text-align: center;
  overflow: hidden;
}
.download::before {
  content: "";
  position: absolute;
  left: 50%; top: -30%;
  width: 62%; height: 110%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-soft), rgba(0, 0, 0, 0) 72%);
  filter: blur(60px);
  pointer-events: none;
}
.download > * { position: relative; }
.download__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.download__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 44px auto 0;
  max-width: 720px;
  text-align: left;
}
.download__cell { border-top: 1px solid var(--line); padding-top: 16px; }
.download__cell b { display: block; font-size: 15.5px; }
.download__cell span { color: var(--muted); font-size: 13px; }

/* ── вопросы ──────────────────────────────────────────────────────────── */

.faq { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 2px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
}
.faq__q:hover { color: #fff; }
.faq__q svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); transition: transform 0.25s, color 0.25s; }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); color: var(--accent); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq__a p { padding: 0 48px 22px 2px; color: var(--muted); font-size: 14.5px; }

/* ── подвал ───────────────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--line); padding: 56px 0 44px; margin-top: 40px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer__brand { max-width: 300px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 16px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 64px; }
.footer__col h4 { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
.footer__col a { display: block; padding: 5px 0; color: var(--text); opacity: 0.75; font-size: 14.5px; }
.footer__col a:hover { opacity: 1; color: var(--accent); }
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

/* ── появление при прокрутке ──────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── страница «Что нового» ────────────────────────────────────────────── */

.doc { padding: 72px 0 40px; }
.doc__head { max-width: 720px; margin-bottom: 56px; }

.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--line) 22%, var(--line));
}
.version { position: relative; padding-bottom: 48px; }
.version::before {
  content: "";
  position: absolute;
  left: -32px; top: 8px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.version:not(:first-child)::before { border-color: var(--line-strong); }
.version__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.version__num { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.version__date { color: var(--muted); font-size: 13.5px; }
.version__title { color: var(--muted); font-size: 15px; margin-top: 8px; }
.version ul { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; max-width: 76ch; }
.version li { position: relative; padding-left: 20px; color: var(--muted); font-size: 15px; }
.version li::before {
  content: "";
  position: absolute;
  left: 2px; top: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}
.version li b { color: var(--text); font-weight: 600; }
.version--old li { font-size: 14.5px; }

.note {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14.5px;
}

/* ── адаптив ──────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .split, .privacy, .faq, .news { grid-template-columns: 1fr; gap: 40px; }
  .split--demo { grid-template-columns: 1fr; gap: 34px; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 0 36px; }
  .steps { gap: 0 32px; }
  .download { padding: 52px 32px; }
  .download__grid { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
  .window__screen.is-active[data-screen="home"] { grid-template-columns: 160px 1fr 160px; gap: 20px; }
  .window__body { padding: 22px 20px 26px; }
  .day-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Шапка уходит в кнопку раньше, чем в тесноту: на планшете ссылки и палитра
   уже не помещаются в одну строку */
@media (max-width: 1000px) {
  :root { --nav: 60px; }
  .nav__links {
    position: fixed;
    inset: var(--nav) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 22px;
    background: rgba(8, 8, 11, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__link { padding: 14px 4px; font-size: 16.5px; }
  .nav__burger { display: flex; }
  .nav__actions .themes { display: none; }
  .nav__links .themes--menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 4px 4px;
    border-top: 1px solid var(--line);
    margin-top: 10px;
  }
  .nav__links .themes--menu .theme-dot { width: 28px; height: 28px; }
  .nav__actions .btn span { display: none; }
  .nav__actions .btn { padding: 10px 14px; }
  /* в тесном окне боковые колонки мешают читать середину */
  .window__screen.is-active[data-screen="home"] { grid-template-columns: 1fr; }
  .window__body { padding: 20px 16px 24px; }
  .window__side { display: none; }
  .window__nav { overflow-x: auto; justify-content: flex-start; }
  .w-engines { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .section { padding: 76px 0; }
  .section--tight { padding: 58px 0; }
  .hero { padding: 64px 0 0; }
  .hero__stage { margin-top: 48px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding-bottom: 26px; }
  .privacy__grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 26px; }
  .version::before { left: -26px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .hero__actions .btn { width: 100%; }
  .download { padding: 40px 22px; }
  .download__grid { grid-template-columns: 1fr; gap: 16px; }
  .theme-card__preview { width: 72px; height: 50px; }
  .demo-window__body { min-height: 200px; max-height: 280px; padding: 16px 14px; }
  .demo-msg { max-width: 88%; font-size: 14px; }
  .pill--btn { font-size: 12.5px; padding: 7px 13px; }
  .day-grid { grid-template-columns: 1fr; }
  .window__player { grid-template-columns: 38px 1fr; padding: 12px 12px 14px; }
  .window__cover { width: 38px; height: 38px; }
  .window__volume .window__slider { width: 56px; }
}

/* Уважаем системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Печать: фон не нужен, текст должен остаться читаемым */
@media print {
  #silk, .grain, .vignette, .nav, .footer { display: none !important; }
  body { background: #fff; color: #111; }
  .version li, .feature__text, .lead, .step__text { color: #333; }
}
