/* Страница-гайд KOROBEINIKOV AI. Вид — как PDF бренда (PDF-STYLE.md): Montserrat, серый фон, белые карточки,
   жёлтый маркер, шаги — номер в чёрном кружке. Сначала телефон (переходят из Instagram), потом компьютер. */
:root {
  --ink: #1d1d1f;  --text2: #515154;  --muted: #6e6e73;  --hair: #e5e5ea;  --line: #e3e3e8;
  --page: #f2f2f5; --card: #fff;      --marker: #ffe27a; --hi: #ffd43b;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--page); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink);
       font: 400 16px/1.55 'Montserrat', system-ui, -apple-system, sans-serif; font-variant-numeric: lining-nums; }
img, video, audio { display: block; max-width: 100%; }
p { margin: 0 0 8px; }
p:last-child { margin-bottom: 0; }
b, strong { font-weight: 600; }
a { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: #c7c7cc; text-underline-offset: 3px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 40px; }
section { margin: 64px 0 0; scroll-margin-top: 16px; }

/* ── заголовки ── */
.brand { font: 800 11px/1 'Montserrat'; letter-spacing: .18em; margin: 8px 0 28px; }
h1 { font: 900 42px/1.04 'Montserrat'; letter-spacing: -.01em; margin: 0 0 14px; }
h1 .l { font-weight: 300; display: block; }
h2 { font: 800 28px/1.15 'Montserrat'; margin: 0 0 16px; }
h3 { font: 700 18px/1.3 'Montserrat'; margin: 24px 0 10px; }
.sub { font: 500 14px/1.45 'Montserrat'; color: var(--muted); margin: 0 0 18px; }
.lead { font-size: 17px; line-height: 1.5; margin: 0 0 22px; }
.kicker { font: 700 11px/1.3 'Montserrat'; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.after { font-size: 13.5px; line-height: 1.45; color: var(--muted); margin: 8px 4px 0; }

/* шапка шага с крупным номером */
.head { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 14px; }
.head .n { font: 900 48px/.9 'Montserrat'; min-width: 32px; }
.head h2 { margin: 3px 0 0; font-size: 24px; line-height: 1.18; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.chips span { font: 600 12px/1 'Montserrat'; padding: 8px 12px; border-radius: 99px; background: var(--card); color: var(--text2); }
.chips span.k { background: var(--ink); color: #fff; }

/* ── карточки ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; margin: 0 0 12px; }
.card .kicker { margin-bottom: 6px; }
.card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.dark .kicker { color: #a1a1a6; }
.card.dark a { text-decoration-color: #6e6e73; }
.card.was { background: transparent; border: 1px dashed #c7c7cc; }
.card.was p { color: var(--text2); }
.facts > div { padding: 10px 0; border-top: 1px solid var(--hair); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts > div:last-child { padding-bottom: 0; }
.facts .kicker { margin: 0 0 3px; font-size: 10.5px; }
.facts p { font-size: 15.5px; line-height: 1.45; }
.pair { display: grid; gap: 0; }
@media (min-width: 640px) { .pair { grid-template-columns: 1fr 1fr; gap: 12px; } .pair > .card { margin: 0; } }

/* маркер: главное и то, что вводят слово в слово */
mark { background: linear-gradient(transparent 50%, var(--marker) 50%, var(--marker) 94%, transparent 94%);
       color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 2px; }
.card.dark mark { color: var(--ink); background: var(--marker); border-radius: 4px; }
.say { font: 600 18.5px/1.42 'Montserrat'; }

/* место под настоящий факт автора: заполнить до запуска */
.ph { font-weight: 600; color: var(--text2); background: #fff7d6; border: 1px dashed #d9b84a; border-radius: 6px; padding: 0 5px; }

/* ── списки ── */
ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 36px; margin: 0 0 10px; }
ol.steps > li:last-child { margin-bottom: 0; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 700 12px/24px 'Montserrat'; text-align: center; }
ul.dots { list-style: none; margin: 0; padding: 0; }
ul.dots > li { position: relative; padding-left: 18px; margin: 0 0 9px; }
ul.dots > li:last-child { margin-bottom: 0; }
ul.dots > li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
ul.checks { list-style: none; margin: 0; padding: 0; }
ul.checks > li { position: relative; padding-left: 32px; margin: 0 0 10px; }
ul.checks > li:last-child { margin-bottom: 0; }
ul.checks > li::before { content: ''; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--hi)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231d1d1f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
  center / 15px no-repeat; }

/* «Готово, если…» — человек сам видит, что шаг получился */
.done { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
        padding: 12px 14px; margin: 12px 0 0; font-size: 15px; line-height: 1.4; }
.done::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
  center / 15px no-repeat; }

/* ── кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px;
       border: 0; border-radius: 99px; background: var(--ink); color: #fff; font: 700 16px/1.2 'Montserrat';
       text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn.light { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.yellow { background: var(--hi); color: var(--ink); }
.btn.wide { display: flex; width: 100%; }
.btns { display: grid; gap: 10px; margin: 16px 0 0; }
@media (min-width: 640px) { .btns.two { grid-template-columns: 1fr 1fr; } }

/* фраза, которую копируют слово в слово */
.copy { background: var(--card); border: 2px solid var(--hi); border-radius: 20px; padding: 16px 18px; margin: 0 0 12px; }
.copy .phrase { font: 500 15px/1.5 'Montserrat'; margin: 0 0 14px; overflow-wrap: anywhere; }

/* ── медиа: видео, аудио, фото. Нет файла — рамка с подписью, что сюда положить (data-label) ── */
.media { position: relative; margin: 0 0 12px; border-radius: 20px; overflow: hidden; background: #000; }
.media video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.media.v916 { aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; }
.media.v169 { aspect-ratio: 16 / 9; }
.media.audio { background: var(--card); border: 1px solid var(--line); padding: 14px 16px; }
.media.audio .kicker { margin-bottom: 10px; }
.media.audio audio { width: 100%; }
.media.photo { background: transparent; }
.media.photo img { width: 100%; height: 360px; object-fit: cover; }
.media.empty { display: grid; place-items: center; padding: 20px; background: transparent; border: 2px dashed #b8b8bd; text-align: center; }
.media.empty > :not(.kicker) { display: none; }
.media.empty::after { content: attr(data-label); font: 600 14px/1.45 'Montserrat'; color: var(--text2); white-space: pre-line; }
.media.audio.empty { place-items: start; text-align: left; }

/* настоящий снимок экрана; метки и рамка — в процентах от снимка */
.shot { position: relative; margin: 4px 0 6px; }
.shot img { width: 100%; border: 1px solid #d2d2d7; border-radius: 14px; background: #fff; }
.shot .mk { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--ink);
            color: #fff; border: 3px solid var(--hi); font: 800 13px/24px 'Montserrat'; text-align: center; }
.shot .ring { position: absolute; border: 3px solid var(--hi); border-radius: 16px; }
.src { font-size: 12px; line-height: 1.3; color: var(--muted); margin: 0 4px 14px; }

/* автор и отзывы */
.who { display: flex; gap: 12px; align-items: center; margin: 0 0 16px; }
.who img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.who .t { font: 700 16px/1.25 'Montserrat'; }
.who .m { font-size: 13px; line-height: 1.35; color: var(--muted); }
.card.dark .who .m { color: #a1a1a6; }
.reviews { display: grid; gap: 4px; }
/* у карточки отзыва свой прозрачный край с тенью — компенсируем */
.reviews img { width: calc(100% + 20px); margin: 0 -10px; }
@media (min-width: 640px) { .reviews { grid-template-columns: 1fr 1fr; align-items: start; } }

/* вопросы и ответы */
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; margin: 0 0 8px; }
summary { list-style: none; cursor: pointer; position: relative; padding: 15px 30px 15px 0; font: 600 16px/1.35 'Montserrat'; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; top: 11px; font: 400 24px/1 'Montserrat'; color: var(--muted); }
details[open] summary::after { content: '−'; }
details > p { padding: 0 0 15px; color: var(--text2); }

/* показывать только на телефоне: мост «читаю здесь — делаю на компьютере» */
.only-phone { display: none; }
@media (hover: none) and (pointer: coarse) { .only-phone { display: block; } }

footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 64px 0 0; padding: 20px 0 0;
         border-top: 1px solid var(--hair); font: 500 13px/1.4 'Montserrat'; color: var(--muted); }
footer .brand { margin: 0; color: var(--ink); }

@media (min-width: 640px) {
  .wrap { padding-top: 40px; }
  h1 { font-size: 56px; }
  h2 { font-size: 32px; }
}
