:root {
  --ink: #191816;
  --ink-soft: #4b4944;
  --paper: #f4f0e8;
  --paper-deep: #e9e3d9;
  --line: #d3ccc0;
  --accent: #b54a2b;
  --accent-dark: #88351f;
  --headline-blue: #173b62;
  --serif: "Crimson Text", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", Arial, sans-serif;
  --page: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--sans);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.site-header {
  width: var(--page);
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  aspect-ratio: 1;
  color: var(--paper);
  background: var(--ink);
  font: 700 13px/1 var(--sans);
  letter-spacing: -0.06em;
}

.footer-mark {
  width: 52px;
  height: 52px;
  aspect-ratio: 1;
  object-fit: contain;
}

.brand-name {
  font: 700 12px/1.2 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.main-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font: 600 13px/1 var(--sans);
}

.main-nav a,
.footer-nav a {
  position: relative;
  padding: 10px 0;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-current::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  width: var(--page);
  min-height: clamp(442px, 39vw, 541px);
  margin: 0 auto;
  overflow: hidden;
  color: #fff;
  background: #3e464d;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 68% center;
  --parallax-offset: 0px;
  height: calc(100% + 190px);
  top: -95px;
  transform: translate3d(0, var(--parallax-offset), 0) scale(1.025);
  will-change: transform;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(15, 16, 17, 0.82) 0%, rgba(15, 16, 17, 0.55) 32%, rgba(15, 16, 17, 0.08) 62%, rgba(15, 16, 17, 0) 100%),
    linear-gradient(0deg, rgba(15, 16, 17, 0.22), transparent 42%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(38px, 5vw, 70px) 0 36px;
}

.hero-kicker,
.hero h1 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.055em;
}

.hero-kicker {
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1;
}

.hero h1 {
  max-width: 730px;
  color: #e6b85f;
  font-size: clamp(50px, 6.5vw, 94px);
  line-height: 0.94;
  text-shadow: 0 2px 18px rgba(16, 15, 13, 0.24);
}

.hero-description {
  margin: 32px 0 0;
  font-family: var(--sans);
  font-size: clamp(14px, 1.45vw, 19px);
  font-weight: 600;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

.hero-description strong {
  color: #ffc0a1;
  font-weight: 800;
}

.laureates {
  width: var(--page);
  margin: 0 auto;
  padding: 41px 0 92px;
}

.laureates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 24px;
  margin-top: 0;
}

.laureate-card {
  min-width: 0;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(114, 103, 89, 0.2);
  box-shadow: 0 12px 32px rgba(46, 40, 33, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.laureate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(46, 40, 33, 0.11);
}

.card-link {
  display: block;
  height: 100%;
  text-decoration: none;
}

.card-media {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 18px;
  color: rgba(255, 255, 255, 0.86);
  background-color: #51585c;
}

.card-media::before,
.card-media::after {
  content: "";
  position: absolute;
  inset: auto -12% -38% 18%;
  height: 88%;
  background: rgba(255, 255, 255, 0.075);
  transform: rotate(-8deg);
}

.card-media.has-images {
  display: block;
  aspect-ratio: 1;
  grid-template-columns: 1fr;
  padding: 0;
  background: #30383c;
}

.card-media.has-images::before {
  display: none;
}

.card-media.has-images::after {
  display: block;
  position: absolute;
  z-index: 2;
  inset: 0;
  height: auto;
  background:
    linear-gradient(135deg, rgba(25, 54, 75, 0.2), transparent 48%),
    linear-gradient(315deg, rgba(224, 105, 56, 0.2), transparent 52%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  transform: none;
}

.card-media.image-count-2,
.card-media.image-count-3,
.card-media.image-count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-media.has-images img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.76) contrast(1.1) sepia(0.1);
}

.card-media.image-count-3 img:first-child {
  grid-row: 1 / 3;
}

.card-media::after {
  inset: -42% 44% auto -12%;
  transform: rotate(15deg);
}

.placeholder-1 { background: linear-gradient(145deg, #293840, #9e5e45); }
.placeholder-2 { background: linear-gradient(145deg, #565c60, #1f3039); }
.placeholder-3 { background: linear-gradient(145deg, #817565, #414d51); }
.placeholder-4 { background: linear-gradient(145deg, #26343d, #714838); }

.placeholder-index,
.placeholder-label {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
}

.placeholder-index {
  color: rgba(255, 255, 255, 0.16);
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 800;
  line-height: 0.72;
  letter-spacing: -0.08em;
}

.placeholder-label {
  max-width: 150px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-body {
  padding: 20px 22px 24px;
}

.card-date {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font: 700 12px/1 var(--sans);
}

.card-body h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.card-title {
  margin: 8px 0 0;
  color: var(--headline-blue);
  font: 600 15px/1.3 var(--sans);
  text-transform: uppercase;
}

.story-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  clear: both;
  margin-top: 28px;
}

.story-sources a {
  color: var(--headline-blue);
  font: 600 15px/1.6 var(--sans);
  text-decoration: none;
  overflow-wrap: anywhere;
  background-image: linear-gradient(var(--headline-blue), var(--headline-blue));
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 240ms ease;
}

.story-sources a:hover,
.story-sources a:focus-visible {
  background-size: 100% 2px;
}

@media (prefers-reduced-motion: reduce) {
  .story-sources a { transition: none; }
}

.article-sharing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  clear: both;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-sharing-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: 6px;
  font: 600 18px/1.4 var(--sans);
  color: var(--ink-soft);
}

.article-sharing-label svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  font: 600 13px/1.4 var(--sans);
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.share-button--max { background: #6851dc; }
.share-button--vk { background: #0077ff; }
.share-button--ok { background: #ee8208; }
.share-button img { object-fit: contain; filter: brightness(0) invert(1); }
.share-button:hover { opacity: 0.85; transform: translateY(-2px); }

.card-summary {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
  justify-items: center;
  min-height: 190px;
  padding: 46px max(24px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(244, 240, 232, 0.98) 0%, rgba(244, 240, 232, 0.92) 38%, rgba(244, 240, 232, 0.42) 100%),
    url("img/footer-landscape.png") center center / cover no-repeat;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-left {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-brand p {
  margin: 0;
  font: 700 11px/1.25 var(--sans);
  text-transform: uppercase;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-links a {
  display: block;
  width: 28px;
  height: 28px;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  opacity: 0.62;
  transform: translateY(-2px);
}

.social-links img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(20%) sepia(34%) saturate(1513%) hue-rotate(169deg) brightness(89%) contrast(94%);
}

.social-icon-vk {
  filter: brightness(0) saturate(100%) invert(20%) sepia(34%) saturate(1513%) hue-rotate(169deg) brightness(89%) contrast(94%);
}

.copyright {
  grid-column: 1;
  margin: 8px 0 0;
  justify-self: center;
  color: #6f6a63;
  font: 400 11px/1.4 var(--sans);
}

/* Страница лауреата */
.detail-hero {
  position: relative;
  width: min(900px, calc(100vw - 48px));
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  background: #3b454b;
}

.detail-hero-media,
.detail-hero-shade {
  position: absolute;
  inset: 0;
}

.detail-hero-media {
  --detail-parallax: 0px;
  display: flex;
  align-items: flex-end;
  height: calc(100% + 220px);
  top: -110px;
  padding: 44px;
  color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 30%, transparent 30% 60%, rgba(255, 255, 255, 0.05) 60%),
    linear-gradient(145deg, #293a43, #7a5649 58%, #26343b);
  background-position: center;
  background-size: cover;
  font: 600 12px/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translate3d(0, var(--detail-parallax), 0) scale(1.02);
  will-change: transform;
}

.detail-placeholder-index,
.detail-placeholder-label {
  position: relative;
  z-index: 1;
}

.detail-placeholder-index {
  margin-right: auto;
  color: rgba(255, 255, 255, 0.16);
  font: 800 clamp(64px, 10vw, 132px)/0.72 var(--sans);
  letter-spacing: -0.08em;
}

.detail-placeholder-label {
  max-width: 190px;
  text-align: right;
}

.detail-hero-media.has-cover {
  position: absolute;
  inset: 0;
  padding: 0;
  height: 100%;
  top: 0;
  transform: none;
  will-change: auto;
  background: #30383c;
}

.detail-hero-media.has-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.04);
}

.detail-hero.has-cover {
  height: auto;
  aspect-ratio: 1;
}

.detail-hero-media.has-images {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
  background: #30383c;
}

.detail-hero-media.image-count-2,
.detail-hero-media.image-count-3,
.detail-hero-media.image-count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100%;
  top: 0;
  transform: none;
  will-change: auto;
  background: #07131f;
}

.detail-hero-media.has-images img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  filter: saturate(0.76) contrast(1.1) sepia(0.1);
}

.detail-hero-media.has-images + .detail-hero-shade {
  background:
    linear-gradient(135deg, rgba(20, 53, 76, 0.18), transparent 48%),
    linear-gradient(315deg, rgba(218, 102, 55, 0.19), transparent 54%),
    linear-gradient(0deg, rgba(17, 19, 20, 0.24), transparent 50%);
  mix-blend-mode: soft-light;
}

.detail-hero-media.image-count-2 img,
.detail-hero-media.image-count-3 img,
.detail-hero-media.image-count-4 img {
  object-fit: contain;
  object-position: center;
  background: #07131f;
}

.detail-hero-media.image-count-3 img:first-child {
  grid-row: 1 / 3;
}

.detail-hero-shade {
  pointer-events: none;
  background: linear-gradient(0deg, rgba(17, 19, 20, 0.36), transparent 55%);
}

.detail-content {
  width: min(900px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 32px 0 96px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  color: var(--headline-blue);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: 600 14px/1 var(--sans);
  text-decoration: none;
}

.back-link svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  transition: transform 160ms ease;
}

.back-link:hover svg,
.back-link:focus-visible svg {
  transform: translateX(-4px);
}

.detail-header {
  margin-top: 56px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.detail-header h1 {
  margin: 0;
  font: 700 clamp(28px, 3vw, 42px)/1.12 var(--sans);
  letter-spacing: -0.04em;
}

.detail-title {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--headline-blue);
  font: 600 clamp(16px, 2vw, 23px)/1.3 var(--sans);
  text-transform: uppercase;
  text-wrap: balance;
}

.detail-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 7px 24px;
  margin: 30px 0 0;
  font-family: var(--sans);
  font-size: 14px;
}

.detail-meta dt {
  color: var(--accent);
  font-weight: 600;
}

.detail-meta dd {
  margin: 0;
}

.detail-story {
  display: flow-root;
  max-width: 760px;
  margin-top: 42px;
}

.detail-story p {
  margin: 0 0 24px;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.66;
  hyphens: none;
  text-wrap: pretty;
}

.story-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: min(48%, 350px);
  margin-top: 8px;
  margin-bottom: 24px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.story-gallery--left {
  float: left;
  margin-left: 0;
  margin-right: 24px;
}

.story-gallery--right {
  float: right;
  margin-right: 0;
  margin-left: 24px;
}

.story-gallery--center {
  float: left;
  width: min(44%, 320px);
  margin: 8px 24px 20px 0;
}

.story-gallery--offset {
  float: right;
  width: min(46%, 340px);
  margin: 8px 0 20px 24px;
}

.story-gallery:not(.image-count-1) {
  width: min(58%, 460px);
}

.story-gallery.image-count-2,
.story-gallery.image-count-3,
.story-gallery.image-count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-photo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 150px;
  overflow: hidden;
  background: transparent;
}

.story-gallery.image-count-1 .story-photo-frame {
  min-height: 0;
  max-height: 440px;
}

.story-gallery img {
  display: block;
  width: min(100%, var(--source-width, 100%));
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
  filter: saturate(0.86) contrast(1.04);
}

.story-gallery:not(.image-count-1) img {
  width: min(100%, var(--source-width, 100%));
  height: auto;
  max-height: 300px;
}

.story-gallery--galina .story-photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
}

.story-gallery--galina img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 54% bottom;
  transform: scale(1.45);
  transform-origin: center bottom;
}

:focus-visible {
  outline: 3px solid #f1794f;
  outline-offset: 4px;
}

@media (min-width: 1100px) {
  .hero {
    width: min(1770px, calc(100vw - 24px));
  }
}

@media (max-width: 760px) {
  :root {
    --page: min(100% - 28px, 620px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand-name {
    display: none;
  }

  .main-nav {
    gap: 16px;
    font-size: 11px;
  }

  .hero {
    min-height: 190px;
  }

  .hero-image {
    top: 0;
    height: 100%;
    object-position: 69% top;
    transform: none;
    will-change: auto;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(15, 16, 17, 0.86) 0%, rgba(15, 16, 17, 0.34) 74%, rgba(15, 16, 17, 0.08) 100%);
  }

  .hero-copy {
    display: flex;
    width: calc(100% - 28px);
    min-height: 190px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px 0;
  }

  .hero-kicker {
    font-size: 21px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(39px, 11vw, 50px);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .hero-description {
    margin-top: 8px;
    font-size: 12px;
  }

  .hero-description br {
    display: none;
  }

  .laureates {
    padding: 29px 0 68px;
  }

  .laureates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card-media {
    aspect-ratio: 1;
    padding: 10px;
  }

  .card-media.has-images {
    padding: 0;
  }

  .placeholder-label {
    display: none;
  }

  .card-body {
    padding: 13px 12px 16px;
  }

  .card-body h3 {
    font-size: clamp(15px, 4.7vw, 18px);
    line-height: 1.18;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .card-title {
    font-size: 12px;
  }

  .card-summary {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 38px 20px;
    background:
      linear-gradient(90deg, rgba(244, 240, 232, 0.94), rgba(244, 240, 232, 0.66)),
      url("img/footer-landscape.png") 64% center / cover no-repeat;
  }

  .footer-left {
    gap: 14px;
  }

  .footer-mark {
    width: 44px;
    height: 44px;
  }

  .footer-brand {
    gap: 8px;
  }

  .footer-brand p {
    font-size: 9px;
  }

  .social-links {
    gap: 12px;
  }

  .social-links a {
    width: 25px;
    height: 25px;
  }

  .detail-hero {
    width: calc(100vw - 28px);
    height: auto;
  }

  .detail-hero-media {
    height: calc(100% + 160px);
    top: -80px;
    padding: 22px;
  }

  .detail-content {
    width: calc(100vw - 28px);
    padding: 24px 0 64px;
  }

  .detail-header {
    margin-top: 38px;
    padding-bottom: 26px;
  }

  .detail-header h1 {
    font-size: 28px;
  }

  .detail-title {
    font-size: 14px;
  }

  .detail-meta {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .detail-meta dd + dt {
    margin-top: 12px;
  }

  .detail-story {
    margin-top: 30px;
  }

  .detail-story p {
    font-size: 19px;
  }

  .detail-placeholder-index {
    font-size: clamp(52px, 18vw, 84px);
  }

  .detail-placeholder-label {
    max-width: 130px;
    font-size: 9px;
  }

  .story-gallery {
    width: 40%;
    margin: 5px 16px 14px 0;
  }

  .story-gallery--right,
  .story-gallery--offset {
    float: right;
    margin: 5px 0 14px 16px;
  }

  .story-gallery--left,
  .story-gallery--center {
    float: left;
  }

  .story-gallery--center {
    width: 35%;
  }

  .story-gallery--offset {
    width: 38%;
  }

  .story-gallery:not(.image-count-1) {
    width: 40%;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .story-photo-frame {
    min-height: 0;
  }

  .copyright {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .hero-image {
    height: 100%;
    top: 0;
    transform: none;
    will-change: auto;
  }

  .detail-hero-media {
    height: 100%;
    top: 0;
    transform: none;
    will-change: auto;
  }
}
