/* Bosko 200: главная. Взято из одобренного макета docs/design-ui/mockup/landing.html */
/* ===== Токены (сняты с multibot.pro) ===== */
:root {
  --bg: #131011;
  --surface: #1c1718;
  --surface-hi: #261e1f;
  --field: #1f1a1b;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .15);
  --hover: rgba(255, 255, 255, .05);
  --text: #f8fafc;
  --text-2: rgba(255, 255, 255, .86);
  --muted: rgba(255, 255, 255, .6);
  --faint: rgba(255, 255, 255, .4);
  --primary: #d9363e;
  --primary-hover: #b92c33;
  --primary-ink: #ff7a80;
  --primary-soft: rgba(217, 54, 62, .16);
  --danger: #d23b39;
  --success: #2c974d;
  --success-ink: #4cc574;
  --secondary: #4b4345;
  --radius: 5px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --border-soft: rgba(255, 255, 255, .06);
  --hero-text: #fff;
  --lead-text: rgba(255, 255, 255, .88);
  --body-text: rgba(255, 255, 255, .78);
  --shadow: rgba(0, 0, 0, .3);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f0f0;
  --surface: #ffffff;
  --surface-hi: #f6efef;
  --field: #f8f5f5;
  --border: rgba(40, 12, 16, .11);
  --border-strong: rgba(40, 12, 16, .2);
  --border-soft: rgba(40, 12, 16, .08);
  --hover: rgba(40, 12, 16, .04);
  --text: #1d1416;
  --text-2: rgba(29, 20, 22, .84);
  --muted: rgba(29, 20, 22, .6);
  --faint: rgba(29, 20, 22, .42);
  --primary-ink: #c02a32;
  --primary-soft: rgba(217, 54, 62, .1);
  --success-ink: #1d8644;
  --secondary: #cdc2c3;
  --hero-text: #1d1416;
  --lead-text: rgba(29, 20, 22, .82);
  --body-text: rgba(29, 20, 22, .74);
  --shadow: rgba(70, 20, 25, .16);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; }
}
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--font); overflow-x: clip; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--primary-ink); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ic-brand { width: 20px; height: 20px; flex: none; fill: currentColor; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.page { position: relative; isolation: isolate; }

/* ===== Фоновые волны ===== */
.waves { position: absolute; inset: 0 0 auto 0; z-index: -1; height: 1700px; overflow: hidden; pointer-events: none; }
.waves svg { position: absolute; height: auto; }
.waves-r { top: -30px; right: -60px; width: min(860px, 115vw); aspect-ratio: 720 / 620; }
.waves-l { top: 560px; left: -70px; width: min(520px, 85vw); aspect-ratio: 520 / 760; opacity: .8; }

/* ===== Шапка-плашка ===== */
.site-head { position: relative; z-index: 50; margin-top: 24px; }
.plate {
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 16px;
  border: 1px solid var(--border-soft); border-radius: 8px;
  background: var(--surface);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 21px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; text-decoration: none;
}
.brand .logo { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--muted); font-weight: 600; }

.btn-login { margin-left: auto; }
.btn-login .short { display: none; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 42px; padding: 0 20px; border: 0; border-radius: 4px;
  color: var(--text); font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn-primary { background: var(--primary); color: #f8fafc; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-dark { border: 1px solid var(--border-soft); background: var(--surface); }
.btn-dark:hover { background: var(--surface-hi); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }

/* ===== Первый экран ===== */
.hero { position: relative; isolation: isolate; padding: clamp(80px, 13vw, 136px) 0 clamp(56px, 9vw, 104px); text-align: center; }
.hero-mark {
  position: absolute; z-index: -1; left: 50%; top: 44%; width: min(380px, 78vw); height: auto; aspect-ratio: 1;
  transform: translate(-50%, -50%); color: var(--primary); opacity: .13; pointer-events: none;
}
.hero h1 {
  margin: 0; font-size: clamp(44px, 8vw, 60px); font-weight: 700; line-height: 1.05; color: var(--hero-text);
}
.lead {
  max-width: 660px; margin: 22px auto 0;
  color: var(--lead-text); font-size: clamp(18px, 2.3vw, 22px); line-height: 1.45;
}
.lead span { display: block; }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* ===== Блоки возможностей ===== */
.features { padding-bottom: 24px; }
.feature { display: grid; align-items: center; gap: 36px; padding: clamp(52px, 8vw, 92px) 0; }
.feature + .feature { border-top: 1px solid var(--border-soft); }
.feature-text { max-width: 580px; }

.feature h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 38px); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--body-text); font-size: clamp(16px, 1.8vw, 18px); line-height: 1.6; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; list-style: none; }
.checks li { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 15.5px; }
.checks .ic { width: 18px; height: 18px; color: var(--success-ink); stroke-width: 2.6; }
.feature-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

@media (min-width: 960px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .feature:nth-child(even) .feature-visual { order: 2; }
}

/* Подложка картинки-примера */
.vis { position: relative; display: grid; padding: 6px 0; }
.vis > * { position: relative; z-index: 1; }
.vis-top { width: min(100%, 470px); }
.vis-bottom { z-index: 2; width: min(100%, 470px); margin-top: -26px; }
.pad-b { padding-bottom: 42px !important; }
.w-sm { width: min(86%, 340px); }
.w-md { width: min(92%, 400px); }
.to-right { margin-left: auto; }

/* ===== Мини-макеты Discord ===== */
.dc {
  padding: 14px 16px 16px; border: 1px solid rgba(255, 255, 255, .05); border-radius: 6px;
  background: #313338; color: #dbdee1; font-size: 14px; line-height: 1.4;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
.dc-msg { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
.dc-avatar { width: 38px; height: 38px; overflow: hidden; border-radius: 50%; }
.dc-avatar svg { display: block; width: 100%; height: 100%; }
.dc-body { min-width: 0; }
.dc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; }
.dc-name { color: #f2f3f5; font-weight: 600; }
.dc-bot {
  display: inline-flex; align-items: center; gap: 2px; height: 16px; padding: 0 5px 0 3px;
  border-radius: 4px; background: #5865f2; color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
}
.dc-bot .ic { width: 10px; height: 10px; stroke-width: 3.5; }
.dc-time { color: #949ba4; font-size: 12px; }
.dc-text { margin: 0 0 4px; }
.embed {
  display: grid; gap: 6px; padding: 10px 14px 12px 12px;
  border-left: 4px solid var(--stripe, #5865f2); border-radius: 4px; background: #2b2d31;
}
.embed + .embed { margin-top: 8px; }
.e-title { color: #f2f3f5; font-size: 15px; font-weight: 600; }
.e-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px 14px; }
.e-row { font-size: 13.5px; overflow-wrap: anywhere; }
.e-row b { display: block; color: #f2f3f5; font-size: 13px; font-weight: 600; }
.e-row.wide { grid-column: 1 / -1; }
.e-lines { display: grid; gap: 2px; font-size: 13.5px; }
.e-lines b { color: #f2f3f5; font-weight: 600; }
.e-sub { margin-top: 4px; color: #f2f3f5; font-size: 13.5px; font-weight: 600; }
.e-list { display: grid; gap: 2px; margin: 0; padding-left: 20px; font-size: 13.5px; }
.e-more { color: #949ba4; font-size: 12.5px; }
.e-foot { color: #949ba4; font-size: 12px; }
.e-muted { color: #949ba4; }
.mention { padding: 0 2px; border-radius: 3px; background: rgba(88, 101, 242, .3); color: #c9cdfb; font-weight: 500; }
.mention.role { background: rgba(59, 158, 255, .16); color: #6fb6ff; }
.dc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dc-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 14px;
  border-radius: 5px; background: #5865f2; color: #fff; font-size: 13.5px; font-weight: 500;
}
.dc-btn.grey { background: #4e5058; }
.dc-btn.green { background: #248046; }
.dc-btn.red { background: #da373c; }
.dc-btn.off { opacity: .5; }
.dc-btn .ic { width: 15px; height: 15px; }
.dc-decision { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; }
.dc-decision .ic { width: 17px; height: 17px; color: #3ba55d; }

/* Список каналов Discord */

/* Мониторинг */

/* ===== Мини-макеты панели ===== */
.pcard {
  padding: 14px 16px 16px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); font-size: 13.5px; box-shadow: 0 6px 16px var(--shadow);
}
.pc-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; font-size: 15px; font-weight: 600; }
.pc-label { margin: 10px 0 6px; color: var(--muted); font-size: 12.5px; }
.pc-input {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; overflow: hidden;
  border: 1px solid var(--border); border-radius: 4px; background: var(--field); color: var(--text-2); white-space: nowrap;
}
.pc-input .ic { width: 14px; height: 14px; color: var(--faint); }
.pc-input .trail { margin-left: auto; color: var(--muted); }

.mswitch {
  flex: none; width: 34px; height: 20px; border-radius: 999px;
  background: radial-gradient(circle closest-side, #fff 0 7px, transparent 8px) 14px 0 / 20px 20px no-repeat, var(--primary);
}
.mswitch.off { background-color: var(--secondary); background-position: 0 0; }
.pc-row {
  display: flex; align-items: center; gap: 8px; min-height: 36px; margin-top: 6px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 4px; background: var(--field); color: var(--text-2);
}
.pc-row .ic { width: 15px; height: 15px; }
.pc-row .grip { color: var(--faint); }
.pc-row .x { margin-left: auto; color: var(--muted); }
.pc-row .mswitch { margin-left: auto; }
.pc-add {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; margin-top: 8px;
  border: 1.5px dashed rgba(217, 54, 62, .5); border-radius: 4px; color: var(--primary-ink); font-size: 13px;
}
.pc-add .ic { width: 15px; height: 15px; }


/* ===== Призыв и подвал ===== */

.site-foot { padding: 36px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px 40px; }
.foot-about { max-width: 360px; }
.foot-about p { margin: 12px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px 22px; }
.foot-links a { color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 28px; color: var(--faint); font-size: 13px; }

/* Уведомление-заглушка макета */

/* ===== Телефон ===== */

@media (max-width: 640px) {
  .site-head { margin-top: 12px; top: 8px; }
  .plate { padding: 8px 8px 8px 12px; }
  .brand { font-size: 19px; }
  .brand .logo { width: 30px; height: 30px; }
  .vis-bottom { margin-top: -22px; }
  .pad-b { padding-bottom: 36px !important; }
  .waves-r { opacity: .65; }
  .waves-l { top: 820px; opacity: .45; }
}
@media (max-width: 480px) {
  .btn-login .long { display: none; }
  .btn-login .short { display: inline; }
  .hero-btns .btn { width: 100%; }
  .feature-btns .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  
  .btn, .plate { transition: none; }
}

/* ===== Сообщения Discord как настоящий скриншот (размеры и цвета тёмной темы Discord) ===== */
.dc, .dc * { font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.dc {
  padding: 12px 16px 14px; border: 0; border-radius: 8px;
  background: #313338; color: #dbdee1; font-size: 16px; line-height: 1.375; font-weight: 400;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  -webkit-font-smoothing: antialiased;
}
.dc-msg { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
.dc-avatar { width: 40px; height: 40px; margin-top: 2px; }
.dc-meta { display: block; margin: 0; line-height: 22px; }
.dc-name { font-size: 16px; font-weight: 500; color: #f2f3f5; }
.dc-bot {
  position: relative; top: -2px; display: inline-flex; align-items: center; gap: 1px;
  height: 15px; margin-left: 4px; padding: 0 4px 0 2px; border-radius: 3px;
  background: #5865f2; color: #fff; font-size: 10px; line-height: 15px; font-weight: 500;
  letter-spacing: 0; text-transform: uppercase; vertical-align: middle;
}
.dc-bot .ic { width: 13px; height: 13px; stroke-width: 3; }
.dc-time { margin-left: 4px; font-size: 12px; font-weight: 500; color: #949ba4; }
.dc-text { margin: 0; font-size: 16px; line-height: 22px; color: #dbdee1; }
.embed {
  display: grid; gap: 0; max-width: 516px; margin-top: 4px; padding: 8px 16px 16px 12px;
  border-left: 4px solid var(--stripe, #5865f2); border-radius: 4px; background: #2b2d31;
}
.embed > * { margin-top: 8px; }
.embed + .embed { margin-top: 8px; }
.e-title { font-size: 16px; line-height: 22px; font-weight: 600; color: #f2f3f5; }
.e-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
.e-row { font-size: 14px; line-height: 18px; color: #dbdee1; }
.e-row b { display: block; margin-bottom: 2px; font-size: 14px; line-height: 18px; font-weight: 600; color: #f2f3f5; }
.e-row.wide { grid-column: 1 / -1; }
.e-lines { gap: 0; font-size: 14px; line-height: 18px; color: #dbdee1; }
.e-lines b { font-weight: 700; color: #dbdee1; }
.e-sub { font-size: 14px; line-height: 18px; font-weight: 700; color: #dbdee1; }
.e-sub + .e-list { margin-top: 2px; }
.e-list { gap: 0; padding-left: 22px; font-size: 14px; line-height: 18px; }
.e-list + .e-more { margin-top: 0; }
.e-more { font-size: 14px; line-height: 18px; color: #949ba4; }
.e-foot { font-size: 12px; line-height: 16px; font-weight: 500; color: #dbdee1; }
.e-muted { color: #949ba4; }
.dc .mention { padding: 0 2px; border-radius: 3px; background: rgba(88, 101, 242, .3); color: #c9cdfb; font-weight: 500; }
.dc .mention.role { background: rgba(52, 152, 219, .1); color: #3498db; }
.dc-actions { gap: 8px; margin-top: 8px; }
.dc-btn {
  height: 32px; min-height: 32px; min-width: 60px; padding: 2px 16px; gap: 6px;
  border-radius: 3px; font-size: 14px; line-height: 16px; font-weight: 500; color: #fff;
}
.dc-btn.off { opacity: .5; }
.dc-decision { display: block; margin-top: 6px; font-size: 16px; line-height: 22px; color: #dbdee1; }
.dc-edited { margin-left: 4px; font-size: 10px; color: #949ba4; }

/* Время из бота в Discord подсвечено серым фоном */
.dc-ts { padding: 0 2px; border-radius: 3px; background: rgba(255, 255, 255, .06); }

/* Поля эмбеда не рвутся посреди слова */
.dc .e-row { overflow-wrap: break-word; }
.dc .mention { white-space: nowrap; }

/* ===== Анимации появления как у multibot.pro ===== */
.js .anim-up, .js .anim-left, .js .anim-right { opacity: 0; }
.js.anim-armed .anim-up, .js.anim-armed .anim-left, .js.anim-armed .anim-right {
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s);
}
.js .anim-up { transform: translateY(20px); }
.js .anim-left { transform: translateX(-50px); }
.js .anim-right { transform: translateX(50px); }
.js .is-in { opacity: 1; transform: none; }
/* Блоки до появления сдвинуты вбок: обрезаем по краю экрана, иначе страница ездит вправо */
main { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  .js .anim-up, .js .anim-left, .js .anim-right { opacity: 1; transform: none; transition: none; }
}

.lead span { text-wrap: balance; }
.dc-narrow .e-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  .feature { padding: 36px 0; gap: 22px; }
  .vis-top, .vis-bottom, .w-sm, .w-md { width: 100%; }
  .vis-bottom { margin-top: 12px; }
  .to-right { margin-left: 0; }
  .pad-b { padding-bottom: 16px !important; }
}

/* ===== Кнопка темы ===== */
.theme-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; margin-left: auto; padding: 0;
  border: 0; border-radius: 4px; background: transparent; color: var(--text-2); cursor: pointer;
}
.theme-btn:hover { background: var(--hover); color: var(--text); }
.theme-btn + .btn-login { margin-left: 0; }
.theme-btn .ic-moon { display: none; }
:root[data-theme="light"] .theme-btn .ic-sun { display: none; }
:root[data-theme="light"] .theme-btn .ic-moon { display: block; }
html:not(.js) .theme-btn { display: none; }
