.au {
  --au-ok: #1a7f46;
  --au-warn: #9a6200;
  --au-bad: #c0392b;
  --au-wa: #0f5a4a;
}

[data-theme="dark"] .au {
  --au-ok: #3ecf7a;
  --au-warn: #f0b443;
  --au-bad: #ff7a66;
}

.au-mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--mut);
}

.au-hero__in {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 80px;
}

.au-hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
}

.au-hero__title {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.au-hero__lead {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--mut);
  text-wrap: pretty;
}

.au-tags {
  justify-content: flex-start;
}

.au-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.au-hero__media {
  position: relative;
  min-height: 380px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg2);
}

.au-hero__media picture,
.au-hero__photo,
.au-hero__ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.au-hero__photo {
  object-fit: cover;
}

.au-hero__ph {
  padding: 24px 24px 140px;
}

.au-stat {
  position: absolute;
  right: 16px;
  bottom: 16px;
  max-width: 240px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--card);
  color: var(--fg);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.au-stat__k {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--acc);
}

.au-stat__v {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.au-stat__d {
  font-size: 12px;
  color: var(--mut);
}

.au-demo {
  border-top: 1px solid var(--line);
  scroll-margin-top: 70px;
}

.au-demo__head {
  margin-bottom: 36px;
}

.au-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.au-tab {
  min-height: 40px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s, color .25s;
}

.au-tab[aria-selected="true"] {
  background: var(--accbtn, var(--acc));
  color: var(--onacc);
}

.au-tab:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

.au-box {
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  overflow: hidden;
  background: var(--bg);
}

.au-box__bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mut);
}

.au-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.au-live__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1fa855;
  box-shadow: 0 0 0 0 rgba(31, 168, 85, .5);
  animation: au-pulse 2s infinite;
}

@keyframes au-pulse {
  70% {
    box-shadow: 0 0 0 7px rgba(31, 168, 85, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(31, 168, 85, 0);
  }
}

.au-panel {
  display: flex;
  flex-wrap: wrap;
}

.au-panel[hidden] {
  display: none;
}

.au-panel:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: -2px;
}

.au-side {
  flex: 1 1 280px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.au-flow {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.au-flow__s {
  display: flex;
  gap: 14px;
}

.au-flow__dot {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.au-flow__dot > span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mut);
  border: 1px solid var(--line);
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}

.au-flow__dot::after {
  content: "";
  flex: 1;
  width: 1px;
  min-height: 14px;
  background: var(--line);
  transition: background .3s;
}

.au-flow__s:last-child .au-flow__dot::after {
  background: transparent;
}

.au-flow__txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 0 22px;
}

.au-flow__t {
  font-size: 15px;
  font-weight: 700;
  transition: color .3s;
}

.au-flow__d {
  font-size: 13px;
  line-height: 1.5;
  color: var(--mut);
}

.au-flow__s.is-on .au-flow__dot > span,
.au-flow__s.is-done .au-flow__dot > span {
  background: var(--accbtn, var(--acc));
  border-color: var(--accbtn, var(--acc));
  color: var(--onacc);
}

.au-flow__s.is-on .au-flow__dot > span {
  box-shadow: 0 0 0 6px var(--soft);
}

.au-flow__s.is-done .au-flow__dot > span {
  font-size: 0;
}

.au-flow__s.is-done .au-flow__dot > span::before {
  content: "✓";
  font-size: 12px;
}

.au-flow__s.is-done .au-flow__dot::after {
  background: var(--accbtn, var(--acc));
}

.au-flow__s.is-on .au-flow__t {
  color: var(--acc);
}

.au-side__apps {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.au-apps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.au-apps li {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg2);
}

.au-stage {
  flex: 2.2 1 520px;
  min-width: 0;
  padding: clamp(14px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  background: repeating-linear-gradient(135deg, transparent 0 14px, var(--soft) 14px 15px);
}

.au-mail {
  width: 100%;
  max-width: 760px;
  background: #fff;
  color: #16202a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .28);
}

.au-mail__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #eef1f4;
  border-bottom: 1px solid #e1e6eb;
  font-size: 12px;
  font-weight: 600;
  color: #4f5b67;
  min-width: 0;
}

.au-mail__bar > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.au-dots {
  display: inline-flex;
  gap: 6px;
  flex: none;
}

.au-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e0503a;
}

.au-dots i:nth-child(2) {
  background: #e0a020;
}

.au-dots i:nth-child(3) {
  background: #1fa855;
}

.au-mail__in {
  display: flex;
  flex-wrap: wrap;
}

.au-inbox {
  flex: 1 1 200px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-right: 1px solid #e6eaee;
  font-size: 12.5px;
}

.au-inbox__i {
  padding: 12px 14px;
  border-bottom: 1px solid #eef1f4;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #4f5b67;
}

.au-inbox__i strong {
  color: #16202a;
}

.au-inbox__i.is-cur {
  background: #e8f4fb;
  border-left: 3px solid #0779ad;
  color: #16202a;
}

.au-inbox__i.is-cur .au-inbox__s {
  font-weight: 600;
}

.au-inbox__r {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.au-inbox__p {
  color: #4f5b67;
}

.au-msg {
  flex: 2.4 1 300px;
  min-width: 0;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.au-msg__head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: #4f5b67;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef1f4;
}

.au-msg__head strong {
  font-size: 17px;
  font-weight: 800;
  color: #16202a;
}

.au-msg__hi {
  font-size: 13px;
  color: #4f5b67;
}

.au-msg__h {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.au-kpis {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.au-kpis li {
  padding: 12px;
  border-radius: 10px;
  background: #f2f5f8;
  display: flex;
  flex-direction: column;
}

.au-kpis__k {
  font-size: 11px;
  color: #4f5b67;
}

.au-kpis__v {
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 800;
  white-space: nowrap;
}

.au-kpis__d {
  font-size: 11px;
  font-weight: 700;
}

.au-kpis__d.is-up {
  color: #17723f;
}

.au-kpis__d.is-down {
  color: #b03325;
}

.au-bars {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
}

.au-bars li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.au-bars__b {
  width: 100%;
  border-radius: 4px;
  background: #cfe3ef;
  transform-origin: bottom;
}

.au-bars__b.is-max {
  background: #0779ad;
}

.au-bars__l {
  font-size: 10px;
  color: #4f5b67;
}

.au-panel.is-play .au-bars__b {
  animation: au-grow .7s cubic-bezier(.2, .8, .2, 1) both;
}

.au-panel.is-play .au-bars li:nth-child(2) .au-bars__b { animation-delay: .05s; }
.au-panel.is-play .au-bars li:nth-child(3) .au-bars__b { animation-delay: .1s; }
.au-panel.is-play .au-bars li:nth-child(4) .au-bars__b { animation-delay: .15s; }
.au-panel.is-play .au-bars li:nth-child(5) .au-bars__b { animation-delay: .2s; }
.au-panel.is-play .au-bars li:nth-child(6) .au-bars__b { animation-delay: .25s; }
.au-panel.is-play .au-bars li:nth-child(7) .au-bars__b { animation-delay: .3s; }

@keyframes au-grow {
  from {
    transform: scaleY(0);
  }
}

.au-msg__note {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff6e6;
  font-size: 13.5px;
  line-height: 1.5;
}

.au-pair {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.au-phone {
  width: min(300px, 100%);
  flex: none;
  border-radius: 38px;
  padding: 10px;
  background: #0a0d10;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}

.au-chat {
  border-radius: 30px;
  overflow: hidden;
  background: #e9e3da;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.au-chat__head {
  background: var(--au-wa);
  color: #fff;
  padding: 22px 16px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.au-chat__av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1fa855;
  color: #04121b;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.au-chat__who {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 14px;
}

.au-chat__who span {
  font-size: 11px;
}

.au-chat__body {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #16202a;
}

.au-chat__day {
  align-self: center;
  font-size: 10.5px;
  padding: 3px 10px;
  border-radius: 8px;
  background: #dfe9f0;
  color: #3f4a55;
}

.au-bub {
  align-self: flex-start;
  max-width: 88%;
  background: #fff;
  padding: 9px 11px;
  border-radius: 4px 12px 12px 12px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}

.au-bub--me {
  align-self: flex-end;
  max-width: 70%;
  background: #d6f5c6;
  border-radius: 12px 4px 12px 12px;
}

.au-bub__t {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #4f5b67;
}

.au-chat__btns {
  align-self: flex-start;
  display: flex;
  gap: 6px;
  width: 88%;
}

.au-chat__btns span {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  color: #0b6650;
  font-weight: 700;
  font-size: 12px;
}

.au-panel.is-play .au-chat__body > * {
  animation: au-in .45s ease both;
}

.au-panel.is-play .au-chat__body > :nth-child(2) { animation-delay: .25s; }
.au-panel.is-play .au-chat__body > :nth-child(3) { animation-delay: .6s; }
.au-panel.is-play .au-chat__body > :nth-child(4) { animation-delay: .9s; }
.au-panel.is-play .au-chat__body > :nth-child(5) { animation-delay: 1.4s; }

@keyframes au-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.au-card {
  padding: 22px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.au-pair > .au-card {
  flex: 1 1 260px;
  max-width: 340px;
}

.au-card__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.au-inv,
.au-rules {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.au-inv__i {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.au-inv__r {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.au-inv__bar {
  height: 6px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
}

.au-inv__bar span {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: currentColor;
}

.au-inv__st {
  font-size: 12px;
  font-weight: 700;
}

.au-inv__i.is-bad .au-inv__bar,
.au-inv__i.is-bad .au-inv__st {
  color: var(--au-bad);
}

.au-inv__i.is-warn .au-inv__bar,
.au-inv__i.is-warn .au-inv__st {
  color: var(--au-warn);
}

.au-inv__i.is-ok .au-inv__bar,
.au-inv__i.is-ok .au-inv__st {
  color: var(--au-ok);
}

.au-lock {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 620px;
  background: linear-gradient(160deg, #1d3a52 0%, #0e1b28 55%, #241a3a 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
}

.au-lock__status {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
}

.au-lock__clock {
  margin-top: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.au-lock__clock strong {
  font-size: 58px;
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1;
}

.au-notes {
  margin: auto 0 0;
  padding: 20px 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.au-note {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  gap: 11px;
  color: #16202a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.au-note__ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #1fa855;
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}

.au-note__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  font-size: 13.5px;
}

.au-note__app {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #4a545e;
}

.au-note__app span:first-child {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.au-note__d {
  font-size: 13px;
  line-height: 1.4;
}

.au-note__acts {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.au-note__acts span {
  flex: 1;
  text-align: center;
  padding: 7px;
  border-radius: 9px;
  background: rgba(0, 0, 0, .07);
  font-size: 12px;
  font-weight: 700;
}

.au-panel.is-play .au-note {
  animation: au-in .5s ease both;
}

.au-panel.is-play .au-note:nth-child(1) { animation-delay: .5s; }
.au-panel.is-play .au-note:nth-child(2) { animation-delay: .25s; }

.au-lock__bar {
  align-self: center;
  width: 110px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .7);
  margin-top: 14px;
}

.au-side2 {
  flex: 1 1 260px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.au-rules {
  gap: 0;
}

.au-rules li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.au-rules li:last-child {
  border-bottom: 0;
}

.au-rules .is-on {
  color: var(--au-ok);
  white-space: nowrap;
}

.au-rules .is-off {
  color: var(--mut);
  white-space: nowrap;
}

.au-side2__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mut);
}

.au-plans .plan__btn {
  text-align: center;
}

@media (min-width: 760px) {
  .au-side {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
}

@media (min-width: 960px) {
  .au-hero__in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 96px;
  }

  .au-hero__media {
    min-height: 460px;
  }
}

@media (max-width: 559px) {
  .au-stage {
    min-height: 0;
  }

  .au-tabs {
    width: 100%;
  }

  .au-tab {
    flex: 1 1 auto;
    padding: 10px 12px;
  }

  .au-msg {
    padding: 18px 16px;
  }

  .au-inbox {
    display: none;
  }

  .au-stat {
    left: 16px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .au-live__dot,
  .au-panel.is-play .au-bars__b,
  .au-panel.is-play .au-chat__body > *,
  .au-panel.is-play .au-note {
    animation: none;
  }

  .au-flow__dot > span,
  .au-flow__t {
    transition: none;
  }
}
