/* Сайт Wordock — в стиле программы: тёплая бумага, чёрное и золото, шрифт Onest. */

@font-face {
  font-family: "Onest";
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/onest-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Onest";
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/onest-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f2efe8;
  --paper-2: #ebe6db;
  --sheet: #fffdf9;
  --text: #19191b;
  --muted: #6d6a64;
  --rule: #e0dbd1;
  --ink: #19191b;
  --on-ink: #fffdf9;
  --gold: #d99f30;
  --gold-soft: #f7ebcf;
  --chrome: #161618;
  --chrome-2: #222225;
  --chrome-text: #efe9dc;
  --chrome-muted: #9a958c;
  --chrome-rule: #2e2e32;
  --shadow: 0 30px 80px -30px rgb(25 25 27 / 0.35);
  /* Бирюзовый маркер Word: в светлой теме — яркий, в тёмной — как его рисует Word. */
  --mark: #3be8e4;
  --mark-text: #19191b;
  --mark-flash: #00cfcf;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111113;
    --paper-2: #161618;
    --sheet: #1b1b1e;
    --text: #ece6da;
    --muted: #9a958c;
    --rule: #303035;
    --ink: #e2ac45;
    --on-ink: #161618;
    --gold: #e2ac45;
    --gold-soft: #2e2819;
    --chrome: #0b0b0c;
    --chrome-2: #19191b;
    --chrome-rule: #26262a;
    --shadow: 0 30px 80px -30px rgb(0 0 0 / 0.8);
    --mark: #115554;
    --mark-text: #ffffff;
    --mark-flash: #1a7a78;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Скрытое скрыто всегда — даже если у элемента свой display (карточки). */
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Onest", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 650;
  margin-bottom: 36px;
}
h3 {
  font-size: 1.125rem;
  font-weight: 620;
}
p {
  margin: 0;
}
code {
  font-family: inherit;
  font-weight: 600;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--gold-soft);
}

.wrap {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}
.narrow {
  width: min(760px, 100% - 40px);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
  text-decoration: none;
  transition:
    filter 0.15s ease,
    background-color 0.15s ease;
}
.btn:hover {
  filter: brightness(1.12);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--rule);
}
.btn-ghost:hover {
  filter: none;
  border-color: var(--ink);
}
.btn-small {
  padding: 8px 18px;
  font-size: 0.9375rem;
}
.btn-big {
  padding: 18px 34px;
  font-size: 1.125rem;
}
.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

/* ---------- Шапка ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}
.brand-small {
  font-size: 1rem;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Переключатель языка RU / KZ. */
.lang {
  display: flex;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--rule);
}
.lang button {
  padding: 4px 9px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.lang button:hover {
  color: var(--text);
}
.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-ink);
}

/* «Связаться»: окошко с почтой под кнопкой. */
.contact {
  position: relative;
}
.contact-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 18px;
  border-radius: 12px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}
.contact-title {
  color: var(--muted);
  font-size: 0.875rem;
}
/* Адрес почты: выделяется одним щелчком. */
.contact-mail {
  font-weight: 600;
  overflow-wrap: anywhere;
  user-select: all;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}
.nav a:hover {
  color: var(--text);
}


/* Форма «Связаться». */
.contact-panel {
  width: min(380px, calc(100vw - 32px));
}
.contact-form {
  display: grid;
  gap: 12px;
}
.field {
  display: grid;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.contact-form .btn {
  justify-self: start;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-status {
  min-height: 1.2em;
  font-size: 0.875rem;
  color: var(--muted);
}
.form-status.bad {
  color: #c0392b;
}
.contact-done {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.contact-alt {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--muted);
}
.contact-alt .contact-mail {
  display: inline;
  margin: 0;
  font-size: inherit;
  color: var(--text);
}
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Первый экран ---------- */
.hero {
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  color: var(--muted);
  font-weight: 550;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.mark {
  background: linear-gradient(transparent 62%, var(--gold-soft) 62%);
  box-decoration-break: clone;
}
.lead {
  margin-top: 24px;
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 34ch;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.fine {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Живое окно программы и документ рядом. */
.demo {
  position: relative;
  padding: 0 0 56px 0;
}
.window {
  border-radius: 12px;
  overflow: hidden;
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  width: 88%;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--chrome);
  color: var(--chrome-text);
  font-size: 0.8125rem;
  font-weight: 650;
}
.win-body {
  display: grid;
  grid-template-columns: 38% 62%;
  min-height: 300px;
}
.win-lib {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  background: var(--chrome);
  border-top: 1px solid var(--chrome-rule);
  font-size: 0.75rem;
  color: var(--chrome-text);
}
.lib-folder {
  margin-top: 8px;
  padding: 2px 8px;
  color: var(--chrome-muted);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lib-folder:first-child {
  margin-top: 0;
}
.lib-item {
  padding: 5px 8px;
  border-radius: 5px;
}
.lib-item.on {
  background: var(--chrome-2);
  box-shadow: inset 2px 0 0 #e2ac45;
}
.win-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 20px;
}
.form-title {
  font-weight: 650;
  font-size: 0.9375rem;
}
.fld {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}
.inp {
  display: block;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  color: var(--text);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
}
.inp.typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: var(--text);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
.fake-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 7px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}
.sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56%;
  padding: 22px 22px 26px;
  border-radius: 6px;
  background: var(--sheet);
  color: var(--text);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  font-family: "Times New Roman", Georgia, serif;
  font-size: 0.8125rem;
  line-height: 1.6;
  display: grid;
  gap: 6px;
}
.sheet-head {
  text-align: right;
  color: var(--muted);
}
.sheet-title {
  text-align: center;
  font-weight: 700;
  margin: 4px 0;
}
.sheet-date {
  text-align: right;
}
.fill {
  font-weight: 600;
  padding: 0 2px;
  border-radius: 3px;
  /* Как бирюзовый маркер Word в записи экрана шага 1. */
  background: var(--mark);
  color: var(--mark-text);
  transition: background-color 0.6s ease;
}
.fill:empty::before {
  content: "\2003\2003\2003";
}
.fill.flash {
  background: var(--mark-flash);
}

/* ---------- Разделы ---------- */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}
.section-lead {
  margin: -20px 0 32px;
  color: var(--muted);
}
.cards {
  display: grid;
  gap: 20px;
}
.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: 12px;
  background: var(--sheet);
  border: 1px solid var(--rule);
}
.card p {
  color: var(--muted);
}
.badge {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.steps li {
  display: grid;
  gap: 10px;
  align-content: start;
}
.steps p {
  color: var(--muted);
}
.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 700;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 40px;
}
.feature {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.feature p {
  color: var(--muted);
}

/* ---------- «Как это работает»: вкладки шагов и плеер ---------- */
.tour {
  display: grid;
  gap: 18px;
}
/* Вкладки шагов в ряд; описание активного шага — строкой под ними. */
.tour-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.tour-steps button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tour-steps button:hover {
  background: color-mix(in srgb, var(--sheet) 60%, transparent);
}
.tour-steps button[aria-pressed="true"] {
  background: var(--sheet);
  border-color: var(--rule);
}
.tour-steps .step-n {
  width: 34px;
  height: 34px;
  font-size: 0.9375rem;
  background: var(--rule);
  color: var(--muted);
  transition: background-color 0.2s ease;
}
.tour-steps button[aria-pressed="true"] .step-n {
  background: var(--ink);
  color: var(--on-ink);
}
.tour-text b {
  font-weight: 620;
  font-size: 0.9375rem;
  line-height: 1.3;
}
/* Описание шага внутри вкладки не показываем — его текст выводится строкой под вкладками. */
.tour-text > span {
  display: none;
}
.tour-caption {
  max-width: 80ch;
  min-height: 3em;
  color: var(--muted);
}

/* Плеер: записи экрана в своих пропорциях на тёмном фоне. */
.stage {
  position: relative;
  aspect-ratio: 1600 / 775;
  border-radius: 16px;
  background: #0b0b0c;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}
.scene.on {
  opacity: 1;
  visibility: visible;
}
.scene video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Кнопка пауза/пуск и полоска хода внизу. */
.player {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.55));
}
.play {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  cursor: pointer;
}
.play:hover {
  background: #fff;
}
.play:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
/* Значок: две полоски — пауза; треугольник — пуск. */
.play .ico {
  width: 12px;
  height: 14px;
  border-left: 4px solid #161618;
  border-right: 4px solid #161618;
}
.play.paused .ico {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #161618;
}
.player-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.3);
  overflow: hidden;
}
.player-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #e2ac45;
}

/* ---------- Тарифы ---------- */
.period {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 4px;
  border-radius: 10px;
  background: var(--sheet);
  border: 1px solid var(--rule);
}
.period button {
  padding: 8px 22px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.period button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-ink);
}
.save {
  margin-left: 4px;
  color: var(--gold);
  font-size: 0.8125rem;
}
.period button[aria-pressed="true"] .save {
  color: inherit;
}
.price .seats {
  margin-top: -6px;
}
.amount {
  margin-top: 8px;
  color: var(--text) !important;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.amount small {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}
.per-year {
  min-height: 1.4em;
  margin-top: -10px;
  font-size: 0.875rem;
}
.price ul {
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--muted);
}
.price li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--gold);
  font-weight: 700;
}
.price .btn {
  margin-top: auto;
}
.featured {
  border: 2px solid var(--ink);
}
.featured .badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--ink);
  color: var(--on-ink);
}

/* ---------- Как начать ---------- */
.start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}
.start h2 {
  margin-bottom: 20px;
}
.start-steps {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 8px;
  font-size: 1.125rem;
}
.download {
  text-align: center;
}

/* ---------- Вопросы ---------- */
details {
  border-bottom: 1px solid var(--rule);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 36px 20px 0;
  position: relative;
  font-weight: 600;
  font-size: 1.0625rem;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  padding: 0 0 22px;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Подвал ---------- */
.foot {
  padding: 36px 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.foot .brand {
  color: var(--text);
}
.foot-contact {
  margin-left: auto;
}
.foot-contact a {
  color: var(--text);
}
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 16px;
  font-size: 0.8125rem;
}
.nowrap {
  white-space: nowrap;
}

/* ---------- Документы (политика, оферта) ---------- */
.doc h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 650;
}
.doc h2 {
  font-size: 1.25rem;
  margin: 40px 0 12px;
}
.doc p + p,
.doc p + ul,
.doc ul + p {
  margin-top: 12px;
}
.doc ul {
  margin: 0;
  padding-left: 1.25em;
}
.doc li + li {
  margin-top: 8px;
}
.doc-meta {
  margin-top: 8px;
  color: var(--muted);
}
.doc-lead {
  font-weight: 600;
}

/* ---------- Узкие экраны ---------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .three,
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
  .tour-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .start {
    grid-template-columns: 1fr;
  }
  .download {
    text-align: left;
  }
}
@media (max-width: 720px) {
  .nav {
    display: none;
  }
  .top-row {
    justify-content: space-between;
    gap: 12px;
  }
  .top-actions {
    gap: 6px;
  }
  .top-actions .btn-small {
    padding: 8px 12px;
  }
  /* «Попробовать» есть на первом экране — в узкой шапке не помещается. */
  .top-actions > .btn:not(.btn-ghost) {
    display: none;
  }
  .foot-contact {
    margin-left: 0;
  }
  .hero {
    padding: 40px 0 64px;
  }
  .section {
    padding: 64px 0;
  }
  .window {
    width: 100%;
  }
  .win-lib {
    display: none;
  }
  .win-body {
    grid-template-columns: 1fr;
  }
  .sheet {
    position: relative;
    width: 92%;
    margin: -24px 0 0 auto;
  }
  .demo {
    padding-bottom: 0;
  }
  .tour-caption {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Личный кабинет ---------- */
.top-actions-end {
  margin-left: auto;
}
.cab {
  padding-top: 48px;
  min-height: calc(100vh - 160px);
}
.cab-wrap {
  width: min(820px, 100% - 40px);
}
.cab-main {
  display: grid;
  gap: 20px;
}
.cab h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 650;
}
.cab-loading {
  color: var(--muted);
}
.cab-login {
  max-width: 520px;
  margin: 40px auto;
  text-align: center;
  align-items: center;
}
.cab-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.cab-email {
  margin-top: 6px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.card-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 650;
}
.card .card-text {
  color: var(--text);
}
.plan {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text) !important;
}
.status {
  margin-top: -6px;
  font-weight: 550;
}
.status.ok {
  color: #2f8f4e !important;
}
.status.bad,
.bad {
  color: #c0392b !important;
}
.soon {
  color: var(--gold);
}
.pay {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 6px;
}
.devices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.device {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.device:last-child {
  border-bottom: 0;
}
.device-name {
  font-weight: 600;
  color: var(--text) !important;
}
.device .fine {
  margin-top: 2px;
}
.device-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.btn.danger {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}
.key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.key-code {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  user-select: all;
}
.cab-note {
  color: var(--muted);
}
@media (max-width: 720px) {
  .cab-head {
    align-items: flex-start;
  }
  .device {
    flex-direction: column;
    align-items: flex-start;
  }
  .device-actions {
    justify-content: flex-start;
  }
}
