/* Guide: восемь экранов вместо двадцати пяти.
   Прежний гайд был 3808 слов и 24,9 экрана телефона при двух картинках на всё.
   Здесь наоборот: показываем экран приложения, а текст — подпись к нему.
   Префикс gd- намеренно свой: старые правила guide-* в style.css остались от
   прошлой версии страницы и с этими классами не пересекаются. */

.gd {
  max-width: 1100px;
  margin: 0 auto;
  /* Боковой отступ свой: страница гайда лежит в блоке без внутренних полей,
     и без этого заголовок упирается в край экрана телефона. */
  padding: 8px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.gd-top { display: flex; flex-direction: column; gap: 8px; }
.gd-top h1 { margin: 0; font-size: 1.9rem; line-height: 1.15; text-wrap: balance; }
.gd-top p { margin: 0; color: var(--muted); max-width: 46ch; }

.gd-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gd-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Снимок и метки поверх него. Метки позиционируются в процентах, а не
   выжигаются в картинку: так они переключаются вместе с темой, переводятся
   без перерисовки и переживают замену скриншота. */
.gd-shot {
  position: relative;
  width: 100%;
  max-width: 280px;
  align-self: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.gd-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.gd-pin {
  /* Координаты приходят инлайном из шаблона обычными left/top. Через
     собственные свойства было бы нагляднее, но их объявления живут не в
     style.css, и сторож палитры считает такие переменные несуществующими. */
  position: absolute;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #10130b;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 19, 11, .55), 0 2px 8px rgba(0, 0, 0, .5);
  /* Метки стоят на левом поле кадра, а не поверх кнопки: центрированная метка
     закрывала собой ровно ту надпись, на которую показывает («Sta(1)rkout»). */
}

.gd-say { display: flex; flex-direction: column; gap: 8px; }

.gd-n {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--muted);
}

.gd-say h2 { margin: 0; font-size: 1.22rem; line-height: 1.2; }
.gd-say > p { margin: 0; color: var(--muted); max-width: 52ch; }

.gd-keys {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gd-keys li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.94rem;
}

.gd-keys b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  color: #10130b;
  background: var(--accent);
}

.gd-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.gd-cta p { margin: 0 12px 0 0; color: var(--muted); }

/* На широком экране — снимок слева, подпись справа; шаг всё равно читается
   сверху вниз, порядок в разметке не меняется. */
@media (min-width: 760px) {
  .gd-steps { gap: 56px; }
  .gd-step {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
  .gd-step:nth-child(even) { flex-direction: row-reverse; }
  .gd-shot { flex: 0 0 280px; align-self: center; }
  .gd-say { flex: 1 1 auto; }
  .gd-top h1 { font-size: 2.3rem; }
}

.gd-contact {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 60ch;
}
