/* thealexantonov.tech — /guide/product/ (добавка к landing.css; всё под .gd) */

body.page-guide main.gd {
  padding: clamp(40px, 7vw, 72px) 0 clamp(64px, 8vw, 96px);
}
body.page-guide .guide-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
body.page-guide .guide-lead { margin-top: 24px; font-size: 19px; max-width: 54ch; }

.gd { color: var(--body); }
.gd .guide-hero,
.gd .prose { max-width: 760px; }
.gd .prose p { max-width: none; font-size: 17px; line-height: 1.6; }
.gd .prose em { font-style: italic; }
.gd .prose h2 { margin: 0 0 16px; max-width: 20ch; font-size: clamp(28px, 3.4vw, 42px); }
.gd .prose + .prose { margin-top: 48px; }
.gd .prose .story-quote { margin: 20px 0 16px; }

/* разделитель секций */
.gd .rule { display: block; width: 100%; height: 1px; margin: 40px 0 32px; border: 0; background: var(--line); }

/* большая цифра перед заголовком */
.gd .stat { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.gd .stat b { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.gd .stat span { font-size: 14px; color: var(--muted); }

/* формула боевого резюме */
.gd .formula { margin: 24px 0 20px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 760px; }
.gd .formula-label { display: block; margin: 0 0 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.gd .track { margin: 0; padding: 0; list-style: none; }
.gd .track li { position: relative; display: flex; align-items: center; gap: 14px; padding: 0 0 14px; }
.gd .track li:last-child { padding-bottom: 0; }
.gd .track li::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.gd .track li:last-child::before { display: none; }
.gd .track .n { position: relative; z-index: 1; flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-tint); font-size: 13px; font-weight: 700; color: var(--accent); }
.gd .track .w { font-size: 17px; font-weight: 600; letter-spacing: -0.012em; color: var(--ink); }
.gd .track .is-final { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.gd .track .is-final::before { top: 48px; }
.gd .track .is-final .n { background: var(--accent); color: #fff; }
.gd .track .is-final .w { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }

/* мифы */
.gd .myths { margin: 20px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.gd .myths > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.gd .myths dt { margin: 0 0 6px; color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -0.012em; }
.gd .myths dd { margin: 0; color: var(--body); font-size: 16px; line-height: 1.55; }

/* алгоритм и схемы: нумерованные карточки */
.gd .gd-steps, .gd .schemes { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.gd .gd-steps li, .gd .schemes li {
  position: relative; margin: 0; padding: 16px 18px 16px 62px; counter-increment: s;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--body); font-size: 16px; line-height: 1.5;
}
.gd .gd-steps li::before, .gd .schemes li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 30px; text-align: center;
}
.gd .gd-steps li { font-weight: 500; color: var(--ink); }
.gd .schemes strong { display: block; margin: 0 0 4px; color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -0.012em; }

/* карусели скринов */
.gd .gd-shots { margin: 28px 0; }
.gd .rail {
  display: flex; align-items: flex-start; gap: 12px;
  overflow-x: auto; overflow-y: hidden;
  height: var(--rail-h, auto);
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  transition: height .28s var(--ease);
  padding: 2px 2px 8px;
}
.gd .rail::-webkit-scrollbar { display: none; }
.gd .slide { flex: 0 0 82%; scroll-snap-align: center; }
.gd .slide img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.gd .dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 10px 0 0; }
.gd .dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line-strong); cursor: pointer; }
.gd .dots button[aria-current="true"] { background: var(--accent); }
.gd figcaption { margin: 14px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* стопка скринов и одиночный скрин / видео */
.gd .stack { margin: 28px 0; display: grid; gap: 12px; max-width: 760px; }
.gd .stack img, .gd .clip img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.gd .clip { margin: 28px 0; max-width: 420px; }
.gd .clip-video video { display: block; width: 100%; max-width: 360px; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }

/* финальный блок и плавающая кнопка */
.gd .final { margin-top: 48px; }
.gd .final .lead { max-width: none; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); transform: translateY(110%); transition: transform .28s var(--ease); }
.dock.is-on { transform: none; }
.dock-inner {
  width: min(100%, var(--wrap)); margin: 0 auto; padding: 10px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 18px 40px -16px rgba(18, 20, 26, .4), 0 0 0 1px rgba(18, 20, 26, .06);
}
.dock .btn { width: 100%; }
body.page-guide .site-footer { padding-bottom: 110px; }

@media (prefers-reduced-motion: reduce) {
  .gd .rail { scroll-behavior: auto; transition: none; }
  .dock { transition: none; }
}

@media (max-width: 600px) {
  .gd .prose p { font-size: 16.5px; }
  .gd .slide { flex-basis: 88%; }
  .gd .gd-steps li, .gd .schemes li { padding-left: 56px; }
  .gd .gd-steps li::before, .gd .schemes li::before { left: 14px; }
}

/* меню на мобильных уезжает за правый край и растягивает страницу — режем горизонтальный скролл (фикс лучше перенести в landing.css) */
@media (max-width: 899px) { html { overflow-x: clip; } }
