:root {
  color-scheme: dark;
  --ink: #1d1612;
  --paper: #fff4dc;
  --paper-soft: #ffe7b5;
  --red: #b71f1b;
  --red-dark: #74100f;
  --gold: #f4b23c;
  --green: #253b2d;
  --smoke: #2d2824;
  --white: #fffaf0;
  --muted: #d7c6a1;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(244, 178, 60, .18), transparent 34rem),
    linear-gradient(135deg, #201713 0%, #481512 42%, #1d211b 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(29, 22, 18, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 244, 220, .16);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--gold);
  background: linear-gradient(145deg, var(--red), #53110f);
  color: var(--paper);
  font-weight: 900;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(244, 178, 60, .12);
}
.brand strong { display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 12px; }

.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #f7dfb0;
  font-size: 14px;
}
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 244, 220, .28);
  border-radius: 8px;
  background: rgba(255, 244, 220, .08);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--paper);
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}
.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 5vw, 72px) 36px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 14, 10, .88), rgba(96, 20, 16, .58) 45%, rgba(20, 14, 10, .42)),
    linear-gradient(0deg, rgba(20, 14, 10, .92), transparent 44%),
    url("pht/36_солдаты_у_полевой_пушки_в_бою.png") center/cover;
  transform: scale(1.04);
  animation: slowZoom 18s ease-in-out infinite alternate;
}
.page-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  padding: 150px clamp(18px, 5vw, 72px) 70px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20, 14, 10, .9), rgba(96, 20, 16, .56), rgba(20, 14, 10, .38)),
    var(--hero-image) var(--hero-position, center)/var(--hero-size, cover);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(0deg, rgba(20, 14, 10, .82), transparent);
}
.page-hero > div {
  position: relative;
  z-index: 1;
  max-width: 960px;
}
.about-hero { --hero-image: url("pht/14_военное_приветствие_ветерану_в_хакасии.png"); }
.route-hero { --hero-image: url("pht/36_солдаты_у_полевой_пушки_в_бою.png"); }
.people-hero {
  --hero-image: url("pht/30_портрет_с_военными_наградами.png");
  --hero-position: center 78%;
  --hero-size: 142% auto;
  background:
    linear-gradient(90deg, rgba(12, 8, 7, .96) 0%, rgba(46, 12, 10, .76) 48%, rgba(12, 8, 7, .58) 100%),
    linear-gradient(0deg, rgba(12, 8, 7, .88) 0%, rgba(12, 8, 7, .2) 58%),
    var(--hero-image) var(--hero-position, center)/var(--hero-size, cover);
}
.articles-hero { --hero-image: url("pht/18_герои_пирятина_вспоминая_подвиг.png"); }
.gallery-hero { --hero-image: url("pht/20_делегация_ветеранов_в_пирятине_1983.png"); }
.book-hero { --hero-image: url("pht/28_переправа_через_удай._1940_е.png"); }
.hero-content, .hero-stats { position: relative; }
.hero-content { max-width: 980px; padding-bottom: 28px; }
.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  max-width: 1020px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 8vw, 92px);
  line-height: .96;
  letter-spacing: 0;
}
.lead {
  max-width: 780px;
  margin: 24px 0 0;
  color: #ffe7bd;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.42;
}
.hero-actions, .book-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  font: 800 15px/1 "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(0, 0, 0, .25); }
.primary { background: var(--gold); color: #2c1608; }
.ghost { background: rgba(255, 244, 220, .12); color: var(--paper); border: 1px solid rgba(255, 244, 220, .34); }
.ghost.light { background: rgba(255,255,255,.12); }
.dark { background: #241b17; color: var(--paper); border: 1px solid rgba(255, 244, 220, .24); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.hero-stats article {
  min-height: 132px;
  padding: 22px;
  background: rgba(255, 244, 220, .12);
  border: 1px solid rgba(255, 244, 220, .2);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}
.hero-stats strong { display: block; color: var(--gold); font-size: clamp(28px, 4vw, 46px); line-height: 1; }
.hero-stats span { display: block; margin-top: 10px; color: #f9dfb1; }

.home-photo-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #120d0b;
  border-top: 1px solid rgba(255, 244, 220, .16);
  border-bottom: 1px solid rgba(255, 244, 220, .16);
}
.home-photo-ribbon figure {
  position: relative;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
}
.home-photo-ribbon img {
  filter: sepia(.24) contrast(1.05);
  transform: scale(1.14);
  object-position: center 33%;
  transition: transform .45s ease, filter .45s ease;
}
.home-photo-ribbon figure:hover img {
  transform: scale(1.18);
  filter: sepia(.1) contrast(1.08);
}
.home-photo-ribbon figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 10px 12px;
  color: #fff4dc;
  font-weight: 900;
  background: rgba(29, 22, 18, .72);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
}

.section { padding: 92px clamp(18px, 5vw, 72px); }
.section-heading {
  max-width: 860px;
  margin: 0 0 34px;
}
.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
}
.section-heading p:last-child {
  color: #ecd3a4;
  font-size: 18px;
  line-height: 1.55;
}
.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.intro { background: linear-gradient(180deg, #241915 0%, #34221b 100%); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 22px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.feature-card {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 8px;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}
.feature-card img {
  aspect-ratio: 1 / 1;
  height: auto;
  filter: sepia(.18) contrast(1.05);
  object-position: center;
}
.feature-card span {
  display: block;
  padding: 18px 20px 0;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.feature-card h3 {
  margin: 0;
  padding: 0 20px 22px;
  font-size: 24px;
  line-height: 1.12;
}
.home-story {
  background: linear-gradient(180deg, #201713 0%, #301b17 100%);
}
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}
.story-copy {
  max-width: 640px;
}
.story-copy h2,
.memory-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}
.story-copy h2 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
}
.story-copy p {
  color: #ecd3a4;
  font-size: 19px;
  line-height: 1.62;
}
.photo-stack {
  position: relative;
  min-height: 560px;
}
.photo-stack img {
  position: absolute;
  border: 8px solid rgba(255, 244, 220, .9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.photo-main {
  inset: 40px 70px 70px 20px;
}
.photo-small {
  width: 38%;
  height: 220px;
  object-fit: cover;
}
.photo-small.top {
  top: 0;
  right: 0;
}
.photo-small.bottom {
  left: 0;
  bottom: 0;
}
.home-memory {
  background: #171d16;
}
.memory-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
}
.memory-card {
  min-height: 0;
  display: grid;
  grid-template-rows: 230px auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.memory-card.wide {
  grid-row: span 2;
  grid-template-rows: 360px auto;
}
.memory-card:last-child {
  grid-template-rows: 340px auto;
}
.memory-card img {
  object-position: center 22%;
}
.memory-card.wide img {
  object-position: center 20%;
}
.memory-card:last-child img {
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  background: #f5ead7;
}
.memory-card > div {
  padding: 24px;
}
.memory-card h3 {
  font-size: 28px;
  line-height: 1.12;
}
.memory-card p {
  color: #4a3428;
  line-height: 1.55;
}
.home-gallery-preview {
  background: linear-gradient(180deg, #241915, #14100e);
}
.home-gallery-strip {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1fr .9fr 1.2fr;
  gap: 12px;
  min-height: 360px;
}
.home-gallery-strip img {
  min-height: 360px;
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .28);
  filter: sepia(.18) contrast(1.06);
}
.home-gallery-strip img:nth-child(2),
.home-gallery-strip img:nth-child(4) {
  margin-top: 42px;
  min-height: 318px;
}
.about-text {
  padding: 34px;
  background: var(--paper);
  color: var(--ink);
  border-left: 8px solid var(--red);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.about-text p { margin: 0 0 16px; font-size: 19px; line-height: 1.65; }
.honor-panel {
  padding: 30px;
  background: linear-gradient(145deg, var(--red), #43100f);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.honor-panel h3 { margin: 0 0 18px; font-size: 28px; }
.honor-panel ul { margin: 0; padding-left: 20px; color: #ffe7bd; line-height: 1.65; }

.route-section { background: #17221a; }
.route-paper {
  padding: 28px clamp(18px, 5vw, 72px) 42px;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 248, 232, .92), rgba(255, 246, 224, .95)),
    radial-gradient(circle at 20% 10%, rgba(183, 31, 27, .08), transparent 32rem);
}
.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0 26px;
  color: #7b6b58;
  font-size: 14px;
  border-bottom: 1px solid rgba(74, 52, 40, .12);
}
.breadcrumbs a {
  color: #5b4a38;
  font-weight: 800;
}
.route-top {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.55fr);
  gap: 26px;
  align-items: stretch;
  padding-top: 18px;
}
.route-intro {
  align-self: center;
}
.route-intro h1 {
  color: #2f241d;
  font-size: clamp(52px, 6vw, 86px);
}
.route-intro p {
  color: #4f4032;
  font-size: 19px;
  line-height: 1.55;
}
.btn.paper {
  color: #3b2d23;
  border-color: rgba(59, 45, 35, .34);
  background: rgba(255, 255, 255, .42);
}
.route-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(74, 52, 40, .16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(74, 52, 40, .08) 1px, transparent 1px) 0 0/58px 58px,
    linear-gradient(0deg, rgba(74, 52, 40, .08) 1px, transparent 1px) 0 0/58px 58px,
    #eadfcb;
  box-shadow: 0 20px 60px rgba(74, 52, 40, .16);
}
.route-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 20%, rgba(183, 31, 27, .07), transparent 14rem),
    radial-gradient(circle at 25% 72%, rgba(37, 59, 45, .1), transparent 18rem);
}
.route-map svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 430px;
}
.map-line {
  fill: none;
  stroke: #9e2725;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 900;
  animation: drawRoute 1.6s ease both;
}
.map-line.shadow {
  stroke: rgba(74, 52, 40, .2);
  stroke-width: 12;
  stroke-dasharray: none;
}
.map-point circle {
  fill: #fff8e8;
  stroke: #9e2725;
  stroke-width: 4;
}
.map-point.start circle {
  fill: #9e2725;
}
.map-point text {
  fill: #2f241d;
  font-size: 16px;
  font-weight: 900;
}
.map-country {
  fill: rgba(74, 52, 40, .22);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .08em;
}
.map-legend {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 8px;
  padding: 18px 22px;
  border-radius: 8px;
  background: rgba(255, 248, 232, .88);
  box-shadow: 0 12px 40px rgba(74, 52, 40, .16);
}
.map-legend span {
  color: #382a21;
  font-weight: 800;
}
.map-legend span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border: 2px solid #9e2725;
  border-radius: 50%;
}
.paper-section {
  color: var(--ink);
  background: #f6ead7;
}
.compact {
  margin-bottom: 18px;
}
.compact h2 {
  color: #2f241d;
  font-size: clamp(30px, 4vw, 42px);
}
.route-content-grid {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.45fr);
  gap: 24px;
}
.route-stage-list {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 36px;
}
.route-stage-list::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: #9e2725;
}
.route-stage-list article {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr 24px;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(74, 52, 40, .12);
  border-radius: 8px;
  background: rgba(255, 248, 232, .74);
}
.route-stage-list article::before {
  content: "";
  position: absolute;
  left: -34px;
  width: 15px;
  height: 15px;
  border: 3px solid #9e2725;
  border-radius: 50%;
  background: #f6ead7;
}
.route-stage-list b {
  font: 900 22px/1 Georgia, "Times New Roman", serif;
}
.route-stage-list h3,
.operation-grid h3,
.related-card h3 {
  margin: 0 0 6px;
  color: #35271f;
  font-family: Georgia, "Times New Roman", serif;
}
.route-stage-list p,
.operation-grid p {
  margin: 0;
  color: #5c4b3b;
  line-height: 1.42;
}
.route-stage-list span {
  color: #35271f;
  font-size: 24px;
}
.operation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.operation-grid article,
.related-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid rgba(74, 52, 40, .12);
  border-radius: 8px;
  background: rgba(255, 248, 232, .82);
  box-shadow: 0 12px 34px rgba(74, 52, 40, .08);
}
.operation-grid article img {
  height: 132px;
  filter: sepia(.36) grayscale(.22) contrast(1.03);
}
.operation-grid article span {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #9e2725;
  color: #fff8e8;
  font-size: 26px;
  font-weight: 900;
}
.operation-grid article h3,
.operation-grid article p {
  padding: 0 18px;
}
.operation-grid article h3 {
  margin-top: 18px;
  font-size: 22px;
}
.related-card {
  padding: 24px;
  background: #eee1cd;
}
.related-card h3 {
  font-size: 26px;
  margin-bottom: 18px;
}
.related-card a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  color: #3c2e24;
  font-weight: 800;
  border-bottom: 1px solid rgba(74, 52, 40, .12);
}
.route-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
  border: 1px solid rgba(74, 52, 40, .12);
  border-radius: 8px;
  background: rgba(255, 248, 232, .64);
}
.route-facts article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px 14px;
  padding: 22px;
  border-right: 1px solid rgba(74, 52, 40, .12);
}
.route-facts article:last-child {
  border-right: 0;
}
.route-facts span {
  grid-row: span 2;
  color: #253b2d;
  font-size: 36px;
}
.route-facts b {
  color: #2f241d;
  font-size: 30px;
  line-height: 1;
}
.route-facts small {
  color: #695746;
  font-weight: 700;
}
.route-memory {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.35fr);
  gap: 26px;
  align-items: center;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(74, 52, 40, .12);
  border-radius: 8px;
  background: linear-gradient(90deg, #eadcc4, #fff7e6);
}
.route-memory img {
  min-height: 250px;
}
.route-memory > div {
  padding: 28px 30px 28px 0;
}
.route-memory h2 {
  margin: 0;
  color: #2f241d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
}
.route-memory p {
  color: #5c4b3b;
  line-height: 1.56;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.time-card {
  min-height: 250px;
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(255, 244, 220, .16), rgba(255, 244, 220, .05));
  border: 1px solid rgba(255, 244, 220, .15);
  position: relative;
  overflow: hidden;
}
.time-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--red));
}
.time-card span { color: var(--gold); font-weight: 900; }
.time-card h3 { margin: 12px 0; font-size: 24px; }
.time-card p { color: #e8d5b2; line-height: 1.5; }

.people-section { background: #2c1714; }
.search-box, .book-search {
  display: grid;
  gap: 10px;
  min-width: min(460px, 100%);
}
input[type="search"] {
  width: 100%;
  border: 1px solid rgba(255, 244, 220, .35);
  background: rgba(255, 244, 220, .1);
  color: var(--white);
  border-radius: 8px;
  padding: 15px 16px;
  font: 600 16px/1.2 "Segoe UI", Arial, sans-serif;
  outline: none;
}
input[type="search"]::placeholder { color: rgba(255, 244, 220, .62); }
.search-box span { color: var(--muted); font-size: 14px; }
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.person-card, .article-card {
  padding: 22px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .22);
}
.person-card h3, .article-card h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.18; }
.person-card p, .article-card p { color: #4a3428; line-height: 1.5; }
.person-type {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.person-card button, .article-card button {
  margin-top: 8px;
  background: var(--red);
  color: var(--paper);
}

.articles-section { background: linear-gradient(180deg, #3a2018, #211814); }
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.article-card {
  display: grid;
  grid-template-rows: auto auto;
  padding: 0;
  overflow: hidden;
}
.article-card > img {
  aspect-ratio: 1 / 1;
  height: auto;
  object-position: center;
}
.article-card .article-body { padding: 22px; }
.article-card img { filter: sepia(.24) contrast(1.05); }
.article-meta { color: var(--red-dark); font-weight: 900; font-size: 13px; text-transform: uppercase; }

.gallery-section { background: #151915; }
.gallery-grid {
  columns: 4 230px;
  column-gap: 14px;
}
.gallery-item {
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: 8px;
  overflow: hidden;
  background: #241b17;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .28);
  cursor: pointer;
}
.gallery-item img { height: auto; aspect-ratio: auto; }
.gallery-caption { padding: 12px 14px; color: #f4d8a7; font-weight: 700; }

.book-section {
  background:
    linear-gradient(90deg, rgba(24, 19, 15, .92), rgba(83, 17, 15, .86)),
    url("pht/28_переправа_через_удай._1940_е.png") center/cover fixed;
}
.book-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px;
  border-radius: 8px;
  background: rgba(20, 14, 10, .74);
  border: 1px solid rgba(255, 244, 220, .22);
  box-shadow: var(--shadow);
}
.book-panel h2 { margin: 0; font-size: clamp(34px, 5vw, 62px); font-family: Georgia, "Times New Roman", serif; }
.book-panel p { color: #f3d8a8; max-width: 820px; line-height: 1.6; }
.book-results {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.partners-section {
  color: var(--ink);
  padding-top: 58px;
  padding-bottom: 58px;
  background:
    linear-gradient(rgba(255, 248, 232, .94), rgba(255, 244, 220, .96)),
    radial-gradient(circle at 80% 0%, rgba(183, 31, 27, .08), transparent 28rem);
}
.partners-section .section-heading {
  text-align: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.partners-section .section-heading h2 {
  color: #2f241d;
  white-space: nowrap;
  font-size: clamp(42px, 5vw, 64px);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}
.partner-card {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 10px 16px;
  border: 1px solid rgba(74, 52, 40, .13);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(74, 52, 40, .12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(74, 52, 40, .18);
}
.partner-card img {
  width: 100%;
  max-width: 360px;
  height: 112px;
  object-fit: contain;
}
.partner-card:first-child img {
  max-width: 390px;
}
.partner-card:nth-child(2) img {
  max-width: 520px;
  height: 124px;
}
.partner-card:nth-child(3) img {
  max-width: 560px;
  height: 128px;
}
.result-item {
  padding: 16px;
  background: rgba(255, 244, 220, .12);
  border: 1px solid rgba(255, 244, 220, .16);
  border-radius: 8px;
  color: #ffe8bd;
  line-height: 1.45;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: #120d0b;
  color: var(--muted);
}
.footer a { color: var(--gold); font-weight: 800; }

.modal {
  width: min(1040px, calc(100vw - 28px));
  max-height: 88vh;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(3px); }
.modal-close {
  position: sticky;
  top: 10px;
  float: right;
  z-index: 2;
  width: 42px;
  height: 42px;
  margin: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal-content { padding: 44px; }
.modal-content h2 { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 5vw, 56px); }
.modal-content p { color: #3f2a20; font-size: 18px; line-height: 1.7; }
.modal-text {
  white-space: pre-wrap;
  color: #35231a;
  font-size: 17px;
  line-height: 1.65;
}
.modal-image { background: #140f0d; color: var(--paper); }
.modal-image img { max-height: 76vh; object-fit: contain; background: #100c0a; }
.modal-image .gallery-caption { color: var(--paper); font-size: 20px; }

[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-animate].visible { opacity: 1; transform: translateY(0); }

@keyframes slowZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}
@keyframes drawRoute {
  from { stroke-dashoffset: 900; }
  to { stroke-dashoffset: 0; }
}

@media (max-width: 1040px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .hero-stats, .timeline, .people-grid, .article-grid, .feature-grid, .home-photo-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-layout,
  .route-top,
  .route-content-grid,
  .route-memory {
    grid-template-columns: 1fr;
  }
  .operation-grid,
  .route-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .route-memory > div {
    padding: 0 28px 28px;
  }
  .home-gallery-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-gallery-strip img,
  .home-gallery-strip img:nth-child(2),
  .home-gallery-strip img:nth-child(4) {
    min-height: 300px;
    margin-top: 0;
  }
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .brand { min-width: 0; }
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
  }
  .menu-toggle {
    display: grid;
  }
  .nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding: 10px 0 2px;
    border-top: 1px solid rgba(255, 244, 220, .14);
  }
  .site-header.menu-open .nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .nav a {
    width: 100%;
    padding: 13px 12px;
    border-radius: 8px;
    background: rgba(255, 244, 220, .06);
  }
  .hero { min-height: 820px; padding-top: 100px; }
  .page-hero { min-height: 520px; padding-top: 120px; }
  .people-hero {
    --hero-position: center 82%;
    --hero-size: 210% auto;
  }
  .hero-stats, .timeline, .people-grid, .article-grid, .about-grid, .feature-grid, .home-photo-ribbon { grid-template-columns: 1fr; }
  .memory-grid,
  .operation-grid,
  .route-facts {
    grid-template-columns: 1fr;
  }
  .photo-stack {
    min-height: 430px;
  }
  .photo-main {
    inset: 44px 24px 84px 12px;
  }
  .photo-small {
    width: 46%;
    height: 150px;
  }
  .home-photo-ribbon figure {
    min-height: 300px;
  }
  .home-photo-ribbon img {
    transform: scale(1.28);
    object-position: center 32%;
  }
  .home-photo-ribbon figure:hover img {
    transform: scale(1.28);
  }
  .home-photo-ribbon figcaption {
    left: 22px;
    right: 22px;
    bottom: 20px;
    padding: 13px 16px;
    background: rgba(29, 22, 18, .88);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  }
  .home-gallery-strip {
    grid-template-columns: 1fr;
  }
  .home-gallery-strip img,
  .home-gallery-strip img:nth-child(2),
  .home-gallery-strip img:nth-child(4) {
    min-height: 260px;
  }
  .partner-card {
    min-height: 120px;
  }
  .partner-card img {
    height: 92px;
    max-width: 330px;
  }
  .partner-card:nth-child(2) img,
  .partner-card:nth-child(3) img {
    height: 104px;
    max-width: 360px;
  }
  .partners-section .section-heading h2 {
    white-space: normal;
    font-size: clamp(34px, 11vw, 48px);
  }
  .route-paper {
    padding-top: 18px;
  }
  .route-map,
  .route-map svg {
    min-height: 360px;
  }
  .map-legend {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 0 14px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .route-stage-list article {
    grid-template-columns: 54px 1fr;
  }
  .route-stage-list span {
    display: none;
  }
  .route-facts article {
    border-right: 0;
    border-bottom: 1px solid rgba(74, 52, 40, .12);
  }
  .route-facts article:last-child {
    border-bottom: 0;
  }
  .split, .book-panel { display: grid; }
  .section { padding-top: 68px; padding-bottom: 68px; }
  .about-text, .honor-panel, .book-panel, .modal-content { padding: 24px; }
  .footer { display: grid; }
}
