/* Центр помощи КОДИКОДИ. Шапка — тёмная полоса с логотипом, как у сайта и кабинета;
   содержимое светлое, как у кабинета. Мельче 13 px на странице ничего нет, мелкий текст
   и номера — с контрастом не ниже 4,5 (аудит 07.10.2026, пп. 8.6, 9.6, 9.7).
   Шрифты — как у кабинета (п. 4.3): текст Golos Text (/site/fonts/fonts.css), заголовки Unbounded сайта. */
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: optional;
  src: url(/site/store/assets/fonts/unbounded-700.woff2) format('woff2'), url(/site/store/assets/fonts/unbounded-700.woff) format('woff');
}
:root {
  --display: "Unbounded", "Golos Text", -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ground: #090a14;
  --sun: #fee232;
  --sun-hover: #fff04f;
  --brand-ink: #111118;
  --on-ground: #c9d4ee;
  --on-ground-2: #8f97b5;
  --blue: #2477f3;
  --blue-dark: #155cca;
  --blue-soft: #eaf3ff;
  --navy: #12213b;
  --text: #1c2940;
  --muted: #56657b;
  --line: #dfe6f0;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --gold: #f6b91f;
  --green: #12815f;
  --green-soft: #e9f8f2;
  --red-soft: #fff0f2;
  --shadow: 0 20px 60px rgba(32, 64, 110, .11);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); background: #fff; font-family: var(--body); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
p a, li a, dd a, .callout a, .small-note a { color: var(--blue-dark); }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
main { outline: none; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.compact-shell { width: min(1040px, calc(100% - 40px)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-150%); padding: 12px 16px; border-radius: 999px; background: var(--sun); color: var(--brand-ink); font-weight: 700; }
.skip-link:focus { transform: none; outline: 3px solid var(--brand-ink); outline-offset: 2px; }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; border-radius: 6px; }

/* --- Шапка --- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ground); color: var(--on-ground); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; flex: none; }
.brand img { width: 72px; height: 48px; object-fit: contain; }
.brand-sub { color: var(--on-ground-2); font-size: 14px; font-weight: 700; white-space: nowrap; }
.header-nav { display: flex; justify-content: center; flex: 1; gap: 24px; }
.header-nav a, .header-site { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-ground); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-nav a:hover, .header-site:hover { color: var(--sun); }
.site-header :focus-visible { outline-color: var(--sun); }
.header-links { display: flex; align-items: center; gap: 18px; flex: none; }
.header-action { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--sun); color: var(--brand-ink); font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.header-action:hover { background: var(--sun-hover); }

/* --- Первый экран: «Настройка в три этапа» (маршрут 14.10.2026) --- */
.start { padding: 40px 0 64px; background: radial-gradient(circle at 88% 12%, rgba(75, 151, 255, .14), transparent 30%), linear-gradient(180deg, #f8fbff 0, #fff 100%); }
.start-grid { display: grid; grid-template-columns: 1fr 190px; grid-template-areas: "head codi" "steps steps"; align-items: center; gap: 0 40px; }
.start-head { grid-area: head; }
.start-codi { grid-area: codi; width: 170px; height: auto; justify-self: center; filter: drop-shadow(0 20px 26px rgba(42, 71, 109, .18)); }
.eyebrow { display: block; width: fit-content; margin-bottom: 14px; padding: 7px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
h1 { max-width: 760px; margin: 0 0 14px; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 46px); line-height: 1.12; letter-spacing: 0; overflow-wrap: anywhere; }
.lead { max-width: 700px; margin: 0; color: #46546b; font-size: 18px; line-height: 1.6; }
.first-steps { grid-area: steps; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: none; }
.first-step { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 12px 34px rgba(32, 64, 110, .07); }
.first-num { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 13px; background: var(--sun); color: var(--brand-ink); font-weight: 900; font-size: 18px; }
.first-step h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.first-step p { margin: 0; color: var(--muted); font-size: 15px; }
.first-step p + p { margin-top: 8px; }
.first-step p b { color: var(--text); }
.first-step > div { display: flex; flex-direction: column; flex: 1; }
.first-step .step-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 10px; }
.step-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--blue-dark); font-weight: 800; font-size: 15px; }

/* --- Общие секции --- */
.section { padding: 88px 0; }
.section.soft { background: var(--soft); }
.section-heading { margin-bottom: 34px; }
.section-heading.centered { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-heading.split { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.kicker { margin: 0; color: var(--blue-dark); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; font-weight: 900; }
.section-heading h2, .article-aside h2, .full-grid h2, .scenario-copy h2, .final-inner h2 { margin: 8px 0 12px; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.15; letter-spacing: 0; overflow-wrap: anywhere; }
.section-heading p:not(.kicker) { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.small-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 850; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.secondary { border: 2px solid var(--brand-ink); background: #fff; color: var(--brand-ink); }
.button.light { min-width: 200px; background: var(--sun); color: var(--brand-ink); }
.button.light:hover { background: var(--sun-hover); }
.tag { display: inline-flex; align-items: center; width: fit-content; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 900; }
.tag.waiting { color: #6f4a04; background: #fff5d8; }

/* --- Заказ --- */
.order-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.order-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.order-card h3 { margin: 0; font-size: 19px; }
.order-card p { margin: 0; color: var(--muted); }
.order-card .button { margin-top: auto; width: fit-content; }

/* --- Библиотека --- */
.search-box { width: min(390px, 100%); display: flex; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid #7d8ba0; border-radius: 14px; background: white; color: var(--muted); }
.search-box:focus-within { border-color: var(--blue-dark); box-shadow: 0 0 0 4px rgba(36, 119, 243, .12); }
/* 16 px: при поле мельче iPhone увеличивает масштаб страницы при нажатии (аудит, п. 9.7). */
.search-box input { width: 100%; min-height: 48px; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.guide-card { min-height: 210px; display: flex; flex-direction: column; position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: white; text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.guide-card:hover { transform: translateY(-4px); border-color: #96c0fb; box-shadow: var(--shadow); }
.guide-card[hidden] { display: none; }
.guide-number { color: var(--muted); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.guide-icon { width: 44px; height: 44px; display: grid; place-items: center; margin: 12px 0; border-radius: 14px; background: var(--blue-soft); color: var(--blue-dark); font-size: 21px; font-weight: 900; }
.guide-card h3 { margin-bottom: 8px; font-size: 18px; line-height: 1.25; }
.guide-card p { margin: 0; color: var(--muted); font-size: 15px; }
.empty-search { margin: 16px 0 0; padding: 26px; border-radius: 18px; background: var(--soft); text-align: center; color: var(--muted); }

/* --- Настройка по шагам --- */
.article-layout { display: grid; grid-template-columns: 270px 1fr; align-items: start; gap: 50px; }
.article-aside { position: sticky; top: 100px; }
.article-aside > p:not(.kicker) { color: var(--muted); }
.article-nav { display: grid; border-top: 1px solid var(--line); }
.article-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: #46546b; font-size: 15px; font-weight: 700; }
.article-nav a:hover { color: var(--blue-dark); }
.article-content { min-width: 0; }
.step-card { scroll-margin-top: 96px; display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.step-card + .step-card { margin-top: 16px; }
.step-badge { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--blue-dark); color: white; font-weight: 900; }
.step-body { min-width: 0; }
.step-body h3 { margin: 7px 0 16px; font-size: 22px; line-height: 1.25; }
.step-body ol { display: grid; gap: 10px; margin: 0; padding-left: 22px; }
.step-body li::marker { color: var(--blue-dark); font-weight: 900; }
.callout { display: grid; gap: 4px; margin-top: 18px; padding: 15px 17px; border-left: 4px solid var(--blue); border-radius: 5px 14px 14px 5px; background: var(--blue-soft); font-size: 15px; }
.callout.warning { border-left-color: var(--gold); background: #fff8e6; }
.callout.danger { border-left-color: #df6070; background: var(--red-soft); }
.two-column-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.two-column-steps > div { padding: 18px; border-radius: 16px; background: var(--soft); }
.two-column-steps ol { margin-top: 12px; }
.mini-label { display: inline-block; padding: 5px 9px; border-radius: 8px; background: var(--blue-soft); color: var(--blue-dark); font-size: 13px; font-weight: 900; }
.mini-label.child { background: #fff4d5; color: #6f4a04; }
.success-panel { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 17px; border-radius: 16px; background: var(--green-soft); color: #0f5e47; }
.success-panel > span { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--green); color: white; font-weight: 900; }
.success-panel b, .success-panel small { display: block; }
.success-panel small { margin-top: 3px; color: #2f6555; font-size: 14px; }

/* «Не получается?» в шагах настройки: каждая подсказка свёрнута и видна только в своём шаге (маршрут 14.10.2026, раздел 3). */
.trouble { margin: 4px 0 20px; padding: 12px 16px 4px; border: 1px solid #f1dfa9; border-radius: 16px; background: #fffaf0; }
.trouble h4 { margin: 0 0 4px; font-size: 16px; }
.trouble details { border-top: 1px solid #f1e5c4; }
.trouble summary { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; cursor: pointer; list-style: none; font-size: 15px; font-weight: 700; }
.trouble summary::-webkit-details-marker { display: none; }
.trouble summary i { margin-left: auto; color: var(--blue-dark); font-style: normal; font-size: 18px; transition: transform .2s; }
.trouble details[open] summary i { transform: rotate(45deg); }
.trouble details p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }

/* --- Шаги со снимками экрана: настоящие экраны Android 16 (эмулятор) и кабинета, 09.10.2026 --- */
.step-intro { margin: 0 0 6px; color: var(--muted); }
.step-body .shot-steps, .shot-steps { counter-reset: shot; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 18px; margin: 20px 0 0; padding: 0; list-style: none; }
.step-body .shot-steps-wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.shot-step { counter-increment: shot; display: flex; flex-direction: column; gap: 12px; break-inside: avoid; page-break-inside: avoid; }
.shot { position: relative; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 22px; background: var(--soft); }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(32, 64, 110, .12); }
.shot::before { content: counter(shot); position: absolute; z-index: 1; top: -10px; left: -10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px; background: var(--sun); color: var(--brand-ink); font-size: 16px; font-weight: 900; }
.shot-step p { margin: 0; font-size: 15px; line-height: 1.5; }
.shots-title { margin: 34px 0 0; font-size: 20px; }
.shots-title:first-of-type { margin-top: 0; }
.child-shots { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.unlock-notes { margin: 30px 0 0; }
.print-button { width: 100%; margin-top: 18px; }
.print-button[hidden] { display: none; }
.print-button:disabled { cursor: wait; }
.step-after { margin: 18px 0 0; }
.shot-link { display: block; border-radius: 14px; cursor: zoom-in; }
/* Снимок крупно: на компьютере в сетке он ~230 px, надписи мелкие — по нажатию показываем в натуральную величину. */
.shot-dialog { width: min(94vw, 470px); max-height: 94vh; padding: 12px; border: 0; border-radius: 20px; background: #fff; }
.shot-dialog::backdrop { background: rgba(9, 10, 20, .72); }
.shot-dialog img { display: block; width: 100%; height: auto; max-height: calc(94vh - 90px); object-fit: contain; border-radius: 12px; }
.shot-dialog button { width: 100%; margin-top: 10px; }
/* Невысокий экран ноутбука: прилипшая колонка не помещалась, кнопка печати и последние пункты уходили за край. */
@media (max-height: 900px) {
  .article-aside { position: static; }
}

/* --- Каждый день --- */
.flow-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; }
.flow-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.flow-card > span { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-dark); font-weight: 900; }
.flow-card b { display: block; }
.flow-card p { margin: 7px 0 0; color: var(--muted); font-size: 15px; }
.flow-arrow { display: grid; place-items: center; color: #7b8799; }
.status-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; }
.status-list > div { display: grid; gap: 8px; padding: 18px; border-radius: 18px; background: var(--soft); }
.status-list dt, .status-list dd { margin: 0; }
.status-list dd { color: var(--muted); font-size: 15px; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.status-pill.closed { background: #1c2940; color: #fff; }
.status-pill.free { background: var(--green-soft); color: #0f5e47; }
.status-pill.offline { background: #fff0e0; color: #7a3d00; }

/* --- Экран ребёнка --- */
.scenario-grid { display: grid; grid-template-columns: 1fr 320px; align-items: center; gap: 70px; }
.scenario-copy > p:not(.kicker) { color: var(--muted); font-size: 18px; }
.check-list { display: grid; gap: 11px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

/* --- Освободить или отвязать --- */
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.option-grid article { padding: 26px; border: 1px solid var(--line); border-radius: 22px; }
.option-grid article > span { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 15px; background: var(--blue-soft); color: var(--blue-dark); font-size: 22px; }
.option-grid h3 { margin-bottom: 8px; }
.option-grid p { margin: 0; color: var(--muted); font-size: 15px; }

/* --- Марки и вопросы --- */
.accordion-list, .faq-grid { display: grid; gap: 11px; }
.accordion-list details, .faq-grid details { border: 1px solid var(--line); border-radius: 18px; background: white; }
.accordion-list summary, .faq-grid summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 19px; cursor: pointer; list-style: none; }
.accordion-list summary::-webkit-details-marker, .faq-grid summary::-webkit-details-marker { display: none; }
.accordion-list summary small { margin-left: 2px; color: var(--muted); font-size: 14px; }
.accordion-list summary i, .faq-grid summary i { margin-left: auto; color: var(--blue-dark); font-style: normal; font-size: 20px; transition: transform .2s; }
.accordion-list details[open] summary i, .faq-grid details[open] summary i { transform: rotate(45deg); }
.detail-body { padding: 0 20px 18px 67px; color: var(--muted); font-size: 15px; }
.detail-body p { margin: 8px 0; }
.brand-chip { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: white; font-weight: 900; font-size: 14px; }
.brand-chip.samsung { background: #2459d9; }
.brand-chip.xiaomi { background: #b85600; }
.brand-chip.honor { background: #111; }
.brand-chip.other { background: #17774f; }
.faq-grid { grid-template-columns: 1fr 1fr; }
.faq-grid details { align-self: start; }
.faq-grid summary { font-weight: 800; }
.faq-grid details p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: 15px; }

/* --- Скоро --- */
.dark-section { color: white; background: linear-gradient(145deg, #0e1b30, #1c3862); }
.full-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; }
.dark-tag { color: #ffe098; background: rgba(246, 185, 31, .16); }
.dark-lead { color: #c3d0e3; font-size: 18px; }
.dark-warning { display: grid; gap: 4px; margin-top: 26px; padding: 18px; border: 1px solid rgba(255, 221, 139, .3); border-radius: 16px; background: rgba(246, 185, 31, .1); color: #ffe7ae; }
.roadmap { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.roadmap li { display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: 16px; padding: 17px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 17px; background: rgba(255, 255, 255, .06); }
.roadmap li > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(89, 158, 255, .2); color: #a8cdff; font-weight: 900; }
.roadmap b, .roadmap small { display: block; }
.roadmap small { margin-top: 3px; color: #b0bfd4; font-size: 14px; }

/* --- Связь и подвал --- */
.final-cta { padding: 64px 0; color: white; background: var(--ground); }
.final-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.final-inner h2 { margin: 0 0 10px; }
.final-inner p { max-width: 720px; margin: 0; color: var(--on-ground); }
.final-inner p a { color: var(--sun); }
.site-footer { padding: 34px 0 0; border-top: 1px solid var(--line); background: white; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 25px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 14px; }
.footer-inner > a { color: var(--blue-dark); font-size: 15px; font-weight: 800; }
.footer-brand { gap: 0; }
.footer-links { padding-top: 18px; font-size: 15px; font-weight: 700; text-align: center; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue-dark); text-decoration: none; }
/* Реквизиты продавца в подвале: банк-эквайер ищет их на каждой странице сайта. */
.footer-seller { padding-top: 10px; padding-bottom: 24px; color: var(--muted); font-size: 14px; line-height: 1.7; text-align: center; }
.footer-seller a { color: var(--blue-dark); }
.footer-seller a[href^="tel:"], .final-inner a[href^="tel:"] { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

@media (max-width: 1100px) {
  .first-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .header-nav { display: none; }
  .header-links { margin-left: auto; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 220px 1fr; gap: 30px; }
  .flow-row { grid-template-columns: 1fr 1fr; }
  .flow-arrow { display: none; }
  .scenario-grid { gap: 35px; }
  .order-grid, .status-list { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .shell, .compact-shell { width: min(100% - 32px, 640px); }
  .header-inner { min-height: 60px; gap: 12px; }
  .brand img { width: 60px; height: 40px; }
  .brand-sub { display: none; }
  .start { padding: 26px 0 44px; }
  .start-grid { display: block; }
  .start-codi { display: none; }
  .lead { font-size: 16px; }
  .first-steps { grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
  .first-step { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px; }
  .first-num { width: 36px; height: 36px; font-size: 17px; }
  .section { padding: 64px 0; }
  .section-heading.split { display: grid; align-items: start; }
  .full-grid, .scenario-grid { grid-template-columns: 1fr; }
  .article-layout { display: block; }
  .article-aside { position: static; margin-bottom: 22px; }
  .article-nav { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .two-column-steps { grid-template-columns: 1fr; }
  .full-grid { gap: 35px; }
  .option-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .final-inner { display: grid; gap: 24px; }
  .button.light { justify-self: start; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .header-links { gap: 12px; }
  .header-site { font-size: 14px; }
  .header-action { padding: 8px 14px; font-size: 14px; }
  h1 { font-size: 26px; }
  .section-heading h2, .article-aside h2, .full-grid h2, .scenario-copy h2, .final-inner h2 { font-size: 23px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 0; }
  .article-nav { grid-template-columns: 1fr; }
  .step-card { grid-template-columns: 1fr; padding: 20px; }
  .step-badge { width: 38px; height: 38px; }
  .flow-row { grid-template-columns: 1fr; }
  /* Снимок на всю ширину телефона был бы огромным: по одному в ряд, не шире 300 px. */
  .step-body .shot-steps, .shot-steps, .step-body .shot-steps-wide, .child-shots { grid-template-columns: 1fr; gap: 24px; }
  .shot { width: min(100%, 300px); margin-inline: auto; }
  .shot-step p { max-width: 420px; margin-inline: auto; }
  .detail-body { padding-left: 20px; }
  .accordion-list summary small { display: none; }
}

@media (max-width: 359px) {
  .header-site { display: none; }
}

/* Печать и «Сохранить в PDF» из браузера: только инструкция, снимки по четыре в ряд, без шапки, поиска и подвала. */
@media print {
  @page { margin: 12mm; }
  html { scroll-behavior: auto; }
  body { background: #fff; color: #000; font-size: 13px; }
  /* Печатается только настройка телефона, экран ребёнка и подсказки по маркам. */
  .site-header, .skip-link, #start, #order, #guides, #assign, #disable, #help, .print-button, .print-status, .article-nav, .final-cta, .footer-inner, .footer-links, #full-protection, .shot-dialog { display: none !important; }
  .start, .section, .section.soft { padding: 14px 0; background: #fff; }
  .shell, .compact-shell { width: 100%; }
  .article-layout { display: block; }
  .article-aside { position: static; }
  .step-card { display: block; padding: 0; border: 0; box-shadow: none; }
  .step-card + .step-card { margin-top: 18px; }
  .step-badge { display: none; }
  .step-body .shot-steps, .shot-steps, .step-body .shot-steps-wide, .child-shots { grid-template-columns: repeat(3, 1fr); gap: 16px 12px; }
  .shot { padding: 4px; border-radius: 10px; }
  .shot img { box-shadow: none; border-radius: 6px; }
  .shot::before { top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 7px; font-size: 13px; }
  h2, h3, .kicker, .section-heading { break-after: avoid; page-break-after: avoid; }
  .shot-step p { font-size: 13px; }
  .first-steps, .order-grid, .option-grid, .faq-grid, .status-list, .flow-row { display: block; }
  .first-step, .order-card, .option-grid article, .flow-card { margin-bottom: 8px; break-inside: avoid; }
  .accordion-list details, .faq-grid details { break-inside: avoid; }
  .callout, .success-panel, .trouble details { break-inside: avoid; }
  .trouble summary i { display: none; }
  a { color: inherit; }
}
