/* Общий атмосферный дизайн сайта. Один режим для публичных страниц, авторизации и кабинета.
   Акценты, запреты на эффекты и тема остаются под управлением theme.js. */
:root.site-atmosphere {
  --bg: #0b0b0f; --bg-soft: #101015; --surface: #16161b; --surface-2: #1c1c22; --surface-hover: #24242b;
  --border: #ffffff12; --border-strong: #ffffff22;
  --text: #f3f3f6; --text-muted: #9c9caa; --text-faint: #82828f; --icon-color: #b4b4c2;
  --input-bg: #101015;
  --atmo-grid: #ffffff05; --atmo-ease: cubic-bezier(.22, 1, .36, 1);
  --atmo-radius: 18px; --atmo-control-radius: 12px;
  --shadow-sm: 0 3px 12px #00000016; --shadow-md: 0 12px 36px #00000020; --shadow-lg: 0 24px 70px #00000035;
}
:root.site-atmosphere[data-theme="light"] {
  --bg: #f2f4f9; --bg-soft: #f7f8fc; --surface: #ffffff; --surface-2: #eceff6; --surface-hover: #e5eaf4;
  --border: #1e305014; --border-strong: #1e30502e;
  --text: #1c2435; --text-muted: #606b80; --text-faint: #788399; --icon-color: #606b80;
  --input-bg: #f7f8fc; --atmo-grid: #1e305009;
  --shadow-sm: 0 3px 12px #20305008; --shadow-md: 0 12px 36px #2030500c; --shadow-lg: 0 24px 70px #20305015;
}
:root.site-atmosphere[data-theme="military"] {
  --bg: #10130f; --bg-soft: #151913; --surface: #1b201a; --surface-2: #252b22; --surface-hover: #30382b;
  --border: #cbd6ad17; --border-strong: #cbd6ad30;
  --text: #efefe2; --text-muted: #b1b8a5; --text-faint: #87917d; --icon-color: #b1b8a5;
  --input-bg: #151913; --atmo-grid: #cbd6ad07;
}
.site-atmosphere body { isolation: isolate; background: var(--bg); color: var(--text); }
.site-atmosphere body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--atmo-grid) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--atmo-grid) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(60% 52% at 0% 100%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 72%);
}
.site-atmosphere :is(.landing-ambient,.auth-decor) { display: none; }
.site-atmosphere :is(.landing-body,.auth-page) { background: var(--bg); }
.site-atmosphere .client-console::before { display: none; }

/* Два мягких цветных пятна за контентом кабинета: дрейфуют независимо, всё - на GPU-слое фона */
.site-atmosphere body::after {
  content: ""; position: fixed; inset: -18%; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(32% 28% at 24% 30%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%),
    radial-gradient(28% 26% at 76% 70%, color-mix(in srgb, var(--accent-2, var(--accent)) 12%, transparent), transparent 70%);
  background-repeat: no-repeat;
  animation: atmo-blobs 32s ease-in-out infinite;
  will-change: transform, background-position;
}
@keyframes atmo-blobs {
  0%, 100% { transform: translate3d(0, 0, 0); background-position: 0% 0%, 0% 0%; }
  33%      { transform: translate3d(1.6%, 2.2%, 0); background-position: 5% 8%, -6% -9%; }
  66%      { transform: translate3d(-1.8%, 1.2%, 0); background-position: -4% 6%, 7% -5%; }
}
@media (prefers-reduced-motion: reduce) {
  .site-atmosphere body::after { animation: none; }
}

/* Публичная навигация: собранная скруглённая панель, понятные группы действий. */
.site-atmosphere .landing-nav {
  width: min(1240px, calc(100% - 32px)); max-width: none; margin: 12px auto 0; top: 10px; gap: 18px;
  padding: 8px 10px 8px 16px; border: 1px solid var(--border); border-radius: 22px;
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 80%, transparent), transparent) 50% 0 / 46% 1px no-repeat,
    radial-gradient(60% 150% at 50% -70%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 72%),
    color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: 0 12px 34px #00000038, inset 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
.site-atmosphere .brand { gap: 10px; }
.site-atmosphere .landing-nav .brand { flex: 0 1 250px; min-width: 0; }
.site-atmosphere .landing-nav .brand-logo { flex: none; }
.site-atmosphere .landing-nav .brand-copy { min-width: 0; }
.site-atmosphere .landing-nav .brand-copy :is(b, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-atmosphere .brand-copy :is(strong,b) { letter-spacing: .025em; font-size: 16px; }
.site-atmosphere .brand-copy :is(span,small) { font-size: 11.5px; letter-spacing: .1em; }
.site-atmosphere .brand-logo { border-radius: 11px; box-shadow: none; }
.site-atmosphere .landing-links { gap: 5px; }
.site-atmosphere .landing-links > a { padding: 8px 11px; border-radius: 9px; font-size: 14px; }
.site-atmosphere .landing-links > a.active { background: var(--surface-hover); color: var(--text); box-shadow: none; }
.site-atmosphere .landing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.site-atmosphere :is(.theme-toggle,.site-account) { border: 1px solid var(--border); border-radius: 11px; background: var(--bg-soft); box-shadow: none; }
.site-atmosphere .theme-toggle { gap: 3px; padding: 3px; }
.site-atmosphere .landing-nav .theme-toggle { transform: none; margin: 0; }
.site-atmosphere .theme-btn { border-radius: 7px; }
/* Единые спокойные кнопки тем: активная поверхность и однотонные пиктограммы. */
.site-atmosphere .theme-toggle { gap: 4px; padding: 4px; border-radius: 14px; }
.site-atmosphere .theme-toggle .theme-btn { width: 36px; height: 34px; border: 1px solid transparent; border-radius: 10px; }
.site-atmosphere .theme-toggle .theme-btn.is-active { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); color: var(--text); }
.site-atmosphere .theme-btn.is-active::after { content: none; }
.site-atmosphere .app-theme-btn .theme-ico { width: 19px; height: 19px; transform: none; }
.site-atmosphere .app-theme-btn :is(.theme-ico-light, .theme-ico-dark) { background: currentColor; }
.site-atmosphere .app-theme-btn .theme-ico-military { background: url(/icons/military.svg?v=20261030theme4) center / contain no-repeat; -webkit-mask: none; mask: none; }
.site-atmosphere .app-theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-atmosphere .landing-footer { margin-top: 44px; border-color: var(--border); color: var(--text-muted); }

/* Главная и информационные страницы: выразительная первая секция и спокойные рабочие карточки. */
.site-atmosphere .shell { width: min(1220px, calc(100% - 40px)); }
.site-atmosphere .hero { padding-block: clamp(32px, 6vw, 80px) 36px; }
.site-atmosphere .hero-v2 { gap: clamp(24px, 4vw, 64px); align-items: center; }
.site-atmosphere .hero-copy h1 { font-size: clamp(36px, 4.6vw, 68px); line-height: 1.03; letter-spacing: -.05em; }
.site-atmosphere .hero-lead { max-width: 48ch; color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.site-atmosphere .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.home-resource-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.home-resource-actions .btn-ghost { display: inline-flex; align-items: center; gap: 8px; }
.home-resource-actions .ui-symbol { width: 17px; height: 17px; }
.site-atmosphere .home-v3 .closing-card-v2 .home-resource-actions { margin-top: 0; max-width: 54%; }
.site-atmosphere .home-v3 .closing-card-v2 .home-resource-actions .btn-ghost { color: #fff; background: #ffffff0c; border-color: #ffffff30; }
@media (max-width: 900px) {
  .site-atmosphere .home-v3 .closing-card-v2 .home-resource-actions { max-width: 100%; }
}
.site-atmosphere .eyebrow { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .13em; }
.site-atmosphere :is(.server-state-card,.server-card-v2,.closing-card,.settings-hero,.mn-hero,.dl-hero) {
  border: 1px solid var(--border); border-radius: 22px;
  background: radial-gradient(ellipse at 100% 100%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 65%), linear-gradient(125deg, color-mix(in srgb, var(--accent-2) 9%, var(--surface)), var(--surface));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 5%, transparent), var(--shadow-md);
}
.site-atmosphere :is(.settings-hero,.mn-hero,.dl-hero) { padding: clamp(24px, 4vw, 44px); margin-bottom: 24px; }
.site-atmosphere :is(.settings-hero,.mn-hero,.dl-hero) h1 { font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -.04em; line-height: 1.1; }
.site-atmosphere :is(.info-card,.feature-card,.workspace-card,.download-mini-card,.settings-panel,.mini-server-card,.dl-card,.dl-qr,.mn-pane,.mn-simple,.mn-note,.home-next) {
  border-color: var(--border); border-radius: var(--atmo-radius); background-color: var(--surface);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 3%, transparent), var(--shadow-sm);
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.site-atmosphere :is(.info-card,.feature-card,.workspace-card,.download-mini-card,.settings-panel,.mini-server-card,.dl-card) { padding: 24px; }
.site-atmosphere :is(.info-card,.feature-card,.workspace-card,.download-mini-card) { background: var(--surface); }
.site-atmosphere :is(.feature-card,.workspace-card) :is(.card-sphere,.feature-glow) { display: none; }
.site-atmosphere :is(.feature-card,.workspace-card) :is(.feature-icon,.workspace-icon) { color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.site-atmosphere :is(.feature-card,.workspace-card,.info-card,.download-mini-card) h3 { font-size: 18px; line-height: 1.25; letter-spacing: -.025em; }
.site-atmosphere :is(.section-head,.section-heading,.settings-panel-head) { gap: 16px; margin-bottom: 22px; }
.site-atmosphere :is(.section-head,.section-heading,.settings-panel-head) h2 { font-size: clamp(24px, 2.5vw, 34px); letter-spacing: -.035em; }
.site-atmosphere :is(.server-icon-box,.metric-icon,.feature-icon,.workspace-icon,.mn-dev-ico,.auth-benefit-icon) { border-radius: 11px; box-shadow: none; }
.site-atmosphere :is(.server-metrics > div,.server-card-grid > div,.home-online,.home-next-date,.dl-file,.mn-addr) { border-color: var(--border); border-radius: 12px; box-shadow: none; }
.site-atmosphere :is(.home-online-bar,.setting-progress,.setting-switch) { border-radius: 999px; }
.site-atmosphere .home-next { padding: 22px; }

/* Вход, регистрация и активация, включая подгружаемые модальные формы. */
.site-atmosphere :is(.auth-card,.auth-v2 .auth-card,.modal-shell-inner > .auth-card) {
  border: 1px solid var(--border-strong); border-radius: 22px !important;
  background: var(--surface); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent), var(--shadow-lg);
}
.site-atmosphere .auth-aside { padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(140deg, color-mix(in srgb, var(--accent-2) 10%, var(--surface)), var(--bg-soft)); }
.site-atmosphere .auth-card h1 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.04em; }
.site-atmosphere .auth-subtitle { font-size: 15px; color: var(--text-muted); line-height: 1.55; }
.site-atmosphere .auth-switcher { gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-soft); }
.site-atmosphere .auth-switch-card { min-height: 35px; border-radius: 8px; border: 0; font-size: 14px; background: transparent; }
.site-atmosphere .auth-switch-card.active { background: var(--surface-hover); color: var(--text); box-shadow: inset 0 1px 0 var(--border); }
.site-atmosphere :is(.auth-error,.auth-success,.login-hint,.input-hint,.mn-help,.mn-wifi-err) { border-radius: 10px; font-size: 14px; line-height: 1.5; }

/* Общие органы управления; статусные цвета и состояние disabled сохраняются. */
.site-atmosphere :is(.btn,.btn-primary,.btn-ghost,.auth-btn,.mn-btn,.mn-big,.dl-btn,.account-logout,.mobile-nav-toggle) { border-radius: var(--atmo-control-radius); font-weight: 600; letter-spacing: 0; }
.site-atmosphere :is(.btn-primary,.auth-btn) { background: var(--accent); color: var(--accent-contrast) !important; border-color: var(--accent); box-shadow: none; }
.site-atmosphere :is(.btn-ghost,.mn-btn) { border-color: var(--border-strong); background-color: var(--surface); box-shadow: none; }
.site-atmosphere :is(.btn-primary,.btn-ghost,.auth-btn,.mn-btn) { padding: 11px 16px; }
.site-atmosphere :is(.input-group input,.input-group select,.settings-form-grid input,.settings-form-grid select,.mn-wifi-form input,.setting-row input,.setting-row select) {
  border-radius: 10px; border-color: var(--border-strong); background-color: var(--input-bg); color: var(--text);
}
.site-atmosphere :is(input,textarea)::placeholder { color: var(--text-faint); opacity: 1; }
.site-atmosphere :is(.input-toggle,.auth-close) { border-radius: 8px; }
.site-atmosphere :is(.setting-row,.auth-benefit) { border-color: var(--border); }
.site-atmosphere :is(a,button,input,select,textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-atmosphere .sidebar-menu { border-right: 1px solid var(--border); background: var(--surface); }
.site-atmosphere .sidebar-menu .menu-item { border-radius: 10px; margin: 4px 8px; }
.site-atmosphere .welcome-dashboard-brand { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 18px; }

/* Движение включается JS только после проверки настроек. Без JS содержимое всегда видно. */
@keyframes site-soft-enter { from { opacity: .15; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes site-menu-enter { from { opacity: .2; transform: translateY(-5px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes site-data-enter { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.site-atmosphere.site-motion-ready :is(.landing-nav,.hero-copy,.server-state-card,.settings-hero,.auth-aside,.auth-card,.mn-hero,.dl-hero) { animation: site-soft-enter .65s var(--atmo-ease) both; }
.site-atmosphere.site-motion-ready .hero-copy { animation-delay: .04s; }
.site-atmosphere.site-motion-ready .server-state-card { animation-delay: .12s; }
.site-atmosphere.site-motion-ready :is(.auth-card,.auth-aside) { animation-delay: .07s; }
.site-atmosphere.site-motion-ready :is(.landing-links.is-open,.themed-select.open .themed-select-menu,.heat-more[open] .heat-more-menu,.client-modal.is-open .client-modal-dialog) { transform-origin: top center; animation: site-menu-enter .28s var(--atmo-ease) both; }
.site-atmosphere.site-motion-ready :is(.mn-pane,.mn-simple,.dl-grid,.auth-form,.auth-benefits):not([hidden]) { animation: site-data-enter .4s var(--atmo-ease) both; }
.site-atmosphere.site-motion-ready :is(.profile-section:not([hidden]) > .profile-section-head,.tab.active > .panel > .panel-head) { animation: site-data-enter .4s var(--atmo-ease) both; }
.site-atmosphere.site-motion-ready :is(.btn,.btn-primary,.btn-ghost,.auth-btn,.theme-btn,.landing-links a,.auth-switch-card,.segmented button,.themed-select-control,.setting-switch,.mn-devices button) { transition: background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease, transform .28s var(--atmo-ease); }
@media (hover: hover) and (pointer: fine) {
  .site-atmosphere.site-motion-ready :is(.btn-primary,.btn-ghost,.auth-btn):not(:disabled):hover { filter: brightness(1.07); }
}
@media (max-width: 1100px) {
  .site-atmosphere .landing-nav { width: calc(100% - 24px); margin-top: 8px; gap: 12px; padding: 8px 10px 8px 12px; border-radius: 18px; }
  .site-atmosphere .landing-nav .landing-links.is-open { margin-top: 8px; padding: 8px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-md); }
}
@media (max-width: 600px) {
  .site-atmosphere body::before { background-size: 32px 32px, 32px 32px, auto; }
  .site-atmosphere .shell { width: calc(100% - 28px); }
  .site-atmosphere .hero { padding-top: 30px; }
  .site-atmosphere .hero-copy h1 { font-size: clamp(34px, 9vw, 46px); }
  .site-atmosphere :is(.info-card,.feature-card,.workspace-card,.settings-panel,.mini-server-card,.dl-card) { padding: 18px; border-radius: 16px; }
  .site-atmosphere :is(.settings-hero,.mn-hero,.dl-hero,.auth-aside) { padding: 22px 18px; border-radius: 18px; }
}
/* Конфигурация имеет приоритет над оформлением и появлением элементов. */
.site-atmosphere:is(.server-decor-off,.client-user-decor-off) body::before { display: none; }
.site-atmosphere:is(.server-effects-off,.client-user-effects-off,.perf-lite) :is(.landing-nav,.hero-copy,.server-state-card,.settings-hero,.auth-aside,.auth-card,.mn-hero,.mn-pane,.mn-simple,.dl-hero,.dl-grid,.auth-form,.auth-benefits,.landing-links,.themed-select-menu,.client-modal-dialog,.site-data-arriving) { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .site-atmosphere :not(.pa-art, .pa-art *, .pa-band *), .site-atmosphere :not(.pa-art, .pa-art *, .pa-band *)::before, .site-atmosphere :not(.pa-art, .pa-art *, .pa-band *)::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .site-atmosphere body::before { display: none; } }

/* Переключатель «Атмосферный интерфейс» в шапке; виден и в выключенном режиме, чтобы можно было вернуться. */
.atmo-toggle { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; padding: 0; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text-muted); cursor: pointer; transition: color .18s ease, border-color .18s ease, background-color .18s ease; }
.atmo-toggle svg { width: 19px; height: 19px; }
.atmo-toggle[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.atmo-toggle:hover { border-color: var(--border-strong); color: var(--text); }
.atmo-only { display: none; }
.site-atmosphere .atmo-only { display: revert; }

/* Главная страница сервера: герой с окном состояния и Пульсаром, карточки шагов и возможностей с иллюстрациями. */
.site-atmosphere .home-v3 { overflow-x: clip; }
.site-atmosphere .home-v3 .home-hero { position: relative; padding-bottom: clamp(210px, 21vw, 290px); }
.site-atmosphere .home-v3 .hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 11px; border: 1px solid var(--border-strong); border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--text); }
.site-atmosphere .home-v3 .hero-copy h1 { font-size: clamp(36px, 4.4vw, 62px); letter-spacing: -.05em; }
.site-atmosphere .home-v3 .server-state-card { border-radius: 24px; background: color-mix(in srgb, var(--bg) 86%, transparent); box-shadow: 0 30px 80px #00000055; }
.site-atmosphere .home-v3 .server-card-grid::before { content: ""; display: block; width: 11px; height: 11px; margin: 0 0 16px; border-radius: 50%; background: #ff5f57; box-shadow: 18px 0 #febc2e, 36px 0 #28c840; }
.site-atmosphere .home-v3 .hero-tiles { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 28px 0 0; padding: 0; list-style: none; }
.site-atmosphere .home-v3 .hero-tiles li { display: grid; grid-template-columns: 40px auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.site-atmosphere .home-v3 .hero-tile-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.site-atmosphere .home-v3 .hero-tile-ic .ui-symbol { width: 18px; height: 18px; }
.site-atmosphere .home-v3 .hero-tiles b { font-size: 16px; }
.site-atmosphere .home-v3 .hero-tiles small { color: var(--text-muted); font-size: 13px; }
.site-atmosphere .home-v3 .home-mascot { position: absolute; right: 1%; bottom: 106px; z-index: 3; width: min(500px, 40vw); pointer-events: none; }
.site-atmosphere .home-v3 .hero-band { position: absolute; bottom: 0; left: 50%; z-index: -1; width: 100vw; height: 430px; margin-left: -50vw; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 64%, #000b 78%, #0003 92%, transparent);
  mask-image: linear-gradient(to bottom, #000 64%, #000b 78%, #0003 92%, transparent); }
/* сетка за волнами вдвое выше прежней и тает кверху; под волнами градиент плавно спускается в фон и разделяет секции */
.site-atmosphere .home-v3 .hero-band::before { content: ""; position: absolute; inset: 0 0 150px; background-image: linear-gradient(color-mix(in srgb, var(--accent) 16%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent) 1px, transparent 1px); background-size: 44px 44px; background-position: center bottom; -webkit-mask-image: linear-gradient(to top, #000, transparent 94%); mask-image: linear-gradient(to top, #000, transparent 94%); }
.site-atmosphere .home-v3 .hero-band .pa-band { position: absolute; right: 0; bottom: 118px; left: 0; height: 112px;
  -webkit-mask-image: linear-gradient(#000 35%, #000c 65%, transparent);
  mask-image: linear-gradient(#000 35%, #000c 65%, transparent); }
/* Свет расходится от волны широкими лучами; прозрачный край сохраняет настоящий фон страницы. */
.site-atmosphere .home-v3 .hero-band::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 240px;
  background:
    radial-gradient(ellipse 42% 85% at 30% 14%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 78%),
    radial-gradient(ellipse 48% 100% at 73% 14%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 80%),
    radial-gradient(ellipse 90% 50% at 50% 14%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 85%); }

.site-atmosphere .home-v3 .home-steps { gap: 18px; }
.site-atmosphere .home-v3 .home-step { gap: 10px; padding: 10px 10px 22px; border-radius: 22px; background: var(--surface); }
.site-atmosphere .home-v3 .home-step:hover { transform: none; border-color: color-mix(in srgb, var(--accent) 38%, var(--border)); }
.site-atmosphere .home-v3 .home-step-art { width: 100%; border-radius: 14px; }
.site-atmosphere .home-v3 .home-step-num { position: absolute; left: 22px; top: 22px; z-index: 2; width: 32px; height: 32px; border: 1px solid #ffffff4d; border-radius: 50%; background: #ffffff2b; box-shadow: none; color: #fff; font-size: 16px; }
.site-atmosphere .home-v3 .home-step > div { padding: 4px 12px 0; }
.site-atmosphere .home-v3 .home-step-link { color: var(--accent); }

.site-atmosphere .home-v3 .feature-grid-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.site-atmosphere .home-v3 .feature-card { align-items: flex-start; min-height: 240px; padding: 28px 50% 26px 28px; border: 0; border-radius: 24px; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 66%, #000), color-mix(in srgb, var(--accent) 46%, #000)); }
.site-atmosphere .home-v3 .feature-card:nth-child(even) { background: radial-gradient(70% 90% at 85% 0, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%), linear-gradient(160deg, #1c2466, #0b0d27); }
.site-atmosphere .home-v3 .feature-card:hover { transform: none; box-shadow: none; }
.site-atmosphere .home-v3 .feature-card :is(h3, .feature-note) { color: #fff; }
.site-atmosphere .home-v3 .feature-card p { color: #ffffffcc; }
.site-atmosphere .home-v3 .feature-card :is(.feature-icon, .feature-arrow) { display: none; }
.site-atmosphere .home-v3 .feature-card .feature-art { position: absolute; right: 0; bottom: 0; width: 50%; }
.site-atmosphere .home-v3 .home-role { border-radius: 22px; background: var(--surface); }
.site-atmosphere .home-v3 .home-role:hover { transform: none; }

.site-atmosphere .home-v3 .closing-card-v2 { position: relative; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; flex-wrap: nowrap; min-height: 260px; overflow: hidden; padding: clamp(28px, 5vw, 56px); border: 0; border-radius: 28px; color: #fff; background: radial-gradient(60% 90% at 15% 0, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), linear-gradient(160deg, #1c2466, #0b0d27); }
.site-atmosphere .home-v3 .closing-card-v2 > :not(.closing-art) { position: relative; z-index: 1; }
.site-atmosphere .home-v3 .closing-card-v2 h2 { font-size: clamp(30px, 4vw, 54px); letter-spacing: -.04em; }
.site-atmosphere .home-v3 .closing-card-v2 p { color: #ffffffb8; }
.site-atmosphere .home-v3 .closing-card-v2 .eyebrow { color: #ffffffb3; }
.site-atmosphere .home-v3 .closing-card-v2 .btn-primary { border-color: #fff; background: #fff; color: #0b0d27 !important; }
.site-atmosphere .home-v3 .closing-card-v2 .btn-primary .ui-symbol { --icon-tint: #0b0d27; color: #0b0d27; }
.site-atmosphere .home-v3 .closing-card-v2 > div:first-child { max-width: 52%; }
.site-atmosphere .home-v3 .closing-art { position: absolute; right: 0; bottom: 0; z-index: 0; width: min(54%, 540px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%); mask-image: linear-gradient(90deg, transparent, #000 28%); }
@media (max-width: 1100px) {
  .site-atmosphere .home-v3 .home-mascot { display: none; }
}
@media (max-width: 900px) {
  .site-atmosphere .home-v3 .feature-grid-v2 { grid-template-columns: 1fr; }
  .site-atmosphere .home-v3 .feature-card { flex-direction: column; padding: 26px 26px 0; }
  .site-atmosphere .home-v3 .feature-card .feature-art { position: relative; width: calc(100% + 52px); margin: 10px -26px 0; }
  .site-atmosphere .home-v3 .closing-card-v2 { padding-bottom: 0; }
  .site-atmosphere .home-v3 .closing-card-v2 > div:first-child { max-width: none; }
  .site-atmosphere .home-v3 .closing-art { position: relative; width: calc(100% + 2 * clamp(28px, 5vw, 56px)); margin: 8px calc(-1 * clamp(28px, 5vw, 56px)) 0; }
}

/* Страницы входа: Пульсар в боковой панели. */
.site-atmosphere .auth-aside .auth-art { width: 104px; margin: 0 0 4px -6px; pointer-events: none; }
/* Формы входа: кнопки по размеру содержимого, переключатель не растягивается на всю панель. */
@media (min-width: 701px) {
  .site-atmosphere .auth-card .auth-btn { width: auto; min-width: 220px; padding-inline: 32px; justify-self: start; align-self: flex-start; }
  .site-atmosphere .auth-v2 .auth-switcher { display: inline-grid; grid-template-columns: repeat(3, auto); width: fit-content; max-width: 100%; justify-self: start; }
  .site-atmosphere .auth-v2 .auth-switcher a { padding-inline: 22px; font-size: 15px; }
}

/* Узкий экран: в шапке остаются переключатель, регистрация и меню; «Войти» есть в первом экране страницы. */
@media (max-width: 520px) {
  .landing-nav .landing-actions .nav-login { display: none !important; }
  .site-atmosphere .home-v3 .server-metrics { grid-template-columns: 1fr; }
}

/* Телефон: поля ввода 16 px, кнопки и подписи читаемого размера. */
@media (max-width: 700px) {
  .site-atmosphere :is(.input-group input, .input-group select, .settings-form-grid input, .setting-row input) { font-size: 16px; }
  .site-atmosphere :is(.btn, .btn-primary, .btn-ghost, .auth-btn) { font-size: 15.5px; }
  .site-atmosphere .hero-lead { font-size: 16px; }
}

/* Шаги главной раскрываются один раз при входе в экран; роли используют view-timeline. */
@keyframes pa-rise { from { opacity: 0; transform: translateY(44px) scale(.97); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-atmosphere .home-v3 .home-role { animation: pa-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
.site-atmosphere .home-v3 :is(.home-step, .home-role, .feature-card) { transition: border-color .25s ease, box-shadow .35s ease; }
.site-atmosphere .home-v3 :is(.home-step-art, .home-role-icon, .feature-art) { transition: translate .4s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) and (pointer: fine) {
  .site-atmosphere .home-v3 :is(.home-step, .home-role, .feature-card):hover { box-shadow: 0 18px 44px #00000040; }
  .site-atmosphere .home-v3 .home-step:hover .home-step-art { translate: 0 -5px; }
  .site-atmosphere .home-v3 .home-role:hover .home-role-icon { translate: 0 -4px; }
  .site-atmosphere .home-v3 .feature-card:hover .feature-art { translate: -4px -5px; }
}
html:is(.server-effects-off, .client-user-effects-off, .perf-lite) .home-v3 :is(.home-step, .home-role, .feature-card) { animation: none !important; }

@media (max-width: 430px) {
  .site-atmosphere .landing-nav .brand-copy { display: none; }
}

/* Шаги: ссылки внизу карточек на одной линии, а вся карточка — ссылка (нажатие в любом месте открывает раздел). */
.site-atmosphere .home-v3 .home-step { display: flex; flex-direction: column; cursor: pointer; }
.site-atmosphere .home-v3 .home-step > div { display: flex; flex: 1; flex-direction: column; }
.site-atmosphere .home-v3 .home-step-link { margin-top: auto; padding-top: 8px; }
.site-atmosphere .home-v3 .home-step-link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.site-atmosphere .home-v3 .home-step:hover .home-step-link .ui-symbol { translate: 3px 0; }
.site-atmosphere .home-v3 .home-step-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Шапка сайта: кнопки одной высоты, компактнее на средних экранах; ссылки не режутся — раньше уходят в меню. */
.site-atmosphere .landing-actions :is(.account-profile, .account-logout, .nav-login, .nav-register) { box-sizing: border-box; height: 44px; min-height: 44px; display: inline-flex; align-items: center; padding-block: 0; }
.site-atmosphere .landing-actions .account-profile { padding-inline: 10px 14px; }
.site-atmosphere .landing-actions .account-profile:hover { transform: none; }
.site-atmosphere .landing-actions .atmo-toggle { width: 44px; height: 44px; }
@media (max-width: 1500px) {
  .site-atmosphere .landing-nav .brand-copy small, .site-atmosphere .landing-nav .account-copy small { display: none; }
}
@media (min-width: 821px) and (max-width: 1300px) {
  .site-atmosphere .landing-nav { justify-content: space-between; }
  .site-atmosphere .landing-nav .landing-links { position: absolute; top: calc(100% + 8px); right: 8px; left: auto; width: 300px; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); background: color-mix(in srgb, var(--surface) 97%, transparent); }
  .site-atmosphere .landing-nav .landing-links.is-open { display: flex; }
  .site-atmosphere .landing-nav .landing-links a { padding: 11px 12px; font-size: 15px; }
  .site-atmosphere .landing-nav .mobile-nav-toggle { display: grid; }
}

/* Оптимизация: нижние секции не рисуются, пока далеко от экрана; на телефонах и сенсорных экранах без размытия фона. */
.site-atmosphere .home-v3 main > section:not(.home-hero) { content-visibility: auto; contain-intrinsic-size: auto 560px; }
@media (max-width: 900px), (pointer: coarse) {
  .site-atmosphere .landing-nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 80%, transparent), transparent) 50% 0 / 46% 1px no-repeat, color-mix(in srgb, var(--surface) 96%, transparent); }
}

/* ===== Цветовые схемы (выбираются в «Кастомизации» кабинета): акцент, второй акцент и мягкая тонировка поверхностей ===== */
html.site-atmosphere.scheme-ocean[data-theme]   { --accent: #38bdf8; --accent-2: #6366f1; --accent-contrast: #04202e; }
html.site-atmosphere.scheme-violet[data-theme]  { --accent: #a78bfa; --accent-2: #f472b6; --accent-contrast: #1b1034; }
html.site-atmosphere.scheme-emerald[data-theme] { --accent: #34d399; --accent-2: #22d3ee; --accent-contrast: #05261a; }
html.site-atmosphere.scheme-ember[data-theme]   { --accent: #fb923c; --accent-2: #f43f5e; --accent-contrast: #2b1203; }
html.site-atmosphere.scheme-rose[data-theme]    { --accent: #f472b6; --accent-2: #a78bfa; --accent-contrast: #2d0a1c; }
html.site-atmosphere.scheme-mono[data-theme]    { --accent: #cbd5e1; --accent-2: #64748b; --accent-contrast: #0f172a; }
html.site-atmosphere[class*="scheme-"] { --accent-strong: color-mix(in srgb, var(--accent) 82%, #000); }
html.site-atmosphere[class*="scheme-"][data-theme="dark"] {
  --bg: color-mix(in srgb, #0b0b0f 93%, var(--accent)); --bg-soft: color-mix(in srgb, #101015 93%, var(--accent));
  --surface: color-mix(in srgb, #16161b 92%, var(--accent)); --surface-2: color-mix(in srgb, #1c1c22 91%, var(--accent));
  --surface-hover: color-mix(in srgb, #24242b 89%, var(--accent)); --border: color-mix(in srgb, var(--accent) 16%, #ffffff10);
  --atmo-grid: color-mix(in srgb, var(--accent) 9%, transparent);
}
html.site-atmosphere[class*="scheme-"][data-theme="military"] {
  --bg: color-mix(in srgb, #10130f 92%, var(--accent)); --bg-soft: color-mix(in srgb, #151913 92%, var(--accent));
  --surface: color-mix(in srgb, #1b201a 91%, var(--accent)); --surface-2: color-mix(in srgb, #252b22 90%, var(--accent));
  --surface-hover: color-mix(in srgb, #30382b 88%, var(--accent)); --border: color-mix(in srgb, var(--accent) 16%, #cbd6ad14);
}
html.site-atmosphere[class*="scheme-"][data-theme="light"] {
  --bg: color-mix(in srgb, #f2f4f9 93%, var(--accent)); --bg-soft: color-mix(in srgb, #f7f8fc 94%, var(--accent));
  --surface: color-mix(in srgb, #ffffff 95%, var(--accent)); --surface-2: color-mix(in srgb, #eceff6 91%, var(--accent));
  --surface-hover: color-mix(in srgb, #e5eaf4 88%, var(--accent));
}
html.appearance-oled, html.site-atmosphere.appearance-oled[data-theme] {
  color-scheme: dark;
  --bg:#000; --bg-soft:color-mix(in srgb, var(--accent) 4%, #010101);
  --surface:color-mix(in srgb, var(--accent) 6%, #070707); --surface-2:color-mix(in srgb, var(--accent) 9%, #0e0e0e);
  --surface-hover:color-mix(in srgb, var(--accent) 16%, #171717);
  --border:color-mix(in srgb, var(--accent) 20%, #1e1e1e); --border-strong:color-mix(in srgb, var(--accent) 42%, #3c3c3c);
  --text:#f5f5f5; --text-muted:#a8a8a8; --text-faint:#787878;
  --accent-strong:color-mix(in srgb, var(--accent) 82%, #ffffff);
  --accent-contrast:#0a0c10;
  --input-bg:#040404; --atmo-grid:color-mix(in srgb, var(--accent) 7%, transparent);
  --shadow:0 18px 50px #000c;
}
html.appearance-oled body { background:#000; color:#f5f5f5; }
html.appearance-oled :is(.btn-primary,.auth-btn,.primary) {
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 42%, transparent), inset 0 1px 0 #ffffff2e;
}

/* ===== Возможности: сетка из карточек разного размера, иллюстрация по центру правой части ===== */
@media (min-width: 901px) {
  .site-atmosphere .home-v3 .feature-grid-v2 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
  .site-atmosphere .home-v3 .feature-card { --fc: var(--accent); grid-column: span 3; min-height: 300px; padding: 32px 54% 30px 32px; align-items: flex-start;
    background: radial-gradient(70% 100% at 100% 0, color-mix(in srgb, var(--fc) 38%, transparent), transparent 70%), linear-gradient(150deg, color-mix(in srgb, var(--fc) 46%, #10131c), color-mix(in srgb, var(--fc) 16%, #090b12)); }
  .site-atmosphere .home-v3 .feature-cyan { --fc: #22b8cf; }
  .site-atmosphere .home-v3 .feature-violet { --fc: #8b5cf6; }
  .site-atmosphere .home-v3 .feature-amber { --fc: #f59e0b; }
  .site-atmosphere .home-v3 .feature-card:nth-child(even) { background: radial-gradient(70% 100% at 100% 0, color-mix(in srgb, var(--fc) 38%, transparent), transparent 70%), linear-gradient(150deg, color-mix(in srgb, var(--fc) 46%, #10131c), color-mix(in srgb, var(--fc) 16%, #090b12)); }
  .site-atmosphere .home-v3 .feature-card:nth-child(1), .site-atmosphere .home-v3 .feature-card:nth-child(4) { grid-column: span 4; min-height: 340px; padding-right: 50%; }
  .site-atmosphere .home-v3 .feature-card:is(:nth-child(2), :nth-child(3)) { grid-column: span 2; flex-direction: column; padding: 30px 28px 0; }
  .site-atmosphere .home-v3 .feature-card .feature-art { position: absolute; right: 2%; top: 50%; bottom: auto; width: 54%; transform: translateY(-50%); }
  .site-atmosphere .home-v3 .feature-card:is(:nth-child(2), :nth-child(3)) .feature-art { position: relative; right: auto; top: auto; width: calc(100% + 56px); margin: auto -28px 0; transform: none; }
  .site-atmosphere .home-v3 .feature-card h3 { font-size: 24px; letter-spacing: -.03em; }
  .site-atmosphere .home-v3 .feature-card .feature-note { display: inline-flex; margin-top: 12px; padding: 6px 12px; border: 1px solid #ffffff2e; border-radius: 999px; background: #ffffff14; font-size: 13px; font-weight: 600; }
}

/* Фон возможностей: мягкий свет, точечная текстура и орбиты за иллюстрацией. */
.site-atmosphere .home-v3 .feature-card { --fc: #22b8cf; }
.site-atmosphere .home-v3 .feature-card.feature-violet { --fc: #9874ef; }
.site-atmosphere .home-v3 .feature-card.feature-blue { --fc: #4aa9e0; }
.site-atmosphere .home-v3 .feature-card.feature-amber { --fc: #dca344; }
.site-atmosphere .home-v3 .feature-card,
.site-atmosphere .home-v3 .feature-card:nth-child(even) {
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--fc) 32%, #ffffff12);
  background:
    radial-gradient(ellipse at 88% 18%, color-mix(in srgb, var(--fc) 30%, transparent), transparent 58%),
    radial-gradient(ellipse at 62% 100%, color-mix(in srgb, var(--fc) 16%, transparent), transparent 65%),
    linear-gradient(135deg, color-mix(in srgb, var(--fc) 29%, #111d29), #101923 88%);
  box-shadow: inset 0 1px 0 #ffffff0d, 0 8px 24px #00000014;
}
.site-atmosphere .home-v3 .feature-card::before,
.site-atmosphere .home-v3 .feature-card::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
}
.site-atmosphere .home-v3 .feature-card::before {
  inset: 0;
  background: radial-gradient(circle, #ffffff24 .7px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(110deg, transparent 32%, #0009 100%);
  mask-image: linear-gradient(110deg, transparent 32%, #0009 100%);
  opacity: .42;
}
.site-atmosphere .home-v3 .feature-card::after {
  width: 420px; height: 420px; right: -90px; bottom: -170px;
  border: 1px solid color-mix(in srgb, var(--fc) 24%, transparent); border-radius: 50%;
  background: radial-gradient(circle, transparent 49.4%, #ffffff0a 49.6%, #ffffff0a 49.8%, transparent 50%);
  box-shadow: 0 0 0 38px color-mix(in srgb, var(--fc) 4%, transparent);
}
.site-atmosphere .home-v3 .feature-card .feature-note {
  border: 1px solid #ffffff24;
  background: #ffffff0a; color: #ffffffe6;
}
@media (hover: hover) and (pointer: fine) {
  .site-atmosphere .home-v3 .feature-card:hover {
    border-color: color-mix(in srgb, var(--fc) 65%, #ffffff24);
    box-shadow: inset 0 1px 0 #ffffff14, 0 14px 32px #00000026;
  }
}
@media (max-width: 900px) {
  .site-atmosphere .home-v3 .feature-card::after { width: 320px; height: 320px; bottom: -130px; }
}

/* ===== Ближайшее мероприятие: дата, сведения и действие без декоративной сцены ===== */
.site-atmosphere .home-next { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "date body action"; align-items: center; gap: 24px; overflow: hidden; isolation: isolate; padding: 26px 28px; border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border)); border-radius: 26px;
  background: radial-gradient(60% 140% at 0 0, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%), linear-gradient(160deg, var(--surface), var(--bg-soft)); box-shadow: var(--shadow-md); transition: border-color .25s ease; }
.site-atmosphere .home-next-date { grid-area: date; display: grid; place-content: center; gap: 7px; width: 82px; height: 88px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: 21px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--text); box-shadow: none; }
.site-atmosphere .home-next-date b { font-size: 34px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.site-atmosphere .home-next-date span { color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-atmosphere .home-next-body { grid-area: body; }
.site-atmosphere .home-next-body h2 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.035em; }
.site-atmosphere .home-next-classes li { border-radius: 999px; }
.site-atmosphere .home-next-cta { grid-area: action; align-self: center; position: static; transform: none !important; filter: none !important; }
.site-atmosphere .home-next-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* Растянутая ссылка сохраняет нажатие на всю карточку. */
.site-atmosphere .home-next-cta::after { content: ""; position: absolute; z-index: 3; inset: 0; border-radius: 26px; }
@media (hover: hover) and (pointer: fine) {
  .site-atmosphere .home-next:hover { border-color: color-mix(in srgb, var(--accent) 48%, var(--border)); }
}
@media (max-width: 1100px) {
  .site-atmosphere .home-next { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "date body action"; gap: 18px; }
}
@media (max-width: 760px) {
  .site-atmosphere .home-next { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "date body" "action action"; gap: 16px; padding: 20px; border-radius: 22px; }
  .site-atmosphere .home-next-date { width: 62px; height: 72px; border-radius: 17px; }
  .site-atmosphere .home-next-date b { font-size: 28px; }
  .site-atmosphere .home-next-cta { width: 100%; justify-content: center; }
}

/* ===== Установка: помощник, крупные карточки устройств, шаги цепочкой ===== */
.site-atmosphere .mn-wrap { display: grid; gap: 22px; align-content: start; width: min(1040px, 100%); max-width: none; margin: 0 auto; padding: 28px 20px 90px; }
.site-atmosphere .mn-hero { position: relative; overflow: hidden; min-height: 230px; margin: 0; padding: 40px 46% 40px 40px; border: 1px solid var(--border-strong); border-radius: 30px; text-align: left;
  background: radial-gradient(80% 130% at 100% 0, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%), linear-gradient(160deg, #1c2466, #0b0d27); color: #fff; }
.site-atmosphere .mn-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; }
.site-atmosphere .mn-hero p { margin: 0; color: #ffffffb8; font-size: 17px; }
.site-atmosphere .mn-hero > .mn-hero-art { position: absolute; right: -1%; top: 50%; width: 48%; transform: translateY(-50%); }
.site-atmosphere .mn-simple-mode .mn-hero { min-height: 350px; padding-right: 43%; background: radial-gradient(65% 140% at 100% 0, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%), linear-gradient(145deg, var(--surface-2), var(--surface)); color: var(--text); }
.site-atmosphere .mn-simple-mode .mn-hero h1 { max-width: 540px; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; }
.site-atmosphere .mn-simple-mode .mn-hero > p { margin-top: 14px; color: var(--text-muted); line-height: 1.6; }
.site-atmosphere .mn-simple-mode .mn-hero > .mn-hero-art { right: 1%; width: 40%; }
.mn-start-wave { display: none; }
.site-atmosphere .mn-simple-mode .mn-start-wave { display: block; position: absolute; inset: auto 0 0; height: 90px; pointer-events: none; opacity: .25; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.site-atmosphere .mn-simple-mode .mn-hero > :not(.mn-start-wave, .mn-hero-art) { position: relative; z-index: 1; }
.site-atmosphere .mn-simple-mode .mn-hero .mn-simple { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: none; margin: 24px 0 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; }
.site-atmosphere .mn-simple-mode .mn-simple .mn-simple-os { flex-basis: 100%; font-size: 13px; color: var(--text-muted); }
.site-atmosphere .mn-simple-mode .mn-simple .mn-file { flex-basis: 100%; margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.site-atmosphere .mn-simple-mode .mn-simple .mn-big { width: auto; min-height: 46px; font-size: 15px; padding: 12px 20px; }
.site-atmosphere .mn-simple-mode .mn-simple :is(.mn-file, .mn-simple-os):empty { display: none; }
.site-atmosphere .mn-simple, .site-atmosphere .mn-wifi { margin: 0; border-radius: 24px; }
.site-atmosphere .mn-devices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.site-atmosphere .mn-devices button { display: grid; justify-items: start; align-content: start; gap: 4px; padding: 18px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, box-shadow .25s ease; }
.site-atmosphere .mn-devices button b { font-size: 18px; }
.site-atmosphere .mn-devices button small { color: var(--text-muted); font-size: 13.5px; }
.site-atmosphere .mn-devices button:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.site-atmosphere .mn-devices button:is(.active, .on, [aria-selected="true"]) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); box-shadow: 0 0 0 1px var(--accent), 0 16px 40px color-mix(in srgb, var(--accent) 16%, transparent); }
.site-atmosphere .mn-dev-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border)); border-radius: 16px; background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); font-size: 26px; }
.site-atmosphere .mn-pane { padding: 28px; border-radius: 28px; }
.site-atmosphere .mn-steps { display: grid; gap: 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.site-atmosphere .mn-steps li { position: relative; display: flex; gap: 18px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 20px; background: color-mix(in srgb, var(--surface) 82%, transparent); }
.site-atmosphere .mn-steps li:not(:last-child)::after { content: ""; position: absolute; left: 44px; bottom: -17px; width: 2px; height: 17px; background: linear-gradient(var(--accent), transparent); }
.site-atmosphere .mn-i { display: grid; flex: 0 0 auto; place-items: center; width: 50px; height: 50px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: 16px; background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); font-size: 24px; }
.site-atmosphere .mn-steps b { font-size: 17px; }
.site-atmosphere .mn-steps p { margin: 4px 0 0; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.site-atmosphere .mn-help { position: relative; margin-top: 20px; padding: 16px 190px 16px 20px; border: 1px solid var(--border); border-radius: 20px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.site-atmosphere .mn-help summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.site-atmosphere .mn-help > .mn-help-art { position: absolute; right: 8px; top: 8px; width: 170px; pointer-events: none; }
.site-atmosphere .mn-help:not([open]) .mn-help-art { opacity: .9; }
@media (max-width: 900px) {
  .site-atmosphere .mn-devices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-atmosphere .mn-hero { padding: 28px 24px 150px; }
  .site-atmosphere .mn-hero > .mn-hero-art { top: auto; right: 0; bottom: -10px; width: 70%; transform: none; }
  .site-atmosphere .mn-simple-mode .mn-hero { min-height: 0; padding: 28px 24px 160px; }
  .site-atmosphere .mn-simple-mode .mn-hero > .mn-hero-art { right: 16px; bottom: -12px; width: 260px; max-width: 80%; }
  .site-atmosphere .mn-help { padding-right: 20px; }
  .site-atmosphere .mn-help > .mn-help-art { display: none; }
}

/* ===== Соглашение: крупная шапка с помощником, пункты отдельными карточками ===== */
.site-atmosphere .lic-hero { position: relative; overflow: hidden; max-width: 980px !important; margin: 0 auto 22px !important; padding: 44px 46% 44px 42px !important; border: 1px solid var(--border-strong); border-radius: 30px; text-align: left !important;
  background: radial-gradient(80% 130% at 100% 0, color-mix(in srgb, var(--accent) 28%, transparent), transparent 65%), linear-gradient(160deg, #1c2466, #0b0d27); color: #fff; }
.site-atmosphere .lic-hero h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.site-atmosphere .lic-hero p { margin-inline: 0 !important; color: #ffffffb8; }
.site-atmosphere .lic-hero > .lic-art { position: absolute; right: -1%; top: 50%; width: 46%; transform: translateY(-50%); }
.site-atmosphere #agreementBody { display: grid !important; gap: 14px !important; max-width: 980px !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.site-atmosphere #agreementBody > p { margin: 0; padding: 20px 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); font-size: 16px; line-height: 1.7; }
.site-atmosphere #agreementBody > p > b:first-child { display: block; margin-bottom: 8px; color: var(--text); font-size: 19px; letter-spacing: -.02em; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-atmosphere #agreementBody > p, .site-atmosphere .mn-steps li { animation: pa-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@media (max-width: 900px) {
  .site-atmosphere .lic-hero { padding: 30px 24px 150px !important; }
  .site-atmosphere .lic-hero > .lic-art { top: auto; right: 0; bottom: -8px; width: 70%; transform: none; }
}

/* Слабые устройства: сохраняем содержимое и управление, упрощаем декоративную графику. */
.site-atmosphere.site-low-performance :is(.landing-nav, .client-head, .client-sidebar, .client-modal, .themed-select-menu) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.site-atmosphere.site-low-performance :is(.pa-art, .pa-band, .pulsar-stage, .pulsar-scene-props) *,
.site-atmosphere.site-low-performance .pulsar-stage::after { animation: none !important; }
.site-atmosphere.site-low-performance .landing-nav { background: var(--surface); }

/* Публичные страницы используют те же два ненавязчивых пятна, что кабинет. */
.site-ambient-lights { display: none; }
.site-atmosphere .site-ambient-lights { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.site-ambient-lights i { position: absolute; width: clamp(260px, 40vw, 650px); aspect-ratio: 1; left: -10%; top: 8%; opacity: .13; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0, color-mix(in srgb, var(--accent) 35%, transparent) 32%, transparent 70%); animation: site-light-drift 28s ease-in-out infinite alternate; }
.site-ambient-lights i + i { left: auto; top: auto; right: -8%; bottom: -10%; animation-delay: -14s; background: radial-gradient(circle, var(--accent-2) 0, color-mix(in srgb, var(--accent-2) 35%, transparent) 32%, transparent 70%); }
/* Переключаем декоративную анимацию одним классом при прокрутке вместо обхода всех Web Animations в JS. */
html.site-scroll-paused :is(.client-ambient-orb,.site-ambient-lights i,.pulsar-stage,.pa-art,.pa-band),
html.site-scroll-paused :is(.client-ambient-orb,.site-ambient-lights i,.pulsar-stage,.pa-art,.pa-band) * { animation-play-state: paused !important; }
@keyframes site-light-drift { to { transform: translate3d(10%, -8%, 0) scale(1.08); } }
html:is(.server-decor-off,.client-user-decor-off) .site-ambient-lights { display: none; }
html:is(.server-effects-off,.client-user-effects-off,.site-low-performance,.perf-lite) .site-ambient-lights i { animation: none; }
html.atmosphere-paused .site-ambient-lights i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .site-ambient-lights i { animation: none; } }
