/* Экраны пути: обложка, знакомство, пролог, манифест, сообщество, материалы. */

/* ---------- Обложка ---------- */

.cover-screen {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 66px);
  padding: clamp(20px, 4vh, 64px) 0 clamp(26px, 5vh, 72px);
  overflow: hidden;
}
.cover-screen::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 168, 150, .28), transparent 66%);
  pointer-events: none;
}
.cover-screen::after {
  content: "";
  position: absolute;
  bottom: -240px;
  left: -180px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 106, 74, .13), transparent 66%);
  pointer-events: none;
}

.cover-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .8fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.cover-copy { max-width: 680px; }

.cover-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(52px, min(9vw, 13vh), 116px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.84;
}
.cover-title span { display: block; }
.cover-title .accent {
  color: var(--green);
  font-style: italic;
  padding-left: 0.04em;
}
.cover-title .dot { color: var(--rust); }

.cover-sub {
  margin: 0 0 16px;
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: clamp(18px, min(2.4vw, 3.4vh), 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.cover-lead {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.55;
}
.cover-meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.cover-meta span + span::before {
  content: "·";
  margin: 0 7px;
  color: var(--line-strong);
}

.cover-art-wrap {
  position: relative;
  width: min(100%, 430px, 50vh);
  margin-left: auto;
  transform: rotate(1.2deg);
}
.cover-art-wrap .comic-frame {
  aspect-ratio: 900 / 1100;
  animation: art-in 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
.cover-stamp {
  position: absolute;
  left: -26px;
  bottom: 38px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 3px solid var(--rust);
  background: var(--paper);
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  line-height: 1.05;
  text-align: center;
  transform: rotate(-9deg);
  box-shadow: 0 10px 26px rgba(30, 43, 39, .12);
}
.cover-stamp b { display: block; font-size: 25px; font-style: normal; }

.cover-actions { margin-top: clamp(18px, 2.6vh, 32px); }

.cover-footnote {
  max-width: 54ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

/* ---------- Знакомство ---------- */

.intro-screen { padding: clamp(44px, 7vw, 84px) 0 clamp(64px, 8vw, 100px); }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}
.intro-aside { padding-top: 16px; }
.intro-aside .quote { margin: 26px 0; }
.intro-aside .muted-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.intro-aside .muted-list li {
  display: flex;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.intro-aside .muted-list li::before {
  content: "—";
  color: var(--rust);
}
.intro-form .field:last-of-type { margin-bottom: 0; }
.intro-form .note { margin-top: 22px; }

/* ---------- Согласие ---------- */

.consent-screen { display: flex; align-items: center; padding: 40px 0 70px; }
.consent-card { width: min(820px, 100%); margin: 0 auto; }
.consent-list {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.consent-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15.5px;
}
.consent-list li:last-child { border-bottom: 0; }
.consent-list .num {
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 15px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.consent-check:hover { border-color: var(--green-2); }
.consent-check:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.consent-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--green);
}
.consent-error {
  margin-top: 10px;
  color: var(--rust);
  font-size: 13.5px;
}

/* ---------- Пролог ---------- */

.prologue-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 48px) 0 34px;
}
.prologue-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(26px, 4vw, 58px);
  align-items: center;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}
.prologue-art {
  position: relative;
  aspect-ratio: 3 / 2;
  animation: art-in .8s cubic-bezier(.2, .8, .2, 1) both;
}
.prologue-art .speech {
  position: absolute;
  left: 4.5%;
  bottom: 7%;
  z-index: 2;
  max-width: 74%;
  margin: 0;
  padding: 12px 17px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  font-family: var(--font-display);
  font-size: clamp(16px, 1.7vw, 21px);
  font-style: italic;
  line-height: 1.25;
  box-shadow: 5px 5px 0 rgba(30, 43, 39, .14);
}
.prologue-art .speech::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -12px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.prologue-copy { max-width: 520px; }
.prologue-title {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.6vw, 60px);
}
.prologue-caption {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.35;
}
.prologue-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.prologue-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1240px, calc(100% - 48px));
  margin: 26px auto 0;
}
.dots { display: flex; align-items: center; gap: 7px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: all .3s;
}
.dot.is-on { width: 26px; background: var(--green); }
.prologue-actions { display: flex; align-items: center; gap: 16px; }

/* ---------- Манифест ---------- */

.manifesto-screen { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 110px); }
.manifesto-head { max-width: 900px; }
.manifesto-head .section { margin-bottom: 14px; }
.manifesto-head .lead { max-width: 70ch; }
.manifesto-quote {
  max-width: 860px;
  margin: 34px 0 38px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pillar {
  padding: clamp(20px, 2.6vw, 28px);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.pillar-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.pillar-num {
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.02em;
}
.pillar p { color: var(--muted); font-size: 14.5px; }

.extremes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 34px;
}
.extreme {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}
.extreme h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.025em;
}
.extreme p { color: var(--ink-soft); font-size: 14.5px; }
.extreme-left { background: var(--rust-soft); border-color: #e1bcae; }
.extreme-right { background: var(--blue-soft); border-color: #bccfd8; }
.extreme-middle {
  background: var(--green-soft);
  border-color: var(--green);
  transform: translateY(-10px);
  box-shadow: 0 18px 40px rgba(47, 93, 80, .14);
}
.extreme-label {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30, 43, 39, .08);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.extreme-middle .extreme-label { background: var(--green); color: #fffdf6; }

.together-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.together-card {
  padding: 22px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}
.together-card h3 {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 22px;
}
.together-card p { color: var(--muted); font-size: 14.5px; }

.not-panel {
  margin-top: 26px;
  padding: 24px;
  border-radius: 18px;
  border: 1.5px dashed var(--line-strong);
  background: rgba(255, 250, 240, .5);
}
.not-panel h3 { margin-bottom: 10px; font-size: 15px; }
.not-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.not-list li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 13px;
  text-decoration: line-through;
  text-decoration-color: var(--rust);
}

/* ---------- Перед самопроверкой ---------- */

.prequiz-screen { display: flex; align-items: center; padding: 44px 0 70px; }
.prequiz-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
}
.prequiz-number {
  font-family: var(--font-display);
  font-size: clamp(120px, 16vw, 190px);
  line-height: .78;
  letter-spacing: -0.06em;
  color: var(--green);
}
.prequiz-number small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.prequiz-card { padding: clamp(26px, 4vw, 44px); }
.prequiz-card .note { margin-top: 20px; }

/* ---------- Сообщество ---------- */

.community-screen { position: relative; overflow: hidden; padding: clamp(50px, 7vw, 86px) 0 80px; }
.community-screen .art-fill { opacity: .22; filter: saturate(.8); pointer-events: none; }\n.community-screen .wrap { position: relative; z-index: 1; }
.community-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: end;
}
.community-hero .lead { max-width: 58ch; }
.community-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.community-values span {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, .8);
  color: var(--ink-soft);
  font-size: 13px;
}

.doors {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.door {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform .18s, box-shadow .2s, border-color .2s;
}
.door:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--green-2); }
.door-num {
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
}
.door h3 {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.4vw, 30px);
  letter-spacing: -0.025em;
}
.door p { flex: 1; color: var(--muted); font-size: 14.5px; }
.door .btn { margin-top: 20px; align-self: flex-start; }

.community-note {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}
.community-note .note { font-size: 14px; }

.final-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: clamp(24px, 4vw, 40px);
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--green-soft);
  box-shadow: 8px 8px 0 rgba(30, 43, 39, .12);
}
.final-card h3 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.final-card p { color: var(--ink-soft); font-size: 15px; max-width: 62ch; }
.final-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.credit {
  position: relative;
  z-index: 1;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.credit b { color: var(--ink-soft); }
.credit a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.credit p + p { margin-top: 6px; }

/* ---------- Материалы ---------- */

.materials-screen { padding: clamp(48px, 7vw, 90px) 0 80px; }
.materials-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.materials-list { display: grid; gap: 12px; margin-top: 32px; }
.material {
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.material summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}
.material summary::-webkit-details-marker { display: none; }
.material summary h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 25px);
  letter-spacing: -0.02em;
}
.material summary .plus {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--green);
  font-size: 20px;
  line-height: 1;
  transition: transform .2s;
}
.material[open] summary .plus { transform: rotate(45deg); background: var(--green-soft); border-color: var(--green); }
.material-body { padding: 0 22px 22px; color: var(--ink-soft); }
.material-body .lead { margin-bottom: 12px; font-size: 14.5px; }
.material-body ul { margin: 0; padding-left: 20px; }
.material-body li { margin-bottom: 8px; font-size: 14.5px; }
.material-body li::marker { color: var(--rust); }

/* ---------- О пути ---------- */

.about-screen { padding: clamp(48px, 7vw, 90px) 0 80px; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.about-card {
  padding: clamp(22px, 3vw, 30px);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}
.about-card h3 { margin-bottom: 8px; font-family: var(--font-display); font-size: 24px; }
.about-card p { color: var(--ink-soft); font-size: 14.5px; }
.about-card.wide { grid-column: 1 / -1; }

@media (max-height: 780px) and (min-width: 1061px) {
  .cover-footnote { display: none; }
  .cover-sub br { display: none; }
  .cover-title { font-size: clamp(48px, 11vh, 92px); }
  .cover-art-wrap { width: min(100%, 360px, 46vh); }
  .sound-hint { margin-top: 14px; }
}
.comic-frame > .art-photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.traps { margin-top: 30px; }
.traps > h3 {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.traps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 250, 240, .65);
}
.trap b { font-family: var(--font-display); font-size: 19px; line-height: 1.15; }
.trap span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }

.path-steps { display: grid; gap: 12px; margin: 30px 0 26px; padding: 0; list-style: none; }
.path-step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}
.path-num {
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 30px;
  font-style: italic;
  line-height: 1;
}
.path-step h3 { margin-bottom: 4px; font-family: var(--font-display); font-size: 22px; }
.path-step p { color: var(--muted); font-size: 14.5px; }