/* Страница установки PWA — отдельная, в палитре кабинета */
:root {
  --bg: #f7f2e7;
  --surface: #fffdf8;
  --surface-2: #f1eadc;
  --line: #e8dfcf;
  --brand: #1f4d3d;
  --brand-soft: #e4efeb;
  --muted: #6b6256;
  --text: #20372f;
  --gold: #d9b36c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}
a { color: var(--brand); }
.install-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 16px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--brand);
  font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 21px;
  font-weight: 700;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
}
.top-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.top-link:hover { border-color: var(--brand); color: var(--brand); }
.install-main { max-width: 1060px; margin: 0 auto; padding: 24px 24px 48px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 48px;
  align-items: center;
  padding: 24px 0 40px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
h1, h2, h3 { font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--brand); }
h1 { margin: 0 0 16px; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; letter-spacing: -.02em; }
.hero p { max-width: 560px; margin: 0 0 24px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: #173c2f; }
.btn:hover { border-color: #c9bca7; }
.btn[disabled] { opacity: .55; cursor: default; }
.hero-note { margin-top: 12px !important; font-size: 13px !important; }
.phone-stage { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 286px;
  max-width: 100%;
  padding: 12px;
  border-radius: 38px;
  background: #153b2e;
  box-shadow: 0 24px 60px rgba(31, 77, 61, .22);
}
.phone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 72px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .45);
  transform: translateX(-50%);
}
.phone-screen {
  position: relative;
  overflow: hidden;
  min-height: 516px;
  border-radius: 27px;
  background: #fbf7ef;
}
.phone-notch {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 50%;
  width: 78px;
  height: 18px;
  border-radius: 0 0 12px 12px;
  background: #153b2e;
  transform: translateX(-50%);
}
.mock-head {
  padding: 32px 16px 12px;
  color: var(--brand);
  background: #fffdf8;
  border-bottom: 1px solid var(--line);
}
.mock-head small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.mock-head b { display: block; margin-top: 2px; font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 20px; }
.mock-body { padding: 12px 12px 64px; }
.mock-card {
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.mock-card .row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mock-card strong { font-size: 12px; color: var(--brand); }
.mock-card span { font-size: 9px; color: var(--muted); }
.mock-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.mock-card.green { border-left: 3px solid #7aa596; background: #f3f8f4; }
.mock-nav {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  padding: 8px 4px 4px;
  border-top: 1px solid var(--line);
  background: #fffdf8;
}
.mock-nav i {
  width: 27px;
  height: 5px;
  border-radius: 4px;
  background: #d9d0c0;
}
.mock-nav i:first-child { background: var(--brand); }
.section { padding: 32px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
h2 { margin: 0; font-size: clamp(27px, 3.3vw, 38px); line-height: 1.1; }
.section-note { margin: 0; color: var(--muted); font-size: 14px; }
.devices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.device-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.device-card.is-current {
  border-color: #b9d5c9;
  box-shadow: 0 10px 30px rgba(31, 77, 61, .09);
  transform: translateY(-2px);
}
.device-phone {
  position: relative;
  width: 174px;
  height: 350px;
  margin: 2px auto 16px;
  padding: 8px;
  border-radius: 38px;
  background: #153b2e;
  box-shadow: 0 18px 36px rgba(31, 77, 61, .2);
}
.device-phone.android { border-radius: 30px; }
.device-phone-notch {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 50%;
  width: 60px;
  height: 15px;
  border-radius: 0 0 11px 11px;
  background: #153b2e;
  transform: translateX(-50%);
}
.device-phone-screen {
  height: 100%;
  overflow: hidden;
  padding: 32px 8px 8px;
  border-radius: 30px;
  background: #fbf7ef;
}
.device-phone.android {
  background: #0f2f25;
  padding: 4px;
  border-radius: 24px;
}
.device-phone.android .device-phone-notch { display: none; }
.device-phone-camera {
  display: none;
}
.device-phone.android .device-phone-camera {
  display: block;
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid #244d40;
  border-radius: 50%;
  background: #071c15;
  transform: translateX(-50%);
}
.device-phone.android .device-phone-screen {
  border-radius: 17px;
  padding: 24px 8px 24px;
  background: #fbf7ef;
}
.device-phone.android .device-phone-head {
  margin: -8px -2px 8px;
  padding: 8px 8px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  background: #fffdf8;
  color: var(--brand);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .01em;
}
.device-phone-nav {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 16px;
}
.device-phone-nav i {
  width: 7px;
  height: 7px;
  border: 1.5px solid #8da399;
}
.device-phone-nav i:first-child { border: 0; border-left: 6px solid #8da399; border-top: 4px solid transparent; border-bottom: 4px solid transparent; width: 0; height: 0; }
.device-phone-nav i:nth-child(2) { border-radius: 50%; }
.device-phone-nav i:nth-child(3) { border-radius: 2px; }
.device-phone.android .device-phone-screen { border-radius: 22px; }
.device-phone-head {
  margin-bottom: 8px;
  color: var(--brand);
  font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 700;
}
.device-phone-card {
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-left: 3px solid #7aa596;
  border-radius: 9px;
  background: #fffdf8;
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
}
.device-phone-card.soft { border-left-color: #d9b36c; color: var(--muted); font-weight: 500; }
.device-card h3 { margin: 0 0 4px; font-size: 21px; }
.device-sub { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  min-height: 28px;
  margin: 0 0 8px;
  padding-left: 32px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.steps b { color: var(--text); font-weight: 650; }
.device-card .btn { width: 100%; margin-top: 4px; min-height: 40px; font-size: 13px; }
.install-hint {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f3f8f4;
  color: var(--brand);
  font-size: 12px;
  line-height: 1.45;
}
.install-hint[hidden] { display: none; }
.device-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.qr-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.qr-section h2 { font-size: 28px; }
.qr-section p { max-width: 560px; margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.qr-card { text-align: center; }
.qr-card img { display: block; width: 170px; height: 170px; padding: 8px; border-radius: 12px; background: #fff; }
.qr-card small { display: block; max-width: 190px; margin-top: 8px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.installed-note {
  display: none;
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px solid #b9d5c9;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
}
.installed-note.is-visible { display: block; }
.footer-note { margin: 24px 0 0; color: var(--muted); font-size: 12px; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 8px; }
  .phone-stage { order: -1; }
  .phone { width: 260px; }
  .phone-screen { min-height: 470px; }
  .device-phone { width: 136px; height: 274px; padding: 8px; border-radius: 30px; }
  .device-phone-screen { padding: 24px 8px 8px; border-radius: 24px; }
  .device-phone-head { font-size: 13px; }
  .device-phone-card { font-size: 8px; padding: 4px; }
  .devices { grid-template-columns: 1fr; }
  .device-card.is-current { transform: none; }
  .qr-section { grid-template-columns: 1fr; text-align: center; }
  .qr-card { justify-self: center; }
  .qr-section p { margin-left: auto; margin-right: auto; }
  .install-top { padding: 16px; }
  .install-main { padding: 12px 16px 40px; }
  .top-link { font-size: 13px; }
  h1 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
