:root {
  --bg: #f5f6f8;
  --text: #151922;
  --muted: #667085;
  --panel: #ffffff;
  --line: #d8dde6;
  --brand: #d71920;
  --brand-dark: #ad1118;
  --ok: #256d37;
  --warn: #8a5a00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.install-page {
  min-height: 100vh;
}

.brand-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #151922;
  box-shadow: 0 14px 30px rgba(21, 25, 34, 0.18);
}

.brand-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.brand-bars {
  width: 28px;
  display: grid;
  gap: 5px;
}

.brand-bars i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #ffffff;
}

.brand-bars i:nth-child(2) {
  width: 72%;
}

.brand-bars i:nth-child(3) {
  width: 46%;
}

.brand-strip strong,
.brand-strip span {
  display: block;
}

.brand-strip strong {
  font-size: 19px;
}

.brand-strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.install-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 34px;
}

.install-copy {
  max-width: 700px;
}

.system-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-bottom: 24px;
}

.system-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
}

.system-card.active {
  border-color: rgba(215, 25, 32, 0.38);
  box-shadow: 0 14px 30px rgba(215, 25, 32, 0.12);
}

.system-card .system-logo {
  grid-row: 1 / 3;
}

.system-card strong,
.system-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-card small {
  margin-top: 4px;
  color: var(--muted);
}

.system-logo,
.mini-system {
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
}

.system-logo {
  width: 48px;
  height: 48px;
  font-size: 22px;
}

.mini-system {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  font-size: 18px;
}

.android-logo {
  background: linear-gradient(135deg, #2d7c36, #66a85f);
}

.desktop-logo {
  background: linear-gradient(135deg, #2357c6, #48a2d8);
}

.admin-logo {
  background: linear-gradient(135deg, #151922, #687083);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  margin: 22px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.device-notice {
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid #f0cf85;
  border-radius: 8px;
  background: #fff8e8;
  color: var(--warn);
  font-weight: 700;
}

.device-notice.android {
  border-color: #a9d8b3;
  background: #effaf2;
  color: var(--ok);
}

.install-card {
  margin-top: 18px;
  max-width: 520px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(21, 25, 34, 0.08);
}

.install-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.install-card-head strong,
.install-card-head small {
  display: block;
}

.install-card-head small {
  margin-top: 3px;
  color: var(--muted);
}

.step-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  font-weight: 900;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.primary:hover {
  background: var(--brand-dark);
}

.install-button {
  width: 100%;
}

.notice {
  margin: 14px 0 0;
  color: #536071;
  font-size: 14px;
  line-height: 1.55;
}

.apk-status {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  background: #f7f9fc;
  color: #536071;
  font-size: 14px;
  line-height: 1.45;
}

.apk-status.ready {
  border-color: #a9d8b3;
  background: #effaf2;
  color: var(--ok);
}

.apk-status.missing {
  border-color: #efb1b7;
  background: #fff3f4;
  color: #8f1118;
}

.install-steps {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.install-steps span {
  color: var(--muted);
  line-height: 1.45;
}

.phone-preview {
  position: relative;
  aspect-ratio: 9 / 18;
  border: 10px solid #151922;
  border-radius: 30px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(21, 25, 34, 0.2);
}

.browser-bar {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  background: #eef1f5;
  border-bottom: 1px solid #d2d8e2;
}

.browser-bar span {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #2d7c36;
}

.browser-bar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.phone-install {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 24px 0;
  text-align: center;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 20px;
  background: var(--brand);
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.phone-install h2,
.phone-install p {
  margin: 0;
}

.phone-install p {
  color: var(--muted);
}

.phone-install button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: #151922;
  color: #ffffff;
  font-weight: 800;
}

.floating-toolbar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  min-height: 68px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(21, 25, 34, 0.24);
}

.floating-toolbar span {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  color: #464a54;
  font-size: 11px;
  font-weight: 800;
}

.floating-toolbar span:first-child {
  color: var(--brand);
}

.floating-toolbar b {
  font-size: 23px;
  line-height: 1;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 44px;
}

.info-grid article {
  min-height: 145px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.info-grid h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.info-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 880px) {
  .install-hero,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
  }

  h1 {
    font-size: 40px;
  }
}

@media (max-width: 520px) {
  .install-hero {
    padding-top: 28px;
    gap: 28px;
  }

  h1 {
    font-size: 32px;
  }

  .primary {
    width: 100%;
  }
}
