/*
Theme Name: Хомутовская дорога
Author: Local project
Description: Историко-туристический сайт о Хомутовской дороге.
Version: 1.0.0
Text Domain: khomutovka
*/

:root {
  --ink: #18231e;
  --forest: #244b35;
  --forest-dark: #142d21;
  --moss: #72815a;
  --rust: #b54b32;
  --sky: #8fb3c1;
  --paper: #f4f5f1;
  --white: #ffffff;
  --line: #d8ddd6;
  --muted: #66706a;
  --content: 1180px;
  --narrow: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 28px;
  font-size: 52px;
}

h3 {
  margin-bottom: 12px;
  font-size: 28px;
}

.container {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
}

.container--narrow {
  width: min(calc(100% - 48px), var(--narrow));
  margin: 0 auto;
}

.section {
  padding: 104px 0;
}

.section--soft {
  background: var(--paper);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--rust);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  color: #37433d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.45;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--forest);
  border-radius: 3px;
  background: var(--forest);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--rust);
  background: var(--rust);
}

.button--light {
  border-color: var(--white);
  background: transparent;
}

.button--light:hover,
.button--light:focus-visible {
  border-color: var(--white);
  background: var(--white);
  color: var(--forest-dark);
}

.text-link {
  color: var(--forest);
  font-weight: 750;
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
}

.site-header__inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
}

.site-brand__mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
}

.site-brand__mark::before,
.site-brand__mark::after {
  position: absolute;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: var(--white);
  content: "";
  transform: rotate(32deg);
}

.site-brand__mark::before { left: 13px; }
.site-brand__mark::after { left: 20px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:not(.button):hover,
.site-nav a:not(.button):focus-visible {
  text-decoration: underline;
}

.site-nav .button {
  min-height: 42px;
  padding: 10px 16px;
  border-color: rgba(255,255,255,.8);
  background: transparent;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 3px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

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

.hero {
  position: relative;
  min-height: 760px;
  height: 88vh;
  max-height: 920px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-position: center 66%;
  background-size: cover;
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  background: rgba(12, 29, 20, .47);
  content: "";
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 180px;
  background: rgba(10, 25, 17, .28);
  content: "";
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 82px;
}

.hero h1 {
  max-width: 930px;
  margin-bottom: 24px;
  font-size: 86px;
  text-wrap: balance;
}

.hero__intro {
  max-width: 650px;
  margin-bottom: 34px;
  font-size: 21px;
  line-height: 1.55;
}

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

.hero__note {
  position: absolute;
  z-index: 3;
  right: 32px;
  bottom: 34px;
  margin: 0;
  font-size: 12px;
  opacity: .8;
  writing-mode: vertical-rl;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr);
  gap: 96px;
  align-items: start;
}

.fact-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.fact-list div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  color: var(--rust);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 0;
  font-weight: 650;
}

.route-band {
  padding: 68px 0 76px;
  overflow: hidden;
  background: var(--forest-dark);
  color: var(--white);
}

.route-band__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}

.route-band h2 {
  max-width: 660px;
  margin-bottom: 0;
  font-size: 42px;
}

.route-band__legend {
  max-width: 330px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

.route-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(118px, 1fr));
  min-width: 1040px;
  padding-top: 20px;
}

.route-line::before {
  position: absolute;
  top: 27px;
  right: 7%;
  left: 7%;
  height: 1px;
  background: rgba(255,255,255,.4);
  content: "";
}

.route-line__stop {
  position: relative;
  padding-top: 28px;
  text-align: center;
}

.route-line__stop::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border: 3px solid var(--forest-dark);
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 1px rgba(255,255,255,.65);
  content: "";
}

.route-line__stop--active::before {
  background: var(--rust);
}

.route-line__stop span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.route-line__stop small {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  text-transform: uppercase;
}

.route-scroll {
  overflow-x: auto;
  scrollbar-color: var(--rust) rgba(255,255,255,.1);
}

.route-branch {
  display: flex;
  width: max-content;
  margin: 40px auto 8px;
  align-items: baseline;
  gap: 18px;
  padding: 15px 20px;
  border-left: 3px solid var(--rust);
  background: rgba(255,255,255,.07);
}

.route-branch span {
  color: rgba(255,255,255,.6);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.route-branch strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}

.timeline {
  position: relative;
  max-width: 930px;
  margin: 52px auto 0;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 132px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline__item {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 54px;
  padding: 0 0 52px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__year {
  position: relative;
  color: var(--rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  text-align: right;
}

.timeline__year::after {
  position: absolute;
  top: 7px;
  right: -35px;
  width: 9px;
  height: 9px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 1px var(--forest);
  content: "";
}

.timeline__copy p {
  max-width: 670px;
  margin-bottom: 0;
  color: #4c5751;
}

.fragments-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 46px;
}

.fragments-head p {
  max-width: 430px;
  margin-bottom: 5px;
  color: var(--muted);
}

.fragment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.fragment {
  min-height: 270px;
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.fragment--featured {
  background: var(--forest);
  color: var(--white);
}

.fragment--wide {
  grid-column: 1 / -1;
  min-height: 220px;
}

.fragment__status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.fragment__status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
  content: "";
}

.fragment--featured .fragment__status {
  color: rgba(255,255,255,.7);
}

.fragment--featured .fragment__status::before {
  background: #e5a451;
}

.fragment h3 {
  max-width: 440px;
}

.fragment p {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--muted);
}

.fragment--featured p {
  color: rgba(255,255,255,.75);
}

.fragment .text-link {
  display: inline-block;
  margin-top: 24px;
  color: inherit;
}

.feature-route {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  min-height: 620px;
  background: var(--forest-dark);
  color: var(--white);
}

.feature-route__image {
  min-height: 620px;
  background-position: center;
  background-size: cover;
}

.feature-route__copy {
  display: flex;
  align-items: center;
  padding: 72px;
}

.feature-route__copy h2 {
  font-size: 48px;
}

.feature-route__copy p:not(.eyebrow) {
  max-width: 480px;
  color: rgba(255,255,255,.76);
}

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 48px;
}

.photo-pair figure,
.gallery figure {
  margin: 0;
}

.photo-pair img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.photo-pair figure:nth-child(2) {
  margin-top: 76px;
}

.photo-pair figcaption,
.gallery figcaption {
  padding-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.sources {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.sources h3 {
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
}

.sources ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.sources li + li {
  margin-top: 8px;
}

.page-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 18, .5);
  content: "";
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 68px;
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: 72px;
}

.page-hero p {
  max-width: 650px;
  margin-bottom: 0;
  font-size: 20px;
}

.route-facts {
  background: var(--forest-dark);
  color: var(--white);
}

.route-facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.route-fact {
  padding: 30px 34px;
  border-right: 1px solid rgba(255,255,255,.18);
}

.route-fact:first-child {
  border-left: 1px solid rgba(255,255,255,.18);
}

.route-fact small {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,.6);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.route-fact strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 90px;
  align-items: start;
}

.story-grid__aside {
  position: sticky;
  top: 28px;
}

.story-grid__copy p {
  margin-bottom: 24px;
}

.callout {
  margin: 38px 0 0;
  padding: 26px 0 0 28px;
  border-top: 1px solid var(--line);
  border-left: 4px solid var(--rust);
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.gallery figure {
  grid-column: span 4;
}

.gallery figure:nth-child(1),
.gallery figure:nth-child(5) {
  grid-column: span 7;
}

.gallery figure:nth-child(2),
.gallery figure:nth-child(6) {
  grid-column: span 5;
}

.gallery img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.gallery figure:nth-child(3) img,
.gallery figure:nth-child(4) img {
  height: 420px;
}

.practical {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
}

.practical-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.practical-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.practical-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.practical-list span {
  color: var(--muted);
}

.next-route {
  padding: 76px 0;
  background: var(--sky);
}

.next-route__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.next-route h2 {
  max-width: 700px;
  margin-bottom: 0;
  font-size: 42px;
}

.site-footer {
  padding: 64px 0 36px;
  background: #111a16;
  color: var(--white);
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.site-footer__title {
  max-width: 520px;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.15;
}

.site-footer__top p {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255,255,255,.64);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 28px;
  color: rgba(255,255,255,.5);
  font-size: 12px;
}

.history-hero {
  background-position: center 42%;
}

.history-index {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
}

.history-index__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.history-index a {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.history-index a:first-child {
  border-left: 1px solid var(--line);
}

.history-index a:hover,
.history-index a:focus-visible {
  background: var(--paper);
  color: var(--rust);
}

.history-index span {
  color: var(--rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
}

.history-overview {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 90px;
  align-items: start;
}

.history-overview h2 {
  margin-bottom: 0;
  font-size: 45px;
}

.history-evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.history-evidence article {
  min-height: 150px;
  padding: 28px 30px;
  border-right: 1px solid var(--line);
}

.history-evidence article:last-child {
  border-right: 0;
}

.history-evidence strong,
.history-evidence span {
  display: block;
}

.history-evidence strong {
  margin-bottom: 10px;
  color: var(--rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;
}

.history-evidence span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.history-chapter {
  padding: 112px 0;
  scroll-margin-top: 76px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.history-chapter--soft {
  background: var(--paper);
}

.history-chapter--dark {
  border-color: rgba(255, 255, 255, .12);
  background: var(--forest-dark);
  color: var(--white);
}

.history-chapter__grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 780px);
  gap: 80px;
  justify-content: center;
}

.history-chapter__meta {
  padding-top: 2px;
  border-top: 2px solid var(--rust);
}

.history-chapter__meta span {
  display: block;
  margin: 16px 0 4px;
  color: var(--rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 1;
}

.history-chapter__meta p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
}

.history-chapter--dark .history-chapter__meta p {
  color: rgba(255, 255, 255, .65);
}

.history-chapter__body > p {
  margin-bottom: 24px;
}

.history-chapter__body > h2 {
  max-width: 720px;
  font-size: 49px;
}

.history-chapter__body > h3 {
  margin-top: 48px;
}

.history-chapter--dark .history-chapter__body > p,
.history-chapter--dark .lead {
  color: rgba(255, 255, 255, .82);
}

.history-quote {
  margin: 44px 0;
  padding: 8px 0 8px 30px;
  border-left: 3px solid var(--rust);
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.4;
}

.history-chapter--dark .history-quote {
  color: var(--white);
}

.place-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 44px 0;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.place-chain span {
  display: inline-flex;
  align-items: center;
  color: var(--forest);
  font-size: 14px;
  font-weight: 750;
}

.place-chain span:not(:last-child)::after {
  width: 28px;
  height: 1px;
  margin: 0 10px;
  background: var(--rust);
  content: "";
}

.history-milestones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 44px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.history-milestones article {
  padding: 28px;
  background: var(--white);
}

.history-milestones strong {
  display: block;
  margin-bottom: 8px;
  color: var(--rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
}

.history-milestones p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

#history-sources {
  background: var(--paper);
}

.history-sources {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 90px;
}

.history-sources h2 {
  font-size: 43px;
}

.history-sources ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: sources;
}

.history-sources li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: sources;
}

.history-sources li::before {
  color: var(--rust);
  content: counter(sources, decimal-leading-zero);
  font-family: Georgia, "Times New Roman", serif;
}

.history-sources a {
  font-weight: 700;
}

@media (max-width: 980px) {
  h2 { font-size: 44px; }
  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .site-nav.is-open {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 110px 32px 40px;
    background: var(--forest-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
  }
  .site-nav.is-open .button { font-family: inherit; font-size: 20px; }
  .hero h1 { font-size: 68px; }
  .intro-grid { gap: 56px; }
  .feature-route { grid-template-columns: 1fr 1fr; }
  .feature-route__copy { padding: 50px; }
  .story-grid { gap: 54px; }
  .gallery figure { grid-column: span 6; }
  .gallery figure:nth-child(1),
  .gallery figure:nth-child(2),
  .gallery figure:nth-child(5),
  .gallery figure:nth-child(6) { grid-column: span 6; }
  .history-index { position: static; }
  .history-index__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .history-index a:nth-child(3) { border-right: 0; }
  .history-overview,
  .history-sources { gap: 50px; }
  .history-chapter__grid { grid-template-columns: 150px minmax(0, 1fr); gap: 50px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  h2 { font-size: 37px; }
  h3 { font-size: 25px; }
  .container,
  .container--narrow { width: min(calc(100% - 32px), var(--content)); }
  .section { padding: 72px 0; }
  .site-header__inner { min-height: 72px; }
  .site-brand { font-size: 16px; }
  .hero { min-height: 690px; height: 88vh; background-position: 43% center; }
  .hero__content { padding-bottom: 68px; }
  .hero h1 { font-size: 52px; }
  .hero__intro { font-size: 18px; }
  .hero__note { display: none; }
  .intro-grid,
  .story-grid,
  .practical { grid-template-columns: 1fr; gap: 44px; }
  .lead { font-size: 21px; }
  .route-band__head,
  .fragments-head,
  .next-route__inner,
  .site-footer__top { align-items: flex-start; flex-direction: column; }
  .route-band h2 { font-size: 35px; }
  .timeline::before { left: 20px; }
  .timeline__item { grid-template-columns: 1fr; gap: 12px; padding-left: 48px; }
  .timeline__year { text-align: left; }
  .timeline__year::after { right: auto; left: -32px; }
  .fragment-grid { grid-template-columns: 1fr; }
  .fragment--wide { grid-column: auto; }
  .route-branch { align-items: flex-start; flex-direction: column; gap: 4px; }
  .fragment { min-height: 240px; padding: 26px; }
  .fragment__status { margin-bottom: 28px; }
  .feature-route { grid-template-columns: 1fr; }
  .feature-route__image { min-height: 520px; }
  .feature-route__copy { padding: 56px 24px; }
  .feature-route__copy h2 { font-size: 38px; }
  .photo-pair { grid-template-columns: 1fr; }
  .photo-pair img { height: 480px; }
  .photo-pair figure:nth-child(2) { margin-top: 0; }
  .page-hero { min-height: 600px; }
  .page-hero h1 { font-size: 48px; }
  .route-facts__grid { grid-template-columns: 1fr; }
  .route-fact,
  .route-fact:first-child { border: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .story-grid__aside { position: static; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure,
  .gallery figure:nth-child(1),
  .gallery figure:nth-child(2),
  .gallery figure:nth-child(5),
  .gallery figure:nth-child(6) { grid-column: auto; }
  .gallery img,
  .gallery figure:nth-child(3) img,
  .gallery figure:nth-child(4) img { height: 470px; }
  .next-route h2 { font-size: 34px; }
  .site-footer__bottom { flex-direction: column; }
  .history-hero { min-height: 650px; }
  .history-index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-index a,
  .history-index a:first-child,
  .history-index a:nth-child(3) { min-height: 64px; border-right: 1px solid var(--line); border-left: 0; }
  .history-index a:nth-child(even) { border-right: 0; }
  .history-overview,
  .history-sources { grid-template-columns: 1fr; gap: 34px; }
  .history-overview h2,
  .history-sources h2 { font-size: 36px; }
  .history-evidence { grid-template-columns: 1fr; margin-top: 48px; }
  .history-evidence article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .history-evidence article:last-child { border-bottom: 0; }
  .history-chapter { padding: 76px 0; scroll-margin-top: 0; }
  .history-chapter__grid { grid-template-columns: 1fr; gap: 34px; }
  .history-chapter__meta { display: flex; align-items: baseline; gap: 16px; }
  .history-chapter__meta span { margin-bottom: 0; font-size: 38px; }
  .history-chapter__meta p { margin-bottom: 0; }
  .history-chapter__body > h2 { font-size: 37px; }
  .history-quote { margin: 36px 0; padding-left: 22px; font-size: 23px; }
  .place-chain { align-items: flex-start; flex-direction: column; gap: 7px; }
  .place-chain span:not(:last-child)::after { width: 1px; height: 16px; margin: 6px 0 0 6px; }
  .history-milestones { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 44px; }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .hero__actions .button { width: 100%; }
  .fact-list div { grid-template-columns: 80px 1fr; }
  .photo-pair img,
  .gallery img,
  .gallery figure:nth-child(3) img,
  .gallery figure:nth-child(4) img { height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
