/* Инструкции по установке приложений Orris VPN: /testflight (iPhone и iPad), /mac, /android, /windows.
   Подключается после orris-shell.css. Скриншоты лежат в /img/guide/<платформа>/<имя>.webp;
   пока файла нет, рамка остаётся с подложкой (у Windows — .opt — блок скрывается целиком). */

.pg .nohy, .pg .h1.nohy { -webkit-hyphens: manual; hyphens: manual; }

/* ---------- переключатель платформ ---------- */
.gd-plat { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 44px; max-width: 100%;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.gd-plat a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--mute); white-space: nowrap; transition: color .2s, background .2s; }
.gd-plat a .ms { font-size: 20px; }
.gd-plat a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.gd-plat a[aria-current] { background: #fff; color: #050507; }

/* ---------- первый экран ---------- */
.gd-hero { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) { .gd-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 64px; } }
.gd-hero .lead { margin-top: 22px; }
.gd-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.gd-req { display: flex; align-items: flex-start; gap: 8px; margin: 22px 0 0; color: var(--mute-2); font-size: 14.5px; line-height: 1.5; }
.gd-req .ms { font-size: 19px; margin-top: 1px; }
.gd-lang { margin: 8px 0 0; color: var(--mute-2); font-size: 14px; line-height: 1.5; }
.gd-lang:empty { display: none; }
.gd-quick { padding: 28px 26px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: radial-gradient(80% 90% at 100% 0%, rgba(48,209,88,.07), transparent 60%), var(--ink-2); }
.gd-quick h2 { margin: 0 0 16px; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .02em;
  text-transform: uppercase; color: var(--mute); }
.gd-quick ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gd-quick li { display: flex; align-items: flex-start; gap: 14px; font-size: 15.5px; line-height: 1.45; min-width: 0; overflow-wrap: break-word; }
.gd-qn { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); font-family: var(--display); font-size: 13px; }

/* ---------- содержание ---------- */
.gd-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.gd-toc a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--mute);
  transition: color .2s, border-color .2s; }
.gd-toc a:hover { color: var(--text); border-color: var(--line-2); }

/* ---------- шаги ---------- */
.gd-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; }
.gd-steps.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gd-steps.cols .gd-step { align-items: flex-start; }
.gd-step { display: flex; align-items: center; gap: 24px 48px; padding: 28px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--ink-2); min-width: 0; }
.gd-main { display: flex; align-items: flex-start; gap: 20px; flex: 1 1 auto; min-width: 0; }
.gd-n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); font-family: var(--display); font-size: 15px; }
.gd-n.gd-ico { background: rgba(255,255,255,.05); border-color: var(--line); }
.gd-n.gd-ico .ms { font-size: 21px; }
.gd-body { flex: 1 1 auto; min-width: 0; max-width: 40em; }
.gd-body h3 { margin: 7px 0 8px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; line-height: 1.3; overflow-wrap: break-word; }
.gd-body p { margin: 0 0 10px; color: var(--mute); font-size: 15.5px; line-height: 1.6; overflow-wrap: break-word; }
.gd-body ul { margin: 4px 0 12px; padding-left: 1.15em; color: var(--mute); font-size: 15.5px; line-height: 1.55; }
.gd-body li { margin: 6px 0; overflow-wrap: break-word; }
.gd-body li::marker { color: var(--mute-2); }
.gd-body > :last-child { margin-bottom: 0; }
.gd-body .btn { margin-top: 8px; }
.gd-path { display: inline-block; padding: 10px 14px; border-radius: var(--r-sm); background: rgba(255,255,255,.05);
  border: 1px solid var(--line); color: var(--text) !important; font-weight: 500; }
.gd-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 14.5px !important; }
.gd-note .ms { font-size: 19px; color: var(--mute-2); margin-top: 1px; }
.gd-body a:not(.btn), .faq .a a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.gd-cards { margin-top: 16px; }

/* шаг со скриншотами: телефоны и виджет — справа от текста, окна компьютера — под текстом */
.shots { flex: none; display: flex; gap: 20px; align-items: flex-start; }
.gd-step.f-desk, .gd-step.f-pop { flex-wrap: wrap; align-items: flex-start; }
.gd-step.f-desk .shots, .gd-step.f-pop .shots { flex: 1 1 100%; margin-left: 60px; display: grid; gap: 16px; }
.gd-step.f-desk .shots { max-width: 780px; }
.gd-step.f-desk .shots.n2 { max-width: 1000px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.gd-step.f-pop .shots { max-width: 480px; }
.shots:not(:has(.shot:not(.miss.opt))) { display: none !important; }

/* ---------- рамка скриншота ---------- */
.shot { margin: 0; flex: none; }
.shot-f { position: relative; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(70% 50% at 50% 0%, rgba(255,255,255,.06), transparent 70%), var(--ink-3);
  border: 1px solid var(--line-2); box-shadow: 0 30px 70px -35px rgba(0,0,0,.95); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.shot-ph { font-size: 40px; color: var(--mute-2); opacity: .45; }
.shot.miss img { display: none; }
.shot.opt.miss { display: none; }
.shot-phone, .shot-android { width: 250px; }
.shot-phone .shot-f { aspect-ratio: 1206 / 2622; border-radius: 36px; border: 5px solid #1a1b21; }
.shot-android .shot-f { aspect-ratio: 1080 / 2400; border-radius: 30px; border: 5px solid #1a1b21; }
.shot-phone img, .shot-android img { object-fit: cover; }
.shot-desk .shot-f { aspect-ratio: 16 / 10; border-radius: 14px; }
.shot-widget { width: 340px; }
.shot-widget .shot-f { aspect-ratio: 945 / 577; border-radius: 26px; }
.shot-pop .shot-f { aspect-ratio: 4 / 3; border-radius: 14px; }

/* ---------- вопросы и конец страницы ---------- */
.faq-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 72px; align-items: start; } }
.faq-grid .faq { max-width: none; border-top: 1px solid var(--line); }
.gd-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.gd-end .gd-plat { margin: 0; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .gd-step { gap: 24px 32px; }
}
@media (max-width: 860px) {
  .gd-steps.cols { grid-template-columns: minmax(0, 1fr); }
  .gd-step.has-shot { flex-direction: column; align-items: stretch; }
  .gd-step.has-shot .shots { align-self: center; flex-wrap: wrap; justify-content: center; }
  .gd-step.f-desk, .gd-step.f-pop { flex-wrap: nowrap; }
  .gd-step.f-desk .shots, .gd-step.f-pop .shots { margin-left: 0; align-self: stretch; flex: none; width: 100%;
    justify-content: stretch; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .gd-plat { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 24px; }
  .gd-plat a { padding: 0 10px; min-width: 0; }
  .gd-plat a > span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .gd-cta .btn { width: 100%; }
  .gd-step { padding: 22px 18px; }
  .gd-main { gap: 14px; }
  .gd-n { width: 34px; height: 34px; font-size: 14px; }
  .gd-body h3 { margin-top: 4px; font-size: 17px; }
  .shot-phone, .shot-android { width: min(250px, 78vw); }
  .shot-widget { width: min(340px, calc(100vw - 72px)); }
  .shots { gap: 16px; flex-direction: column; align-items: center; }
  .gd-quick { padding: 24px 20px; }
  .gd-end { flex-direction: column; align-items: stretch; }
  .gd-end .btn { width: 100%; }
}
