/* Публичные страницы: главная, «Как это работает», справочник, правовые — по макету дизайн-системы. */
body.landing { overflow-x: clip; }
.land-top { padding-block: 14px; }
.land-nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.land-nav a { color: var(--ink); text-decoration: none; }
.land-nav a:hover { color: var(--accent); }
.land-acts { display: flex; gap: 14px; align-items: center; }
.land-login { color: var(--ink); text-decoration: none; font-size: 15px; }
@media (max-width: 760px) { .land-top .land-nav { display: none; } .land-acts .btn { display: none; } }

/* Первый экран: текст слева, превью ширмы справа */
.hero-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding: 56px 0 40px; }
@media (max-width: 960px) { .hero-block { grid-template-columns: minmax(0, 1fr); padding-top: 32px; } }
.hero-text { display: grid; gap: 18px; }
.hero-text h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.07; }
.lead { font-size: 20px; line-height: 30px; max-width: 58ch; color: var(--ink); }
.cta { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.cta-link { display: inline-flex; gap: 6px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 500; }
.cta-link:hover { color: var(--accent); }
.btn.big, .btn-lg { min-height: 52px; padding: 0 26px; font-size: 18px; }
@media (max-width: 560px) { .cta .btn { width: 100%; } }

.hero-shot { position: relative; padding-bottom: 28px; }
.shot-card { padding: 18px; display: grid; gap: 12px; }
.shot-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.shot-title { font: 500 20px/24px var(--display); }
.shot-read { padding: 12px 16px; }
.shot-read .read p { font-size: 17px; line-height: 26px; }
.shot-read .read > p:first-child::first-letter { font-size: 44px; line-height: 38px; padding: 1px 6px 4px; margin-right: 8px; }
.shot-map { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 3 / 2; background: var(--sunk); }
.shot-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Наложения поверх карты — те же, что в ширме: не зависят от темы */
.m-label { position: absolute; transform: translate(-50%, -130%); display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 4px;
  background: rgba(251,246,236,.95); color: #2b2118; font: 700 12px/16px var(--body); white-space: nowrap; box-shadow: 0 0 0 1px rgba(43,33,24,.55), 0 2px 6px rgba(0,0,0,.25); }
.m-label .ico { width: 14px; height: 14px; color: #7e2a22; }
.m-label.goal { background: #7e2a22; color: #fff8ee; }
.m-label.goal .ico { color: #fff8ee; }
.m-tok { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font: 700 12px/1 var(--display); color: #fff;
  border: 2px solid #fbf6ec; box-shadow: 0 0 0 1.5px rgba(20,14,8,.85), 0 2px 6px rgba(0,0,0,.4); }
.m-tok.friend { background: #2c6656; }
.m-tok.enemy { background: #a8381c; border-radius: 4px; transform: translate(-50%, -50%) rotate(45deg); }
.m-tok.enemy > span { transform: rotate(-45deg); }
.m-party { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: #7e2a22; color: #fff8ee;
  font: 700 12px/1 var(--body); border: 2px solid #fbf6ec; box-shadow: 0 0 0 1.5px rgba(20,14,8,.85), 0 2px 8px rgba(0,0,0,.4); }
.m-party .ph { width: 22px; height: 22px; border-radius: 999px; background: #fff8ee; color: #7e2a22; display: grid; place-items: center; }
.m-party .ph .ico { width: 14px; height: 14px; }
.shot-hero { position: absolute; left: -24px; bottom: 0; width: 230px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-2); }
.shot-hero-t { display: grid; gap: 4px; flex: 1; min-width: 0; }
.shot-hero .row-b { display: flex; justify-content: space-between; gap: 8px; }
.shot-hero .hint { font-size: 12px; line-height: 16px; }
@media (max-width: 960px) { .shot-hero { left: 12px; } }

/* Разделы: завиток → надзаголовок → заголовок; чередование фона без теней */
.land-sec { padding: 72px 0; display: grid; gap: 32px; }
.land-sec.band { margin: 0 calc(50% - 50vw); padding-inline: calc(50vw - 50%); background: var(--sunk); border-block: 1px solid var(--line); }
.sec-head { display: grid; justify-items: center; text-align: center; gap: 8px; max-width: 720px; margin: 0 auto; }
.sec-head h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.17; }
.sec-head .lead { font-size: 18px; line-height: 28px; color: var(--muted); }
.sec-cta { text-align: center; }
@media (max-width: 600px) { .land-sec { padding: 48px 0; } }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.who-grid h3 { font-size: 20px; margin-bottom: 6px; }
.who-grid p, .feat-grid p { color: var(--muted); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.feat-grid > article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow-1); }
.feat-grid > article > [data-i] { color: var(--brass); }
.feat-grid > article .ico { width: 26px; height: 26px; }
.feat-grid h3 { font-size: 19px; line-height: 24px; margin-bottom: 4px; }
.feat-grid p { font-size: 15px; line-height: 22px; }
.steps-land { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps-land li { display: flex; gap: 16px; align-items: flex-start; }
.step-n { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--brass); display: grid; place-items: center; font: 500 20px/1 var(--display); color: var(--accent); background: var(--surface); }
.steps-land h3 { font-size: 20px; margin-bottom: 4px; }
.steps-land p { color: var(--muted); font-size: 15px; line-height: 22px; }
.race-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.race-strip figure { margin: 0; display: grid; gap: 10px; text-align: center; }
.race-strip img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.race-strip figcaption { font: 500 16px/20px var(--display); }
@media (max-width: 760px) { .race-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.faq-list { max-width: 720px; margin: 0 auto; width: 100%; }
.faq .disc > summary { font-weight: 700; }
.faq .disc > summary .chev { margin-left: auto; color: var(--muted); transition: transform var(--t-base) var(--ease); }
.faq .disc[open] > summary .chev { transform: rotate(180deg); }
.faq a, .land-foot a, .doc a { color: var(--accent); }

.land-foot { border-top: 1px solid var(--line); padding: 32px 0 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: start; }
.foot-brand { display: grid; gap: 10px; max-width: 560px; }
.land-foot nav { display: grid; gap: 8px; justify-items: start; }
@media (max-width: 700px) { .land-foot { grid-template-columns: minmax(0, 1fr); } }

/* Текстовые страницы */
.doc { max-width: 760px; display: grid; gap: 14px; padding: 24px 0 40px; }
.doc h1 { margin-bottom: 4px; }
.doc h2 { font-size: 26px; margin-top: 18px; }
.doc p, .doc li { max-width: 70ch; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.doc table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.doc th { font: 500 17px/22px var(--display); white-space: nowrap; }
.doc .note { background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
