/* Guide hub — layout from Adobe mockup, site glass/bg kept */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter_18pt-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter_24pt-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter_18pt-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter_18pt-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter_18pt-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

.guide-page {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

/*
  Колонка контента с Adobe-макета (1944×1096):
  линия «Инструкция» = x 472…1481 → ~1009px, поля ~24% слева/справа.
  Это НЕ ширина шапки (шапка шире).
*/
.guide-page main,
.guide-main {
  padding-top: 0.55rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

.guide-wrap {
  width: 100%;
  max-width: 1009px; /* колонка с ассета, уже шапки */
  margin-inline: auto;
  overflow-x: clip;
  box-sizing: border-box;
}

.guide-topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.1rem 0 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.guide-topbar__title {
  margin: 0;
  font-size: 1.125rem; /* Inter 18pt Regular */
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.guide-topbar__support {
  color: #0071e3;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.guide-topbar__support:hover {
  opacity: 0.8;
}

.guide-hero {
  text-align: center;
  margin-bottom: 0;
  padding-inline: 0.5rem;
}

.guide-hero h1,
.guide-hero h2 {
  margin: 0 0 1.35rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(2.35rem, 5vw, 3.35rem); /* крупный H1 с ассета */
  font-weight: 500;
  letter-spacing: -0.035em;
  color: #fff;
  line-height: 1.12;
}

.guide-hero p {
  margin: 0 auto;
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem); /* крупнее подзаголовок */
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

/* Разделитель над «Ваше устройство»: уже верхней линии (на ассете ~549px vs ~1009px) */
.guide-divider {
  width: 100%;
  max-width: 549px;
  height: 0;
  margin: 2.35rem auto 1.65rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.guide-section {
  margin-bottom: clamp(1.85rem, 4vw, 2.75rem);
}

.guide-section__label {
  text-align: center;
  margin: 0 0 1.35rem;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.guide-section:has([data-guide-group="device"]) .guide-section__label {
  font-size: clamp(1.325rem, 2.35vw, 1.575rem); /* +~2pt только «Ваше устройство» */
}

.guide-section:has([data-guide-group="app"]) .guide-section__label {
  margin-bottom: 1.85rem;
}

.guide-choices {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(1.15rem, 3.2vw, 2.35rem);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 0.55rem;
}

/* Цельная серая дорожка под рядом иконок */
.guide-choices__track {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 0;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  transform: translateX(0);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, width;
}

/* Белый активный сегмент — катается по дорожке */
.guide-choices__glider {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 0;
  background: #fff;
  border-radius: 999px;
  pointer-events: none;
  z-index: 1;
  transform: translateX(0);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, width;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.guide-choice {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0.35rem 0.5rem 0;
  margin: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  min-width: 4.5rem;
  position: relative;
  z-index: 0;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.guide-choice:hover {
  color: rgba(255, 255, 255, 0.9);
}
.guide-choice.is-active {
  color: #fff;
}

.guide-choice__icon {
  width: clamp(3.1rem, 6vw, 3.75rem);
  height: clamp(3.1rem, 6vw, 3.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-choice__icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0.78;
}
.guide-choice.is-active .guide-choice__icon img {
  opacity: 1;
}

.guide-choice--app .guide-choice__icon {
  /* Одна высота для V2 и INCY; ширина — по слову */
  width: auto;
  min-width: 4.75rem;
  height: 2.55rem;
}
.guide-choice--app .guide-choice__icon img {
  height: 100%;
  width: auto;
  max-width: 7.75rem;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.guide-choice__name {
  font-size: 0.9375rem; /* 15 */
  font-weight: 400;
  line-height: 1.2;
  padding-bottom: 0.35rem;
}

.guide-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(1.75rem, 4vw, 3rem);
  padding-top: 0.25rem;
}

.guide-next {
  appearance: none;
  border: 0;
  background: transparent;
  color: #0071e3;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.4rem 0.15rem;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.guide-next:hover {
  opacity: 0.8;
}
.guide-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.guide-stub {
  width: min(40rem, 100%);
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1rem 4rem;
}
.guide-stub h1 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin: 0 0 0.75rem;
}
.guide-stub p {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  margin: 0 0 1.75rem;
  line-height: 1.55;
}
.guide-stub a.guide-back {
  color: #0071e3;
  text-decoration: none;
  font-weight: 500;
}
.guide-stub a.guide-back:hover { opacity: 0.8; }

@media (max-width: 820px) {
  .guide-main {
    padding-top: 0.35rem;
    padding-bottom: 2.5rem;
  }

  .guide-hero {
    padding-inline: 0.15rem;
  }

  .guide-hero h1,
  .guide-hero h2 {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
  }

  .guide-hero p {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 22rem;
  }

  .guide-divider {
    margin: 1.35rem auto 1.05rem;
    max-width: min(549px, 72%);
  }

  .guide-section {
    margin-bottom: 1.5rem;
  }

  .guide-section__label {
    margin-bottom: 0.95rem;
    font-size: 1.02rem;
    padding-inline: 0.25rem;
  }

  .guide-section:has([data-guide-group="device"]) .guide-section__label {
    font-size: 1.08rem;
  }

  .guide-section:has([data-guide-group="app"]) .guide-section__label {
    margin-bottom: 1.15rem;
  }

  .guide-choices {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    gap: 0.25rem;
    padding-inline: 0;
    overflow-x: hidden;
  }

  .guide-choice {
    min-width: 0;
    flex: 1 1 0;
    padding: 0.35rem 0.1rem 0;
    gap: 0.4rem;
    touch-action: manipulation;
  }

  .guide-choice__icon {
    width: clamp(2.25rem, 13vw, 2.95rem);
    height: clamp(2.25rem, 13vw, 2.95rem);
  }

  .guide-choice--app .guide-choice__icon {
    min-width: 0;
    width: auto;
    height: 1.85rem;
  }

  .guide-choice--app .guide-choice__icon img {
    max-width: min(5.25rem, 26vw);
  }

  .guide-choice__name {
    font-size: 0.78rem;
    padding-bottom: 0.35rem;
    line-height: 1.2;
  }

  .guide-footer-actions {
    margin-top: 1.35rem;
    justify-content: stretch;
    width: 100%;
  }

  .guide-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    background: rgba(0, 113, 227, 0.16);
    font-size: 1.05rem;
    font-weight: 500;
    touch-action: manipulation;
  }
}

@media (max-width: 520px) {
  .guide-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding-bottom: 0.8rem;
    margin-bottom: 1.15rem;
  }

  .guide-topbar__title {
    font-size: 1.05rem;
  }

  .guide-topbar__support {
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .guide-hero h1,
  .guide-hero h2 {
    font-size: clamp(1.4rem, 7.5vw, 1.85rem);
  }

  .guide-hero p {
    font-size: 0.9rem;
  }

  .guide-choice__name {
    font-size: 0.72rem;
  }

  .guide-choice--app .guide-choice__icon {
    height: 1.65rem;
  }

  .guide-choice--app .guide-choice__icon img {
    max-width: min(4.75rem, 34vw);
  }
}

/* ===== Guide step pages (подстраницы) ===== */
.guide-page--step .guide-topbar {
  /* та же разделительная полоска, что на /guide */
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
  padding: 0.1rem 0 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.guide-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0 0 1.35rem;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.35;
  color: #0071e3;
}
.guide-crumbs a {
  color: #0071e3;
  text-decoration: none;
}
.guide-crumbs a:hover { text-decoration: underline; }
.guide-crumbs__sep {
  color: #0071e3;
  opacity: 0.85;
}
.guide-crumbs__current {
  color: #0071e3;
  font-weight: 500;
}

.guide-crumbs__dd {
  position: relative;
  display: inline-block;
}
.guide-crumbs__summary {
  list-style: none;
  cursor: pointer;
  color: #0071e3;
  font-weight: 500;
  user-select: none;
}
.guide-crumbs__summary::-webkit-details-marker { display: none; }
.guide-crumbs__summary::after {
  content: '';
  display: inline-block;
  width: 0.35em;
  height: 0.35em;
  margin-left: 0.35em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.1em) rotate(45deg);
  opacity: 0.75;
  vertical-align: middle;
}
.guide-crumbs__dd[open] .guide-crumbs__summary::after {
  transform: translateY(0.1em) rotate(225deg);
}
.guide-crumbs__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 9.5rem;
  padding: 0.35rem;
  border-radius: 0.75rem;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.guide-crumbs__menu a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  color: #111;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.guide-crumbs__menu a:hover {
  background: rgba(0, 113, 227, 0.1);
  text-decoration: none;
  color: #0071e3;
}
.guide-crumbs__menu a.is-active {
  background: rgba(0, 113, 227, 0.14);
  color: #0071e3;
}

.guide-card {
  background: #ebebeb;
  color: #111;
  border-radius: clamp(1.35rem, 2.5vw, 2rem);
  padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.25rem, 3vw, 2.25rem) 1.25rem;
  min-height: min(34rem, 70vh);
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.guide-card__body {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.25rem, 4vw, 2.75rem);
  align-items: center;
}

.guide-card__copy {
  max-width: 22rem;
}

.guide-step-num {
  margin: 0 0 0.85rem;
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #111;
}

.guide-step-text {
  margin: 0 0 1.15rem;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.45;
  color: #1a1a1a;
}

.guide-step-detail {
  margin: -0.55rem 0 1.15rem;
  padding: 0 0 0 1.15rem;
  list-style: disc;
  color: #333;
  font-size: clamp(0.92rem, 1.45vw, 1.02rem);
  font-weight: 400;
  line-height: 1.5;
}
.guide-step-detail li { margin: 0.35rem 0; }
.guide-step-detail li::marker { color: #0071e3; }
.guide-step-detail code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.08em 0.35em;
  border-radius: 0.3em;
}

.guide-step-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.guide-step-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #0071e3;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}
.guide-step-link:hover { text-decoration: underline; }
.guide-step-link[hidden] { display: none !important; }

.guide-card__media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.guide-phone {
  width: min(100%, 17.5rem);
  border-radius: 1.65rem;
  background: #0c0c0c;
  padding: 0.45rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 22px 48px rgba(0, 0, 0, 0.28);
}
.guide-phone__screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  background: #fff;
  overflow: hidden;
}

/* Google Play mock inside phone — с реальными скринами INCY */
.gp-frame {
  background: #fff;
  color: #202124;
  font-family: "Inter", Roboto, system-ui, sans-serif;
  border-radius: inherit;
  overflow: hidden;
  height: 34rem;
  display: flex;
  flex-direction: column;
}
.gp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.7rem 0.15rem;
}
.gp-top svg { width: 1.05rem; height: 1.05rem; color: #3c4043; }
.gp-app {
  display: flex;
  gap: 0.65rem;
  padding: 0.35rem 0.75rem 0.55rem;
  align-items: center;
}
.gp-app__icon {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 0.85rem;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.gp-app__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #202124;
}
.gp-app__dev {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a73e8;
}
.gp-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding: 0.15rem 0.55rem 0.65rem;
  text-align: center;
}
.gp-stats__cell {
  padding: 0.2rem 0.25rem;
  border-right: 1px solid #e3e3e3;
}
.gp-stats__cell:last-child { border-right: 0; }
.gp-stats__val {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #202124;
  line-height: 1.2;
}
.gp-stats__lab {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.58rem;
  color: #5f6368;
  line-height: 1.2;
}
.gp-install {
  display: block;
  margin: 0 0.75rem 0.7rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}
.gp-install:hover { filter: brightness(1.05); text-decoration: none; }
.gp-chips {
  display: flex;
  gap: 0.35rem;
  padding: 0.15rem 0.7rem 0.65rem;
  overflow: hidden;
}
.gp-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #dadce0;
  font-size: 0.62rem;
  color: #3c4043;
  background: #fff;
  white-space: nowrap;
}
.gp-chip.is-active {
  background: #e8f0fe;
  border-color: #d2e3fc;
  color: #1967d2;
}
.gp-shots {
  display: flex;
  gap: 0.55rem;
  padding: 0 0.7rem 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 auto;
}
.gp-shots::-webkit-scrollbar { display: none; }
.gp-shot {
  flex: 0 0 7.6rem;
  width: 7.6rem;
  height: 13.5rem;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #0b2a1c;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.gp-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.gp-nav {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #e8eaed;
  padding: 0.35rem 0.2rem 0.45rem;
  background: #fff;
}
.gp-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.52rem;
  color: #5f6368;
}
.gp-nav__item.is-active { color: #01875f; }
.gp-nav__icon {
  width: 1.35rem;
  height: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.gp-nav__item.is-active .gp-nav__icon {
  background: #ceead6;
  width: 2.4rem;
}
.gp-nav__icon svg { width: 0.95rem; height: 0.95rem; }

/* Full app screenshot inside phone (для следующих шагов) */
.guide-phone--app .guide-phone__screen {
  height: 34rem;
  object-fit: cover;
  object-position: top center;
}

/* Desktop / GitHub screenshots (PC guide) */
.guide-card--desktop .guide-card__copy {
  max-width: 26rem;
}
.guide-card--desktop .guide-card__body {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  align-items: center;
}
.guide-desktop {
  width: min(100%, 28rem);
  border-radius: 0.85rem;
  background: #161616;
  padding: 0.4rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 22px 48px rgba(0, 0, 0, 0.28);
}
.guide-desktop__chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.35rem 0.45rem;
}
.guide-desktop__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #3a3a3a;
}
.guide-desktop__dot:nth-child(1) { background: #ff5f57; }
.guide-desktop__dot:nth-child(2) { background: #febc2e; }
.guide-desktop__dot:nth-child(3) { background: #28c840; }
.guide-desktop__screen {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(22rem, 52vh);
  object-fit: contain;
  object-position: top center;
  border-radius: 0.45rem;
  background: #0c0c0c;
}

.guide-card__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  padding-top: 0.35rem;
}

.guide-card__nav-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #0071e3;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.35rem 0.1rem;
  text-decoration: none;
}
.guide-card__nav-btn:hover { opacity: 0.8; }
.guide-card__nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.guide-card__nav-btn.is-hidden {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 820px) {
  .guide-page--step .guide-main {
    padding-bottom: 2.25rem;
  }

  .guide-card {
    min-height: 0;
    padding: 1.2rem 1rem 0.95rem;
  }

  .guide-card__body {
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: left;
    gap: 1.05rem;
    align-items: start;
  }

  .guide-card__copy {
    max-width: none;
    width: 100%;
    justify-self: stretch;
  }

  .guide-card__media {
    width: 100%;
    justify-content: center;
  }

  .guide-step-num {
    font-size: clamp(2rem, 8vw, 2.75rem);
    margin-bottom: 0.45rem;
  }

  .guide-step-text {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
  }

  .guide-step-detail {
    font-size: 0.92rem;
    line-height: 1.5;
    margin: -0.15rem 0 1rem;
    padding-left: 1.1rem;
  }

  .guide-step-links {
    gap: 0.55rem;
    margin-bottom: 0.15rem;
  }

  .guide-step-link {
    min-height: 2.75rem;
    align-items: center;
    font-size: 0.98rem;
    touch-action: manipulation;
  }

  .guide-phone {
    width: min(100%, 13.75rem);
  }

  .guide-phone--app .guide-phone__screen {
    height: auto !important;
    max-height: min(26rem, 58svh);
    aspect-ratio: 9 / 19.2;
    object-fit: contain;
    object-position: top center;
    background: #0c0c0c;
  }

  .guide-card--desktop .guide-card__body {
    grid-template-columns: 1fr;
  }

  .guide-card--desktop .guide-card__copy {
    max-width: none;
  }

  .guide-desktop {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .guide-desktop__screen {
    max-height: min(14.5rem, 40svh);
  }

  .guide-card__nav {
    margin-top: 0.85rem;
    padding-top: 0.2rem;
    gap: 0.75rem;
  }

  .guide-card__nav-btn {
    min-height: 2.85rem;
    min-width: 4.5rem;
    padding: 0.6rem 0.5rem;
    font-size: 1.02rem;
    touch-action: manipulation;
  }

  .guide-crumbs {
    font-size: 0.82rem;
    margin-bottom: 0.95rem;
    gap: 0.2rem 0.3rem;
  }
}

@media (max-width: 520px) {
  .guide-card {
    padding: 1rem 0.85rem 0.85rem;
    border-radius: 1rem;
  }

  .guide-step-num {
    font-size: 1.85rem;
  }

  .guide-step-text {
    font-size: 0.95rem;
  }

  .guide-step-detail {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .guide-phone {
    width: min(100%, 12.5rem);
  }

  .guide-phone--app .guide-phone__screen {
    max-height: min(24rem, 55svh);
  }

  .guide-desktop__screen {
    max-height: min(13.5rem, 36svh);
  }

  .guide-crumbs {
    font-size: 0.78rem;
  }
}
