/* =========================================================
   «Яшкино. Строки времени» — единая книга стилей
   Версия 1.0.0
   Все классы проекта используют префикс sv-
   ========================================================= */

/* 1. Основа и переменные */
.sv-page {
  --sv-paper: #f5eee0;
  --sv-paper-light: #fbf7ee;
  --sv-paper-deep: #e3d7c2;
  --sv-ink: #322b23;
  --sv-muted: #726758;
  --sv-red: #982f2c;
  --sv-brass: #9b7747;
  --sv-line: rgba(69, 55, 42, 0.18);
  --sv-shadow: 0 24px 64px rgba(58, 46, 34, 0.18);
  --sv-container: 1280px;
  --sv-gutter: 32px;
  position: relative;
  overflow-x: clip;
  color: var(--sv-ink);
  background:
    radial-gradient(circle at 7% 13%, rgba(155, 119, 71, 0.06), transparent 30rem),
    var(--sv-paper);
  font-family: Arial, Helvetica, sans-serif;
}

.sv-page *,
.sv-page *::before,
.sv-page *::after {
  box-sizing: border-box;
}

.sv-page [hidden] {
  display: none !important;
}

.sv-page a {
  color: inherit;
  text-decoration: none;
}

.sv-page button,
.sv-page input,
.sv-page textarea,
.sv-page select {
  font: inherit;
}

.sv-page img {
  display: block;
  max-width: 100%;
}

.sv-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 2. Навигация */
.sv-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #c70000;
  transform: scaleX(0);
  transform-origin: left center;
}

.sv-nav {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 50%;
  display: flex;
  width: min(calc(100% - 64px), var(--sv-container));
  min-height: 98px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--sv-line);
  transform: translateX(-50%);
}

.sv-nav__logo {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  padding: 8px 0;
  border: 0 !important;
  transition: opacity 0.2s ease;
}

.sv-nav__logo:hover {
  opacity: 0.75;
}

.sv-nav__logo img {
  display: block;
  width: auto;
  height: 80px;
  max-width: 362px;
  object-fit: contain;
  filter: none !important;
}

.sv-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sv-nav__links a {
  position: relative;
  padding: 12px 0;
}

.sv-nav__links a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.sv-nav__links a:hover::after,
.sv-nav__links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.sv-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid var(--sv-line);
  color: var(--sv-ink);
  background: rgba(251, 247, 238, 0.82);
  cursor: pointer;
}

.sv-menu-toggle > span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

/* 3. Общая типографика */
.sv-overline,
.sv-kicker,
.sv-source-label {
  color: var(--sv-brass);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.sv-overline {
  display: flex;
  gap: 16px;
  margin: 0 0 28px;
}

.sv-overline span + span {
  padding-left: 16px;
  border-left: 1px solid var(--sv-line);
}

.sv-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}

.sv-kicker::before {
  width: 28px;
  height: 1px;
  flex: 0 0 auto;
  content: "";
  background: currentColor;
}

.sv-hero__title,
.sv-section-title,
.sv-subtitle {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.sv-hero__title {
  max-width: 800px;
  font-size: clamp(62px, 7vw, 110px);
  line-height: 0.87;
}

.sv-hero__title em {
  display: block;
  color: #8d6645;
  font-weight: 400;
}

.sv-section-title {
  font-size: clamp(42px, 4.8vw, 70px);
}

.sv-subtitle {
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.04;
}

.sv-lead,
.sv-lead-paragraph {
  color: var(--sv-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 1.9vw, 29px);
  line-height: 1.5;
}

.sv-lead {
  max-width: 650px;
  margin: 34px 0 38px;
  color: var(--sv-muted);
}

.sv-lead-paragraph {
  margin: 0 0 1.1em;
}

.sv-prose {
  color: #40382f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.75;
}

.sv-prose p {
  margin: 0 0 1.25em;
}

.sv-prose p:last-child {
  margin-bottom: 0;
}

.sv-prose--stack {
  display: grid;
  gap: 22px;
}

.sv-prose--stack p {
  margin: 0;
}

.sv-prose--full {
  grid-column: 1 / -1;
  text-align: justify;
}

.sv-dropcap::first-letter,
.sv-prose--opening > p:first-child::first-letter {
  float: left;
  margin: 0.04em 0.12em 0 0;
  color: var(--sv-red);
  font-size: 4em;
  line-height: 0.75;
}

.sv-source-label {
  display: block;
  margin: 1.6em 0 12px;
}

.sv-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease;
}

.sv-button:hover {
  transform: translateY(-2px);
}

.sv-button--primary {
  border-color: var(--sv-red);
  color: #fffaf0 !important;
  background: var(--sv-red);
}

.sv-button--light {
  border-color: rgba(255, 255, 255, 0.48);
  color: #fffaf0 !important;
  background: transparent;
}

/* 4. Hero */
.sv-hero {
  position: relative;
  display: grid;
  min-height: min(900px, 100svh);
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 0.83fr);
  gap: clamp(44px, 7vw, 112px);
  align-items: center;
  padding: 145px max(var(--sv-gutter), calc((100vw - var(--sv-container)) / 2)) 78px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 50%, rgba(155, 119, 71, 0.14), transparent 30rem),
    linear-gradient(108deg, rgba(251, 247, 238, 0.98), rgba(229, 216, 193, 0.9));
}

.sv-hero__copy,
.sv-hero-media {
  position: relative;
  z-index: 2;
}

.sv-hero--collage-two,
.sv-hero--collage-three,
.sv-hero--factory-money {
  isolation: isolate;
}

.sv-hero-media {
  min-height: 580px;
}

.sv-hero-photo {
  position: absolute;
  margin: 0;
  padding: 9px;
  background: #ded3be;
  box-shadow: 0 28px 70px rgba(58, 46, 34, 0.27);
}

.sv-hero-photo img {
  width: 100%;
  height: auto;
  filter: sepia(0.22) saturate(0.8) contrast(1.04);
}

.sv-hero-photo .sv-caption {
  padding: 8px 3px 1px;
}

.sv-stamp {
  position: absolute;
  z-index: 6;
  display: grid;
  width: 108px;
  height: 108px;
  place-content: center;
  border: 2px solid rgba(152, 47, 44, 0.72);
  border-radius: 50%;
  color: rgba(152, 47, 44, 0.82);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-12deg);
}

.sv-stamp strong {
  display: block;
  margin: 2px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0;
}

/* Hero — выпуск 1 */
.sv-hero-media--collage-two .sv-hero-photo--main {
  top: 35px;
  left: 2%;
  width: min(82%, 500px);
  transform: rotate(2.2deg);
}

.sv-hero-media--collage-two .sv-hero-photo--secondary {
  right: 0;
  bottom: 22px;
  z-index: 3;
  width: min(55%, 330px);
  transform: rotate(-4deg);
}

.sv-hero-media--collage-two .sv-hero-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sv-ticket {
  position: absolute;
  right: 4%;
  bottom: 42px;
  z-index: 4;
  width: 230px;
  padding: 22px;
  background: #eee3d1;
  box-shadow: 0 18px 50px rgba(58, 46, 34, 0.25);
  transform: rotate(2.6deg);
}

.sv-ticket span,
.sv-ticket small {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.sv-ticket strong {
  display: block;
  margin: 4px 0 7px;
  color: var(--sv-red);
  font: 52px/1 Georgia, serif;
}

.sv-hero-media--collage-two .sv-stamp {
  top: 52%;
  left: -22px;
}

/* Hero — выпуск 2 */
.sv-hero-media--collage-three .sv-hero-photo--map {
  top: 12px;
  left: 1%;
  width: min(78%, 480px);
  transform: rotate(-2deg);
}

.sv-hero-media--collage-three .sv-hero-photo--contract {
  right: 0;
  bottom: 34px;
  z-index: 2;
  width: min(58%, 350px);
  transform: rotate(2deg);
}

.sv-hero-media--collage-three .sv-hero-photo--paper {
  bottom: 0;
  left: 4%;
  z-index: 3;
  width: min(49%, 295px);
  transform: rotate(-3deg);
}

.sv-hero-media--collage-three .sv-stamp {
  top: 47%;
  right: 4%;
}

/* Hero — выпуск 3 */
.sv-hero-media--factory-money .sv-hero-photo--factory {
  top: 16px;
  right: 4%;
  width: min(86%, 560px);
  padding: 12px 12px 48px;
  transform: rotate(2.5deg);
}

.sv-hero-media--factory-money .sv-hero-photo--factory img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sv-hero-media--factory-money .sv-hero-photo--money {
  z-index: 4;
  width: min(48%, 270px);
  padding: 8px;
  background: #eadfcd;
}

.sv-hero-media--factory-money .sv-hero-photo--money-a {
  bottom: 16px;
  left: 2%;
  transform: rotate(-6deg);
}

.sv-hero-media--factory-money .sv-hero-photo--money-b {
  right: 0;
  bottom: 0;
  transform: rotate(5deg);
}

.sv-hero-media--factory-money .sv-stamp {
  right: 8%;
  bottom: 130px;
}

/* Hero — стандартный вариант для новых выпусков */
.sv-hero-media--standard .sv-hero-photo--main {
  top: 34px;
  left: 4%;
  width: min(84%, 520px);
  transform: rotate(2deg);
}

.sv-hero-media--standard .sv-hero-photo--secondary {
  right: 0;
  bottom: 26px;
  z-index: 3;
  width: min(52%, 310px);
  transform: rotate(-4deg);
}

.sv-hero-media--standard .sv-stamp {
  right: 4%;
  bottom: 148px;
}

/* 5. Секции и вводные блоки */
.sv-section {
  width: min(calc(100% - 64px), var(--sv-container));
  margin: 0 auto;
  padding: 125px 0;
}

.sv-intro--split {
  display: grid;
  grid-template-columns: 72px minmax(280px, 0.68fr) minmax(330px, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.sv-section-number {
  margin: 0;
  color: var(--sv-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-style: italic;
}

.sv-section-head {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--sv-line);
}

.sv-section-head > .sv-kicker:first-child,
.sv-section-head > div .sv-kicker {
  margin-bottom: 8px;
}

.sv-statement {
  position: relative;
  display: grid;
  min-height: 450px;
  place-content: center;
  padding: 90px 30px;
  border-block: 1px solid var(--sv-line);
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(155, 119, 71, 0.2), transparent 27rem),
    var(--sv-paper-deep);
}

.sv-statement p {
  margin: 0;
  color: var(--sv-brass);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sv-statement strong {
  margin: 15px 0 26px;
  font: clamp(58px, 8vw, 122px) / 0.85 Georgia, serif;
  letter-spacing: -0.06em;
}

.sv-statement span {
  max-width: 620px;
  margin: auto;
  color: var(--sv-muted);
  font: 19px/1.55 Georgia, serif;
}

.sv-story {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(320px, 1fr);
  gap: 48px clamp(44px, 8vw, 112px);
}

.sv-story__head > p:last-child {
  max-width: 430px;
  margin: 28px 0 0;
  color: var(--sv-muted);
  font: 19px/1.6 Georgia, serif;
}

.sv-feature-block,
.sv-facts {
  grid-column: 1 / -1;
}

.sv-feature-block {
  display: grid;
  grid-template-columns: minmax(250px, 0.54fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 96px);
  margin-top: 30px;
  padding: 54px;
  background: rgba(251, 247, 238, 0.72);
  box-shadow: inset 0 0 0 1px var(--sv-line);
}

.sv-feature-block > div p {
  margin: 0 0 18px;
  color: var(--sv-muted);
  font-size: 16px;
  line-height: 1.75;
}

.sv-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--sv-line);
}

.sv-facts article {
  padding: 42px;
  text-align: center;
}

.sv-facts article + article {
  border-left: 1px solid var(--sv-line);
}

.sv-facts strong,
.sv-facts span {
  display: block;
}

.sv-facts strong {
  color: var(--sv-red);
  font: clamp(38px, 4vw, 62px) / 1 Georgia, serif;
}

.sv-facts span {
  margin-top: 12px;
  color: var(--sv-muted);
  font-size: 12px;
  line-height: 1.55;
  text-transform: uppercase;
}

.sv-callout {
  margin: 0 0 70px;
  padding: 28px 34px;
  border-left: 3px solid var(--sv-red);
  background: rgba(251, 247, 238, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.58;
}

.sv-callout p {
  margin: 0;
}

.sv-prelude {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
}

.sv-prelude::before {
  position: absolute;
  inset: 5% -10vw 0;
  z-index: -1;
  content: "";
  background: rgba(222, 209, 187, 0.42);
}

.sv-prelude__aside {
  align-self: end;
}

/* 6. Хроника и газетные записи */
.sv-chronicle-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--sv-line);
  color: var(--sv-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sv-entries,
.sv-entries--full {
  position: relative;
}

.sv-count {
  color: var(--sv-muted);
}

.sv-entry {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: clamp(38px, 8vw, 112px);
  padding: 62px 0 72px;
  border-bottom: 1px solid var(--sv-line);
}

.sv-entry__year {
  position: sticky;
  top: 36px;
  align-self: start;
  color: var(--sv-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 4.7vw, 68px);
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1;
}

.sv-entry__body > b:first-child,
.sv-entry__body > .sv-source-label:first-child {
  display: block;
  margin: 0 0 24px;
  color: var(--sv-brass);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-transform: uppercase;
}

.sv-entry__body h3 {
  margin-bottom: 30px;
}

.sv-entry__body aside {
  margin-top: 24px;
  padding: 22px 26px;
  border-left: 3px solid var(--sv-red);
  background: rgba(251, 247, 238, 0.7);
  font-style: italic;
}

.sv-inline-quote {
  padding: 26px 30px;
  border-left: 3px solid var(--sv-red);
  color: var(--sv-ink) !important;
  background: rgba(251, 247, 238, 0.72);
  font-style: italic;
}

.sv-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 0;
}

.sv-filter button {
  padding: 10px 14px;
  border: 1px solid var(--sv-line);
  color: var(--sv-muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sv-filter button.is-active {
  border-color: var(--sv-red);
  color: #fff;
  background: var(--sv-red);
}

/* 7. Иллюстрации и подписи */
.sv-media {
  min-width: 0;
  margin: 0;
}

.sv-media--inline,
.sv-media-group {
  margin: 36px 0 46px;
}

.sv-media__button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  overflow: hidden;
  border: 0;
  color: inherit;
  background: #e2d7c4;
  box-shadow: var(--sv-shadow);
  cursor: zoom-in;
}

.sv-media__picture {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #d5c6ae;
}

.sv-media__img,
.sv-media__button > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: sepia(0.2) saturate(0.82) contrast(1.04);
}

.sv-media__fallback {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--sv-muted);
  font: 24px Georgia, serif;
}

.sv-media__picture .sv-media__img {
  position: relative;
  z-index: 2;
}

.sv-media__picture.is-missing {
  display: none;
}

.sv-media__zoom {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 20px;
  padding: 9px 12px;
  color: #fffaf0;
  background: rgba(48, 42, 35, 0.82);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: transform 0.18s ease;
}

.sv-media__button:hover .sv-media__zoom {
  transform: translate(-3px, -3px);
}

.sv-caption {
  display: block;
  margin: 14px 2px 0;
  color: var(--sv-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
  line-height: 1.58;
  text-align: left;
}

.sv-caption a {
  color: var(--sv-red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sv-caption--credit {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-style: normal;
}

.sv-media-grid,
.sv-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.sv-media-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sv-media-group--single .sv-media {
  width: min(100%, 900px);
  margin: 0 auto;
}

.sv-gallery-grid {
  margin-top: 54px;
}

/* 8. Таблицы */
.sv-table-figure {
  grid-column: 1 / -1;
  margin: 38px 0 46px;
  padding: 28px;
  background: rgba(251, 247, 238, 0.76);
  box-shadow: inset 0 0 0 1px var(--sv-line);
}

.sv-table-figure > .sv-caption,
.sv-table-figure > figcaption {
  margin: 0 0 24px;
  color: var(--sv-ink);
  font-size: clamp(23px, 2.5vw, 34px);
  font-style: normal;
}

.sv-table-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.sv-table-scroll:focus-visible {
  outline: 2px solid var(--sv-red);
  outline-offset: 4px;
}

.sv-table-figure table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.sv-table-figure th,
.sv-table-figure td {
  padding: 15px 16px;
  border: 1px solid rgba(69, 55, 42, 0.14);
  text-align: left;
  vertical-align: top;
}

.sv-table-figure thead th {
  color: #fffaf0;
  background: #6f4033;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sv-table-figure tbody tr:nth-child(even) {
  background: rgba(226, 211, 188, 0.32);
}

/* 9. Таймлайн */
.sv-timeline__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(48px, 8vw, 118px);
  align-items: start;
  padding-top: 58px;
}

.sv-timeline__list {
  position: relative;
}

.sv-timeline__list::before {
  position: absolute;
  top: 4px;
  bottom: 5px;
  left: 6px;
  width: 1px;
  content: "";
  background: rgba(152, 47, 44, 0.42);
}

.sv-timeline__entry {
  position: relative;
  padding: 0 0 38px 44px;
}

.sv-timeline__entry::before {
  position: absolute;
  top: 5px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 3px solid var(--sv-paper);
  border-radius: 50%;
  content: "";
  background: var(--sv-red);
  box-shadow: 0 0 0 1px rgba(152, 47, 44, 0.36);
}

.sv-timeline__entry time {
  display: block;
  margin-bottom: 8px;
  color: var(--sv-red);
  font: italic 22px/1.2 Georgia, serif;
}

.sv-timeline__entry p {
  margin: 0;
  color: var(--sv-muted);
  font-size: 15px;
  line-height: 1.7;
}

.sv-timeline__image {
  position: sticky;
  top: 32px;
}

/* 10. Архивные документы */
.sv-dossier__head {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 24px 80px;
}

.sv-dossier__head .sv-kicker,
.sv-dossier__head .sv-section-title {
  grid-column: 1;
}

.sv-dossier__head > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  color: var(--sv-muted);
  font: 24px/1.55 Georgia, serif;
}

.sv-document-list {
  position: relative;
  max-width: 1080px;
  margin: 84px auto 0;
}

.sv-document-list::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 42px;
  width: 1px;
  content: "";
  background: rgba(152, 47, 44, 0.26);
}

.sv-document {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 34px;
}

.sv-document__number {
  position: relative;
  z-index: 2;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-left: 15px;
  border: 1px solid rgba(152, 47, 44, 0.38);
  border-radius: 50%;
  color: var(--sv-red);
  background: var(--sv-paper);
  font: italic 18px Georgia, serif;
}

.sv-document__body {
  padding: 34px 38px;
  background: rgba(251, 247, 238, 0.72);
  box-shadow: inset 0 0 0 1px var(--sv-line);
}

.sv-document--accent .sv-document__body {
  position: relative;
  border-left: 4px solid var(--sv-red);
}

.sv-document em {
  color: #4f453a;
}

/* 11. Станция, источники, цитаты */
.sv-station__list {
  margin-top: 52px;
  border-top: 1px solid var(--sv-line);
}

.sv-station__entry {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 32px;
  padding: 38px 0;
  border-bottom: 1px solid var(--sv-line);
}

.sv-station__entry > span {
  color: var(--sv-red);
  font: italic 24px Georgia, serif;
  text-align: right;
}

.sv-station__entry p {
  margin: 0;
  font: 17px/1.72 Georgia, serif;
}

.sv-sources__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 8vw, 120px);
  margin-top: 60px;
}

.sv-sources__columns p {
  margin: 0 0 14px;
  color: var(--sv-muted);
  font-size: 14px;
  line-height: 1.62;
}

.sv-sources__subhead {
  color: var(--sv-ink) !important;
  font-size: 15px !important;
}

.sv-quote-section {
  width: min(calc(100% - 64px), var(--sv-container));
  margin: 0 auto;
  padding: 80px 0;
}

.sv-quote-section blockquote {
  margin: 0;
  padding: 44px;
  border-left: 4px solid var(--sv-red);
  background: rgba(251, 247, 238, 0.7);
}

/* 12. Финал и подвал */
.sv-ending {
  display: flex;
  min-height: 360px;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 76px max(var(--sv-gutter), calc((100vw - var(--sv-container)) / 2));
  color: #fffaf0;
  background: #6f4033;
}

.sv-ending .sv-section-title {
  max-width: 850px;
}

.sv-ending .sv-kicker {
  color: #d9b886;
}

.sv-ending > p {
  max-width: 520px;
  color: rgba(255, 250, 240, 0.76);
  font: 18px/1.65 Georgia, serif;
}

.sv-ending__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sv-footer {
  display: grid;
  min-height: 180px;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
  padding: 40px max(var(--sv-gutter), calc((100vw - var(--sv-container)) / 2));
  border-top: 1px solid var(--sv-line);
  font-size: 12px;
}

.sv-footer--project,
.sv-wordmark {
  position: relative;
}

/* 13. Lightbox и анимация */
.sv-page.sv-has-js .sv-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.72s var(--sv-delay, 0ms) ease,
    transform 0.72s var(--sv-delay, 0ms) cubic-bezier(0.22, 1, 0.36, 1);
}

.sv-page.sv-has-js .sv-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.sv-delay-0 { --sv-delay: 0ms; }
.sv-delay-25 { --sv-delay: 25ms; }
.sv-delay-35 { --sv-delay: 35ms; }
.sv-delay-50 { --sv-delay: 50ms; }
.sv-delay-70 { --sv-delay: 70ms; }
.sv-delay-75 { --sv-delay: 75ms; }
.sv-delay-100 { --sv-delay: 100ms; }
.sv-delay-105 { --sv-delay: 105ms; }
.sv-delay-125 { --sv-delay: 125ms; }
.sv-delay-140 { --sv-delay: 140ms; }
.sv-delay-150 { --sv-delay: 150ms; }
.sv-delay-175 { --sv-delay: 175ms; }
.sv-delay-180 { --sv-delay: 180ms; }
.sv-delay-210 { --sv-delay: 210ms; }

.sv-prose--section {
  margin-top: 52px;
}

.sv-lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  padding: 38px;
  place-items: center;
  background: rgba(35, 29, 23, 0.91);
  backdrop-filter: blur(12px);
}

.sv-lightbox__dialog {
  position: relative;
  display: grid;
  width: min(1120px, 100%);
  max-height: calc(100svh - 76px);
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px;
  overflow: auto;
  padding: 22px;
  background: var(--sv-paper-light);
}

.sv-lightbox__dialog .sv-media__picture {
  max-height: calc(100svh - 160px);
  background: transparent;
}

.sv-lightbox__dialog img {
  width: 100%;
  max-height: calc(100svh - 180px);
  object-fit: contain;
  filter: none;
}

.sv-lightbox__dialog .sv-caption {
  grid-column: 2;
}

.sv-lightbox__close,
.sv-lightbox__prev,
.sv-lightbox__next {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fffaf0;
  background: rgba(48, 42, 35, 0.86);
  cursor: pointer;
}

.sv-lightbox__close {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  font-size: 28px;
}

.sv-lightbox__prev,
.sv-lightbox__next {
  font-size: 20px;
}

/* 14. Адаптивность */
@media (max-width: 1100px) {
  .sv-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.82fr);
    gap: 48px;
  }

  .sv-media-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sv-intro--split {
    grid-template-columns: 60px minmax(240px, 0.65fr) minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 820px) {
  .sv-page {
    --sv-gutter: 20px;
  }

  .sv-nav {
    width: calc(100% - 40px);
    min-height: 98px;
  }

  .sv-menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .sv-nav__links {
    position: absolute;
    top: 98px;
    right: 0;
    display: none;
    min-width: 230px;
    padding: 18px 22px;
    border: 1px solid var(--sv-line);
    background: rgba(251, 247, 238, 0.98);
    box-shadow: var(--sv-shadow);
  }

  .sv-nav__links.is-open {
    display: grid;
  }

  .sv-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 140px 20px 70px;
  }

  .sv-hero__copy {
    max-width: 720px;
  }

  .sv-hero-media {
    width: min(100%, 620px);
    min-height: 520px;
    margin: 0 auto;
  }

  .sv-section {
    width: min(calc(100% - 40px), 720px);
    padding: 100px 0;
  }

  .sv-intro--split {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .sv-intro--split > :nth-child(2),
  .sv-intro--split > .sv-intro__heading {
    grid-column: 2;
  }

  .sv-intro--split > .sv-prose,
  .sv-intro--split > .sv-lead-paragraph {
    grid-column: 2;
  }

  .sv-intro--split > .sv-table-figure,
  .sv-intro--split > .sv-prose--full {
    grid-column: 1 / -1;
  }

  .sv-section-head,
  .sv-story,
  .sv-feature-block,
  .sv-prelude,
  .sv-dossier__head,
  .sv-timeline__layout {
    grid-template-columns: 1fr;
  }

  .sv-section-head {
    gap: 18px;
  }

  .sv-story__head > p:last-child {
    max-width: none;
  }

  .sv-dossier__head .sv-kicker,
  .sv-dossier__head .sv-section-title,
  .sv-dossier__head > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .sv-entry {
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 42px;
  }

  .sv-entry__year {
    position: static;
  }

  .sv-timeline__image {
    position: relative;
    top: auto;
    width: min(100%, 580px);
    margin: 0 auto;
  }

  .sv-sources__columns {
    grid-template-columns: 1fr;
  }

  .sv-ending {
    display: grid;
    min-height: 420px;
    padding: 72px 20px;
  }

  .sv-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 540px) {
  .sv-nav {
    width: calc(100% - 32px);
  }

  .sv-nav__logo img {
    height: 80px;
    max-width: 362px;
  }

  .sv-hero {
    padding-inline: 18px;
  }

  .sv-hero__title {
    font-size: clamp(45px, 14.5vw, 68px);
  }

  .sv-hero-media {
    min-height: 400px;
  }

  .sv-hero-media--collage-two .sv-hero-photo--main,
  .sv-hero-media--collage-three .sv-hero-photo--map,
  .sv-hero-media--factory-money .sv-hero-photo--factory {
    width: 86%;
  }

  .sv-ticket {
    right: 0;
    width: 190px;
  }

  .sv-stamp {
    width: 88px;
    height: 88px;
  }

  .sv-section {
    width: calc(100% - 36px);
    padding: 82px 0;
  }

  .sv-intro--split {
    display: block;
  }

  .sv-section-number {
    margin-bottom: 22px;
    font-size: 54px;
  }

  .sv-section-title {
    font-size: clamp(36px, 11vw, 50px);
  }

  .sv-prose,
  .sv-station__entry p {
    font-size: 17px;
    line-height: 1.68;
  }

  .sv-prose--full,
  .sv-money__layout > .sv-prose,
  .sv-war__copy .sv-prose {
    text-align: left;
  }

  .sv-feature-block {
    padding: 28px 22px;
  }

  .sv-facts {
    grid-template-columns: 1fr;
  }

  .sv-facts article + article {
    border-top: 1px solid var(--sv-line);
    border-left: 0;
  }

  .sv-entry {
    display: block;
    padding: 44px 0 50px;
  }

  .sv-entry__year {
    display: block;
    margin-bottom: 22px;
  }

  .sv-media-grid,
  .sv-media-grid--four,
  .sv-gallery-grid {
    grid-template-columns: 1fr;
  }

  .sv-table-figure {
    padding: 22px 18px 18px;
  }

  .sv-document-list::before,
  .sv-document__number {
    display: none;
  }

  .sv-document {
    display: block;
    padding-bottom: 24px;
  }

  .sv-document__body {
    padding: 26px 22px;
  }

  .sv-station__entry {
    display: block;
    padding: 28px 0;
  }

  .sv-station__entry > span {
    display: block;
    margin-bottom: 15px;
    text-align: left;
  }

  .sv-ending__links {
    display: grid;
    width: 100%;
  }

  .sv-ending__links .sv-button {
    width: 100%;
  }

  .sv-lightbox {
    padding: 12px;
  }

  .sv-lightbox__dialog {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .sv-lightbox__prev,
  .sv-lightbox__next {
    display: none;
  }

  .sv-lightbox__dialog .sv-caption {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv-page *,
  .sv-page *::before,
  .sv-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .sv-page.sv-has-js .sv-reveal {
    opacity: 1;
    transform: none;
  }
}
