/*
 * Редакционный слой внутренних страниц.
 * Здесь живут книга сказок, портрет Сиверки, мир Беломорья и страница проекта.
 */

/* Универсальные страницы WordPress -------------------------------------- */

.inner-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 76% 34%, rgb(78 122 113 / 22%), transparent 28rem),
    linear-gradient(125deg, var(--sb-night-850), var(--sb-night-950));
}

.inner-hero::before {
  position: absolute;
  z-index: -1;
  right: -7vw;
  bottom: -23vw;
  width: min(620px, 56vw);
  aspect-ratio: 1;
  border: 1px solid rgb(239 228 207 / 10%);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgb(239 228 207 / 2.5%),
    0 0 0 96px rgb(239 228 207 / 2%);
  content: "";
}

.inner-hero__content {
  display: flex;
  min-height: 500px;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  padding-block: calc(var(--sb-header-height) + 70px) clamp(72px, 8vw, 112px);
}

.inner-hero__content h1 {
  max-width: 920px;
}

.inner-hero__content .lead {
  max-width: 700px;
}

.content-card {
  transition: border-color 200ms ease, transform 260ms var(--sb-ease-out);
}

.content-card:hover {
  border-color: rgb(143 79 56 / 44%);
  transform: translateY(-4px);
}

.not-found {
  display: grid;
  min-height: 100svh;
  place-items: center;
  background:
    radial-gradient(circle at 78% 30%, rgb(201 154 85 / 12%), transparent 25rem),
    var(--sb-night-950);
}

.not-found__content {
  padding-block: calc(var(--sb-header-height) + 80px) 96px;
}

.not-found__content h1,
.not-found__content .lead {
  max-width: 760px;
}

/* Архив сказок: раскрытая книга ----------------------------------------- */

.story-library {
  position: relative;
  overflow: hidden;
  padding-block: calc(var(--sb-header-height) + clamp(70px, 8vw, 116px)) clamp(100px, 10vw, 156px);
  color: var(--sb-paper-100);
  background:
    linear-gradient(180deg, rgb(8 23 25 / 20%), var(--sb-night-950)),
    radial-gradient(circle at 50% 43%, rgb(55 100 88 / 19%), transparent 36rem),
    var(--sb-night-900);
  isolation: isolate;
}

.story-library::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent 49.85%, rgb(231 218 194 / 3%) 50%, transparent 50.15%),
    radial-gradient(circle at 18% 14%, rgb(226 182 111 / 36%) 0 1px, transparent 1.8px),
    radial-gradient(circle at 82% 29%, rgb(226 182 111 / 28%) 0 1px, transparent 1.8px);
  background-size: auto, 410px 390px, 530px 460px;
  content: "";
  opacity: 0.55;
}

.story-library__glow {
  position: absolute;
  top: 16%;
  left: 50%;
  width: min(860px, 80vw);
  height: 360px;
  background: radial-gradient(ellipse, rgb(210 155 78 / 11%), transparent 68%);
  pointer-events: none;
  transform: translateX(-50%);
}

.story-library__heading {
  position: relative;
  max-width: 880px;
  margin-bottom: clamp(52px, 7vw, 88px);
  text-align: center;
}

.story-library__heading h1 {
  margin-inline: auto;
}

.story-library__heading > p:last-child {
  max-width: 650px;
  margin: 28px auto 0;
  color: #b9c2bc;
  font-size: 1.0625rem;
}

.storybook {
  position: relative;
  display: grid;
  width: min(1260px, calc(100% - 64px));
  min-height: 620px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  color: var(--sb-ink-900);
  filter: drop-shadow(0 36px 48px rgb(0 0 0 / 32%));
  perspective: 1200px;
}

.storybook::after {
  position: absolute;
  z-index: -1;
  right: 4%;
  bottom: -18px;
  left: 4%;
  height: 38px;
  border-radius: 50%;
  background: rgb(0 0 0 / 28%);
  content: "";
  filter: blur(18px);
}

.storybook__spine {
  position: absolute;
  z-index: 4;
  top: 18px;
  bottom: 18px;
  left: 50%;
  width: 32px;
  background: linear-gradient(90deg, transparent, rgb(72 51 34 / 18%) 43%, rgb(255 250 231 / 17%) 52%, transparent);
  pointer-events: none;
  transform: translateX(-50%);
}

.storybook__page {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgb(102 73 47 / 2.3%) 0 1px, transparent 1px 8px),
    var(--sb-paper-50);
}

.storybook__page--picture {
  border-radius: 42px 5px 5px 42px;
  box-shadow: inset -18px 0 28px rgb(84 58 35 / 10%);
}

.storybook__page--picture > a,
.storybook__page--picture picture {
  display: block;
  width: 100%;
  height: 100%;
}

.storybook__page--picture img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 800ms var(--sb-ease-out);
}

.storybook__page--picture:hover img {
  transform: scale(1.018);
}

.storybook__page--picture figcaption {
  position: absolute;
  right: 30px;
  bottom: 26px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--sb-paper-50);
  background: rgb(5 13 14 / 72%);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}

.storybook__page--text {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: clamp(50px, 6vw, 88px);
  border-radius: 5px 42px 42px 5px;
  box-shadow: inset 18px 0 28px rgb(84 58 35 / 9%);
}

.storybook__page--text h2 {
  max-width: 500px;
  font-size: clamp(3.25rem, 5.2vw, 4.9rem);
}

.storybook__excerpt {
  max-width: 520px;
  margin-top: 24px;
  color: var(--sb-ink-700);
  font-size: 1.0625rem;
}

.storybook__excerpt > :last-child {
  margin-bottom: 0;
}

.storybook__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  list-style: none;
}

.storybook__meta li {
  padding: 7px 11px;
  border: 1px solid rgb(33 27 22 / 25%);
  border-radius: 999px;
  color: var(--sb-ink-700);
  font-size: 0.6875rem;
  font-weight: 680;
}

.storybook__button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
  padding: 12px 22px;
  border-radius: 999px;
  color: var(--sb-paper-50);
  background: var(--sb-night-900);
  font-size: 0.8125rem;
  font-weight: 760;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms var(--sb-ease-out);
}

.storybook__button span {
  color: var(--sb-amber-300);
  transition: transform 180ms var(--sb-ease-out);
}

.storybook__button:hover {
  background: var(--sb-sea-700);
  transform: translateY(-2px);
}

.storybook__button:hover span {
  transform: translateX(4px);
}

.storybook__leaf,
.storybook__sketch {
  position: absolute;
  pointer-events: none;
}

.storybook__leaf {
  top: 36px;
  right: 38px;
  width: 72px;
  height: 42px;
  border-top: 1px solid rgb(143 79 56 / 42%);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.storybook__sketch {
  right: 38px;
  bottom: 34px;
  width: 74px;
  height: 74px;
  border: 1px solid rgb(143 79 56 / 16%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 9px rgb(143 79 56 / 3%);
}

.story-shelf {
  width: min(1260px, calc(100% - 64px));
  margin: clamp(96px, 10vw, 148px) auto 0;
}

.story-shelf__heading {
  max-width: 740px;
  margin-bottom: 38px;
}

.story-shelf__heading h2 {
  font-size: clamp(2.75rem, 4.6vw, 4rem);
}

.story-shelf__rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.story-volume {
  overflow: hidden;
  border: 1px solid var(--sb-line-dark);
  border-radius: 24px;
  background: rgb(255 255 255 / 3%);
}

.story-volume__cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.story-volume__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--sb-ease-out);
}

.story-volume:hover .story-volume__cover img {
  transform: scale(1.025);
}

.story-volume__copy {
  padding: 24px;
}

.story-volume__copy > p {
  margin-bottom: 7px;
  color: var(--sb-amber-300);
  font-size: 0.6875rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-volume__copy h3 {
  font-size: 1.75rem;
}

.story-volume__copy a {
  text-decoration: none;
}

.story-library .navigation.pagination {
  width: min(1260px, calc(100% - 64px));
  margin: 42px auto 0;
}

.story-library .navigation.pagination .page-numbers {
  color: var(--sb-paper-100);
  border-color: var(--sb-line-dark);
}

.story-library .navigation.pagination .page-numbers.current,
.story-library .navigation.pagination .page-numbers:hover {
  color: var(--sb-night-950);
  background: var(--sb-amber-400);
  border-color: var(--sb-amber-400);
}

.storybook-empty {
  padding: 56px;
  border: 1px solid var(--sb-line-dark);
  border-radius: 32px;
}

.heroes-gallery {
  position: relative;
  overflow: hidden;
  padding-block: clamp(100px, 11vw, 164px);
  color: var(--sb-ink-900);
  background:
    linear-gradient(90deg, transparent 49.9%, rgb(87 77 66 / 5%) 50%, transparent 50.1%),
    var(--sb-paper-100);
  color-scheme: light;
}

.heroes-gallery__heading {
  display: grid;
  margin-bottom: clamp(52px, 7vw, 86px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  column-gap: clamp(36px, 7vw, 104px);
}

.heroes-gallery__heading .eyebrow,
.heroes-gallery__heading h2 {
  grid-column: 1;
}

.heroes-gallery__heading > p:last-child {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: end;
  color: var(--sb-ink-700);
}

.heroes-gallery__layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  gap: clamp(28px, 5vw, 70px);
}

.hero-profile {
  display: grid;
  min-height: 660px;
  overflow: hidden;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  border: 1px solid var(--sb-line-light);
  border-radius: 38px;
  background: rgb(255 250 238 / 48%);
}

.hero-profile__portrait {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgb(202 153 80 / 25%), transparent 37%),
    #ded1b8;
}

.hero-profile__portrait picture {
  width: 100%;
  height: 100%;
}

.hero-profile__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.hero-profile__copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: clamp(38px, 5vw, 70px);
}

.hero-profile__copy h3 {
  font-size: clamp(3.5rem, 6vw, 5.6rem);
}

.hero-profile__copy ul {
  display: grid;
  gap: 14px;
  margin-block: 28px 34px;
  list-style: none;
  color: var(--sb-ink-700);
}

.hero-profile__copy li {
  position: relative;
  padding-left: 21px;
}

.hero-profile__copy li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sb-copper-600);
  content: "";
}

.future-heroes {
  display: grid;
  gap: 14px;
}

.future-hero {
  position: relative;
  min-height: 198px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--sb-line-light);
  border-radius: 24px;
  isolation: isolate;
}

.future-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(125deg, rgb(255 255 255 / 62%), transparent);
  content: "";
}

.future-hero > span {
  position: absolute;
  z-index: -1;
  right: 22px;
  bottom: -28px;
  color: rgb(33 27 22 / 8%);
  font-family: var(--sb-font-display);
  font-size: 8.5rem;
  line-height: 1;
}

.future-hero > p {
  margin-bottom: 12px;
  color: var(--sb-copper-600);
  font-size: 0.6875rem;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.future-hero h3 {
  max-width: 270px;
  font-size: 1.8rem;
}

.future-hero--sea {
  background: #d8e0d9;
}

.future-hero--shore {
  background: #e9dcc4;
}

.future-hero--forest {
  background: #d4d4c2;
}

/* Полная сказка ---------------------------------------------------------- */

.reading-progress {
  position: fixed;
  z-index: 101;
  top: calc(var(--sb-admin-offset) + var(--sb-header-height));
  right: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border: 0;
  appearance: none;
  background: transparent;
}

.reading-progress::-webkit-progress-bar {
  background: transparent;
}

.reading-progress::-webkit-progress-value {
  background: var(--sb-amber-400);
}

.reading-progress::-moz-progress-bar {
  background: var(--sb-amber-400);
}

.story-cover {
  padding-block: calc(var(--sb-header-height) + clamp(56px, 7vw, 92px)) clamp(76px, 8vw, 116px);
  color: var(--sb-ink-900);
  background:
    radial-gradient(circle at 12% 14%, rgb(143 79 56 / 8%), transparent 28rem),
    var(--sb-paper-100);
  color-scheme: light;
}

.story-cover__frame {
  display: grid;
  min-height: 610px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  border: 1px solid var(--sb-line-light);
  border-radius: 42px;
  box-shadow: 0 22px 50px rgb(69 49 32 / 11%);
}

.story-cover__picture {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #251f1b;
}

.story-cover__picture picture,
.story-cover__picture img {
  width: 100%;
  height: 100%;
}

.story-cover__picture img {
  object-fit: cover;
  object-position: 50% 50%;
}

.story-cover__picture figcaption {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--sb-paper-50);
  background: rgb(5 13 14 / 76%);
  font-size: 0.6875rem;
}

.story-cover__page {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: clamp(42px, 6vw, 82px);
  background:
    repeating-linear-gradient(0deg, rgb(88 62 42 / 2%) 0 1px, transparent 1px 9px),
    var(--sb-paper-50);
}

.story-cover__page h1 {
  max-width: 600px;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
}

.story-cover__excerpt {
  max-width: 580px;
  margin-top: 24px;
  color: var(--sb-ink-700);
  font-size: 1.0625rem;
}

.story-cover__tools {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 34px;
}

.story-cover__read,
.story-copy {
  min-height: 48px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 740;
  cursor: pointer;
}

.story-cover__read {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  color: var(--sb-paper-50);
  background: var(--sb-night-900);
  text-decoration: none;
}

.story-copy {
  padding: 10px 0;
  border: 0;
  color: var(--sb-ink-700);
  background: transparent;
  text-decoration: underline;
  text-decoration-color: rgb(87 77 66 / 35%);
  text-underline-offset: 4px;
}

.story-copy:hover {
  color: var(--sb-copper-600);
}

.copy-status {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  color: var(--sb-copper-600);
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.copy-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story-cover__drawing {
  position: absolute;
  right: 32px;
  bottom: 27px;
  width: 100px;
  height: 56px;
  border-bottom: 1px solid rgb(143 79 56 / 28%);
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-9deg);
}

.story-reading {
  padding-block: clamp(84px, 10vw, 142px);
  color: var(--sb-ink-900);
  background:
    linear-gradient(90deg, transparent 49.9%, rgb(101 72 49 / 4%) 50%, transparent 50.1%),
    #d9c9ad;
  color-scheme: light;
}

.story-reading__paper {
  width: min(960px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: clamp(70px, 9vw, 126px);
  border: 1px solid rgb(72 50 33 / 13%);
  border-radius: 6px 28px 28px 6px;
  background:
    repeating-linear-gradient(0deg, rgb(83 57 37 / 2.6%) 0 1px, transparent 1px 10px),
    var(--sb-paper-50);
  box-shadow: 0 28px 60px rgb(58 40 26 / 15%);
}

.prose {
  color: var(--sb-ink-900);
  font-family: var(--sb-font-display);
  font-size: clamp(1.28rem, 1.9vw, 1.55rem);
  line-height: 1.82;
}

.prose > p + p {
  margin-top: 1.35em;
}

.prose > p:first-child::first-letter {
  float: left;
  margin: 0.07em 0.12em 0 0;
  color: var(--sb-copper-600);
  font-size: 4.1em;
  line-height: 0.72;
}

.prose > blockquote {
  margin-block: 2.1em;
  padding: 1.15em 0 1.15em 1.6em;
  border-left: 1px solid var(--sb-copper-600);
  color: var(--sb-ink-700);
  font-size: 1.08em;
  font-style: italic;
}

.story-word-reveal {
  position: relative;
  margin-block: 2.7em;
  padding: 1.8em;
  border: 1px solid rgb(143 79 56 / 25%);
  border-radius: 24px;
  text-align: center;
}

.story-word-reveal__prompt {
  margin-bottom: 0.45em;
  color: var(--sb-ink-700);
  font-family: var(--sb-font-text);
  font-size: 0.75rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-word {
  position: relative;
  padding: 0 0.72em 0.12em;
  border: 0;
  color: var(--sb-copper-600);
  background: transparent;
  font-family: var(--sb-font-display);
  font-size: clamp(2.8rem, 7vw, 4.7rem);
  line-height: 1;
  cursor: pointer;
}

.story-word::after {
  position: absolute;
  right: 0;
  bottom: -0.1em;
  left: 0;
  height: 1px;
  background: currentcolor;
  content: "";
  transform: scaleX(0.28);
  transition: transform 380ms var(--sb-ease-out);
}

.story-word:hover::after,
.story-word[aria-expanded="true"]::after {
  transform: scaleX(1);
}

.story-word-reveal__answer {
  margin-top: 1em;
  color: var(--sb-ink-700);
  font-style: italic;
}

.story-word-reveal__answer[hidden] {
  display: none;
}

.story-word-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-top: 3em;
  padding-top: 1.2em;
  border-top: 1px solid rgb(87 77 66 / 22%);
}

.story-word-footer span {
  color: var(--sb-ink-700);
  font-family: var(--sb-font-text);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-word-footer strong {
  color: var(--sb-copper-600);
  font-size: 1.55em;
  font-weight: 560;
}

/* Вещи, родившиеся из конкретной сказки ------------------------------- */

.story-goods {
  padding-block: clamp(78px, 9vw, 126px);
  color: var(--sb-ink-900);
  background:
    radial-gradient(circle at 86% 18%, rgb(196 143 72 / 10%), transparent 28rem),
    var(--sb-paper-100);
}

.story-goods__heading {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: clamp(28px, 6vw, 90px);
  margin-bottom: clamp(34px, 5vw, 58px);
}

.story-goods__heading h2 {
  max-width: 700px;
  font-size: clamp(2.8rem, 5.4vw, 5.4rem);
}

.story-goods__heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--sb-ink-700);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}

.story-afterword {
  padding-block: clamp(94px, 10vw, 148px);
  color: var(--sb-paper-100);
  background:
    radial-gradient(circle at 78% 38%, rgb(54 98 87 / 20%), transparent 30rem),
    var(--sb-night-950);
}

.story-afterword__inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(44px, 8vw, 116px);
}

.story-afterword__intro h2 {
  font-size: clamp(2.75rem, 4.4vw, 4rem);
}

.story-afterword__intro > p:last-child {
  margin-top: 22px;
  color: #aeb9b4;
}

.story-chapter-nav {
  border-top: 1px solid var(--sb-line-dark);
}

.story-chapter-nav > a,
.story-afterword__siverka {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--sb-line-dark);
  text-decoration: none;
}

.story-chapter-nav span,
.story-afterword__siverka span {
  color: #97a49f;
  font-size: 0.6875rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-chapter-nav strong,
.story-afterword__siverka strong {
  font-family: var(--sb-font-display);
  font-size: 1.55rem;
  font-weight: 550;
  text-align: right;
}

.story-chapter-nav > a:hover strong,
.story-afterword__siverka:hover strong {
  color: var(--sb-amber-300);
}

.story-afterword__siverka {
  grid-column: 2;
}

/* Сиверка: один редакционный портрет ------------------------------------ */

.siverka-profile {
  position: relative;
  min-height: 880px;
  overflow: hidden;
  padding-block: calc(var(--sb-header-height) + clamp(54px, 7vw, 96px)) clamp(82px, 9vw, 126px);
  color: var(--sb-paper-100);
  background:
    radial-gradient(circle at 22% 45%, rgb(197 145 73 / 16%), transparent 28rem),
    radial-gradient(circle at 84% 24%, rgb(47 91 82 / 20%), transparent 33rem),
    var(--sb-night-900);
}

.siverka-profile__mist {
  position: absolute;
  right: -12%;
  bottom: -80px;
  left: -12%;
  height: 260px;
  background: radial-gradient(ellipse at center, rgb(132 157 150 / 10%), transparent 68%);
  pointer-events: none;
}

.siverka-profile__layout {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(350px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(56px, 9vw, 134px);
}

.siverka-portrait {
  position: relative;
  width: min(100%, 540px);
  justify-self: center;
}

.siverka-portrait::before {
  position: absolute;
  z-index: 0;
  top: 11%;
  right: -9%;
  left: -9%;
  aspect-ratio: 1;
  border: 1px solid rgb(224 182 111 / 18%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(224 182 111 / 12%), transparent 67%);
  content: "";
}

.siverka-portrait picture {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgb(239 228 207 / 17%);
  border-radius: 42% 42% 32px 32px;
  background: #e5d8c0;
}

.siverka-portrait img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  object-position: 50% 43%;
}

.siverka-portrait figcaption {
  margin-top: 18px;
  color: #94a39d;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.siverka-portrait__note {
  position: absolute;
  z-index: 2;
  padding: 7px 12px;
  border: 1px solid rgb(239 228 207 / 20%);
  border-radius: 999px;
  color: #d8dfd8;
  background: rgb(5 13 14 / 78%);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
}

.siverka-portrait__note::before {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 1px;
  background: rgb(239 228 207 / 25%);
  content: "";
}

.siverka-portrait__note--eyes {
  top: 24%;
  right: -48px;
}

.siverka-portrait__note--eyes::before {
  right: 100%;
}

.siverka-portrait__note--lantern {
  right: -34px;
  bottom: 30%;
}

.siverka-portrait__note--lantern::before {
  right: 100%;
}

.siverka-profile__copy h1 {
  font-size: clamp(4.8rem, 8vw, 7.5rem);
}

.siverka-profile__lead {
  max-width: 680px;
  margin-top: 28px;
  color: #d1d7d1;
  font-family: var(--sb-font-display);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.45;
}

.siverka-profile__copy > p:not(.eyebrow, .siverka-profile__lead) {
  max-width: 650px;
  color: #aeb9b4;
}

.siverka-facts {
  margin-block: 42px 38px;
  border-top: 1px solid var(--sb-line-dark);
}

.siverka-facts > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  padding-block: 17px;
  border-bottom: 1px solid var(--sb-line-dark);
}

.siverka-facts dt {
  color: var(--sb-amber-300);
  font-size: 0.6875rem;
  font-weight: 720;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.siverka-facts dd {
  color: #c0c8c2;
}

.siverka-notebook {
  padding-block: clamp(92px, 10vw, 150px);
  color: var(--sb-ink-900);
  background: #d8c9ae;
  color-scheme: light;
}

.siverka-notebook__paper {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  border: 1px solid rgb(72 50 33 / 15%);
  border-radius: 36px;
  background:
    linear-gradient(90deg, transparent 49.9%, rgb(76 52 35 / 8%) 50%, transparent 50.1%),
    repeating-linear-gradient(0deg, rgb(76 52 35 / 2%) 0 1px, transparent 1px 9px),
    var(--sb-paper-50);
  box-shadow: 0 28px 60px rgb(62 42 27 / 14%);
}

.siverka-notebook__name,
.siverka-notebook blockquote {
  padding: clamp(46px, 6vw, 82px);
}

.siverka-notebook__name h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
}

.siverka-notebook__name > p:last-child {
  margin-top: 26px;
  color: var(--sb-ink-700);
}

.siverka-notebook blockquote {
  display: flex;
  justify-content: center;
  flex-direction: column;
  color: var(--sb-ink-700);
  font-family: var(--sb-font-display);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-style: italic;
  line-height: 1.5;
}

.siverka-notebook cite {
  margin-top: 24px;
  color: var(--sb-copper-600);
  font-family: var(--sb-font-text);
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.siverka-notebook__law {
  display: flex;
  align-items: center;
  gap: 18px;
  grid-column: 1 / -1;
  padding: 26px clamp(46px, 6vw, 82px);
  border-top: 1px solid rgb(72 50 33 / 13%);
  color: var(--sb-ink-700);
}

.siverka-notebook__law > span {
  color: var(--sb-copper-600);
}

/* Беломорье -------------------------------------------------------------- */

.world-opening {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--sb-paper-100);
  background: var(--sb-night-950);
  isolation: isolate;
}

.world-opening__image,
.world-opening__image img,
.world-opening__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.world-opening__image img {
  object-fit: cover;
  object-position: 50% 55%;
}

.world-opening__veil {
  background:
    linear-gradient(90deg, rgb(4 13 15 / 90%) 0%, rgb(4 13 15 / 66%) 48%, rgb(4 13 15 / 22%) 100%),
    linear-gradient(180deg, rgb(4 13 15 / 28%), rgb(4 13 15 / 20%) 58%, var(--sb-night-950));
}

.world-opening__layout {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 760px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding-block: calc(var(--sb-header-height) + 74px) 100px;
}

.world-opening__copy {
  max-width: 820px;
}

.world-opening__copy h1 {
  max-width: 820px;
  font-size: clamp(3.8rem, 6.7vw, 6.4rem);
}

.world-opening__copy > p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 30px;
  color: #c5cec8;
  font-size: 1.0625rem;
}

.world-opening__link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgb(239 228 207 / 42%);
  font-size: 0.75rem;
  font-weight: 720;
  text-decoration: none;
}

.world-opening__link span {
  color: var(--sb-amber-300);
}

.world-opening__coordinate {
  position: absolute;
  right: 0;
  bottom: 44px;
  color: rgb(239 228 207 / 62%);
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.world-manuscript {
  padding-block: clamp(96px, 11vw, 164px);
  color: var(--sb-ink-900);
  background: #d9c9ad;
  color-scheme: light;
}

.world-manuscript__layout {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  border: 1px solid rgb(72 50 33 / 14%);
  border-radius: 38px;
  background:
    linear-gradient(90deg, transparent 49.9%, rgb(72 50 33 / 7%) 50%, transparent 50.1%),
    repeating-linear-gradient(0deg, rgb(72 50 33 / 2%) 0 1px, transparent 1px 9px),
    var(--sb-paper-50);
  box-shadow: 0 28px 58px rgb(63 42 27 / 13%);
}

.world-manuscript__heading,
.world-manuscript__law {
  padding: clamp(48px, 7vw, 92px);
}

.world-manuscript__heading h2 {
  font-size: clamp(3.1rem, 5.2vw, 4.8rem);
}

.world-manuscript__heading > p:last-child {
  margin-top: 28px;
  color: var(--sb-ink-700);
}

.world-manuscript__law {
  display: flex;
  align-items: center;
  font-family: var(--sb-font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-style: italic;
  line-height: 1.48;
}

.world-manuscript__law p::before {
  display: block;
  margin-bottom: 16px;
  color: var(--sb-copper-600);
  content: "✦";
  font-family: var(--sb-font-text);
  font-size: 0.85rem;
  font-style: normal;
}

.world-threads {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgb(72 50 33 / 13%);
}

.world-threads > div {
  padding: 28px clamp(28px, 4vw, 54px);
}

.world-threads > div + div {
  border-left: 1px solid rgb(72 50 33 / 13%);
}

.world-threads dt {
  margin-bottom: 9px;
  color: var(--sb-copper-600);
  font-family: var(--sb-font-display);
  font-size: 1.7rem;
}

.world-threads dd {
  color: var(--sb-ink-700);
  font-size: 0.875rem;
}

.field-notes {
  padding-block: clamp(100px, 11vw, 166px);
  overflow: hidden;
  color: var(--sb-paper-100);
  background:
    radial-gradient(circle at 14% 18%, rgb(49 82 70 / 25%), transparent 30rem),
    var(--sb-night-950);
}

.field-notes__intro {
  display: grid;
  margin-bottom: clamp(46px, 6vw, 76px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
  column-gap: clamp(40px, 8vw, 120px);
}

.field-notes__intro .eyebrow,
.field-notes__intro h2 {
  grid-column: 1;
}

.field-notes__intro h2 {
  max-width: 760px;
}

.field-notes__intro > p:last-child {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: end;
  color: #aeb9b4;
}

.north-slider {
  overflow: hidden;
  border: 1px solid var(--sb-line-dark);
  border-radius: 34px;
  background: #071214;
}

.north-slider__viewport {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  touch-action: pan-y;
}

.north-slider__track {
  position: relative;
  min-height: inherit;
}

.north-slide {
  position: absolute;
  inset: 0;
  min-height: 660px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 760ms ease, visibility 0s linear 760ms;
}

.north-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.north-slide picture,
.north-slide picture img,
.north-slide__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.north-slide img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 8s linear;
}

.north-slide.is-active img {
  transform: scale(1.045);
}

.north-slide__shade {
  background:
    linear-gradient(90deg, rgb(5 13 14 / 91%) 0%, rgb(5 13 14 / 68%) 48%, rgb(5 13 14 / 12%) 100%),
    linear-gradient(180deg, transparent 58%, rgb(5 13 14 / 38%));
}

.north-slide__content {
  position: absolute;
  z-index: 1;
  bottom: clamp(48px, 7vw, 86px);
  left: clamp(32px, 7vw, 94px);
  max-width: 630px;
}

.north-slide__kind {
  margin-bottom: 16px;
  color: var(--sb-amber-300);
  font-size: 0.6875rem;
  font-weight: 740;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.north-slide__content h3 {
  font-size: clamp(2.75rem, 5vw, 4.8rem);
}

.north-slide__content > p:not(.north-slide__kind) {
  max-width: 580px;
  margin-top: 22px;
  color: #d0d6d0;
}

.north-slide__note {
  display: inline-flex;
  margin-top: 22px;
  padding: 8px 12px;
  border: 1px solid rgb(239 228 207 / 25%);
  border-radius: 999px;
  color: #e7dbc4;
  background: rgb(5 13 14 / 34%);
  font-size: 0.6875rem;
  font-weight: 650;
}

.north-slider__progress {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  background: rgb(255 255 255 / 12%);
}

.north-slider__toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border-top: 1px solid var(--sb-line-dark);
}

.north-slider__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-button {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--sb-line-dark);
  border-radius: 50%;
  color: var(--sb-paper-100);
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.slider-button:hover {
  color: var(--sb-night-950);
  background: var(--sb-amber-400);
  border-color: var(--sb-amber-400);
}

.slider-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.north-slider__status {
  min-width: 64px;
  margin-left: 8px;
  color: #9daba5;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.north-slider__dots {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.north-slider__dots button {
  display: grid;
  min-width: 116px;
  align-items: center;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #9daba5;
  background: transparent;
  font-size: 0.6875rem;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.north-slider__dots img {
  width: 50px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
}

.north-slider__dots button:hover,
.north-slider__dots button.is-active {
  color: var(--sb-paper-100);
  background: rgb(255 255 255 / 5%);
  border-color: var(--sb-line-dark);
}

.north-slider.has-single-slide .north-slide {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.world-crossroads {
  padding-block: clamp(96px, 11vw, 160px);
  color: var(--sb-paper-100);
  background: var(--sb-night-900);
}

.world-crossroads__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(48px, 9vw, 136px);
}

.world-crossroads__copy h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
}

.world-crossroads__copy > p:last-child {
  margin-top: 27px;
  color: #aeb9b4;
}

.world-crossroads__paths {
  border-top: 1px solid var(--sb-line-dark);
}

.world-crossroads__paths a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 30px;
  border-bottom: 1px solid var(--sb-line-dark);
  text-decoration: none;
}

.world-crossroads__paths span {
  color: #95a39d;
  font-size: 0.75rem;
}

.world-crossroads__paths strong {
  font-family: var(--sb-font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 550;
  text-align: right;
}

.world-crossroads__paths a:hover strong {
  color: var(--sb-amber-300);
}

/* О проекте -------------------------------------------------------------- */

.project-opening {
  position: relative;
  min-height: 770px;
  overflow: hidden;
  color: var(--sb-paper-100);
  background: var(--sb-night-950);
  isolation: isolate;
}

.project-opening__image,
.project-opening__image img,
.project-opening__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-opening__image img {
  object-fit: cover;
  object-position: 50% 50%;
}

.project-opening__shade {
  background:
    linear-gradient(90deg, rgb(4 13 15 / 93%) 0%, rgb(4 13 15 / 73%) 54%, rgb(4 13 15 / 25%) 100%),
    linear-gradient(180deg, rgb(4 13 15 / 24%), transparent 45%, var(--sb-night-950));
}

.project-opening__copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 770px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding-block: calc(var(--sb-header-height) + 68px) 96px;
}

.project-opening__copy h1 {
  max-width: 900px;
  font-size: clamp(3.7rem, 6.6vw, 6.2rem);
}

.project-opening__copy > p:last-child {
  max-width: 670px;
  margin-top: 30px;
  color: #c4cec7;
  font-size: 1.0625rem;
}

.project-letter {
  padding-block: clamp(96px, 11vw, 166px);
  color: var(--sb-ink-900);
  background: #d9c9ad;
  color-scheme: light;
}

.project-letter__paper {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  border: 1px solid rgb(72 50 33 / 14%);
  border-radius: 38px;
  background:
    linear-gradient(90deg, transparent 49.9%, rgb(72 50 33 / 7%) 50%, transparent 50.1%),
    repeating-linear-gradient(0deg, rgb(72 50 33 / 2%) 0 1px, transparent 1px 9px),
    var(--sb-paper-50);
  box-shadow: 0 28px 58px rgb(63 42 27 / 13%);
}

.project-letter__paper > header,
.project-letter__text {
  padding: clamp(50px, 7vw, 92px);
}

.project-letter__paper h2 {
  font-size: clamp(3rem, 5vw, 4.6rem);
}

.project-letter__text {
  color: var(--sb-ink-700);
}

.project-letter__paper blockquote {
  grid-column: 1 / -1;
  padding: 30px clamp(50px, 7vw, 92px);
  border-top: 1px solid rgb(72 50 33 / 13%);
  color: var(--sb-copper-600);
  font-family: var(--sb-font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-style: italic;
  text-align: center;
}

.project-route {
  padding-block: clamp(100px, 11vw, 164px);
  color: var(--sb-paper-100);
  background:
    radial-gradient(circle at 18% 18%, rgb(49 82 70 / 24%), transparent 31rem),
    var(--sb-night-950);
}

.project-route__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(52px, 9vw, 132px);
}

.project-route__layout > header {
  position: sticky;
  top: calc(var(--sb-header-height) + 44px);
  align-self: start;
}

.project-route__layout > header h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
}

.project-route__layout > header > p:last-child {
  margin-top: 26px;
  color: #aeb9b4;
}

.project-route__steps {
  border-top: 1px solid var(--sb-line-dark);
  list-style: none;
}

.project-route__steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 26px;
  padding-block: 27px;
  border-bottom: 1px solid var(--sb-line-dark);
}

.project-route__steps li > span {
  padding-top: 7px;
  color: var(--sb-amber-300);
  font-size: 0.6875rem;
  font-weight: 720;
  letter-spacing: 0.09em;
}

.project-route__steps h3 {
  font-size: 2rem;
}

.project-route__steps p {
  margin-top: 7px;
  color: #aeb9b4;
}

.project-north {
  padding-block: clamp(96px, 11vw, 160px);
  color: var(--sb-ink-900);
  background: var(--sb-paper-100);
  color-scheme: light;
}

.project-north__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 9vw, 130px);
}

.project-north h2 {
  font-size: clamp(3rem, 5vw, 4.6rem);
}

.project-north__layout > div:last-child {
  color: var(--sb-ink-700);
}

/* Адаптивность ----------------------------------------------------------- */

@media (max-width: 1120px) {
  .storybook,
  .story-shelf,
  .story-library .navigation.pagination {
    width: calc(100% - 48px);
  }

  .heroes-gallery__layout {
    grid-template-columns: 1fr;
  }

  .future-heroes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .future-hero {
    min-height: 230px;
  }

  .siverka-profile__layout {
    gap: 70px;
  }

  .siverka-portrait__note {
    display: none;
  }
}

@media (max-width: 900px) {
  .storybook {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .storybook__spine {
    display: none;
  }

  .storybook__page--picture {
    min-height: 480px;
    border-radius: 34px 34px 5px 5px;
    box-shadow: inset 0 -16px 24px rgb(84 58 35 / 8%);
  }

  .storybook__page--picture img {
    min-height: 480px;
  }

  .storybook__page--text {
    min-height: 480px;
    border-radius: 5px 5px 34px 34px;
    box-shadow: inset 0 16px 24px rgb(84 58 35 / 7%);
  }

  .story-shelf__rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .heroes-gallery__heading,
  .field-notes__intro {
    display: block;
  }

  .heroes-gallery__heading > p:last-child,
  .field-notes__intro > p:last-child {
    max-width: 660px;
    margin-top: 24px;
  }

  .hero-profile {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  }

  .story-cover__frame {
    grid-template-columns: 1fr;
  }

  .story-cover__picture {
    min-height: 520px;
  }

  .story-cover__page {
    min-height: 480px;
  }

  .story-afterword__inner,
  .story-goods__heading,
  .siverka-profile__layout,
  .world-manuscript__layout,
  .world-crossroads__layout,
  .project-letter__paper,
  .project-route__layout,
  .project-north__layout {
    grid-template-columns: 1fr;
  }

  .story-afterword__siverka {
    grid-column: 1;
  }

  .siverka-profile__layout {
    gap: 64px;
  }

  .siverka-portrait {
    width: min(100%, 500px);
  }

  .siverka-notebook__paper {
    grid-template-columns: 1fr;
  }

  .siverka-notebook blockquote {
    border-top: 1px solid rgb(72 50 33 / 13%);
  }

  .world-manuscript__law,
  .project-letter__text {
    border-top: 1px solid rgb(72 50 33 / 13%);
  }

  .world-threads {
    grid-template-columns: 1fr;
  }

  .world-threads > div + div {
    border-top: 1px solid rgb(72 50 33 / 13%);
    border-left: 0;
  }

  .north-slider__viewport,
  .north-slider__track,
  .north-slide {
    min-height: 610px;
  }

  .north-slider__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .north-slider__dots {
    width: 100%;
  }

  .north-slider__dots button {
    min-width: 0;
    flex: 1;
  }

  .project-route__layout > header {
    position: static;
  }
}

@media (max-width: 700px) {
  .story-shelf__rail,
  .future-heroes {
    grid-template-columns: 1fr;
  }

  .hero-profile {
    grid-template-columns: 1fr;
  }

  .hero-profile__portrait {
    min-height: 520px;
  }

  .hero-profile__portrait img {
    object-position: 50% 36%;
  }
}

@media (max-width: 620px) {
  .inner-hero,
  .inner-hero__content {
    min-height: 440px;
  }

  .storybook,
  .story-shelf,
  .story-library .navigation.pagination {
    width: calc(100% - 28px);
  }

  .story-library__heading {
    text-align: left;
  }

  .story-library__heading h1 {
    margin-inline: 0;
  }

  .story-library__heading > p:last-child {
    margin-inline: 0;
  }

  .storybook__page--picture,
  .storybook__page--picture img {
    min-height: 360px;
  }

  .storybook__page--text {
    min-height: 0;
    padding: 42px 26px 50px;
  }

  .storybook__leaf,
  .storybook__sketch {
    display: none;
  }

  .storybook__page--text h2 {
    font-size: 3.15rem;
  }

  .heroes-gallery__heading {
    margin-bottom: 42px;
  }

  .hero-profile {
    min-height: 0;
    border-radius: 28px;
  }

  .hero-profile__portrait {
    min-height: 420px;
  }

  .hero-profile__copy {
    padding: 34px 26px 42px;
  }

  .hero-profile__copy h3 {
    font-size: 4rem;
  }

  .future-hero {
    min-height: 190px;
  }

  .story-cover__frame {
    width: calc(100% - 28px);
    border-radius: 28px;
  }

  .story-cover__picture {
    min-height: 360px;
  }

  .story-cover__page {
    min-height: 0;
    padding: 42px 26px 54px;
  }

  .story-cover__page h1 {
    font-size: 3.4rem;
  }

  .story-cover__tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .copy-status {
    top: 100%;
  }

  .story-reading__paper {
    width: calc(100% - 28px);
    padding-block: 58px;
  }

  .story-reading__paper .reading-column {
    width: calc(100% - 40px);
  }

  .prose {
    font-size: 1.25rem;
    line-height: 1.76;
  }

  .story-word-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .story-chapter-nav > a,
  .story-afterword__siverka,
  .world-crossroads__paths a {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .story-chapter-nav strong,
  .story-afterword__siverka strong,
  .world-crossroads__paths strong {
    text-align: left;
  }

  .siverka-profile {
    min-height: 0;
  }

  .siverka-profile__copy h1 {
    font-size: 4.8rem;
  }

  .siverka-facts > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .siverka-notebook__paper,
  .world-manuscript__layout,
  .project-letter__paper {
    width: calc(100% - 28px);
    border-radius: 26px;
  }

  .siverka-notebook__name,
  .siverka-notebook blockquote,
  .world-manuscript__heading,
  .world-manuscript__law,
  .project-letter__paper > header,
  .project-letter__text {
    padding: 38px 26px;
  }

  .siverka-notebook__law,
  .project-letter__paper blockquote {
    padding: 24px 26px;
  }

  .world-opening,
  .world-opening__layout,
  .project-opening,
  .project-opening__copy {
    min-height: 690px;
  }

  .world-opening__veil,
  .project-opening__shade {
    background:
      linear-gradient(90deg, rgb(4 13 15 / 87%), rgb(4 13 15 / 48%)),
      linear-gradient(180deg, rgb(4 13 15 / 24%), transparent 44%, var(--sb-night-950));
  }

  .world-opening__copy h1,
  .project-opening__copy h1 {
    font-size: clamp(3.2rem, 14vw, 4.35rem);
  }

  .world-opening__coordinate {
    display: none;
  }

  .world-threads > div {
    padding: 24px 26px;
  }

  .north-slider {
    border-radius: 26px;
  }

  .north-slider__viewport,
  .north-slider__track,
  .north-slide {
    min-height: 640px;
  }

  .north-slide__shade {
    background: linear-gradient(0deg, rgb(5 13 14 / 94%) 0%, rgb(5 13 14 / 64%) 58%, rgb(5 13 14 / 18%) 100%);
  }

  .north-slide__content {
    right: 24px;
    bottom: 36px;
    left: 24px;
  }

  .north-slide__content h3 {
    font-size: 2.75rem;
  }

  .north-slider__toolbar {
    padding: 16px;
  }

  .north-slider__dots button {
    display: flex;
    justify-content: center;
    padding: 7px 10px;
  }

  .north-slider__dots img {
    display: none;
  }

  .project-route__steps li {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }
}

/* Движение отключается не только системной настройкой, но и кнопкой темы. */
html[data-motion="reduced"] .north-slide,
html[data-motion="reduced"] .north-slide img,
html[data-motion="reduced"] .storybook__page--picture img {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .north-slide,
  html:not([data-motion="full"]) .north-slide img,
  html:not([data-motion="full"]) .storybook__page--picture img {
    transition: none;
  }
}
