:root {
  --paper: #f4f5ef;
  --white: #fff;
  --ink: #17251f;
  --muted: #647169;
  --line: #dce3da;
  --green: #244e3b;
  --lime: #d7f79c;
  --red: #a13c32;
  --soft: #eaf0e6;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  padding: 11px 17px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
}
button:hover,
.button:hover {
  border-color: var(--green);
  background: var(--soft);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #153e2b;
  color: white;
}
.lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.danger {
  color: var(--red);
}
.small {
  padding: 7px 11px;
  font-size: 12px;
}
.ghost {
  background: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #70a667;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.055em;
  font-weight: 650;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 17px;
  letter-spacing: -0.015em;
}
p {
  line-height: 1.65;
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 18px;
}
.muted,
small {
  color: var(--muted);
}
.brand {
  font-size: 21px;
  letter-spacing: -0.055em;
  font-weight: 750;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 31px;
  height: 31px;
  background: var(--lime);
  color: var(--green);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 17px;
  letter-spacing: -5px;
  padding-right: 4px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 15px;
  z-index: 20;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 8px;
}
[hidden] {
  display: none !important;
}
.workspace #root {
  min-height: 100vh;
}
.sidebar {
  width: 230px;
  background: #193b2b;
  color: #e5efdf;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav a {
  padding: 12px 15px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 14px;
  color: #bfcebf;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: #30503c;
  color: #edffcd;
}
.sidebar .sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 16px;
  font-size: 12px;
}
.sidebar small {
  color: #b6c5b9;
}
.sidebar .brand {
  color: white;
}
.main {
  margin-left: 230px;
  padding: 32px 42px 60px;
  max-width: 1660px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 40px;
  font-size: 13px;
}
.topbar .avatar {
  background: #e3eadc;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-head h1 {
  margin-bottom: 8px;
  font-size: 36px;
}
.page-head p {
  margin-bottom: 0;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 30px;
}
.stat,
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.stat strong {
  font-size: 34px;
  display: block;
  letter-spacing: -0.04em;
  margin: 12px 0;
}
.stat small {
  font-size: 12px;
}
.stat.highlight {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.stat.highlight p,
.stat.highlight small {
  color: #d0dfc9;
}
.stat p {
  margin-bottom: 0;
  font-size: 13px;
}
.card {
  margin-bottom: 20px;
}
.card h2 {
  font-size: 20px;
}
.card p:last-child {
  margin-bottom: 0;
}
.banner {
  background: #e5eddd;
  border: 1px solid #d2dfc8;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.banner h3 {
  margin-bottom: 6px;
}
.banner p {
  margin: 0;
  font-size: 14px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th {
  text-align: left;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
td,
th {
  padding: 17px 12px;
  border-bottom: 1px solid #e9ede5;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
tr:last-child td {
  border: 0;
}
.clip-title {
  font-weight: 650;
  display: block;
  text-decoration: none;
  max-width: 380px;
  overflow-wrap: anywhere;
}
.clip-title:hover {
  text-decoration: underline;
}
.badge {
  display: inline-flex;
  border: 1px solid var(--line);
  background: #f0f3ec;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.3;
  white-space: normal;
}
.badge.good {
  background: #e9f4e3;
  color: #326629;
  border-color: #cee3c4;
}
.badge.warn {
  background: #fff5da;
  color: #806019;
  border-color: #eadcad;
}
.badge.bad {
  background: #ffede7;
  color: #973a29;
  border-color: #eed2c7;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.grid .card {
  margin: 0;
}
.platform {
  width: 39px;
  height: 39px;
  background: #e5f0e9;
  color: #234b36;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 18px;
}
.empty {
  padding: 54px 24px;
  text-align: center;
}
.empty .symbol {
  font-size: 34px;
  margin-bottom: 18px;
  color: #638069;
}
.empty p {
  max-width: 460px;
  margin: 0 auto 22px;
}
.error {
  background: #fff0eb;
  border: 1px solid #ebc8bb;
  color: #8e3c2e;
  padding: 16px;
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 20px;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 19px;
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5c8;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  color: var(--ink);
  font-weight: 400;
}
.field textarea {
  resize: vertical;
  min-height: 95px;
}
.field small {
  font-weight: 400;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  margin: 13px 0;
}
.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}
.destination-picker { margin-top: 28px; }
.destination-picker h2 { margin-bottom: 4px; }
.destination-row { border: 1px solid var(--line); border-radius: 12px; margin: 8px 0; padding: 10px 14px; }
.destination-row.selected { border-color: var(--green); background: #f5f9f3; }
.destination-row > .check { margin: 2px 0; cursor: pointer; }
.destination-row .check span { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.destination-row .check small { color: var(--muted); }
.destination-options { display: none; padding-left: 27px; }
.destination-row.selected .destination-options { display: block; }
fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  min-width: 0;
}
legend {
  font-weight: 600;
  font-size: 14px;
  padding: 0 8px;
}
details {
  margin: 14px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
}
details > div {
  padding-top: 18px;
}
.editor {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 30px;
}
.preview video {
  display: block;
  width: 100%;
  max-height: 520px;
  background: #17251f;
  border-radius: 14px;
  aspect-ratio: 9/16;
}
.preview {
  align-self: start;
  position: sticky;
  top: 22px;
}
.editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.login {
  max-width: 540px;
  margin: 8vh auto;
  padding: 32px;
}
.login .card {
  padding: 32px;
}
.login h1 {
  font-size: 38px;
}
.login .code {
  letter-spacing: 0.2em;
  font:
    700 28px ui-monospace,
    monospace;
  margin: 20px 0;
  color: var(--green);
}
.login small {
  font-size: 12px;
  line-height: 1.6;
}
.login-footer {
  display: flex;
  gap: 20px;
  font-size: 12px;
  margin-top: 30px;
}
.login .primary {
  width: 100%;
}
progress {
  appearance: none;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  background: #46614c;
}
progress::-webkit-progress-bar {
  background: #46614c;
}
progress::-webkit-progress-value {
  background: var(--lime);
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #193b2b;
  color: white;
  border-radius: 12px;
  padding: 16px 22px;
  max-width: min(450px, 90vw);
  box-shadow: 0 12px 50px #17251f33;
  z-index: 100;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: 650px;
  width: calc(100% - 32px);
  padding: 28px;
  max-height: 90vh;
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop {
  background: #14221bb3;
}
.vk-group-option {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
/* Public site */
.site-wrap {
  max-width: 1220px;
  margin: auto;
  padding: 0 32px;
}
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.site-nav nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 13px;
}
.site-nav nav a {
  text-decoration: none;
}
.hero {
  padding: 85px 0 75px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 60px;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 70px);
  margin-bottom: 25px;
}
.hero h1 em {
  font-style: normal;
  color: #668d4b;
}
.hero .lead {
  font-size: 17px;
  max-width: 440px;
  line-height: 1.75;
}
.hero .row {
  margin: 30px 0 18px;
}
.hero small {
  font-size: 12px;
}
.hero-demo {
  border-radius: 24px;
  background: #e2e9d9;
  border: 1px solid #d5decb;
  padding: 26px;
  transform: rotate(-2deg);
}
.demo-window {
  background: white;
  border: 1px solid #d0d9c9;
  border-radius: 15px;
  box-shadow: 0 22px 45px #183d2612;
  overflow: hidden;
  transform: rotate(2deg);
}
.demo-top {
  border-bottom: 1px solid var(--line);
  padding: 17px 20px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.demo-body {
  padding: 22px;
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 20px;
}
.demo-video {
  height: 183px;
  background: #254a38;
  border-radius: 10px;
  color: var(--lime);
  display: grid;
  place-content: center;
  font-size: 33px;
  font-weight: 700;
  text-align: center;
}
.demo-video small {
  font-size: 10px;
  display: block;
  color: #daefcb;
  margin-top: 12px;
}
.demo-body h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.demo-body p {
  font-size: 11px;
}
.demo-dest {
  border: 1px solid var(--line);
  padding: 11px;
  border-radius: 8px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 9px 0;
}
.demo-bottom {
  padding: 17px 22px;
  background: #fafbf7;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}
.section-title {
  max-width: 650px;
  margin-bottom: 36px;
}
.section-title h2 {
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.15;
  margin-bottom: 17px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature-grid p {
  font-size: 14px;
}
.feature-number {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #819674;
  display: block;
  margin-bottom: 38px;
}
.feature-grid .card {
  padding: 28px;
}
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.platform-list {
  display: grid;
  gap: 0;
}
.platform-row {
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.platform-row:first-child {
  padding-top: 0;
}
.platform-row h3 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.platform-row p {
  font-size: 14px;
  margin: 0;
}
.roadmap {
  background: #e6ecdf;
  border-radius: 20px;
  padding: 30px;
  margin-top: 30px;
}
.roadmap h3 {
  margin-bottom: 15px;
}
.roadmap p {
  font-size: 14px;
  margin: 10px 0;
}
.faq details {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.faq p {
  margin: 15px 0 0;
  font-size: 14px;
}
.site-cta {
  background: var(--green);
  color: white;
  border-radius: 22px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 40px 0 70px;
}
.site-cta p {
  color: #cbdcc4;
}
.site-cta h2 {
  font-size: 33px;
  max-width: 600px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding: 30px 0;
  font-size: 12px;
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer a {
  text-decoration: none;
}
@media (max-width: 1000px) {
  .main {
    padding: 25px;
    margin-left: 200px;
  }
  .sidebar {
    width: 200px;
    padding: 26px 16px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
  .hero {
    gap: 30px;
    padding: 60px 0;
  }
  .demo-body {
    grid-template-columns: 80px 1fr;
    gap: 12px;
  }
  .split-section {
    gap: 40px;
  }
  .editor {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 20px;
    gap: 18px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }
  .sidebar nav a {
    white-space: nowrap;
    padding: 9px;
  }
  .sidebar-bottom {
    display: none !important;
  }
  .main {
    margin: 0;
    padding: 22px 18px;
  }
  .topbar {
    margin-bottom: 28px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .page-head h1 {
    font-size: 30px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 20px;
  }
  .stat strong {
    font-size: 28px;
    margin: 7px 0;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }
  .editor {
    grid-template-columns: 1fr;
  }
  .preview {
    position: static;
    max-width: 280px;
    width: 100%;
    margin: auto;
  }
  .card {
    padding: 20px;
  }
  .login {
    padding: 22px;
    margin: 4vh auto;
  }
  .login .card {
    padding: 25px;
  }
  .site-wrap {
    padding: 0 22px;
  }
  .site-nav {
    flex-wrap: wrap;
    gap: 18px;
  }
  .site-nav nav {
    gap: 17px;
    flex-wrap: wrap;
  }
  .site-nav nav .nav-more {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0;
    gap: 40px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero-demo {
    padding: 20px;
    margin: 0 3px;
  }
  .demo-body {
    grid-template-columns: 95px 1fr;
  }
  .section {
    padding: 48px 0;
  }
  .feature-grid,
  .split-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-number {
    margin-bottom: 22px;
  }
  .site-cta {
    padding: 30px;
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer {
    flex-direction: column;
    gap: 20px;
  }
  .demo-bottom {
    gap: 8px;
  }
  .demo-bottom .button {
    font-size: 10px;
    padding: 9px;
  }
  .topbar .row {
    gap: 6px;
  }
  .field {
    font-size: 14px;
  }
  td,
  th {
    padding: 13px 10px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  .button,
  a {
    transition:
      background 0.15s,
      color 0.15s;
  }
  html {
    scroll-behavior: smooth;
  }
}

.site-cta .eyebrow {
  color: var(--lime);
}
.grid + .card {
  margin-top: 24px;
}
.editor > div,
.main {
  min-width: 0;
}
.topbar {
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .table-wrap table,
  .table-wrap tbody {
    display: block;
  }
  .table-wrap thead {
    display: none;
  }
  .table-wrap tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }
  .table-wrap tr:last-child {
    border: 0;
    padding-bottom: 0;
  }
  .table-wrap td {
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .table-wrap td:first-child {
    grid-column: 1 / -1;
  }
  .table-wrap td:nth-child(2) {
    font-size: 12px;
    color: var(--muted);
  }
  .table-wrap td:last-child {
    grid-column: 1 / -1;
  }
  .table-wrap .clip-title {
    font-size: 15px;
    line-height: 1.5;
    max-width: none;
  }
}

.language-switch { display: flex; gap: 12px; margin-top: 6px; font-size: 12px; }
.login > .language-switch { margin-bottom: 20px; }
