:root {
  --paper: #f1efe8;
  --paper-deep: #e7e2d7;
  --ink: #1a1917;
  --muted: #706d65;
  --line: #cdc8bc;
  --accent: #c8ff36;
  --accent-deep: #8ebf00;
  --plum: #24142b;
  --teal: #087d80;
  --cobalt: #3e56d8;
  --coral: #ee4c3c;
  --gold: #f0b938;
  --white: #fbfaf6;
  --serif: "Prata", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button, select { font: inherit; }

.masthead {
  width: min(1360px, calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.privacy-badge svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

main {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  grid-template-rows: minmax(430px, auto) auto;
  gap: 0;
  min-height: 680px;
  margin: 24px 0 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 10%, rgba(62, 86, 216, 0.65), transparent 30rem),
    linear-gradient(135deg, #29152f 0%, #1b1023 72%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  width: 145px;
  height: 145px;
  position: absolute;
  top: -72px;
  left: 52%;
  z-index: 2;
  background: var(--coral);
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.88;
}

.hero-copy {
  padding: clamp(46px, 6vw, 82px) clamp(34px, 6vw, 78px) 40px;
  position: relative;
  z-index: 3;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow { color: var(--accent); }

.hero-author {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-author strong {
  color: var(--white);
  font-size: 0.79rem;
  letter-spacing: 0.12em;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 30px;
  font-family: var(--serif);
  font-size: clamp(3.7rem, 6.9vw, 7.25rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-lead {
  max-width: 590px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(0.96rem, 1.2vw, 1.13rem);
  line-height: 1.65;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  color: var(--ink);
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, transform 160ms ease;
}

.hero-action:hover { background: #ddff82; }
.hero-action:active { transform: translateY(1px); }

.hero-portrait {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  margin: 0;
  border-left: 8px solid var(--teal);
  position: relative;
  overflow: hidden;
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(18, 8, 21, 0.62));
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  min-height: 680px;
  display: block;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero-portrait figcaption {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  z-index: 2;
  color: var(--white);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-portrait figcaption span { color: var(--accent); }

.hero-aside {
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 28px clamp(34px, 6vw, 78px) 34px;
  color: var(--ink);
  background: var(--white);
  border-top: 8px solid var(--coral);
  position: relative;
}

.hero-aside::before {
  content: "02× / НЕДЕЛЮ";
  position: absolute;
  top: -27px;
  right: 24px;
  padding: 7px 11px;
  color: var(--white);
  background: var(--coral);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-aside-label {
  margin: 0 0 16px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-aside-text {
  max-width: 640px;
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.52;
}

.hero-stats {
  padding-left: 24px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

.hero-stats strong { color: var(--ink); }

.controls-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  padding: 25px 0;
  border-top: 5px solid var(--cobalt);
  border-bottom: 1px solid var(--ink);
  align-items: center;
}

.edition-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.edition-row label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.select-wrap { position: relative; }

.select-wrap select {
  min-width: 202px;
  padding: 10px 36px 10px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  appearance: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}

.select-wrap svg {
  width: 17px;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  pointer-events: none;
}

.edition-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.filter-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  padding: 9px 16px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.filter-button:hover { border-color: var(--ink); }

.filter-button:active { transform: scale(0.98); }

.filter-button.is-active {
  color: var(--paper);
  background: var(--teal);
  border-color: var(--teal);
}

.feed-section { padding: 74px 0 40px; }

.feed-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.feed-heading .eyebrow {
  margin-bottom: 12px;
  color: var(--cobalt);
}

.feed-heading h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.result-count {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}

.story-grid {
  border-top: 1px solid var(--line);
}

.story-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1.65fr);
  gap: 36px;
  padding: 48px 0 54px;
  border-bottom: 1px solid var(--line);
  animation: reveal 340ms ease both;
}

.story-card.featured {
  margin: 0 -24px;
  padding: 54px 24px 58px;
  background: #e4f1ed;
  border-left: 7px solid var(--teal);
  border-bottom-color: var(--ink);
}

.story-meta {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
}

.story-index {
  color: var(--coral);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.story-category, .story-date {
  display: block;
  font-size: 0.68rem;
  line-height: 1.55;
}

.story-category {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.story-date { color: var(--muted); }

.story-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  column-gap: clamp(36px, 7vw, 96px);
}

.story-location {
  grid-column: 1 / -1;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-title {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.8vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.026em;
  line-height: 1.18;
}

.story-summary {
  grid-column: 1;
  margin-bottom: 24px;
  color: #4d4a44;
  font-size: 0.95rem;
  line-height: 1.75;
}

.impact-block {
  grid-column: 2;
  grid-row: 2 / span 3;
  padding-left: 22px;
  border-left: 3px solid var(--gold);
  align-self: start;
}

.impact-block span {
  display: block;
  margin-bottom: 9px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.impact-block p {
  margin-bottom: 0;
  color: #48463f;
  font-size: 0.83rem;
  line-height: 1.7;
}

.source-link {
  grid-column: 1;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.73rem;
  font-weight: 700;
  text-decoration: none;
}

.source-link:hover { border-bottom-color: var(--coral); }

.source-link svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.empty-state {
  padding: 70px 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.empty-state p { color: var(--muted); }

.empty-state button {
  padding: 9px 18px;
  background: var(--accent);
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.method-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: start;
  padding: 38px 0 24px;
  color: var(--muted);
  font-size: 0.7rem;
}

.method-note p {
  max-width: 780px;
  margin-bottom: 0;
}

.method-note strong { color: var(--ink); }

.method-note a { text-decoration: none; }

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

:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
    padding: 0;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-portrait {
    grid-column: 1;
    grid-row: 2;
    height: 560px;
    border-top: 8px solid var(--teal);
    border-left: 0;
  }

  .hero-portrait img {
    height: 560px;
    min-height: 0;
    object-position: 50% 25%;
  }

  .hero-aside {
    grid-column: 1;
    grid-row: 3;
    max-width: none;
  }

  .controls-section { grid-template-columns: 1fr; gap: 20px; }

  .filter-row { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }

  .filter-button { flex: 0 0 auto; }

  .story-card { grid-template-columns: 125px minmax(0, 1fr); }

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

  .story-title, .story-summary, .source-link, .impact-block { grid-column: 1; }

  .impact-block { grid-row: auto; margin: 8px 0 26px; }
}

@media (max-width: 640px) {
  body { background: var(--paper); }

  .masthead, main { width: min(100% - 28px, 1360px); }

  .masthead { min-height: 68px; }

  .privacy-badge { font-size: 0; }

  .privacy-badge svg { width: 17px; }

  .hero {
    min-height: 0;
    margin: 14px 0 22px;
    padding: 0;
  }

  .hero::before {
    width: 95px;
    height: 95px;
    top: -48px;
    left: auto;
    right: 18px;
  }

  .hero-copy { padding: 38px 24px 36px; }

  .hero-author {
    display: block;
    margin-bottom: 20px;
  }

  .hero-author strong,
  .hero-author span { display: block; }

  .hero-author span { margin-top: 4px; }

  h1 { font-size: clamp(2.95rem, 14.5vw, 4.6rem); margin-bottom: 25px; }

  .hero-lead { font-size: 0.95rem; }

  .hero-portrait,
  .hero-portrait img { height: 440px; }

  .hero-portrait img { object-position: 50% 22%; }

  .hero-portrait figcaption {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .hero-aside {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 20px 24px;
  }

  .hero-aside-text { font-size: 1.15rem; }

  .hero-stats {
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    flex-direction: row;
    gap: 12px;
    font-size: 0.62rem;
  }

  .controls-section { margin: 0 -14px; padding: 20px 14px; }

  .edition-row { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; }

  .select-wrap select { width: 100%; min-width: 0; }

  .edition-note { grid-column: 1 / -1; }

  .feed-section { padding-top: 52px; }

  .feed-heading { align-items: start; gap: 20px; }

  .result-count { white-space: nowrap; }

  .story-card, .story-card.featured {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 0;
    padding: 38px 0 42px;
    background: transparent;
  }

  .story-card.featured {
    margin: 0 -14px;
    padding: 38px 14px 42px 20px;
    background: #e4f1ed;
  }

  .story-meta { grid-template-columns: 34px 1fr; gap: 12px; }

  .story-title { font-size: 1.75rem; }

  .story-summary { font-size: 0.9rem; }

  .impact-block { padding-left: 18px; }

  .method-note { grid-template-columns: 1fr; }

  .method-note a { width: fit-content; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
