/* Страница «Как пользоваться DreamAtlas» (/guide/) в стиле страниц меню: арт «Первые шаги» фоном (glass.css),
   стеклянные карточки шагов с маленькими макетами интерфейса справа/слева. Подробности — docs/GUIDE_PAGE.md */
.guide { --guide-grad: linear-gradient(135deg, #0ea5e9, #8b5cf6); width: min(1120px, 100%); margin: 0 auto; padding: 0 24px 64px; color: #fff; font-family: Manrope, system-ui, sans-serif; }
.guide h2, .guide h3 { text-wrap: balance; }

/* Первый экран */
.guide-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: min(calc(100svh - 84px), 760px); padding: 56px 0 40px; text-align: center; }
.guide-hero .glass-eyebrow::after { content: ""; width: 32px; height: 1px; background: linear-gradient(90deg, #8b5cf6, #0ea5e9); }
.guide-hero__title { max-width: 820px; font-size: clamp(40px, 6.4vw, 68px); }
.guide-hero__lead { margin-inline: auto; font-size: 19px; line-height: 30px; }
/* Оглавление — капсулы-ссылки на разделы */
.guide-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.guide-toc a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1px solid #ffffff26; border-radius: 9999px; background: #0b1220a6; color: #ffffffd9; font-size: 13px; line-height: 20px; font-weight: 600; text-decoration: none; text-shadow: none; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color .2s, background-color .2s; }
.guide-toc a:hover { border-color: #ffffff59; background: #0b1220d9; color: #fff; }
.guide-toc a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.guide-toc b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--guide-grad); color: #fff; font-size: 12px; line-height: 1; }

/* Разделы */
.guide-section { padding-top: 104px; scroll-margin-top: 16px; }
.guide-section > .glass-eyebrow { margin-bottom: 12px; }
.guide-h2 { margin: 0; font-size: 38px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; background: linear-gradient(90deg, #fff, #c2c6cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guide-text { max-width: 62ch; margin: 16px 0 0; color: #ffffffcc; font-size: 17px; line-height: 28px; text-wrap: pretty; }
.guide-section > .glass-eyebrow, .guide-section > .guide-text { text-shadow: 0 1px 12px #020617, 0 0 2px #020617; }
/* Ссылки внутри текста; капсулы оглавления и кнопки оформлены отдельно */
.guide p a:not([class]) { color: #7dd3fc; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.guide p a:not([class]):hover { color: #bae6fd; }

/* Шаги: карточка — текст и макет; чётные шаги зеркально, на телефоне макет под текстом */
.guide-steps { display: grid; gap: 20px; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: guide-step; }
.guide-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: center; padding: 36px; scroll-margin-top: 16px; }
.guide-step:nth-child(even) .guide-step__text { order: 2; }
.guide-step__num { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; color: #ffffffb3; font-size: 13px; line-height: 20px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.guide-step__num b { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid transparent; border-radius: 50%; background: linear-gradient(#0b1220, #0b1220) padding-box, var(--guide-grad) border-box; color: #fff; font-size: 17px; letter-spacing: 0; }
.guide-step h3 { margin: 0; font-size: 26px; line-height: 1.25; }
.guide-step p { margin: 12px 0 0; color: #ffffffcc; font-size: 16px; line-height: 26px; text-wrap: pretty; }
.guide-list { margin: 16px 0 0; padding: 0; list-style: none; }
.guide-list li { position: relative; padding: 6px 0 6px 28px; color: #ffffffcc; font-size: 15px; line-height: 24px; }
.guide-list li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--guide-grad); box-shadow: 0 0 10px #38bdf880; }
.guide-list b { color: #fff; }
.guide-note { margin: 16px 0 0; padding: 12px 16px; border: 1px solid #ffffff1f; border-radius: 14px; background: linear-gradient(135deg, #0ea5e914, #8b5cf624); color: #ffffffd9; font-size: 14px; line-height: 22px; }

/* Несколько макетов в одном шаге (шаг 5: до расшифровки и готовая) — столбиком */
.guide-mocks { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* Подпись между макетами — обычный текст на карточке шага, с отступом как у содержимого макета */
.guide-mocks__note { margin: 0; padding: 0 24px; color: #ffffffd9; font-size: 14px; line-height: 20px; font-weight: 600; }
/* Макеты интерфейса: тёмная «витрина» с упрощённой копией элементов сайта; не кликаются */
.guide-mock { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid #ffffff1f; border-radius: 20px; background: radial-gradient(120% 90% at 100% 0, #8b5cf633, transparent 60%), radial-gradient(90% 80% at 0 100%, #0ea5e926, transparent 60%), #070c1a; box-shadow: inset 0 1px 0 #ffffff14, 0 24px 64px -32px #000; color: #fff; font-size: 14px; line-height: 20px; user-select: none; }
.guide-mock__caption { margin: 0; color: #ffffff80; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.mock-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mock-row--center { justify-content: center; }
.mock-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 9999px; background: #ffffffd9; color: #000; font-weight: 600; box-shadow: 0 16px 40px -16px #000; }
.mock-btn svg { width: 16px; height: 16px; flex: none; }
.mock-btn--blue { background: #1e3a6e; color: #fff; box-shadow: 0 0 0 1px #7dd3fc40; }
.mock-btn--ghost { border: 1px solid #ffffff2e; background: #ffffff12; color: #fff; box-shadow: none; }
.mock-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #ffffff26; border-radius: 9999px; background: #ffffff0d; color: #ffffffd9; font-size: 13px; font-weight: 600; }
.mock-chip--on { border-color: #7dd3fc; background: #0ea5e926; color: #fff; }
.mock-crystal { width: 18px; height: 18px; object-fit: contain; filter: drop-shadow(0 0 6px #38bdf880); }
.mock-field { padding: 12px 14px; border: 1px solid #ffffff26; border-radius: 14px; background: #ffffff0a; color: #ffffffd9; font-size: 14px; line-height: 22px; }
.mock-field--focus { border-color: #7dd3fc; box-shadow: 0 0 0 3px #7dd3fc33; }
.mock-field__label { display: block; margin-bottom: 6px; color: #ffffff99; font-size: 12px; line-height: 16px; font-weight: 600; }
.mock-field__count { display: block; margin-top: 8px; color: #ffffff66; font-size: 12px; line-height: 16px; text-align: right; }
.mock-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid #ffffff1f; border-radius: 14px; background: #ffffff08; }
.mock-switch i { position: relative; flex: none; width: 40px; height: 24px; border-radius: 9999px; background: #ffffff26; }
.mock-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.mock-switch--on i { background: #0ea5e9; }
.mock-switch--on i::after { left: 19px; }
.mock-step { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 0; color: #ffffffd9; font-size: 13px; line-height: 18px; font-weight: 700; }
.mock-step span { color: #ffffff80; font-weight: 600; }
.mock-switch small { margin-left: 6px; padding: 1px 6px; border-radius: 9999px; background: #8b5cf640; color: #ddd6fe; font-size: 11px; font-weight: 700; }
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid #ffffff1a; }
.mock-bar > span:first-child { display: inline-flex; align-items: center; gap: 6px; color: #ffffffcc; font-weight: 600; }
.mock-check { display: flex; align-items: center; gap: 10px; color: #ffffffcc; font-size: 13px; line-height: 18px; }
.mock-check i { flex: none; width: 18px; height: 18px; border-radius: 5px; background: #0ea5e9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5'/%3E%3C/svg%3E") center / 12px no-repeat; }
/* Арт подсказки «Задайте внешность своего персонажа» — шапкой макета */
.mock-banner { display: block; width: calc(100% + 48px); max-width: none; height: auto; margin: -24px -24px 0; border-radius: 20px 20px 0 0; aspect-ratio: 880 / 293; object-fit: cover; }
.mock-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mock-select { position: relative; padding: 8px 32px 8px 12px; border: 1px solid #ffffff26; border-radius: 12px; background: #ffffff0a; color: #fff; font-size: 14px; line-height: 20px; }
.mock-select span { display: block; color: #ffffff80; font-size: 11px; line-height: 14px; font-weight: 600; }
.mock-select::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 2px solid #ffffff99; border-bottom: 2px solid #ffffff99; transform: translateY(-70%) rotate(45deg); }
.mock-text { margin: 0; color: #ffffffb3; font-size: 14px; line-height: 22px; }
/* Превью стилей, как в выборе стиля на «Новом сне»: выбранные — с голубой рамкой и галочкой */
.mock-styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.mock-styles li { position: relative; display: flex; flex-direction: column; gap: 6px; color: #ffffffcc; font-size: 12px; line-height: 16px; font-weight: 600; text-align: center; }
.mock-styles img { display: block; width: 100%; height: auto; aspect-ratio: 1; border: 2px solid transparent; border-radius: 12px; object-fit: cover; background: #0b1220; }
.mock-styles .is-on img { border-color: #7dd3fc; box-shadow: 0 0 0 3px #7dd3fc33; }
.mock-styles .is-on::after { content: ""; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: #0ea5e9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: 0 2px 8px #0008; }
/* Расшифровка: строка значков под картинкой и троеточие ожидания, как в comments.css (.feed-reactions, .dream-tab, .dream-reading-progress) */
.mock-icons { display: flex; align-items: center; gap: 22px; color: #f4f5f7; font-size: 14px; font-weight: 600; }
.mock-icons > span { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.mock-icons svg { width: 22px; height: 22px; flex: none; }
.mock-icons__emoji { width: 32px; justify-content: center; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 22px; font-weight: 400; line-height: 1; }
.mock-icons__reading { width: 32px; justify-content: center; }
.mock-icons__reading svg { width: 20px; height: 20px; filter: grayscale(1) brightness(1.7); opacity: .55; }
.mock-icons__reading.is-ready svg { filter: none; opacity: 1; }
.mock-icons__reading.is-on::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: #78c7e8; }
.mock-icons__count--liked svg { color: #ef4055; }
.mock-progress { display: flex; align-items: center; gap: 10px; margin: 0; color: #b9c2cf; font-size: 14px; line-height: 20px; }
.mock-progress__dots { display: inline-flex; flex: none; gap: 4px; }
.mock-progress__dots span { width: 6px; height: 6px; border-radius: 50%; background: #78c7e8; }
.mock-progress__dots span:nth-child(2) { opacity: .7; }
.mock-progress__dots span:nth-child(3) { opacity: .4; }
.mock-label { display: block; margin-bottom: 4px; color: #7dd3fc; font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mock-quote { padding: 2px 0 2px 14px; border-left: 2px solid #8b5cf6; border-image: linear-gradient(#0ea5e9, #8b5cf6) 1; color: #fff; font-size: 15px; line-height: 22px; font-weight: 500; }
.mock-symbols { margin: 0; border-top: 1px solid #ffffff1a; }
.mock-symbols div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid #ffffff1a; }
.mock-symbols dt { color: #7dd3fc; font-weight: 700; }
.mock-symbols dd { margin: 0; color: #ffffffcc; }
/* Визуализация: страница кадров с плашкой стиля справа сверху и точками, как у карусели сна (comic.css) */
.mock-comic { position: relative; overflow: hidden; width: min(100%, 300px); margin: 0 auto; border: 1px solid #ffffff1f; border-radius: 14px; background: #0b1220; }
.mock-comic img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.mock-comic__pill { position: absolute; top: 10px; padding: 4px 9px; border-radius: 20px; background: #10151ab3; color: #fff; font: 12px/1.4 system-ui, sans-serif; }
.mock-comic__pill--right { right: 10px; }
/* Карточка сна: шапка с «Меню сна» (две полоски) над картинкой и раскрытое меню, как в ленте */
.mock-post { position: relative; display: flex; flex-direction: column; gap: 10px; width: min(100%, 300px); margin: 0 auto; }
.mock-post .mock-comic { width: 100%; }
.mock-post__head { display: flex; align-items: center; gap: 10px; }
.mock-post__head b { flex: 1; font-size: 14px; }
.mock-post__avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #0ea5e9, #8b5cf6); }
.mock-post__menu { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #ffffff1f; box-shadow: 0 0 0 2px #7dd3fc; color: #fff; }
.mock-post__menu svg { width: 20px; height: 20px; }
.mock-menu { position: absolute; z-index: 1; top: 40px; right: 0; display: flex; flex-direction: column; min-width: 170px; padding: 6px; border: 1px solid #ffffff26; border-radius: 14px; background: #0b1220f2; box-shadow: 0 16px 40px -12px #000; }
.mock-menu span { padding: 7px 10px; border-radius: 9px; color: #ffffffd9; font-size: 13px; font-weight: 600; }
.mock-menu span:first-child { background: #ffffff14; color: #fff; }
.mock-dots { display: flex; justify-content: center; gap: 8px; }
.mock-dots i { width: 6px; height: 6px; border-radius: 50%; background: #596775; }
.mock-dots i:first-child { background: #55bafa; }
/* Иконка-реакция под сном */
.mock-reactions { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-reactions span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9999px; background: #ffffff0f; color: #ffffffd9; font-size: 13px; font-weight: 600; }
.mock-reactions svg { width: 16px; height: 16px; flex: none; }

/* Что ещё умеет сайт */
.guide-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.guide-feature { display: flex; flex-direction: column; gap: 10px; padding: 28px; }
.guide-feature__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #0ea5e933, #8b5cf640); box-shadow: inset 0 0 0 1px #ffffff1f; color: #7dd3fc; }
.guide-feature__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.guide-feature h3 { margin: 6px 0 0; font-size: 19px; line-height: 1.3; }
.guide-feature p { margin: 0; color: #ffffffb3; font-size: 15px; line-height: 24px; text-wrap: pretty; }

/* Кристаллы: что сколько стоит */
.guide-costs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; align-items: start; padding: 36px; }
.guide-costs__table { margin: 0; border-top: 1px solid #ffffff1a; }
.guide-costs__table div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #ffffff1a; }
.guide-costs__table dt { color: #ffffffd9; font-size: 15px; line-height: 24px; }
.guide-costs__table dd { display: inline-flex; flex: none; align-items: center; gap: 6px; margin: 0; color: #fff; font-size: 15px; line-height: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Советы: как описать сон */
.guide-tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: guide-tip; }
.guide-tip { position: relative; padding: 24px 24px 24px 72px; counter-increment: guide-tip; }
.guide-tip::before { content: counter(guide-tip); position: absolute; left: 24px; top: 24px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--guide-grad); color: #fff; font-size: 14px; font-weight: 700; }
.guide-tip h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.guide-tip p { margin: 6px 0 0; color: #ffffffb3; font-size: 15px; line-height: 24px; text-wrap: pretty; }

/* Финальный призыв; кнопка — общий about_cta.html, поэтому классы about-cta* */
.guide-final { display: flex; flex-direction: column; align-items: center; margin-top: 104px; padding: 56px 24px; text-align: center; }
.guide-final .guide-h2 { font-size: 44px; }
.guide-final .guide-text { margin-inline: auto; }
.guide .about-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
.guide .about-cta__button { min-height: 52px; padding: 14px 32px; font-size: 16px; line-height: 24px; }
.guide .about-cta__note { color: #ffffffb3; font-size: 14px; line-height: 20px; font-weight: 600; }
.guide-final__more { margin: 20px 0 0; color: #ffffffb3; font-size: 15px; line-height: 24px; }

@media (max-width: 960px) {
  .guide-step { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 28px; padding: 28px; }
  .guide-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-costs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 760px) {
  .guide-step { grid-template-columns: minmax(0, 1fr); }
  .guide-step:nth-child(even) .guide-step__text { order: 0; }
  .guide-mock, .guide-mocks { max-width: 440px; width: 100%; margin-inline: auto; }
  .guide-mocks .guide-mock { max-width: none; }
  .guide-features, .guide-tips { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .guide { padding: 0 16px 48px; }
  .guide-hero { min-height: min(calc(100svh - 72px), 680px); padding: 40px 0 32px; }
  .guide-hero .glass-eyebrow { gap: 8px; }
  .guide-hero .glass-eyebrow::before, .guide-hero .glass-eyebrow::after { width: 16px; }
  .guide-hero__lead { font-size: 17px; line-height: 27px; }
  .guide-section { padding-top: 72px; }
  .guide-h2 { font-size: 30px; }
  .guide-step { padding: 20px; gap: 24px; }
  .guide-step h3 { font-size: 22px; }
  .guide-mock { padding: 18px; }
  .guide-mocks__note { padding: 0 18px; }
  .mock-banner { width: calc(100% + 36px); margin: -18px -18px 0; }
  .guide-feature, .guide-costs { padding: 22px; }
  .guide-tip { padding: 20px 20px 20px 64px; }
  .guide-tip::before { left: 20px; top: 20px; }
  .guide-final { margin-top: 72px; padding: 40px 20px; }
  .guide-final .guide-h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-toc a { transition: none; }
}
