@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');



:root {
  color-scheme: dark;
  --ink: #f7efe0;
  --muted: #cdbfaa;
  --deep: #11100e;
  --deep-2: #17110c;
  --card: rgba(255, 246, 228, 0.08);
  --card-strong: rgba(255, 246, 228, 0.13);
  --line: rgba(255, 236, 195, 0.18);
  --gold: #d8a84f;
  --gold-2: #f1d38c;
  --paper: #efe0c3;
  --burgundy: #5b1d16;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(146, 69, 29, 0.32), transparent 38rem),
    radial-gradient(circle at 86% 22%, rgba(216, 168, 79, 0.2), transparent 33rem),
    linear-gradient(135deg, #0b0907 0%, #1a110b 52%, #070706 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
          mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
  z-index: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

code {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  background: rgba(0,0,0,0.3);
  color: var(--gold-2);
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #fff0b8, var(--burgundy));
  z-index: 1000;
  box-shadow: 0 0 18px rgba(216, 168, 79, 0.6);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2.6rem);
  background: rgba(12, 10, 8, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: -moz-max-content;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(241, 211, 140, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), rgba(216,168,79,0.12) 30%, rgba(91,29,22,0.2) 100%);
  color: var(--gold-2);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 0 30px rgba(216, 168, 79, 0.12);
}

.brand-title,
.brand-subtitle {
  display: block;
}

.brand-title {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.main-nav a,
.footer-nav a {
  position: relative;
  padding: 0.75rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  transition: 220ms ease;
}

.main-nav a:hover,
.footer-nav a:hover,
.main-nav a.active,
.footer-nav a.active {
  color: var(--ink);
  border-color: rgba(241, 211, 140, 0.28);
  background: rgba(241, 211, 140, 0.08);
}

.menu-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--ink);
}

.menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0.24rem auto;
  background: var(--ink);
  border-radius: 999px;
}

.page-transition {
  animation: pageIn 460ms ease both;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(18rem, 0.77fr);
  gap: clamp(2rem, 4vw, 5rem);
  min-height: calc(100vh - 76px);
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 5vw, 5.8rem) clamp(3rem, 7vw, 6rem);
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(0,0,0,0.12), rgba(0,0,0,0.86) 68%),
    url('/images/cover-spread.webp') center/cover no-repeat;
  opacity: 0.2;
  filter: saturate(0.65) contrast(1.1);
  transform: scale(1.04);
}

.hero::after,
.page-hero::after {
  content: '';
  position: absolute;
  inset: auto -10% 0 -10%;
  height: 30%;
  background: linear-gradient(to top, rgba(8,7,6,1), transparent);
  pointer-events: none;
}

.hero-copy,
.hero-cover {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  line-height: 0.95;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 11ch;
  font-size: clamp(4rem, 11vw, 9.5rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 5rem);
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.65rem, 2vw, 2.45rem);
}

.hero-lead,
.page-lead,
.text-block p,
.split-card p,
.callout p,
.partner-card li,
.contact-card p,
.download-card p,
.excerpt-text p {
  color: rgba(247, 239, 224, 0.78);
  line-height: 1.72;
  font-size: 1.02rem;
}

.hero-lead {
  max-width: 47rem;
  margin: 1.35rem 0 0;
  color: rgba(247, 239, 224, 0.82);
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(241, 211, 140, 0.35);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

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

.button.primary,
.button:not(.secondary):not(.ghost) {
  color: #1b1008;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 18px 45px rgba(216, 168, 79, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(91, 29, 22, 0.75), rgba(216, 168, 79, 0.16));
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  max-width: 34rem;
  margin-top: clamp(2rem, 4vw, 4rem);
}

.hero-stats span {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(12px);
}

.hero-stats strong,
.hero-stats small {
  display: block;
}

.hero-stats strong {
  color: var(--gold-2);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1;
}

.hero-stats small {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-cover {
  justify-self: center;
  width: min(100%, 30rem);
  perspective: 1200px;
}

.cover-glow {
  position: absolute;
  inset: 10% 0 -4% 0;
  border-radius: 2rem;
  background: radial-gradient(circle, rgba(241, 211, 140, 0.32), rgba(91,29,22,0.18) 42%, transparent 68%);
  filter: blur(28px);
  animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; }
}

.hero-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 1px solid rgba(241, 211, 140, 0.22);
  border-radius: 1.65rem;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
  transform: rotateY(-7deg) rotateX(2deg);
}

.content-section {
  padding: clamp(3.5rem, 7vw, 7rem) clamp(1rem, 5vw, 5.8rem);
}

.section-head {
  max-width: 58rem;
  margin-bottom: clamp(1.8rem, 4vw, 3.2rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.partner-card,
.callout,
.quote-card,
.contact-card,
.excerpt-card,
.download-card,
.split-card,
.media-card,
.portrait-stack figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 246, 228, 0.1), rgba(255, 246, 228, 0.035));
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
  backdrop-filter: blur(16px);
}

.feature-card::before,
.download-card::before,
.video-frame::before,
.excerpt-card::before,
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.12) 46%, transparent 58%);
  transform: translateX(-120%);
  transition: 800ms ease;
  pointer-events: none;
}

.feature-card:hover::before,
.download-card:hover::before,
.video-frame:hover::before,
.excerpt-card:hover::before,
.contact-card:hover::before {
  transform: translateX(120%);
}

.feature-card {
  min-height: 17rem;
  padding: 1.35rem;
  border-radius: 1.5rem;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(241, 211, 140, 0.55);
  background: linear-gradient(145deg, rgba(255, 246, 228, 0.15), rgba(91, 29, 22, 0.18));
}

.feature-number {
  display: inline-flex;
  margin-bottom: 2.6rem;
  color: var(--gold-2);
  font-weight: 900;
  letter-spacing: 0.16em;
}

.feature-card p {
  margin: 1rem 0 0;
  color: rgba(247, 239, 224, 0.72);
  line-height: 1.62;
}

.split-section {
  padding-top: 1rem;
}

.split-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: 1.8rem;
}

.split-card img {
  width: 100%;
  height: 100%;
  max-height: 32rem;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 1.25rem;
}

.split-card div {
  padding: clamp(0.4rem, 2vw, 2rem);
}

.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  place-items: end start;
  padding: clamp(4rem, 7vw, 7rem) clamp(1rem, 5vw, 5.8rem) clamp(3rem, 5vw, 5rem);
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(17, 16, 14, 0.88), rgba(17, 16, 14, 0.44)),
    url('/images/cover-spread.webp') center/cover no-repeat;
}

.page-hero.compact {
  min-height: 34vh;
}

.grain {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(216,168,79,0.22), transparent 34rem);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 70rem;
}

.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
}

.page-lead {
  max-width: 56rem;
  margin-top: 1.25rem;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.45fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.text-block {
  max-width: 58rem;
}

.text-block p {
  margin: 0 0 1.15rem;
  font-size: clamp(1.02rem, 1.2vw, 1.16rem);
}

.media-card,
.quote-card {
  border-radius: 1.7rem;
  padding: 1rem;
}

.media-card img {
  width: 100%;
  border-radius: 1.15rem;
}

.media-caption,
.portrait-stack figcaption {
  padding: 0.85rem 0.25rem 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.portrait-stack {
  display: grid;
  gap: 1rem;
}

.portrait-stack figure {
  margin: 0;
  padding: 0.75rem;
  border-radius: 1.6rem;
}

.portrait-stack img {
  width: 100%;
  max-height: 22rem;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 1.1rem;
}

.callout,
.quote-card,
.contact-card {
  border-radius: 1.7rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.quote-card p {
  margin: 0;
  color: var(--gold-2);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
}

.excerpt-card {
  max-width: 58rem;
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 3rem);
  border-radius: 1.8rem;
}

.excerpt-card blockquote {
  margin: 0 0 2rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--gold-2);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.15;
}

.excerpt-text p {
  margin: 0 0 1.05rem;
  color: rgba(247, 239, 224, 0.82);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.read-more {
  margin-top: 1rem;
}

.video-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.45fr);
  gap: 1.5rem;
}

.video-frame {
  position: relative;
  min-height: 28rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  overflow: hidden;
  background: radial-gradient(circle at 30% 10%, rgba(216,168,79,0.16), transparent 22rem), #080706;
  box-shadow: 0 36px 100px rgba(0,0,0,0.35);
}

.video-frame video {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.76;
}

.video-fallback {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: rgba(11, 9, 7, 0.78);
  backdrop-filter: blur(18px);
}

.play-badge {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1c1108;
}

.video-fallback h3 {
  font-size: 1.55rem;
}

.video-fallback p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(8rem, 0.45fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  min-height: 26rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: 1.8rem;
}

.download-card > img,
.qr-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 1.2rem;
  -o-object-fit: cover;
     object-fit: cover;
  background: rgba(255,255,255,0.04);
}

.qr-wrap {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.qr-wrap img {
  width: 100%;
  height: auto;
  border-radius: 0.7rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.partner-card {
  border-radius: 1.6rem;
  padding: clamp(1.1rem, 2vw, 1.6rem);
}

.partner-card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.partner-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.partner-card li {
  margin-bottom: 0.65rem;
  color: rgba(247, 239, 224, 0.75);
}

.contact-card {
  max-width: 55rem;
  margin: 0 auto;
  text-align: center;
}

.contact-card a {
  display: inline-block;
  margin: 0.2rem 0 1.5rem;
  color: var(--gold-2);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  word-break: break-word;
}

.site-footer {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 5.8rem);
  border-top: 1px solid var(--line);
  background: rgba(6,5,4,0.8);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.3rem;
}

.footer-top h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.mail-link {
  color: var(--gold-2);
  font-weight: 800;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.reveal {
  animation: revealUp 700ms cubic-bezier(.2,.8,.2,1) both;
}

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

@media (max-width: 1080px) {
  .main-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    background: rgba(12, 10, 8, 0.95);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    border-radius: 0.9rem;
  }

  .menu-toggle {
    display: block;
  }

  .hero,
  .two-column-section,
  .video-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-cover {
    max-width: 24rem;
  }

  .feature-grid,
  .download-grid,
  .partners-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .brand-title {
    font-size: 0.9rem;
  }

  .brand-subtitle {
    display: none;
  }

  .site-header {
    padding: 0.8rem 1rem;
  }

  .hero,
  .content-section,
  .page-hero,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-stats,
  .feature-grid,
  .download-grid,
  .partners-grid,
  .split-card,
  .download-card {
    grid-template-columns: 1fr;
  }

  .hero-cover img {
    transform: none;
  }

  .download-card {
    min-height: auto;
  }

  .download-card > img,
  .qr-wrap {
    max-height: 24rem;
    aspect-ratio: 1 / 1;
  }

  .footer-top {
    align-items: start;
    flex-direction: column;
  }

  .video-frame,
  .video-frame video {
    min-height: 22rem;
  }

  .video-fallback {
    position: relative;
    inset: auto;
    margin: 1rem;
    align-items: start;
  }
}

/* Video library page */
.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.5fr);
  gap: 1.25rem;
  align-items: stretch;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  background:
    radial-gradient(circle at 18% 0%, rgba(216,168,79,0.14), transparent 18rem),
    linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
  box-shadow: 0 28px 80px rgba(0,0,0,0.22);
}

.video-card.featured {
  min-height: 34rem;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #090706;
  aspect-ratio: 16 / 9;
}

.video-card.featured .video-shell {
  aspect-ratio: 16 / 10;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.86;
}

.video-poster-note {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 9, 7, 0.75);
  color: var(--paper);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.video-poster-note .play-badge {
  width: 2rem;
  height: 2rem;
  font-size: 0.75rem;
}

.video-copy {
  padding: clamp(1rem, 2.3vw, 1.6rem);
}

.video-copy h2 {
  margin: 0.2rem 0 0.8rem;
  color: var(--gold-2);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.video-copy p:not(.eyebrow) {
  margin: 0;
  color: rgba(247, 239, 224, 0.76);
  line-height: 1.65;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1.1rem;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(247, 239, 224, 0.8);
  background: rgba(0,0,0,0.18);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.video-gallery .video-copy h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

@media (max-width: 980px) {
  .video-layout {
    grid-template-columns: 1fr;
  }

  .video-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .video-card.featured {
    min-height: auto;
  }

  .video-card.featured .video-shell,
  .video-shell {
    aspect-ratio: 16 / 10;
  }

  .video-poster-note {
    left: 0.75rem;
    bottom: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .video-meta {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Updated media experience */
.video-card.featured {
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
}

.video-shell {
  aspect-ratio: 16 / 9;
}

.video-card.featured .video-shell {
  aspect-ratio: 16 / 9;
}

.custom-player {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #070604;
}

.video-click-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.video-click-layer video {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.96;
}

.center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(4rem, 8vw, 6.5rem);
  height: clamp(4rem, 8vw, 6.5rem);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(241,211,140,0.96), rgba(216,168,79,0.88));
  color: #1b1008;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  box-shadow: 0 24px 70px rgba(0,0,0,0.45), 0 0 36px rgba(216,168,79,0.3);
  padding-left: 0.2rem;
}

.player-controls {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  grid-template-columns: auto minmax(10rem, 1fr) auto minmax(5.2rem, 0.22fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 1.2rem;
  background: rgba(7, 6, 4, 0.76);
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
  backdrop-filter: blur(18px) saturate(135%);
}

.control-button {
  min-height: 2.55rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(241,211,140,0.25);
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: 180ms ease;
  white-space: nowrap;
}

.control-button:hover {
  border-color: rgba(241,211,140,0.5);
  background: rgba(241,211,140,0.14);
}

.play-control {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1b1008;
}

.timeline-block {
  min-width: 0;
}

.timeline,
.volume-range {
  display: block;
  width: 100%;
  height: 0.42rem;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(90deg, var(--gold-2) 0 var(--progress, 0%), rgba(255,255,255,0.18) var(--progress, 0%) 100%);
  cursor: pointer;
}

.volume-range {
  --progress: 100%;
  background: linear-gradient(90deg, rgba(241,211,140,0.92), rgba(255,255,255,0.22));
}

.timeline::-webkit-slider-thumb,
.volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
          appearance: none;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid #21150d;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 18px rgba(216,168,79,0.45);
}

.timeline::-moz-range-thumb,
.volume-range::-moz-range-thumb {
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid #21150d;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 18px rgba(216,168,79,0.45);
}

.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.34rem;
  color: rgba(247,239,224,0.72);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.external-video-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  background: linear-gradient(140deg, rgba(255,246,228,0.11), rgba(255,246,228,0.045));
}

.external-video-visual img {
  width: 100%;
  height: 100%;
  min-height: 15rem;
  -o-object-fit: cover;
     object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
}

.reader-grid {
  display: grid;
  gap: 1.25rem;
}

.reader-intro {
  display: grid;
  grid-template-columns: minmax(10rem, 0.32fr) minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 1.9rem;
  background: linear-gradient(140deg, rgba(255,246,228,0.12), rgba(255,246,228,0.04));
}

.reader-intro > img {
  width: 100%;
  max-height: 24rem;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 1.2rem;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.38));
}

.reader-intro h2 {
  margin-bottom: 0.9rem;
}

.reader-intro p:not(.eyebrow) {
  max-width: 48rem;
  color: rgba(247,239,224,0.78);
  line-height: 1.75;
}

.qr-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(0,0,0,0.18);
  color: var(--muted);
  font-size: 0.9rem;
}

.qr-inline img {
  width: 4.3rem;
  height: 4.3rem;
  border-radius: 0.55rem;
  background: #fff;
}

.pdf-reader {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.9rem;
  background: linear-gradient(140deg, rgba(255,246,228,0.11), rgba(255,246,228,0.035));
  box-shadow: 0 28px 80px rgba(0,0,0,0.28);
}

.pdf-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7,6,4,0.48);
}

.pdf-toolbar h3 {
  color: var(--gold-2);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
}

.pdf-frame {
  width: 100%;
  height: min(82vh, 58rem);
  min-height: 34rem;
  border: 0;
  background: var(--paper);
}

@media (max-width: 980px) {
  .video-card.featured,
  .external-video-card,
  .reader-intro {
    grid-template-columns: 1fr;
  }

  .player-controls {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .volume-range,
  .fullscreen-control {
    display: none;
  }

  .pdf-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdf-frame {
    height: 75vh;
  }
}

@media (max-width: 620px) {
  .player-controls {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .control-button {
    width: 100%;
  }

  .time-row {
    font-size: 0.7rem;
  }

  .pdf-frame {
    height: 70vh;
    min-height: 30rem;
  }

  .qr-inline {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Production polish: media cards and embedded readers */
.video-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.video-gallery .external-video-card {
  grid-column: 1 / -1;
}

.custom-player.compact .player-controls {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: 1rem;
}

.custom-player.compact .volume-range {
  display: none;
}

.custom-player.compact .control-button {
  min-height: 2.35rem;
  padding: 0 0.72rem;
  font-size: 0.72rem;
}

.custom-player.compact .fullscreen-control {
  display: inline-flex;
}

.custom-player.compact .time-row {
  margin-top: 0.28rem;
  font-size: 0.68rem;
}

.pdf-reader {
  scroll-margin-top: 7rem;
}

.reader-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.pdf-description {
  max-width: 42rem;
  margin-top: 0.5rem;
  color: rgba(247, 239, 224, 0.68);
  font-size: 0.98rem;
  line-height: 1.6;
}

.pdf-stage {
  padding: clamp(0.45rem, 1.2vw, 0.85rem);
  background: radial-gradient(circle at top, rgba(241, 211, 140, 0.08), transparent 36%), rgba(0, 0, 0, 0.22);
}

.pdf-frame {
  display: block;
  height: min(78vh, 56rem);
  min-height: 38rem;
  border-radius: 1.05rem;
  background: #f6f1e7;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.reader-mobile-note {
  display: none;
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  color: rgba(247,239,224,0.66);
  font-size: 0.88rem;
  line-height: 1.55;
  border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .video-gallery {
    grid-template-columns: 1fr;
  }

  .external-video-card {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .video-card.featured,
  .video-card,
  .external-video-card,
  .pdf-reader,
  .reader-intro {
    border-radius: 1.25rem;
  }

  .video-card.featured .video-shell,
  .video-shell {
    aspect-ratio: 16 / 10;
  }

  .custom-player .player-controls,
  .custom-player.compact .player-controls {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.45rem;
    padding: 0.52rem;
  }

  .custom-player .volume-range,
  .custom-player .fullscreen-control,
  .custom-player.compact .volume-range,
  .custom-player.compact .fullscreen-control {
    display: none;
  }

  .custom-player .control-button,
  .custom-player.compact .control-button {
    width: auto;
    min-height: 2.2rem;
    padding: 0 0.58rem;
    font-size: 0.68rem;
  }

  .custom-player .time-row,
  .custom-player.compact .time-row {
    display: none;
  }

  .external-video-card {
    grid-template-columns: 1fr;
  }

  .external-video-visual img {
    min-height: 13rem;
    max-height: 18rem;
  }

  .reader-intro {
    gap: 1rem;
    padding: 1rem;
  }

  .reader-intro > img {
    max-height: 18rem;
  }

  .reader-actions-inline,
  .pdf-toolbar .button-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .pdf-toolbar .button-row {
    margin-top: 0.75rem;
  }

  .pdf-toolbar .button {
    width: 100%;
  }

  .pdf-stage {
    padding: 0.35rem;
  }

  .pdf-frame {
    height: 72svh;
    min-height: 26rem;
    border-radius: 0.85rem;
  }

  .reader-mobile-note {
    display: block;
  }
}

@media (max-width: 430px) {
  .custom-player .player-controls,
  .custom-player.compact .player-controls {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .custom-player .player-controls button:nth-of-type(2),
  .custom-player.compact .player-controls button:nth-of-type(2) {
    display: none;
  }

  .pdf-frame {
    height: 70svh;
    min-height: 23rem;
  }
}

/* Final video controls polish: YouTube-like layout with project styling */
.player-controls-youtube,
.custom-player.compact .player-controls-youtube {
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  padding: 1.15rem 1.15rem 0.95rem;
  border: 0;
  border-radius: 0;
  background: linear-gradient(to top, rgba(5, 4, 3, 0.9), rgba(5, 4, 3, 0.58) 55%, transparent);
  box-shadow: none;
  backdrop-filter: none;
}

.player-controls-youtube .timeline-main,
.custom-player.compact .player-controls-youtube .timeline-main {
  width: 100%;
  height: 0.28rem;
  background: linear-gradient(90deg, var(--gold-2) 0 var(--progress, 0%), rgba(255,255,255,0.32) var(--progress, 0%) 100%);
}

.player-controls-youtube .timeline-main::-webkit-slider-thumb,
.player-controls-youtube .volume-range-inline::-webkit-slider-thumb {
  width: 0.82rem;
  height: 0.82rem;
  border: 2px solid rgba(18, 12, 7, 0.95);
}

.player-controls-youtube .timeline-main::-moz-range-thumb,
.player-controls-youtube .volume-range-inline::-moz-range-thumb {
  width: 0.82rem;
  height: 0.82rem;
  border: 2px solid rgba(18, 12, 7, 0.95);
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
}

.icon-control,
.custom-player.compact .icon-control {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(241,211,140,0.22);
  border-radius: 999px;
  background: rgba(7, 6, 4, 0.58);
  color: var(--paper);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.icon-control:hover,
.custom-player.compact .icon-control:hover {
  transform: translateY(-1px);
  border-color: rgba(241,211,140,0.48);
  background: rgba(241,211,140,0.14);
}

.player-controls-youtube .play-control,
.custom-player.compact .player-controls-youtube .play-control {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1b1008;
}

.time-compact {
  flex: 0 1 auto;
  min-width: 5.2rem;
  color: rgba(247,239,224,0.82);
  font-size: 0.77rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.controls-spacer {
  flex: 1 1 auto;
  min-width: 0.25rem;
}

.volume-group {
  display: flex;
  align-items: center;
  gap: 0.46rem;
  min-width: 0;
}

.player-controls-youtube .volume-range-inline,
.custom-player.compact .player-controls-youtube .volume-range-inline {
  display: block;
  width: clamp(4.8rem, 8vw, 7.5rem);
  height: 0.28rem;
  background: linear-gradient(90deg, var(--gold-2) 0 var(--progress, 0%), rgba(255,255,255,0.28) var(--progress, 0%) 100%);
}

.custom-player:fullscreen {
  border-radius: 0;
  background: #000;
}

.custom-player:fullscreen .video-click-layer video {
  -o-object-fit: contain;
     object-fit: contain;
  opacity: 1;
}

.custom-player:fullscreen .player-controls-youtube {
  padding: 1.25rem clamp(1rem, 2.5vw, 2rem) 1rem;
}

@media (max-width: 760px) {
  .player-controls-youtube,
  .custom-player.compact .player-controls-youtube {
    left: 0;
    right: 0;
    bottom: 0;
    grid-template-columns: none;
    gap: 0.34rem;
    padding: 0.85rem 0.72rem 0.7rem;
  }

  .controls-row {
    gap: 0.42rem;
  }

  .icon-control,
  .custom-player.compact .icon-control {
    width: 2.18rem;
    height: 2.18rem;
    min-height: 2.18rem;
    font-size: 0.88rem;
  }

  .time-compact {
    min-width: 4.4rem;
    font-size: 0.68rem;
  }

  .player-controls-youtube .volume-range-inline,
  .custom-player.compact .player-controls-youtube .volume-range-inline {
    display: none;
  }

  .volume-group {
    gap: 0;
  }

  .custom-player .fullscreen-control,
  .custom-player.compact .fullscreen-control {
    display: inline-grid;
  }
}

@media (max-width: 430px) {
  .controls-row {
    gap: 0.32rem;
  }

  .icon-control,
  .custom-player.compact .icon-control {
    width: 2rem;
    height: 2rem;
    min-height: 2rem;
    font-size: 0.78rem;
  }

  .time-compact {
    min-width: auto;
    max-width: 5.6rem;
    overflow: hidden;
    font-size: 0.64rem;
    text-overflow: clip;
  }

  .player-controls-youtube .player-controls button:nth-of-type(2),
  .custom-player.compact .player-controls-youtube button:nth-of-type(2) {
    display: inline-grid;
  }
}


/* Video controls final pass: YouTube-like placement, clean SVG icons */
.icon-control svg,
.center-play svg {
  width: 1.12rem;
  height: 1.12rem;
  display: block;
  fill: currentColor;
}

.center-play svg {
  width: 1.85rem;
  height: 1.85rem;
  transform: translateX(0.08rem);
}

.player-controls-youtube,
.custom-player.compact .player-controls-youtube {
  padding: 1.1rem 1.05rem 0.9rem;
  gap: 0.55rem;
  background: linear-gradient(to top, rgba(5, 4, 3, 0.94), rgba(5, 4, 3, 0.58) 56%, rgba(5, 4, 3, 0));
}

.player-controls-youtube .timeline-main,
.custom-player.compact .player-controls-youtube .timeline-main {
  height: 0.24rem;
  cursor: pointer;
}

.player-controls-youtube .timeline-main:hover,
.custom-player.compact .player-controls-youtube .timeline-main:hover {
  height: 0.34rem;
}

.controls-row {
  justify-content: flex-start;
  gap: 0.48rem;
  width: 100%;
}

.icon-control,
.custom-player.compact .icon-control {
  width: 2.15rem;
  height: 2.15rem;
  min-height: 2.15rem;
  border: 0;
  background: rgba(0, 0, 0, 0.08);
  color: rgba(255, 248, 232, 0.92);
  box-shadow: none;
}

.icon-control:hover,
.custom-player.compact .icon-control:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-2);
}

.player-controls-youtube .play-control,
.custom-player.compact .player-controls-youtube .play-control {
  background: transparent;
  color: var(--gold-2);
}

.player-controls-youtube .play-control:hover,
.custom-player.compact .player-controls-youtube .play-control:hover {
  background: rgba(241, 211, 140, 0.14);
  color: var(--gold-2);
}

.volume-group {
  flex: 0 0 auto;
  gap: 0.28rem;
}

.volume-control {
  color: rgba(255, 248, 232, 0.92);
}

.player-controls-youtube .volume-range-inline,
.custom-player.compact .player-controls-youtube .volume-range-inline {
  width: clamp(4.2rem, 6.4vw, 6.4rem);
  height: 0.24rem;
}

.time-compact {
  min-width: 5.6rem;
  margin-left: 0.1rem;
  color: rgba(255, 248, 232, 0.9);
  font-size: 0.76rem;
  font-weight: 600;
}

.controls-spacer {
  flex: 1 1 auto;
}

.fullscreen-control {
  margin-left: auto;
}

.custom-player:fullscreen .player-controls-youtube,
.custom-player:-webkit-full-screen .player-controls-youtube {
  padding: 1.25rem clamp(1rem, 2.5vw, 2rem) 1rem;
}

/* Moscow 24 card final placement */
.external-video-card {
  grid-template-columns: minmax(18rem, 0.62fr) minmax(0, 1fr);
  min-height: 24rem;
}

.external-video-card .video-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.15rem, 3vw, 2rem);
}

.external-video-card .video-copy p:not(.eyebrow) {
  max-width: 34rem;
}

.external-actions {
  margin-top: 1.35rem;
}

.external-actions .button {
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.external-video-visual img {
  height: 100%;
  min-height: 24rem;
  max-height: 32rem;
  -o-object-position: center;
     object-position: center;
}

@media (max-width: 760px) {
  .player-controls-youtube,
  .custom-player.compact .player-controls-youtube {
    padding: 0.9rem 0.7rem 0.68rem;
    gap: 0.42rem;
  }

  .controls-row {
    gap: 0.28rem;
  }

  .icon-control,
  .custom-player.compact .icon-control {
    width: 2rem;
    height: 2rem;
    min-height: 2rem;
  }

  .icon-control svg,
  .custom-player.compact .icon-control svg {
    width: 1rem;
    height: 1rem;
  }

  .player-controls-youtube .volume-range-inline,
  .custom-player.compact .player-controls-youtube .volume-range-inline {
    display: none;
  }

  .volume-group {
    gap: 0;
  }

  .time-compact {
    min-width: 4.8rem;
    margin-left: 0;
    font-size: 0.68rem;
  }

  .external-video-card {
    min-height: 0;
  }

  .external-video-card .video-copy {
    padding: 1.1rem;
  }

  .external-actions .button {
    width: 100%;
  }

  .external-video-visual img {
    min-height: 14rem;
    max-height: 19rem;
  }
}

@media (max-width: 430px) {
  .player-controls-youtube,
  .custom-player.compact .player-controls-youtube {
    padding-inline: 0.55rem;
  }

  .controls-row {
    gap: 0.18rem;
  }

  .icon-control,
  .custom-player.compact .icon-control {
    width: 1.82rem;
    height: 1.82rem;
    min-height: 1.82rem;
  }

  .time-compact {
    max-width: none;
    min-width: 4.25rem;
    font-size: 0.62rem;
  }
}

/* Final responsive fixes: video controls and Moscow 24 cards */
.author-m24-card {
  display: grid;
  grid-template-columns: minmax(18rem, 0.55fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.9rem;
  background:
    radial-gradient(circle at 18% 0%, rgba(216,168,79,0.14), transparent 18rem),
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
  box-shadow: 0 28px 80px rgba(0,0,0,0.22);
}

.author-m24-image {
  min-width: 0;
  min-height: 18rem;
  background: #080604;
}

.author-m24-image img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  filter: saturate(0.86) contrast(1.04);
}

.author-m24-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.95rem;
  padding: clamp(1.25rem, 3vw, 2.3rem);
}

.author-m24-copy h3 {
  max-width: 40rem;
  color: var(--gold-2);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.author-m24-copy p:not(.eyebrow) {
  max-width: 42rem;
  margin: 0;
  color: rgba(247,239,224,0.76);
  font-size: 1rem;
  line-height: 1.7;
}

.author-m24-copy .button {
  margin-top: 0.35rem;
}

.external-video-card {
  display: grid !important;
  grid-template-columns: minmax(20rem, 0.72fr) minmax(0, 1fr) !important;
  align-items: stretch;
  min-height: 22rem;
}

.external-video-card .video-copy {
  min-width: 0;
  align-items: flex-start;
}

.external-video-card .video-copy h2 {
  max-width: 34rem;
}

.external-video-card .video-copy p:not(.eyebrow) {
  max-width: 38rem;
}

.external-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding-inline: 1.15rem;
  line-height: 1.15;
}

/* Override old mobile rules that hid or squeezed video controls. */
.player-controls-youtube,
.custom-player.compact .player-controls-youtube {
  display: flex !important;
  flex-direction: column !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  padding: 1.05rem 1rem 0.82rem !important;
}

.controls-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 0.48rem !important;
}

.icon-control,
.custom-player.compact .icon-control,
.fullscreen-control,
.custom-player.compact .fullscreen-control {
  display: inline-grid !important;
  flex: 0 0 auto !important;
}

.fullscreen-control {
  margin-left: auto !important;
}

.time-compact {
  flex: 0 0 auto !important;
}

@media (max-width: 760px) {
  .external-video-card {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: column !important;
    min-height: 0 !important;
    border-radius: 1.25rem;
  }

  .external-video-visual {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .external-video-visual img {
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 10;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
  }

  .external-video-card .video-copy {
    display: block !important;
    width: 100%;
    min-width: 0;
    padding: 1.1rem !important;
  }

  .external-video-card .video-copy h2 {
    max-width: none;
    font-size: clamp(1.55rem, 8vw, 2.1rem);
    line-height: 1.02;
  }

  .external-video-card .video-copy p:not(.eyebrow) {
    max-width: none;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .external-actions {
    margin-top: 1rem !important;
  }

  .external-actions .button {
    width: 100% !important;
    min-height: 3rem;
    padding: 0.9rem 1rem;
    white-space: normal;
  }

  .author-m24-card {
    grid-template-columns: 1fr;
    border-radius: 1.25rem;
  }

  .author-m24-image {
    min-height: 0;
  }

  .author-m24-image img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .author-m24-copy {
    padding: 1.15rem;
  }

  .author-m24-copy h3 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
  }

  .author-m24-copy .button {
    width: 100%;
    justify-content: center;
  }

  .player-controls-youtube,
  .custom-player.compact .player-controls-youtube {
    padding: 0.72rem 0.58rem 0.58rem !important;
    gap: 0.34rem !important;
  }

  .player-controls-youtube .timeline-main,
  .custom-player.compact .player-controls-youtube .timeline-main {
    height: 0.22rem;
  }

  .controls-row {
    gap: 0.28rem !important;
  }

  .icon-control,
  .custom-player.compact .icon-control {
    width: 2.05rem !important;
    height: 2.05rem !important;
    min-height: 2.05rem !important;
  }

  .icon-control svg,
  .custom-player.compact .icon-control svg {
    width: 1rem !important;
    height: 1rem !important;
  }

  .player-controls-youtube .volume-range-inline,
  .custom-player.compact .player-controls-youtube .volume-range-inline {
    display: none !important;
  }

  .volume-group {
    flex: 0 0 auto;
    gap: 0 !important;
  }

  .time-compact {
    min-width: 4.65rem !important;
    max-width: 4.65rem !important;
    margin-left: 0 !important;
    overflow: hidden;
    font-size: 0.66rem !important;
    text-align: left;
    white-space: nowrap;
  }

  .controls-spacer {
    flex: 1 1 auto !important;
    min-width: 0.1rem !important;
  }
}

@media (max-width: 430px) {
  .player-controls-youtube,
  .custom-player.compact .player-controls-youtube {
    padding-inline: 0.48rem !important;
  }

  .controls-row {
    gap: 0.22rem !important;
  }

  .icon-control,
  .custom-player.compact .icon-control {
    width: 1.95rem !important;
    height: 1.95rem !important;
    min-height: 1.95rem !important;
  }

  .volume-group {
    display: flex !important;
    flex: 0 0 auto !important;
  }

  .volume-control {
    display: inline-grid !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .time-compact {
    min-width: 4.55rem !important;
    max-width: 4.55rem !important;
    font-size: 0.64rem !important;
  }
}

@media (max-width: 360px) {
  .time-compact {
    min-width: 3.55rem !important;
    max-width: 3.55rem !important;
  }
}

/* Interactive book reader */
.book-reader {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.9rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(241, 211, 140, 0.12), transparent 36%),
    linear-gradient(140deg, rgba(255,246,228,0.10), rgba(255,246,228,0.035));
  box-shadow: 0 28px 80px rgba(0,0,0,0.3);
  scroll-margin-top: 7rem;
}

.book-reader-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7,6,4,0.56);
}

.book-reader-title {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-width: 0;
}

.book-reader-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid rgba(241,211,140,0.32);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(241,211,140,0.08);
}

.book-reader-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.book-reader-toolbar h3 {
  color: var(--gold-2);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
}


.reader-stage-exit {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 18;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  min-height: 2.35rem;
  padding: 0 0.86rem;
  border: 1px solid rgba(241,211,140,0.36);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(7,6,4,0.82);
  box-shadow: 0 14px 36px rgba(0,0,0,0.34);
  backdrop-filter: blur(16px);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.reader-stage-exit:hover {
  transform: translateY(-1px);
  background: rgba(86, 44, 25, 0.9);
  border-color: rgba(241,211,140,0.54);
}

.reader-stage-exit span:first-child {
  position: relative;
  top: -0.04rem;
  font-size: 1.2rem;
  line-height: 1;
}

.book-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(74vh, 58rem);
  padding: clamp(1rem, 2vw, 2rem) clamp(3.2rem, 6vw, 5.2rem);
  background:
    radial-gradient(circle at center, rgba(241, 211, 140, 0.09), transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.34));
  touch-action: pan-y;
}

.book-spread {
  position: relative;
  display: grid;
  width: min(100%, 76rem);
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.48));
}

.book-spread.double {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}

.book-spread.single {
  width: min(100%, 33rem);
  grid-template-columns: 1fr;
}

.book-spread.double::after {
  content: '';
  position: absolute;
  inset-block: 1.2%;
  left: 50%;
  width: 1.2rem;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0,0,0,0.20), rgba(255,255,255,0.16), rgba(0,0,0,0.22));
  opacity: 0.55;
  pointer-events: none;
  z-index: 3;
}

.book-page {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  background: #f7f2e8;
  overflow: hidden;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.book-page.left {
  border-radius: 0.8rem 0.16rem 0.16rem 0.8rem;
}

.book-page.right {
  border-radius: 0.16rem 0.8rem 0.8rem 0.16rem;
}

.book-spread.single .book-page {
  border-radius: 0.95rem;
}

.book-page img {
  display: block;
  width: 100%;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  background: #f7f2e8;
}

.book-page-number {
  position: absolute;
  right: 0.85rem;
  bottom: 0.7rem;
  display: none;
  color: rgba(35, 28, 17, 0.5);
  font-size: 0.75rem;
}

.book-nav-button {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(241,211,140,0.34);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(7,6,4,0.74);
  box-shadow: 0 16px 42px rgba(0,0,0,0.28);
  transform: translateY(-50%);
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.book-nav-button:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.04);
  background: rgba(86, 44, 25, 0.86);
}

.book-nav-button:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.book-nav-button.prev {
  left: clamp(0.8rem, 1.6vw, 1.6rem);
}

.book-nav-button.next {
  right: clamp(0.8rem, 1.6vw, 1.6rem);
}

.book-nav-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.book-reader-controls {
  display: grid;
  grid-template-columns: auto minmax(8rem, 1fr) auto auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem clamp(1rem, 2vw, 1.35rem) 1.1rem;
  border-top: 1px solid var(--line);
  background: rgba(7,6,4,0.62);
}

.book-progress-copy {
  color: rgba(247,239,224,0.78);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.book-page-range {
  width: 100%;
  accent-color: var(--gold-2);
}

.book-page-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(247,239,224,0.72);
  font-size: 0.85rem;
  font-weight: 800;
}

.book-page-form input {
  width: 4.2rem;
  border: 1px solid rgba(241,211,140,0.24);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  color: var(--paper);
  background: rgba(255,255,255,0.07);
  outline: none;
  text-align: center;
}

.book-page-form button,
.book-fullscreen-button {
  min-height: 2.35rem;
  border: 1px solid rgba(241,211,140,0.30);
  border-radius: 999px;
  padding: 0 0.9rem;
  color: var(--gold-2);
  background: rgba(241,211,140,0.08);
  font-weight: 900;
  transition: background 180ms ease, transform 180ms ease;
}

.book-page-form button:hover,
.book-fullscreen-button:hover {
  transform: translateY(-1px);
  background: rgba(241,211,140,0.14);
}

.book-note {
  display: block;
}

.book-reader:fullscreen .book-page img,
.book-reader:-webkit-full-screen .book-page img {
  max-height: calc(100vh - 14rem);
  width: auto;
  max-width: 100%;
}

@media (max-width: 980px) {
  .book-reader-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .book-official-actions {
    width: 100%;
  }

  .book-official-actions .button {
    justify-content: center;
  }

  .book-reader-controls {
    grid-template-columns: 1fr auto;
  }

  .book-page-range {
    grid-column: 1 / -1;
    order: -1;
  }

  .book-progress-copy {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .reader-stage-exit {
    display: inline-flex;
    top: 0.75rem;
    right: 0.75rem;
    min-height: 2.15rem;
    padding: 0 0.72rem;
    font-size: 0.76rem;
  }

  .book-reader {
    border-radius: 1.25rem;
  }

  .book-reader-title {
    gap: 0.72rem;
  }

  .book-reader-icon {
    width: 2.45rem;
    height: 2.45rem;
  }

  .book-stage {
    min-height: auto;
    padding: 3.05rem 0.7rem 1rem;
  }

  .book-spread.single {
    width: min(100%, 28rem);
  }

  .book-page {
    border-radius: 0.85rem !important;
  }

  .book-page-number {
    display: inline;
  }

  .book-nav-button {
    top: auto;
    bottom: 1.05rem;
    width: 2.65rem;
    height: 2.65rem;
    background: rgba(7,6,4,0.68);
    transform: none;
  }

  .book-nav-button:hover:not(:disabled) {
    transform: scale(1.03);
  }

  .book-nav-button.prev {
    left: 1rem;
  }

  .book-nav-button.next {
    right: 1rem;
  }

  .book-reader-controls {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .book-page-form {
    justify-content: space-between;
    width: 100%;
  }

  .book-page-form input {
    width: 5.2rem;
  }

  .book-fullscreen-button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .book-reader-toolbar h3 {
    font-size: 1.7rem;
  }

  .book-reader-toolbar,
  .book-reader-controls {
    padding-inline: 0.85rem;
  }

  .book-stage {
    padding-inline: 0.5rem;
  }

  .book-spread.single {
    width: 100%;
  }

  .book-nav-button {
    bottom: 0.8rem;
    width: 2.35rem;
    height: 2.35rem;
  }

  .book-nav-button.prev {
    left: 0.75rem;
  }

  .book-nav-button.next {
    right: 0.75rem;
  }
}

/* Production book/photo readers */
body.reader-lock {
  overflow: hidden;
  overscroll-behavior: contain;
}

.book-reader.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  border: 0;
  border-radius: 0;
  background: radial-gradient(circle at center, rgba(76, 40, 21, 0.55), #080604 66%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.book-reader.is-fullscreen .book-reader-toolbar {
  padding-block: 0.78rem;
  background: rgba(7,6,4,0.86);
}

.book-reader.is-fullscreen .book-official-actions,
.book-reader.is-fullscreen .pdf-description,
.book-reader.is-fullscreen .book-note {
  display: none;
}

.book-reader.is-fullscreen .book-stage {
  min-height: 0;
  height: auto;
  padding: clamp(0.75rem, 2vw, 1.4rem) clamp(3rem, 5vw, 4.4rem);
  overflow: hidden;
}

.book-reader.is-fullscreen .book-spread {
  width: min(100%, 86rem);
  height: 100%;
  align-items: center;
}

.book-reader.is-fullscreen .book-spread.single {
  width: min(100%, 38rem);
}

.book-reader.is-fullscreen .book-page {
  height: 100%;
  max-height: 100%;
  background: transparent;
}

.book-reader.is-fullscreen .book-page img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}


.book-reader.is-fullscreen .reader-stage-exit {
  display: inline-flex;
}

.book-reader.is-fullscreen .book-reader-controls {
  padding-block: 0.75rem;
  background: rgba(7,6,4,0.86);
}

@media (max-width: 820px) {
  .book-reader.is-fullscreen {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .book-reader.is-fullscreen .book-reader-toolbar {
    padding: 0.72rem 0.82rem;
  }

  .book-reader.is-fullscreen .book-reader-icon,
  .book-reader.is-fullscreen .book-reader-title .eyebrow {
    display: none;
  }

  .book-reader.is-fullscreen .book-reader-title {
    gap: 0;
  }

  .book-reader.is-fullscreen .book-reader-toolbar h3 {
    font-size: 1.16rem;
    line-height: 1.04;
  }


  .book-reader.is-fullscreen .reader-stage-exit {
    top: calc(0.55rem + env(safe-area-inset-top));
    right: 0.7rem;
    min-height: 2.2rem;
    padding-inline: 0.74rem;
    background: rgba(7,6,4,0.88);
  }

  .book-reader.is-fullscreen .book-stage {
    padding: 3.0rem 0.45rem 0.7rem;
    min-height: 0;
    height: auto;
  }

  .book-reader.is-fullscreen .book-spread.single {
    width: 100%;
    height: 100%;
  }

  .book-reader.is-fullscreen .book-page {
    height: 100%;
  }

  .book-reader.is-fullscreen .book-page img {
    max-height: 100%;
    max-width: 100%;
  }

  .book-reader.is-fullscreen .book-nav-button {
    bottom: 1rem;
    width: 2.55rem;
    height: 2.55rem;
    background: rgba(7,6,4,0.76);
  }

  .book-reader.is-fullscreen .book-reader-controls {
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
    padding: 0.66rem 0.78rem calc(0.66rem + env(safe-area-inset-bottom));
  }

  .book-reader.is-fullscreen .book-page-range {
    grid-column: 1 / -1;
    order: -1;
  }

  .book-reader.is-fullscreen .book-progress-copy {
    font-size: 0.78rem;
  }

  .book-reader.is-fullscreen .book-page-form {
    display: none;
  }

  .book-reader.is-fullscreen .book-fullscreen-button {
    width: auto;
    min-width: 6.9rem;
    min-height: 2.15rem;
    padding-inline: 0.75rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 430px) {
  .book-reader.is-fullscreen .book-reader-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .book-reader.is-fullscreen .book-progress-copy {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ========================================================================== */
/* ТЗ 07.07.2026: точечные визуальные правки без изменения плееров и читалок */
/* ========================================================================== */

.brand-mark {
  display: none;
}

.site-header {
  padding-top: 0.78rem;
  padding-bottom: 0.78rem;
}

.brand {
  max-width: 18rem;
}

.main-nav {
  justify-content: flex-end;
  min-width: 0;
}

.main-nav a,
.footer-nav a {
  padding: 0.62rem 0.7rem;
  font-size: 0.73rem;
  line-height: 1.25;
  text-align: center;
}

/* Главная: одна обложка, пять предусмотренных ТЗ переходов, один экран desktop */
.home-tz {
  position: relative;
  display: grid;
  grid-template-columns: minmax(24rem, 0.92fr) minmax(32rem, 1.08fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 4rem);
  min-height: calc(100vh - 69px);
  padding: clamp(1.25rem, 2.4vw, 2.6rem) clamp(1rem, 4vw, 4.8rem);
  overflow: hidden;
}

.home-tz::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 46%, rgba(216, 168, 79, 0.17), transparent 34rem),
    linear-gradient(120deg, rgba(91, 29, 22, 0.13), transparent 48%);
  pointer-events: none;
}

.home-cover,
.home-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.home-cover {
  display: grid;
  place-items: center;
}

.home-cover img {
  position: relative;
  z-index: 1;
  width: min(100%, 50rem);
  max-height: calc(100vh - 7.4rem);
  -o-object-fit: contain;
     object-fit: contain;
  border: 1px solid rgba(241, 211, 140, 0.25);
  border-radius: clamp(1rem, 1.5vw, 1.7rem);
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.48);
}

.home-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-height: calc(100vh - 6rem);
}

.home-content h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 4.8vw, 5.9rem);
  line-height: 0.92;
  text-wrap: initial;
}

.home-content h1 span {
  display: block;
  white-space: nowrap;
}

.home-content h1 span:last-child {
  margin-top: 0.08em;
}

.home-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: clamp(1rem, 2vh, 1.8rem);
}

.home-link-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 5.35rem;
  padding: 0.78rem 0.9rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  background: linear-gradient(145deg, rgba(255, 246, 228, 0.09), rgba(255, 246, 228, 0.025));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.14);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.home-link-card:last-child {
  grid-column: 1 / -1;
}

.home-link-card:hover,
.home-link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(241, 211, 140, 0.5);
  background: linear-gradient(145deg, rgba(255, 246, 228, 0.13), rgba(91, 29, 22, 0.16));
}

.home-link-number {
  align-self: start;
  color: var(--gold-2);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.home-link-copy {
  min-width: 0;
}

.home-link-copy strong,
.home-link-copy span {
  display: block;
}

.home-link-copy strong {
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.15rem, 1.35vw, 1.55rem);
  line-height: 1;
}

.home-link-copy span {
  display: -webkit-box;
  margin-top: 0.38rem;
  overflow: hidden;
  color: rgba(247, 239, 224, 0.67);
  font-size: clamp(0.68rem, 0.72vw, 0.78rem);
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-link-card:last-child .home-link-copy span {
  -webkit-line-clamp: 1;
}

.home-link-arrow {
  color: var(--gold-2);
  font-size: 1.2rem;
}

/* Внутренние страницы */
.book-cover-full img {
  width: 100%;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  background: rgba(0, 0, 0, 0.16);
}

.author-intro-layout,
.author-president-layout,
.cherkashin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.43fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.author-copy-flow {
  min-width: 0;
}

.author-wide-photo,
.author-feature-photo,
.author-president-gallery figure,
.cherkashin-portrait-card,
.awards-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 1.65rem;
  background: linear-gradient(145deg, rgba(255, 246, 228, 0.1), rgba(255, 246, 228, 0.035));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
}

.author-wide-photo {
  display: grid;
  grid-template-columns: minmax(12rem, 0.38fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
  margin: 1.5rem 0;
  padding: 0.9rem;
}

.author-wide-photo img {
  width: 100%;
  max-height: 31rem;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 1.05rem;
  background: rgba(0, 0, 0, 0.22);
}

.author-wide-photo figcaption,
.author-feature-photo figcaption,
.author-president-gallery figcaption {
  padding: 0.9rem 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.author-feature-photo {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0.9rem;
}

.author-feature-photo img {
  width: 100%;
  max-height: 46rem;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 1.15rem;
  background: rgba(0, 0, 0, 0.2);
}

.author-president-layout {
  grid-template-columns: minmax(20rem, 0.65fr) minmax(0, 1fr);
  margin-bottom: 2.2rem;
}

.author-president-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.author-president-gallery figure {
  padding: 0.75rem;
}

.author-president-gallery img {
  width: 100%;
  height: 23rem;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 1.05rem;
  background: rgba(0, 0, 0, 0.2);
}

.cherkashin-layout {
  grid-template-columns: minmax(17rem, 0.38fr) minmax(0, 1fr);
}

.cherkashin-portrait-card {
  padding: 0.8rem;
}

.cherkashin-portrait-card img {
  width: 100%;
  max-height: 40rem;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 1.05rem;
  background: rgba(0, 0, 0, 0.2);
}

.awards-card {
  margin-top: 1.5rem;
  padding: clamp(1.2rem, 2vw, 1.8rem);
}

.awards-card h3 {
  margin-bottom: 1rem;
}

.awards-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.awards-card li {
  margin-bottom: 0.75rem;
  color: rgba(247, 239, 224, 0.78);
  line-height: 1.65;
}

.conversation-photo {
  margin-top: 2rem;
}

.single-video-layout {
  display: block;
}

.single-video-layout .video-card {
  max-width: 84rem;
  margin: 0 auto;
}

.qr-download-card {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(24rem, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 75% 25%, rgba(216, 168, 79, 0.16), transparent 23rem),
    linear-gradient(145deg, rgba(255, 246, 228, 0.1), rgba(255, 246, 228, 0.035));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.qr-download-copy h2 {
  font-size: clamp(3rem, 6vw, 6rem);
}

.qr-download-copy p:not(.eyebrow) {
  color: rgba(247, 239, 224, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
}

.qr-download-image {
  overflow: hidden;
  border-radius: 1.35rem;
  background: #fff;
}

.qr-download-image img {
  width: 100%;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.contact-signature {
  margin-top: 1.2rem;
  color: var(--gold-2) !important;
  font-weight: 700;
}

.site-footer {
  padding-top: 1.45rem;
  padding-bottom: 1.45rem;
}

.footer-nav {
  justify-content: center;
}

/* Полные подписи и длинные пункты не должны ломать узкие экраны */
@media (max-width: 1480px) {
  .main-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    background: rgba(12, 10, 8, 0.97);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    border-radius: 0.9rem;
    font-size: 0.86rem;
    text-align: left;
  }

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

@media (max-width: 1100px) {
  .home-tz {
    grid-template-columns: minmax(18rem, 0.82fr) minmax(28rem, 1.18fr);
    min-height: auto;
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
  }

  .home-cover img,
  .home-content {
    max-height: none;
  }

  .home-content h1 {
    font-size: clamp(3.3rem, 7vw, 5.5rem);
  }

  .author-intro-layout,
  .author-president-layout,
  .cherkashin-layout,
  .qr-download-card {
    grid-template-columns: 1fr;
  }

  .book-cover-full {
    max-width: 48rem;
    margin: 0 auto;
  }

  .cherkashin-portrait-card {
    max-width: 26rem;
  }
}

@media (max-width: 760px) {
  .brand {
    min-width: 0;
  }

  .home-tz {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.4rem;
    min-height: auto;
    padding: 1.35rem 1rem 2.4rem;
    overflow: visible;
  }

  .home-cover {
    order: 2;
  }

  .home-content {
    order: 1;
  }

  .home-content h1 {
    max-width: 100%;
    font-size: clamp(2.8rem, 15vw, 5.1rem);
  }

  .home-links {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .home-link-card,
  .home-link-card:last-child {
    grid-column: auto;
    min-height: 5.8rem;
    padding: 0.9rem;
  }

  .home-link-copy strong {
    font-size: 1.35rem;
  }

  .home-link-copy span,
  .home-link-card:last-child .home-link-copy span {
    font-size: 0.76rem;
    -webkit-line-clamp: 3;
  }

  .home-cover img {
    width: 100%;
    max-height: none;
    border-radius: 1.15rem;
  }

  .author-wide-photo,
  .author-president-gallery {
    grid-template-columns: 1fr;
  }

  .author-wide-photo {
    gap: 0.2rem;
  }

  .author-wide-photo img,
  .author-feature-photo img,
  .author-president-gallery img {
    height: auto;
    max-height: none;
  }

  .author-m24-card {
    grid-template-columns: 1fr;
  }

  .author-m24-image {
    min-height: 17rem;
  }

  .qr-download-card {
    gap: 1rem;
    padding: 1rem;
    border-radius: 1.35rem;
  }

  .qr-download-copy h2 {
    font-size: 3.4rem;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-nav a {
    padding: 0.72rem 0.85rem;
    border-radius: 0.8rem;
    font-size: 0.8rem;
    text-align: left;
  }
}

@media (min-width: 1500px) and (min-height: 780px) {
  .home-tz + .site-footer {
    margin-top: 0;
  }
}

@media (max-height: 760px) and (min-width: 1101px) {
  .home-tz {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .home-content h1 {
    font-size: clamp(3rem, 4.8vw, 5.4rem);
  }

  .home-links {
    margin-top: 0.85rem;
  }

  .home-link-card {
    min-height: 4.55rem;
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
  }

  .home-link-copy span {
    -webkit-line-clamp: 1;
  }
}

/* Главная вместе с верхней и нижней навигацией укладывается в 1080px. */
@media (min-width: 1101px) and (min-height: 760px) {
  .home-tz {
    min-height: calc(100vh - 154px);
  }
}

.author-copy-main {
  max-width: 74rem;
}

.qr-only-card {
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  background: rgba(255, 246, 228, 0.07);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.qr-only-card img {
  width: 100%;
  height: auto;
  border-radius: 1.15rem;
}

@media (max-width: 760px) {
  .qr-only-card {
    padding: 0.55rem;
    border-radius: 1.15rem;
  }

  .qr-only-card img {
    border-radius: 0.8rem;
  }
}

/* ======================================================================
   ТЗ 20.07.2026 — актуальная компоновка.
   Предыдущие стили оставлены выше; этот блок только переопределяет их.
   ====================================================================== */

.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;
}

.site-header {
  display: block;
  padding: 0.55rem clamp(0.75rem, 2vw, 2rem) 0.7rem;
}

.header-row {
  display: flex;
  min-height: 2.1rem;
  align-items: center;
  justify-content: space-between;
}

.brand-placeholder {
  display: block;
  width: clamp(6rem, 12vw, 11rem);
  min-height: 2rem;
}

.future-logo-slot {
  display: block;
  width: 100%;
  height: 100%;
}

.main-nav,
.footer-nav {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: stretch;
}

.main-nav a,
.footer-nav a {
  display: grid;
  place-items: center;
  min-height: 3.15rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font-size: clamp(0.66rem, 0.76vw, 0.82rem);
  line-height: 1.2;
  text-align: center;
}

.site-footer {
  width: 100%;
  padding: 0.7rem clamp(0.75rem, 2vw, 2rem) 0.9rem;
}

.page-hero,
.page-hero.compact {
  min-height: 0;
  padding: clamp(1.1rem, 2.3vw, 2rem) clamp(1rem, 4vw, 4.5rem);
  background:
    linear-gradient(100deg, rgba(91, 29, 22, 0.74), rgba(29, 20, 12, 0.94) 46%, rgba(122, 83, 34, 0.4));
  border-bottom: 1px solid var(--line);
}

.page-hero::after,
.page-hero .grain {
  display: none;
}

.page-hero-inner {
  width: min(100%, 86rem);
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(1.9rem, 4.2vw, 4.1rem);
  line-height: 0.98;
  text-wrap: balance;
}

.page-lead {
  max-width: 64rem;
  margin-top: 0.8rem;
  font-size: clamp(0.92rem, 1.3vw, 1.08rem);
  line-height: 1.5;
}

.content-section {
  width: min(100%, 92rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 2.8vw, 2.5rem) clamp(1rem, 4vw, 4.5rem);
}

.content-section + .content-section {
  padding-top: clamp(0.6rem, 1.6vw, 1.25rem);
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3.4vw, 3rem);
}

.text-block {
  max-width: 76rem;
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.62;
}

.home-tz.home-current {
  grid-template-columns: minmax(15rem, 0.38fr) minmax(0, 1fr);
  gap: clamp(1.3rem, 3vw, 3.2rem);
  width: min(100%, 100rem);
  min-height: auto;
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2.8rem) clamp(1rem, 3vw, 3.2rem);
  align-items: start;
  overflow: visible;
}

.home-current::before {
  background:
    linear-gradient(145deg, rgba(91, 29, 22, 0.34), transparent 42%),
    linear-gradient(35deg, rgba(216, 168, 79, 0.13), transparent 58%);
}

.home-current .home-cover {
  position: sticky;
  top: 9.2rem;
  display: flex;
  justify-content: center;
}

.home-current .home-cover img,
.book-cover-full img {
  width: auto;
  max-width: 100%;
  max-height: min(68vh, 46rem);
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 0;
  clip-path: none;
}

.home-current .home-content {
  max-height: none;
  overflow: visible;
}

.home-current .home-content h1 {
  display: block;
  max-width: 66rem;
  margin: 0 0 1.1rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  text-transform: none;
  letter-spacing: -0.025em;
}

.home-current .home-content h1 span {
  display: block;
}

.home-current .home-title-main {
  font-size: clamp(2.15rem, 4.2vw, 4.4rem);
  line-height: 0.98;
}

.home-current .home-title-sub {
  max-width: 58rem;
  margin-top: 0.45rem;
  color: var(--paper);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(0.98rem, 1.45vw, 1.35rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.home-current .home-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0;
}

.home-current .home-link-card,
.home-current .home-link-card:last-child {
  grid-column: auto;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 5.1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.45rem;
}

.home-current .home-link-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(91, 29, 22, 0.56), rgba(255,255,255,0.04));
}

.home-current .home-link-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(74, 60, 30, 0.58), rgba(255,255,255,0.04));
}

.home-current .home-link-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(35, 64, 66, 0.56), rgba(255,255,255,0.04));
}

.home-current .home-link-card:nth-child(4) {
  background: linear-gradient(135deg, rgba(72, 42, 74, 0.52), rgba(255,255,255,0.04));
}

.home-current .home-link-card:nth-child(5) {
  background: linear-gradient(135deg, rgba(89, 65, 26, 0.56), rgba(255,255,255,0.04));
}

.home-current .home-link-copy strong {
  font-size: clamp(1.08rem, 1.8vw, 1.55rem);
  line-height: 1.05;
}

.home-current .home-link-copy span,
.home-current .home-link-card:last-child .home-link-copy span {
  display: -webkit-box;
  margin-top: 0.35rem;
  overflow: hidden;
  color: var(--muted);
  font-size: clamp(0.72rem, 0.86vw, 0.83rem);
  line-height: 1.36;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.home-current .home-link-number {
  display: none;
}

.home-current .home-link-arrow {
  align-self: center;
}

.book-about-layout {
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.36fr);
  align-items: start;
}

.book-cover-full {
  max-width: 24rem;
  justify-self: center;
}

.book-cover-full,
.book-cover-full img,
.media-card,
.media-card img {
  border-radius: 0;
  clip-path: none;
}

.author-copy-main,
.author-copy-flow {
  max-width: 76rem;
}

.author-compact-section {
  padding-top: 0.75rem;
  padding-bottom: 1.4rem;
}

.author-wide-photo,
.author-feature-photo,
.author-president-gallery,
.conversation-photo {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.author-wide-photo img,
.author-feature-photo img,
.author-president-gallery img,
.conversation-photo img {
  width: 100%;
  max-height: 34rem;
  -o-object-fit: contain;
     object-fit: contain;
  background: rgba(0,0,0,0.18);
}

.author-m24-card.text-only {
  display: block;
  max-width: 76rem;
}

.author-m24-card.text-only .author-m24-copy {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.cherkashin-layout {
  align-items: start;
}

.cherkashin-portrait-card {
  max-width: 20rem;
}

.single-video-layout {
  padding-top: 1.2rem;
  padding-bottom: 1.6rem;
}

.video-card.featured {
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.3fr);
  gap: 1rem;
  align-items: center;
}

.video-shell,
.video-card.featured .video-shell {
  aspect-ratio: 16 / 9;
  border-radius: 0.45rem;
}

.video-click-layer video {
  -o-object-fit: contain;
     object-fit: contain;
  background: #050505;
}

.video-copy {
  padding: 0.75rem;
}

.video-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
}

.video-copy p:empty {
  display: none;
}

body.video-fullscreen-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}

.custom-player.is-css-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  background: #000 !important;
}

.custom-player.is-css-fullscreen .player-controls-youtube,
.custom-player:fullscreen .player-controls-youtube,
.custom-player:-webkit-full-screen .player-controls-youtube {
  left: max(0.65rem, env(safe-area-inset-left)) !important;
  right: max(0.65rem, env(safe-area-inset-right)) !important;
  bottom: max(0.65rem, env(safe-area-inset-bottom)) !important;
  z-index: 5 !important;
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.partner-card {
  display: grid;
  grid-template-columns: minmax(12rem, 0.28fr) minmax(0, 1fr);
  gap: 1rem;
  min-height: 0;
  padding: 0.8rem 1rem;
  border-radius: 0.35rem;
  background: rgba(255, 246, 228, 0.045);
}

.partner-card h3 {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.partner-card ul {
  margin: 0;
  -moz-columns: 2;
       columns: 2;
  -moz-column-gap: 2rem;
       column-gap: 2rem;
}

.contact-card.contact-inline {
  max-width: 72rem;
  padding: clamp(1rem, 2.5vw, 1.8rem);
  border-radius: 0.45rem;
}

.contact-card.contact-inline p {
  margin: 0;
  font-size: clamp(1rem, 1.65vw, 1.35rem);
  line-height: 1.6;
}

.contact-card.contact-inline a {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  color: var(--gold-2);
  overflow-wrap: anywhere;
}

.qr-only-card {
  max-width: min(48rem, calc(100vw - 2rem));
  padding: 0.65rem;
  border-radius: 0.45rem;
}

.qr-only-card img {
  max-height: calc(100dvh - 14rem);
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 0;
}

@media (min-width: 981px) {
  .menu-toggle {
    display: none !important;
  }

  .main-nav,
  .main-nav.is-open {
    position: static !important;
    display: grid !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 0.55rem 0.75rem;
  }

  .header-row {
    min-height: 2.8rem;
  }

  .brand-placeholder {
    min-height: 2.5rem;
  }

  .menu-toggle {
    display: block !important;
  }

  .main-nav {
    position: absolute !important;
    top: calc(100% + 0.35rem) !important;
    right: 0.75rem !important;
    left: 0.75rem !important;
    display: none !important;
    grid-template-columns: 1fr !important;
    padding: 0.55rem !important;
    border: 1px solid var(--line) !important;
    border-radius: 0.65rem !important;
    background: rgba(12, 10, 8, 0.98) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45) !important;
  }

  .main-nav.is-open {
    display: grid !important;
  }

  .main-nav a {
    min-height: 2.65rem;
    text-align: left;
    place-items: center start;
    font-size: 0.82rem;
  }

  .home-tz.home-current {
    grid-template-columns: minmax(13rem, 0.34fr) minmax(0, 1fr);
  }

  .home-current .home-links {
    grid-template-columns: 1fr;
  }

  .home-current .home-cover {
    top: 5.2rem;
  }

  .video-card.featured {
    grid-template-columns: 1fr;
  }

  .video-copy {
    text-align: center;
  }

  .partner-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page-hero,
  .page-hero.compact {
    padding: 1rem;
  }

  .page-hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.75rem);
  }

  .content-section {
    padding: 1rem;
  }

  .home-tz.home-current {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .home-current .home-content {
    order: 1;
  }

  .home-current .home-cover {
    position: static;
    order: 2;
  }

  .home-current .home-cover img {
    width: min(78vw, 22rem);
    max-height: none;
  }

  .home-current .home-title-main {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .home-current .home-title-sub {
    font-size: 0.96rem;
  }

  .home-current .home-link-card,
  .home-current .home-link-card:last-child {
    min-height: 0;
    padding: 0.85rem;
  }

  .home-current .home-link-copy span,
  .home-current .home-link-card:last-child .home-link-copy span {
    font-size: 0.78rem;
    -webkit-line-clamp: 5;
  }

  .book-about-layout,
  .author-president-layout,
  .cherkashin-layout {
    grid-template-columns: 1fr;
  }

  .book-cover-full {
    width: min(78vw, 21rem);
    margin: 0 auto;
  }

  .author-wide-photo,
  .author-president-gallery {
    grid-template-columns: 1fr;
  }

  .author-wide-photo img,
  .author-feature-photo img,
  .author-president-gallery img,
  .conversation-photo img {
    max-height: none;
  }

  .author-m24-copy,
  .author-m24-card.text-only .author-m24-copy {
    padding: 0.9rem;
  }

  .partner-card ul {
    -moz-columns: 1;
         columns: 1;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-nav a {
    min-height: 2.65rem;
    place-items: center start;
    text-align: left;
    font-size: 0.78rem;
  }

  .player-controls-youtube,
  .custom-player.compact .player-controls-youtube {
    left: 0.35rem !important;
    right: 0.35rem !important;
    bottom: 0.35rem !important;
    padding: 0.45rem !important;
  }

  .volume-group,
  .time-compact {
    display: none !important;
  }

  .controls-row {
    min-height: 2.25rem;
  }

  .custom-player.is-css-fullscreen .volume-group,
  .custom-player.is-css-fullscreen .time-compact {
    display: flex !important;
  }
}

/* Мобильная защита от наследуемого nowrap из предыдущей версии главной. */
.home-current,
.home-current .home-content,
.home-current .home-links,
.home-current .home-link-card,
.home-current .home-link-copy {
  min-width: 0;
}

.home-current .home-content h1 span,
.home-current .home-title-main,
.home-current .home-title-sub {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ======================================================================
   Проверка по пользовательским скриншотам 25.07.2026.
   Старые правила сохранены выше; ниже — только точечные переопределения.
   ====================================================================== */

/* Короткие страницы теперь действительно заканчиваются нижней навигацией,
   без пустого чёрного поля под футером. */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-transition {
  flex: 1 0 auto;
  width: 100%;
}

.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  flex: 0 0 auto;
  background: rgba(12, 10, 8, 0.96);
  isolation: isolate;
}

.site-footer {
  flex: 0 0 auto;
  margin-top: auto;
}

/* Пустая кликабельная область из предыдущей версии оставлена через
   SHOW_EMPTY_FUTURE_LOGO_SLOT, но текущий вариант имеет видимую кнопку. */
.brand-placeholder.has-home-shortcut {
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 2.45rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.65rem 0.35rem 0.45rem;
  border: 1px solid rgba(241, 211, 140, 0.24);
  border-radius: 0.45rem;
  color: var(--paper);
  background: rgba(255, 246, 228, 0.045);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.brand-placeholder.has-home-shortcut:hover,
.brand-placeholder.has-home-shortcut:focus-visible {
  border-color: rgba(241, 211, 140, 0.52);
  background: rgba(241, 211, 140, 0.1);
  color: var(--gold-2);
}

.brand-placeholder.is-empty {
  display: block;
  width: clamp(6rem, 12vw, 11rem);
  min-height: 2rem;
}

.home-shortcut-icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 1.75rem;
}

.home-shortcut-icon svg {
  display: block;
  width: 1.3rem;
  height: 1.3rem;
}

.home-shortcut-text {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* Разные цветовые блоки предусмотрены ТЗ, но палитра приведена к одной
   тёплой гамме вместо визуально случайного набора цветов. */
.home-current .home-link-card,
.home-current .home-link-card:last-child {
  --card-tint: 91, 29, 22;
  border-color: rgba(var(--card-tint), 0.48);
  background: linear-gradient(135deg, rgba(var(--card-tint), 0.29), rgba(255, 255, 255, 0.035));
  box-shadow: inset 3px 0 0 rgba(var(--card-tint), 0.76);
}

.home-current .home-link-card:nth-child(1) { --card-tint: 91, 29, 22; }
.home-current .home-link-card:nth-child(2) { --card-tint: 108, 75, 31; }
.home-current .home-link-card:nth-child(3) { --card-tint: 74, 66, 40; }
.home-current .home-link-card:nth-child(4) { --card-tint: 76, 45, 55; }
.home-current .home-link-card:nth-child(5) { --card-tint: 111, 78, 34; }

/* В полноэкранном режиме элементы управления остаются поверх видео,
   но больше не образуют тяжёлую сплошную чёрную полосу. */

.custom-player:fullscreen .time-compact,
.custom-player:-webkit-full-screen .time-compact,
.custom-player.is-css-fullscreen .time-compact {
  text-shadow: 0 1px 4px #000;
}

/* На мобильном скрывается только ползунок громкости, но не сама кнопка
   звука. Для очень узких экранов время скрывается отдельно. */
@media (max-width: 680px) {
  .home-current.mobile-cover-first .home-cover {
    order: 1;
  }

  .home-current.mobile-cover-first .home-content {
    order: 2;
  }

  .home-current.mobile-content-first .home-content {
    order: 1;
  }

  .home-current.mobile-content-first .home-cover {
    order: 2;
  }

  .home-current.mobile-cover-first .home-cover img {
    width: min(72vw, 19rem);
  }

  .volume-group {
    display: flex !important;
    flex: 0 0 auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .volume-control {
    display: inline-grid !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .player-controls-youtube .volume-range-inline,
  .custom-player.compact .player-controls-youtube .volume-range-inline {
    display: none !important;
  }

  .time-compact {
    display: inline !important;
    min-width: 4.4rem !important;
    max-width: 4.4rem !important;
    font-size: 0.64rem !important;
  }
}

@media (max-width: 390px) {
  .home-shortcut-text {
    display: none;
  }

  .brand-placeholder.has-home-shortcut {
    width: 2.55rem;
    min-height: 2.55rem;
    padding: 0;
    justify-content: center;
  }

  .time-compact {
    display: none !important;
  }
}

/* Полноэкранный класс ставится из React как для нативного, так и для
   резервного режима. Это надёжнее сложного набора псевдоклассов после
   обработки PostCSS и одинаково работает во всех путях fullscreen. */
body.video-fullscreen-active .custom-player .player-controls-youtube {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.08) 58%, transparent) !important;
  padding: 2.1rem 0.8rem 0.5rem !important;
}

body.video-fullscreen-active .custom-player .icon-control {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(0, 0, 0, 0.34) !important;
  text-shadow: 0 1px 4px #000;
}

/* Анимации reveal/page-transition создают содержащий блок для position:fixed.
   В CSS-fullscreen они отключаются, чтобы плеер занимал именно viewport. */
body.video-fullscreen-lock .page-transition,
body.video-fullscreen-lock .reveal,
body.video-fullscreen-lock .content-section,
body.video-fullscreen-lock .video-card,
body.video-fullscreen-lock .video-shell {
  animation: none !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  contain: none !important;
}

body.video-fullscreen-lock .custom-player.is-css-fullscreen {
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
}

/* Дополнительная компактность главной по формулировке ТЗ: заголовок и
   обложка не должны вытеснять текстовые блоки за пределы первого экрана. */
.home-current .home-title-main {
  font-size: clamp(2rem, 3.5vw, 3.65rem);
}

@media (max-width: 680px) {
  .home-current.mobile-cover-first .home-cover img {
    width: min(60vw, 17rem);
  }

  .home-current .home-title-main {
    font-size: clamp(2rem, 9.5vw, 2.75rem);
    line-height: 0.98;
  }
}

/* ======================================================================
   Feedback pass v3: closer to ТЗ and less noisy visual system.
   Старые варианты оставлены выше и за флагами в React; ниже только overrides.
   ====================================================================== */

/* Header: отдельная кнопка «На главную» больше не создаёт лишнюю строку на ПК.
   Навигация остаётся семипунктовой, одинаковой сверху и снизу. */
.site-header {
  display: block !important;
  padding: 0.55rem clamp(0.8rem, 1.7vw, 1.7rem) !important;
  background: rgba(9, 7, 6, 0.96) !important;
}

.header-row {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(7.8rem, 10rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
}

.brand-placeholder.has-home-shortcut {
  width: 100%;
  min-height: 2.75rem;
  justify-content: center;
  border-radius: 0.42rem;
  background: rgba(255, 246, 228, 0.035);
}

.home-shortcut-text {
  font-size: 0.76rem;
  letter-spacing: -0.01em;
}

@media (min-width: 981px) {
  .main-nav,
  .main-nav.is-open {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 0.35rem !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .main-nav a,
  .footer-nav a {
    display: grid !important;
    place-items: center !important;
    min-height: 2.75rem;
    padding: 0.55rem 0.45rem !important;
    border: 1px solid rgba(241, 211, 140, 0.22) !important;
    border-radius: 0.42rem !important;
    font-size: clamp(0.67rem, 0.72vw, 0.78rem) !important;
    line-height: 1.2 !important;
  }

  .footer-nav {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 0.35rem !important;
  }
}

@media (max-width: 980px) {
  .header-row {
    grid-template-columns: minmax(2.75rem, auto) auto;
    justify-content: space-between;
  }

  .main-nav {
    top: calc(100% + 0.45rem) !important;
    right: 0 !important;
    left: 0 !important;
  }

  .brand-placeholder.has-home-shortcut {
    width: auto;
    padding-inline: 0.7rem;
  }
}

@media (max-width: 420px) {
  .home-shortcut-text {
    display: none;
  }

  .brand-placeholder.has-home-shortcut {
    width: 2.7rem;
    min-height: 2.7rem;
    padding: 0;
  }
}

/* Внутренние страницы: компактнее и ближе к документной компоновке из ТЗ. */
.page-hero,
.page-hero.compact {
  min-height: 0 !important;
  padding: clamp(0.9rem, 1.8vw, 1.5rem) clamp(1rem, 4vw, 4rem) !important;
  background:
    linear-gradient(90deg, rgba(91, 29, 22, 0.64), rgba(26, 18, 12, 0.94) 54%, rgba(92, 66, 33, 0.38)) !important;
}

.page-hero-inner {
  width: min(100%, 88rem) !important;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.1vw, 3.25rem) !important;
  line-height: 1.02 !important;
  max-width: 100% !important;
}

.content-section {
  width: min(100%, 88rem) !important;
  padding-top: clamp(1rem, 2vw, 1.8rem) !important;
  padding-bottom: clamp(1rem, 2vw, 1.8rem) !important;
}

.text-block p {
  font-size: clamp(0.98rem, 1.05vw, 1.08rem) !important;
  line-height: 1.58 !important;
}

/* Главная: цветовые блоки остаются как требование, но без «случайной радуги». */
.home-current .home-link-card,
.home-current .home-link-card:last-child {
  --card-tint: 91, 29, 22;
  background: linear-gradient(135deg, rgba(var(--card-tint), 0.24), rgba(255, 246, 228, 0.035)) !important;
  border-color: rgba(241, 211, 140, 0.18) !important;
  box-shadow: inset 2px 0 0 rgba(var(--card-tint), 0.58) !important;
}

.home-current .home-link-card:nth-child(1) { --card-tint: 91, 29, 22; }
.home-current .home-link-card:nth-child(2) { --card-tint: 91, 60, 30; }
.home-current .home-link-card:nth-child(3) { --card-tint: 82, 67, 41; }
.home-current .home-link-card:nth-child(4) { --card-tint: 82, 54, 45; }
.home-current .home-link-card:nth-child(5) { --card-tint: 96, 69, 34; }

/* Авторская страница: вместо декоративных карточек — линейный порядок с подписями под фото. */
.author-copy-main,
.author-copy-flow,
.author-m24-card.text-only,
.author-president-layout,
.author-compact-section > .text-block {
  max-width: 72rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.author-wide-photo,
.author-feature-photo,
.conversation-photo {
  width: min(100%, 36rem) !important;
  max-width: 36rem !important;
  margin: 1rem auto !important;
  padding: 0.55rem !important;
  border-radius: 0.38rem !important;
  background: rgba(255, 246, 228, 0.045) !important;
  box-shadow: none !important;
}

.author-wide-photo {
  display: block !important;
}

.author-wide-photo img,
.author-feature-photo img,
.conversation-photo img {
  width: 100% !important;
  max-height: 28rem !important;
  -o-object-fit: contain !important;
     object-fit: contain !important;
  border-radius: 0.25rem !important;
}

.author-wide-photo figcaption,
.author-feature-photo figcaption,
.author-president-gallery figcaption,
.conversation-photo figcaption {
  padding: 0.65rem 0.3rem 0.15rem !important;
  text-align: center !important;
  font-size: 0.82rem !important;
  line-height: 1.42 !important;
}

.author-m24-card.text-only {
  border-radius: 0.38rem !important;
  box-shadow: none !important;
}

.author-m24-card.text-only .author-m24-copy {
  padding: 1rem !important;
}

.author-president-layout {
  display: block !important;
  margin-bottom: 1rem !important;
}

.author-president-gallery {
  width: min(100%, 48rem) !important;
  margin: 1rem auto !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.author-president-gallery figure {
  border-radius: 0.38rem !important;
  box-shadow: none !important;
}

.author-president-gallery img {
  height: 17rem !important;
  -o-object-fit: contain !important;
     object-fit: contain !important;
}

.cherkashin-layout {
  width: min(100%, 62rem) !important;
  margin: 0 auto !important;
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr) !important;
  gap: 1.25rem !important;
  align-items: start !important;
}

.cherkashin-portrait-card {
  max-width: 14rem !important;
  padding: 0.45rem !important;
  border-radius: 0.38rem !important;
  box-shadow: none !important;
}

.cherkashin-portrait-card img {
  max-height: 22rem !important;
  border-radius: 0.25rem !important;
}

.awards-card {
  border-radius: 0.38rem !important;
  box-shadow: none !important;
}

.contact-card.contact-inline {
  max-width: 58rem !important;
  margin: 0 auto !important;
  box-shadow: none !important;
}

.contact-card.contact-inline p {
  font-size: clamp(1rem, 1.2vw, 1.13rem) !important;
  text-align: left !important;
}

/* Буктрейлер компактнее, с треугольником поверх видео/обложки и без лишних подписей. */
.single-video-layout {
  padding-top: 1rem !important;
}

.video-card.featured {
  max-width: 70rem !important;
  margin: 0 auto !important;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.32fr) !important;
}

.video-copy h2 {
  font-size: clamp(1.35rem, 2.2vw, 2.15rem) !important;
}

@media (max-width: 680px) {
  .page-hero,
  .page-hero.compact {
    padding: 0.85rem 1rem !important;
  }

  .page-hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.45rem) !important;
  }

  .content-section {
    padding: 0.9rem 1rem !important;
  }

  .author-president-gallery,
  .cherkashin-layout {
    grid-template-columns: 1fr !important;
  }

  .cherkashin-portrait-card {
    margin: 0 auto !important;
  }

  .author-president-gallery img {
    height: auto !important;
    max-height: 28rem !important;
  }

  .video-card.featured {
    grid-template-columns: 1fr !important;
  }
}

/* ======================================================================
   Feedback pass v4: cleaner editorial system + visible project logo.
   Требование сохранить старое выполнено через флаги в App.jsx и старые CSS
   выше; этот блок только переопределяет текущий внешний вид.
   ====================================================================== */

:root {
  --v4-bg: #0b0907;
  --v4-panel: rgba(22, 16, 10, 0.72);
  --v4-panel-solid: #15100b;
  --v4-border: rgba(238, 207, 144, 0.22);
  --v4-border-strong: rgba(238, 207, 144, 0.42);
  --v4-gold: #d8a84f;
  --v4-gold-soft: #f1d38c;
  --v4-text: #f7efe0;
  --v4-muted: #cdbfaa;
}

body {
  background:
    radial-gradient(circle at 15% 20%, rgba(92, 34, 20, 0.28), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(116, 82, 35, 0.20), transparent 30rem),
    linear-gradient(135deg, #090705 0%, #15100b 45%, #080706 100%) !important;
}

body::before {
  opacity: 0.08 !important;
}

.scroll-progress {
  height: 2px !important;
  background: linear-gradient(90deg, #8f261b, var(--v4-gold-soft), #8f261b) !important;
  box-shadow: none !important;
}

.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  padding: 0.55rem clamp(0.8rem, 1.6vw, 1.5rem) !important;
  border-bottom: 1px solid rgba(238, 207, 144, 0.16) !important;
  background: rgba(9, 7, 5, 0.92) !important;
  backdrop-filter: blur(18px) saturate(120%) !important;
}

.header-row {
  display: grid !important;
  grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr) auto !important;
  align-items: stretch !important;
  gap: 0.55rem !important;
  width: 100% !important;
}

.project-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
  gap: 0.62rem !important;
  min-height: 2.75rem !important;
  padding: 0.35rem 0.55rem !important;
  border: 1px solid var(--v4-border) !important;
  border-radius: 0.55rem !important;
  background: rgba(255, 246, 228, 0.035) !important;
  color: var(--v4-text) !important;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease !important;
}

.project-logo-link:hover,
.project-logo-link:focus-visible {
  border-color: var(--v4-border-strong) !important;
  background: rgba(241, 211, 140, 0.07) !important;
  transform: translateY(-1px) !important;
}

.project-logo-mark {
  width: 2.08rem !important;
  height: 2.08rem !important;
  flex: 0 0 2.08rem !important;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.24));
}

.project-logo-text {
  display: grid !important;
  min-width: 0 !important;
  line-height: 1.05 !important;
}

.project-logo-text strong {
  overflow: hidden !important;
  color: var(--v4-text) !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: clamp(0.72rem, 0.76vw, 0.84rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.project-logo-text span {
  overflow: hidden !important;
  color: var(--v4-muted) !important;
  font-size: 0.62rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.02em !important;
  text-overflow: ellipsis !important;
  text-transform: lowercase !important;
  white-space: nowrap !important;
}

@media (min-width: 981px) {
  .main-nav,
  .main-nav.is-open {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 0.38rem !important;
    width: 100% !important;
  }

  .main-nav a,
  .footer-nav a {
    min-height: 2.75rem !important;
    padding: 0.55rem 0.42rem !important;
    border: 1px solid var(--v4-border) !important;
    border-radius: 0.55rem !important;
    background: rgba(255, 246, 228, 0.022) !important;
    color: var(--v4-muted) !important;
    font-size: clamp(0.66rem, 0.72vw, 0.78rem) !important;
    font-weight: 750 !important;
    line-height: 1.14 !important;
    text-align: center !important;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease !important;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible,
  .main-nav a.active,
  .footer-nav a:hover,
  .footer-nav a:focus-visible,
  .footer-nav a.active {
    border-color: var(--v4-border-strong) !important;
    background: rgba(216, 168, 79, 0.075) !important;
    color: var(--v4-text) !important;
  }
}

.site-footer {
  padding: 0.55rem clamp(0.8rem, 1.6vw, 1.5rem) !important;
  border-top: 1px solid rgba(238, 207, 144, 0.16) !important;
  background: rgba(9, 7, 5, 0.94) !important;
}

.footer-nav {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Главная: убираем тяжёлый прямоугольник под обложкой/контентом. */
.home-tz::before,
.home-current::before {
  display: none !important;
}

.home-tz.home-current {
  width: min(100%, 91rem) !important;
  min-height: calc(100dvh - 8.6rem) !important;
  margin: 0 auto !important;
  padding: clamp(1.35rem, 2.4vw, 2.4rem) clamp(1rem, 3.2vw, 3rem) !important;
  grid-template-columns: minmax(15rem, 0.34fr) minmax(0, 1fr) !important;
  gap: clamp(1.6rem, 3vw, 3.2rem) !important;
  align-items: center !important;
  overflow: visible !important;
}

.home-current .home-cover {
  position: relative !important;
  top: auto !important;
  display: grid !important;
  place-items: center !important;
}

.home-current .home-cover .cover-glow {
  opacity: 0 !important;
}

.home-current .home-cover img {
  width: min(100%, 20.8rem) !important;
  max-height: min(66dvh, 34rem) !important;
  border: 1px solid rgba(238, 207, 144, 0.28) !important;
  border-radius: 0 !important;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35) !important;
}

.home-current .home-content {
  display: block !important;
  max-height: none !important;
}

.home-current .home-content h1 {
  max-width: 61rem !important;
  margin: 0 0 clamp(0.95rem, 1.5vw, 1.35rem) !important;
  letter-spacing: -0.025em !important;
}

.home-current .home-title-main {
  font-size: clamp(2.35rem, 4.4vw, 4.55rem) !important;
  line-height: 0.95 !important;
}

.home-current .home-title-sub {
  max-width: 56rem !important;
  margin-top: 0.45rem !important;
  color: var(--v4-text) !important;
  font-size: clamp(0.96rem, 1.28vw, 1.22rem) !important;
  line-height: 1.28 !important;
  font-weight: 650 !important;
}

.home-current .home-links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.68rem !important;
  margin: 0 !important;
}

.home-current .home-link-card,
.home-current .home-link-card:last-child {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-column: auto !important;
  align-items: center !important;
  min-height: 5rem !important;
  padding: 0.88rem 0.95rem !important;
  border: 1px solid var(--v4-border) !important;
  border-radius: 0.55rem !important;
  background: linear-gradient(135deg, rgba(255, 246, 228, 0.068), rgba(91, 29, 22, 0.09)) !important;
  box-shadow: none !important;
  transform: none !important;
}

.home-current .home-link-card:hover,
.home-current .home-link-card:focus-visible {
  border-color: var(--v4-border-strong) !important;
  background: linear-gradient(135deg, rgba(255, 246, 228, 0.10), rgba(91, 29, 22, 0.14)) !important;
}

.home-current .home-link-card:nth-child(1),
.home-current .home-link-card:nth-child(2),
.home-current .home-link-card:nth-child(3),
.home-current .home-link-card:nth-child(4),
.home-current .home-link-card:nth-child(5) {
  --card-tint: 216,168,79 !important;
}

.home-current .home-link-copy strong {
  color: var(--v4-text) !important;
  font-size: clamp(1.1rem, 1.55vw, 1.5rem) !important;
  line-height: 1.04 !important;
}

.home-current .home-link-copy span,
.home-current .home-link-card:last-child .home-link-copy span {
  margin-top: 0.38rem !important;
  color: rgba(247, 239, 224, 0.76) !important;
  font-size: clamp(0.74rem, 0.78vw, 0.86rem) !important;
  line-height: 1.33 !important;
  -webkit-line-clamp: 4 !important;
}

.home-current .home-link-arrow {
  color: var(--v4-gold-soft) !important;
  font-size: 1.15rem !important;
}

/* Внутренние страницы: меньше плакатности, больше аккуратного лонгрида. */
.page-hero,
.page-hero.compact {
  min-height: 0 !important;
  padding: clamp(0.9rem, 1.7vw, 1.35rem) clamp(1rem, 4vw, 4rem) !important;
  border-bottom: 1px solid rgba(238, 207, 144, 0.15) !important;
  background: linear-gradient(90deg, rgba(91, 29, 22, 0.34), rgba(20, 15, 10, 0.94) 52%, rgba(98, 68, 30, 0.20)) !important;
}

.page-hero::after,
.page-hero .grain {
  display: none !important;
}

.page-hero-inner {
  width: min(100%, 73rem) !important;
  margin: 0 auto !important;
}

.page-hero h1 {
  max-width: 100% !important;
  font-size: clamp(1.9rem, 3vw, 3.15rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.035em !important;
}

.content-section {
  width: min(100%, 76rem) !important;
  padding: clamp(1rem, 1.8vw, 1.6rem) clamp(1rem, 3vw, 2rem) !important;
}

.text-block p {
  font-size: clamp(0.96rem, 1.02vw, 1.06rem) !important;
  line-height: 1.58 !important;
}

/* Автор: фото и подписи без больших декоративных «коробок». */
.author-wide-photo,
.author-feature-photo,
.author-president-gallery figure,
.cherkashin-portrait-card,
.conversation-photo {
  border-radius: 0.38rem !important;
  border: 1px solid rgba(238, 207, 144, 0.17) !important;
  background: rgba(255, 246, 228, 0.032) !important;
  box-shadow: none !important;
}

.author-wide-photo,
.author-feature-photo,
.conversation-photo {
  width: min(100%, 34rem) !important;
  max-width: 34rem !important;
}

.author-m24-card.text-only {
  border: 1px solid rgba(238, 207, 144, 0.17) !important;
  background: rgba(255, 246, 228, 0.032) !important;
}

.cherkashin-layout {
  width: min(100%, 66rem) !important;
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr) !important;
}

/* Контакты: центрируем смысловой блок и не делаем email отдельным плакатом. */
.page-contacts {
  display: flex !important;
  flex-direction: column !important;
  min-height: calc(100dvh - 7.9rem) !important;
}

.page-contacts .page-hero {
  flex: 0 0 auto !important;
}

.page-contacts .content-section {
  flex: 1 1 auto !important;
  display: grid !important;
  place-items: center !important;
  width: min(100%, 76rem) !important;
}

.contact-card.contact-inline {
  width: min(100%, 54rem) !important;
  margin: 0 auto !important;
  padding: clamp(1.15rem, 2.4vw, 1.85rem) !important;
  border: 1px solid rgba(238, 207, 144, 0.20) !important;
  border-radius: 0.55rem !important;
  background: rgba(255, 246, 228, 0.045) !important;
  box-shadow: none !important;
}

.contact-card.contact-inline p {
  max-width: 47rem !important;
  margin: 0 auto !important;
  font-size: clamp(1.02rem, 1.18vw, 1.16rem) !important;
  line-height: 1.65 !important;
  text-align: center !important;
}

.contact-card.contact-inline a {
  color: var(--v4-gold-soft) !important;
  font-weight: 700 !important;
}

/* Буктрейлер/fullscreen: сохраняем фикс v2/v3, визуально легче. */
.video-card.featured {
  max-width: 64rem !important;
  grid-template-columns: 1fr !important;
}

.video-copy {
  text-align: center !important;
}

.video-copy h2 {
  font-size: clamp(1.25rem, 2vw, 1.9rem) !important;
}

.player-controls-youtube {
  background: linear-gradient(to top, rgba(0,0,0,0.44), rgba(0,0,0,0.12), transparent) !important;
}

@media (max-width: 1180px) and (min-width: 981px) {
  .header-row {
    grid-template-columns: minmax(8rem, 10rem) minmax(0, 1fr) auto !important;
    gap: 0.38rem !important;
  }

  .project-logo-text span {
    display: none !important;
  }

  .project-logo-text strong {
    font-size: 0.68rem !important;
  }
}

@media (max-width: 980px) {
  .header-row {
    grid-template-columns: minmax(2.75rem, auto) auto !important;
    justify-content: space-between !important;
  }

  .project-logo-link {
    min-height: 2.75rem !important;
    max-width: min(72vw, 19rem) !important;
    padding-inline: 0.55rem !important;
  }

  .main-nav {
    top: calc(100% + 0.45rem) !important;
    right: 0 !important;
    left: 0 !important;
    display: none !important;
    grid-template-columns: 1fr !important;
    gap: 0.35rem !important;
    background: rgba(9, 7, 5, 0.98) !important;
  }

  .main-nav.is-open {
    display: grid !important;
  }
}

@media (max-width: 680px) {
  .home-tz.home-current {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
    gap: 1rem !important;
    padding: 1rem !important;
  }

  .home-current.mobile-cover-first .home-cover {
    order: 1 !important;
  }

  .home-current.mobile-cover-first .home-content {
    order: 2 !important;
  }

  .home-current .home-cover img {
    width: min(64vw, 16rem) !important;
    max-height: none !important;
  }

  .home-current .home-title-main {
    font-size: clamp(2rem, 9.5vw, 2.75rem) !important;
  }

  .home-current .home-title-sub {
    font-size: 0.92rem !important;
  }

  .home-current .home-links {
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
  }

  .home-current .home-link-card,
  .home-current .home-link-card:last-child {
    min-height: 0 !important;
    padding: 0.78rem 0.85rem !important;
  }

  .home-current .home-link-copy span,
  .home-current .home-link-card:last-child .home-link-copy span {
    font-size: 0.75rem !important;
    -webkit-line-clamp: 4 !important;
  }

  .content-section {
    padding: 0.9rem 1rem !important;
  }

  .page-hero,
  .page-hero.compact {
    padding: 0.85rem 1rem !important;
  }

  .page-hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.4rem) !important;
  }

  .footer-nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.35rem !important;
  }

  .footer-nav a {
    min-height: 2.55rem !important;
    place-items: center start !important;
    text-align: left !important;
    font-size: 0.78rem !important;
  }

  .page-contacts {
    min-height: auto !important;
  }

  .contact-card.contact-inline p {
    text-align: left !important;
  }
}

@media (max-width: 420px) {
  .project-logo-text {
    display: none !important;
  }

  .project-logo-link {
    width: 2.75rem !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  .project-logo-mark {
    width: 2rem !important;
    height: 2rem !important;
  }
}

/* ======================================================================
   ТЗ 27.07.2026: точечные правки заказчика без добавления новых смыслов.
   Светло-коричневая схема, пустое место под будущий логотип проекта,
   полные тексты на главной и фотографии из документа ТЗ.
   ====================================================================== */

:root {
  color-scheme: light;
  --ink: #2d2017;
  --muted: #654c39;
  --deep: #c7a47b;
  --deep-2: #b88f65;
  --card: rgba(255, 248, 236, 0.78);
  --card-strong: rgba(255, 250, 241, 0.94);
  --line: rgba(76, 48, 29, 0.24);
  --gold: #8a5a2d;
  --gold-2: #5d3b20;
  --paper: #fff7ea;
  --burgundy: #6b2d22;
  --shadow: rgba(67, 40, 22, 0.20);

  --v4-bg: #c7a47b;
  --v4-panel: rgba(255, 248, 236, 0.78);
  --v4-panel-solid: #ead6ba;
  --v4-border: rgba(76, 48, 29, 0.24);
  --v4-border-strong: rgba(76, 48, 29, 0.48);
  --v4-gold: #8a5a2d;
  --v4-gold-soft: #5d3b20;
  --v4-text: #2d2017;
  --v4-muted: #654c39;
}

html,
body {
  background-color: #c7a47b !important;
}

body {
  color: var(--ink) !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 247, 232, 0.40), transparent 33rem),
    radial-gradient(circle at 88% 20%, rgba(111, 68, 37, 0.12), transparent 31rem),
    linear-gradient(135deg, #bda17f 0%, #b2916c 52%, #a6815c 100%) !important;
}

body::before {
  opacity: 0.09 !important;
  background-image:
    linear-gradient(rgba(74, 45, 27, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 45, 27, 0.10) 1px, transparent 1px) !important;
}

.scroll-progress {
  background: linear-gradient(90deg, #6b2d22, #f6e2c3, #6b2d22) !important;
}

.site-header {
  border-bottom-color: rgba(74, 45, 27, 0.28) !important;
  background: rgba(190, 153, 111, 0.96) !important;
  color: var(--ink) !important;
}

.header-row {
  grid-template-columns: minmax(13.5rem, 16rem) minmax(0, 1fr) auto !important;
}

.project-identity-placeholder {
  display: grid !important;
  grid-template-columns: 2.35rem minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 0.65rem !important;
  min-height: 2.75rem !important;
  padding: 0.32rem 0.58rem !important;
  border: 1px solid rgba(74, 45, 27, 0.30) !important;
  border-radius: 0.55rem !important;
  background: rgba(255, 248, 236, 0.52) !important;
  color: #2d2017 !important;
}

.project-identity-placeholder:hover,
.project-identity-placeholder:focus-visible {
  border-color: rgba(74, 45, 27, 0.58) !important;
  background: rgba(255, 250, 241, 0.74) !important;
}

.future-project-logo-space {
  width: 2.05rem !important;
  height: 2.05rem !important;
  border: 1px dashed rgba(74, 45, 27, 0.58) !important;
  border-radius: 0.2rem !important;
  background: rgba(255, 250, 241, 0.30) !important;
}

.project-only-label {
  color: #2d2017 !important;
  font-size: clamp(0.64rem, 0.72vw, 0.76rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.055em !important;
  line-height: 1.16 !important;
  text-transform: uppercase !important;
}

.main-nav a,
.footer-nav a {
  border-color: rgba(74, 45, 27, 0.24) !important;
  background: rgba(255, 248, 236, 0.46) !important;
  color: #4c382a !important;
}

.main-nav a:hover,
.footer-nav a:hover,
.main-nav a.active,
.footer-nav a.active {
  border-color: rgba(74, 45, 27, 0.52) !important;
  background: rgba(255, 250, 241, 0.82) !important;
  color: #241810 !important;
}

.menu-toggle {
  border-color: rgba(74, 45, 27, 0.38) !important;
  background: rgba(255, 248, 236, 0.62) !important;
  color: #2d2017 !important;
}

.menu-toggle span {
  background: #2d2017 !important;
}

.site-footer {
  border-top-color: rgba(74, 45, 27, 0.28) !important;
  background: rgba(180, 140, 98, 0.94) !important;
  color: var(--ink) !important;
}

.page-hero,
.page-hero.compact {
  border-bottom-color: rgba(74, 45, 27, 0.24) !important;
  background: linear-gradient(90deg, rgba(150, 104, 68, 0.46), rgba(238, 215, 184, 0.86) 52%, rgba(177, 133, 91, 0.48)) !important;
  color: var(--ink) !important;
}

.page-hero h1,
.section-head h2,
.text-block,
.page-lead,
.excerpt-text,
.partner-card,
.contact-card,
.media-caption,
figcaption {
  color: var(--ink) !important;
}

.eyebrow {
  color: #604024 !important;
}

.content-section {
  color: var(--ink) !important;
}

.media-card,
.excerpt-card,
.partner-card,
.contact-card,
.qr-only-card,
.author-m24-card,
.author-wide-photo,
.author-feature-photo,
.author-president-gallery figure,
.cherkashin-portrait-card,
.conversation-photo,
.awards-card,
.pdf-reader,
.reader-intro {
  border-color: rgba(74, 45, 27, 0.24) !important;
  background: rgba(255, 248, 236, 0.70) !important;
  color: var(--ink) !important;
  box-shadow: 0 14px 34px rgba(68, 39, 21, 0.10) !important;
}

.text-block p,
.page-lead p,
.excerpt-text p,
.partner-card li,
.contact-card p,
.author-m24-copy p,
figcaption {
  color: #39281d !important;
}

.button.primary,
.button.secondary,
.button.ghost {
  border-color: rgba(74, 45, 27, 0.42) !important;
  background: rgba(255, 248, 236, 0.72) !important;
  color: #2d2017 !important;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(74, 45, 27, 0.68) !important;
  background: rgba(255, 252, 246, 0.94) !important;
}

/* Главная: точное фото из документа и два полных текстовых блока. */
.home-tz.home-current {
  width: min(100%, 96rem) !important;
  min-height: auto !important;
  padding: clamp(1.4rem, 2.8vw, 2.8rem) clamp(1rem, 3.2vw, 3.2rem) !important;
  grid-template-columns: minmax(27rem, 0.78fr) minmax(0, 1fr) !important;
  gap: clamp(1.8rem, 3vw, 3.6rem) !important;
  align-items: start !important;
}

.home-current .home-cover {
  align-self: start !important;
  padding-top: 0.35rem !important;
}

.home-current .home-cover img {
  width: min(100%, 43rem) !important;
  max-height: none !important;
  border: 1px solid rgba(74, 45, 27, 0.40) !important;
  background: #f4ead8 !important;
  box-shadow: 0 22px 52px rgba(67, 39, 22, 0.22) !important;
}

.home-current .home-title-main,
.home-current .home-title-sub {
  color: #2b1d14 !important;
}

.home-current .home-links {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.72rem !important;
}

.home-current .home-link-card,
.home-current .home-link-card:last-child {
  border-color: rgba(74, 45, 27, 0.26) !important;
  background: rgba(255, 248, 236, 0.70) !important;
  color: #2d2017 !important;
  box-shadow: 0 10px 26px rgba(67, 39, 22, 0.08) !important;
}

.home-current .home-link-card:hover,
.home-current .home-link-card:focus-visible {
  border-color: rgba(74, 45, 27, 0.52) !important;
  background: rgba(255, 252, 246, 0.90) !important;
}

.home-current .home-link-card.has-full-text {
  grid-column: 1 / -1 !important;
  min-height: 0 !important;
  align-items: start !important;
  padding: clamp(0.9rem, 1.35vw, 1.2rem) !important;
}

.home-current .home-link-card.has-full-text .home-link-copy {
  display: grid !important;
  grid-template-columns: minmax(8.5rem, 11rem) minmax(0, 1fr) !important;
  gap: clamp(0.8rem, 1.5vw, 1.35rem) !important;
  align-items: start !important;
}

.home-current .home-link-copy strong {
  color: #2d2017 !important;
}

.home-current .home-link-card.has-full-text .home-link-copy span {
  display: block !important;
  margin: 0 !important;
  overflow: visible !important;
  color: #3d2b1f !important;
  font-size: clamp(0.82rem, 0.90vw, 0.96rem) !important;
  line-height: 1.48 !important;
  -webkit-box-orient: initial !important;
  -webkit-line-clamp: unset !important;
}

.home-current .home-link-card.button-only {
  min-height: 4.35rem !important;
}

.home-current .home-link-arrow {
  color: #6b4325 !important;
}

/* Раздел «О книге»: полный разворот без подписи. */
.book-about-layout {
  grid-template-columns: minmax(0, 0.82fr) minmax(28rem, 1.18fr) !important;
  align-items: start !important;
}

.book-cover-spread-2707 {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.book-cover-spread-2707 img {
  width: 100% !important;
  height: auto !important;
  -o-object-fit: contain !important;
     object-fit: contain !important;
}

/* Буктрейлер: заставка вместо обложки, без подписи с минутами и названием. */
.page-trailer .video-card.featured {
  max-width: 68rem !important;
}

.page-trailer .video-card.featured .video-copy {
  display: none !important;
}

.page-trailer .custom-player video {
  -o-object-fit: contain !important;
     object-fit: contain !important;
  background: #15100c !important;
}

/* Отрывок: одинаковый шрифт текста и добавленная страница из книги. */
.page-excerpt .page-lead,
.page-excerpt .excerpt-text,
.page-excerpt .excerpt-text p {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-style: normal !important;
}

.excerpt-layout-2707 {
  display: grid !important;
  grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr) !important;
  gap: clamp(1.1rem, 2.6vw, 2.2rem) !important;
  align-items: start !important;
}

.excerpt-image-2707 {
  position: sticky !important;
  top: 5.4rem !important;
  margin: 0 !important;
  border: 1px solid rgba(74, 45, 27, 0.28) !important;
  background: #fffaf1 !important;
  box-shadow: 0 16px 38px rgba(67, 39, 22, 0.16) !important;
}

.excerpt-image-2707 img {
  width: 100% !important;
  height: auto !important;
}

/* О проекте: фотографии расположены непосредственно под нужными разделами. */
.partners-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

.partner-card {
  padding: clamp(1rem, 2vw, 1.45rem) !important;
}

.partner-card h3 {
  color: #2d2017 !important;
}

.project-partner-photo {
  display: grid !important;
  gap: 0.65rem !important;
  width: min(100%, 58rem) !important;
  margin: 1.15rem 0 0 !important;
}

.project-partner-photo img {
  width: 100% !important;
  max-height: 38rem !important;
  -o-object-fit: contain !important;
     object-fit: contain !important;
  -o-object-position: left center !important;
     object-position: left center !important;
  border: 1px solid rgba(74, 45, 27, 0.24) !important;
  background: #f5e9d7 !important;
}

.project-education-photo {
  width: min(100%, 34rem) !important;
}

.project-partner-photo figcaption {
  max-width: 68rem !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: clamp(0.84rem, 0.96vw, 0.96rem) !important;
  line-height: 1.5 !important;
}

@media (max-width: 1180px) {
  .home-tz.home-current {
    grid-template-columns: minmax(21rem, 0.7fr) minmax(0, 1fr) !important;
  }

  .header-row {
    grid-template-columns: minmax(11.5rem, 13.5rem) minmax(0, 1fr) auto !important;
  }
}

@media (max-width: 980px) {
  .header-row {
    grid-template-columns: minmax(12rem, auto) auto !important;
  }

  .project-identity-placeholder {
    max-width: min(72vw, 17rem) !important;
  }

  .main-nav {
    background: rgba(190, 153, 111, 0.99) !important;
    border: 1px solid rgba(74, 45, 27, 0.30) !important;
  }

  .home-tz.home-current {
    display: flex !important;
    flex-direction: column !important;
  }

  .home-current .home-cover img {
    width: min(100%, 43rem) !important;
  }

  .book-about-layout,
  .excerpt-layout-2707 {
    grid-template-columns: 1fr !important;
  }

  .excerpt-image-2707 {
    position: static !important;
    width: min(100%, 22rem) !important;
  }
}

@media (max-width: 680px) {
  .home-tz.home-current {
    padding: 1rem !important;
  }

  .home-current .home-cover img {
    width: 100% !important;
    max-width: 34rem !important;
  }

  .home-current .home-links {
    grid-template-columns: 1fr !important;
  }

  .home-current .home-link-card.has-full-text {
    grid-column: auto !important;
  }

  .home-current .home-link-card.has-full-text .home-link-copy {
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
  }

  .home-current .home-link-card.has-full-text .home-link-copy span {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }

  .future-project-logo-space {
    width: 1.9rem !important;
    height: 1.9rem !important;
  }

  .project-only-label {
    font-size: 0.62rem !important;
  }

  .project-partner-photo,
  .project-education-photo {
    width: 100% !important;
  }

  .cherkashin-layout {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 420px) {
  .project-identity-placeholder {
    width: auto !important;
    max-width: calc(100vw - 4.8rem) !important;
    padding: 0.28rem 0.45rem !important;
    gap: 0.45rem !important;
  }

  .project-only-label {
    display: block !important;
    white-space: normal !important;
  }
}

/* --- UX cleanup after feedback 29.07: softer logo slot, larger home cover, improved excerpt previews --- */
.project-identity-placeholder {
  grid-template-columns: 2.5rem minmax(0, 1fr) !important;
  background: rgba(255, 249, 239, 0.42) !important;
}

.future-project-logo-space {
  width: 2.2rem !important;
  height: 2.2rem !important;
  border: none !important;
  background: transparent !important;
  box-shadow: inset 0 0 0 1px rgba(74, 45, 27, 0.18) !important;
}

.home-tz.home-current {
  width: min(100%, 100rem) !important;
  grid-template-columns: minmax(31rem, 1.02fr) minmax(0, 0.98fr) !important;
  gap: clamp(1.8rem, 3.4vw, 4rem) !important;
}

.home-current .home-cover img {
  width: min(100%, 47.5rem) !important;
}

.home-current .home-content {
  max-width: 100% !important;
}

.home-current .home-title-main {
  font-size: clamp(3.5rem, 5.5vw, 5.1rem) !important;
}

.home-current .home-title-sub {
  max-width: 38rem !important;
}

.home-current .home-link-card.has-full-text {
  padding: clamp(1rem, 1.45vw, 1.3rem) !important;
}

.excerpt-layout-2707 {
  grid-template-columns: minmax(19rem, 24rem) minmax(0, 1fr) !important;
  gap: clamp(1.35rem, 2.8vw, 2.4rem) !important;
}

.excerpt-preview-panel {
  position: sticky !important;
  top: 5.35rem !important;
  display: grid !important;
  gap: 0.9rem !important;
  align-self: start !important;
  padding: clamp(0.95rem, 1.4vw, 1.2rem) !important;
  border: 1px solid rgba(74, 45, 27, 0.24) !important;
  border-radius: 1.25rem !important;
  background: rgba(255, 248, 236, 0.72) !important;
  box-shadow: 0 14px 34px rgba(68, 39, 21, 0.10) !important;
}

.excerpt-preview-head {
  display: grid !important;
  gap: 0.45rem !important;
}

.excerpt-preview-head h3 {
  color: #2d2017 !important;
  font-size: clamp(1.4rem, 1.8vw, 1.8rem) !important;
  line-height: 1 !important;
}

.excerpt-preview-head p {
  margin: 0 !important;
  color: #3d2b1f !important;
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
}

.excerpt-image-2707 {
  position: static !important;
  overflow: hidden !important;
  border-radius: 0.95rem !important;
}

.excerpt-image-2707 img {
  width: 100% !important;
  aspect-ratio: 817 / 1034 !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
  -o-object-position: top center !important;
     object-position: top center !important;
}

.excerpt-image-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.6rem !important;
}

.excerpt-thumb {
  display: grid !important;
  gap: 0.35rem !important;
  padding: 0.38rem !important;
  border: 1px solid rgba(74, 45, 27, 0.20) !important;
  border-radius: 0.85rem !important;
  background: rgba(255, 251, 245, 0.64) !important;
  color: #39281d !important;
  cursor: pointer !important;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease !important;
}

.excerpt-thumb:hover,
.excerpt-thumb:focus-visible {
  transform: translateY(-1px) !important;
  border-color: rgba(74, 45, 27, 0.46) !important;
  background: rgba(255, 252, 246, 0.92) !important;
}

.excerpt-thumb.is-active {
  border-color: rgba(74, 45, 27, 0.62) !important;
  background: rgba(255, 252, 246, 0.95) !important;
  box-shadow: 0 10px 24px rgba(68, 39, 21, 0.10) !important;
}

.excerpt-thumb img {
  width: 100% !important;
  border-radius: 0.5rem !important;
  aspect-ratio: 0.79 !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
  -o-object-position: top center !important;
     object-position: top center !important;
  border: 1px solid rgba(74, 45, 27, 0.10) !important;
}

.excerpt-thumb span {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}


@media (max-width: 1180px) {
  .home-tz.home-current {
    grid-template-columns: minmax(25rem, 0.95fr) minmax(0, 1fr) !important;
  }
}

@media (max-width: 980px) {
  .excerpt-preview-panel {
    position: static !important;
    top: auto !important;
  }

  .excerpt-layout-2707 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 680px) {
  .future-project-logo-space {
    width: 1.95rem !important;
    height: 1.95rem !important;
  }

  .excerpt-image-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
  }

  .excerpt-thumb {
    padding: 0.28rem !important;
  }

  .excerpt-thumb span {
    font-size: 0.68rem !important;
  }
}

/* --- Production pass: readable excerpt pages and brighter information panels --- */
.excerpt-layout-2707 {
  grid-template-columns: minmax(28rem, 34rem) minmax(0, 1fr) !important;
  gap: clamp(1.5rem, 3vw, 2.8rem) !important;
}

.excerpt-preview-panel {
  gap: 0.75rem !important;
  padding: 0.75rem !important;
  background: rgba(255, 248, 236, 0.88) !important;
}

.excerpt-image-2707 {
  border-radius: 0.8rem !important;
  background: #fff !important;
}

.excerpt-image-2707 img {
  aspect-ratio: 587 / 883 !important;
  -o-object-fit: contain !important;
     object-fit: contain !important;
  -o-object-position: center !important;
     object-position: center !important;
}

.excerpt-image-actions {
  gap: 0.7rem !important;
}

.excerpt-thumb {
  grid-template-columns: 3.8rem minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 0.55rem !important;
  min-height: 4.8rem !important;
  padding: 0.42rem !important;
}

.excerpt-thumb img {
  width: 3.8rem !important;
  aspect-ratio: 587 / 883 !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
}

.excerpt-thumb span {
  font-size: 0.9rem !important;
  text-align: left !important;
}

.excerpt-card,
.contact-card {
  background: rgba(255, 248, 236, 0.88) !important;
  border-color: rgba(74, 45, 27, 0.30) !important;
  box-shadow: 0 16px 38px rgba(68, 39, 21, 0.14) !important;
}

@media (max-width: 1180px) {
  .excerpt-layout-2707 {
    grid-template-columns: minmax(24rem, 29rem) minmax(0, 1fr) !important;
  }
}

@media (max-width: 980px) {
  .excerpt-layout-2707 {
    grid-template-columns: 1fr !important;
  }

  .excerpt-preview-panel {
    width: min(100%, 38rem) !important;
    margin-inline: auto !important;
  }
}

@media (max-width: 680px) {
  .excerpt-preview-panel {
    width: 100% !important;
    padding: 0.55rem !important;
  }

  .excerpt-image-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .excerpt-thumb {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .excerpt-thumb img {
    width: 100% !important;
  }

  .excerpt-thumb span {
    text-align: center !important;
  }
}

@media (max-width: 980px) {
  .excerpt-image-2707 {
    width: 100% !important;
  }
}

/* --- Production layout pass V5: first-screen home, compact excerpt, centered project photos --- */
@media (min-width: 1200px) {
  .home-tz.home-current {
    width: min(100%, 102rem) !important;
    min-height: calc(100vh - 4.2rem) !important;
    padding: 1rem clamp(1rem, 2vw, 2rem) 1.15rem !important;
    grid-template-columns: minmax(32rem, 0.92fr) minmax(0, 1.28fr) !important;
    gap: clamp(1.45rem, 2.4vw, 2.6rem) !important;
    align-items: start !important;
  }

  .home-current .home-cover {
    position: sticky !important;
    top: 4.9rem !important;
    padding-top: 0.2rem !important;
  }

  .home-current .home-cover img {
    width: min(100%, 40.5rem) !important;
    max-height: calc(100vh - 7.1rem) !important;
    -o-object-fit: contain !important;
       object-fit: contain !important;
  }

  .home-current .home-content h1 {
    margin-bottom: 0.7rem !important;
  }

  .home-current .home-title-main {
    font-size: clamp(3rem, 3.8vw, 4.15rem) !important;
    line-height: 0.94 !important;
  }

  .home-current .home-title-sub {
    max-width: 46rem !important;
    margin-top: 0.32rem !important;
    font-size: clamp(0.88rem, 1.05vw, 1.04rem) !important;
    line-height: 1.25 !important;
  }

  .home-current .home-links {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
  }

  .home-current .home-link-card.has-full-text {
    grid-column: 1 / -1 !important;
    padding: 0.72rem 0.8rem !important;
    border-radius: 0.55rem !important;
  }

  .home-current .home-link-card.has-full-text .home-link-copy {
    grid-template-columns: minmax(6.7rem, 7.8rem) minmax(0, 1fr) !important;
    gap: 0.7rem !important;
  }

  .home-current .home-link-card.has-full-text .home-link-copy strong {
    font-size: clamp(1.02rem, 1.25vw, 1.25rem) !important;
    line-height: 1.08 !important;
  }

  .home-current .home-link-card.has-full-text .home-link-copy span {
    font-size: clamp(0.72rem, 0.79vw, 0.82rem) !important;
    line-height: 1.31 !important;
  }

  .home-current .home-link-card.button-only {
    grid-column: span 2 !important;
    min-height: 3.35rem !important;
    padding: 0.62rem 0.72rem !important;
  }

  .home-current .home-link-card.button-only .home-link-copy strong {
    font-size: clamp(0.9rem, 1.05vw, 1.06rem) !important;
    line-height: 1.08 !important;
  }
}

@media (min-width: 1100px) {
  .page-excerpt .content-section {
    width: min(100%, 104rem) !important;
    padding: 1rem clamp(1rem, 1.6vw, 1.6rem) 2rem !important;
  }

  .page-excerpt .excerpt-layout-2707 {
    width: 100% !important;
    grid-template-columns: minmax(21.5rem, 24.5rem) minmax(0, 1fr) !important;
    gap: clamp(1rem, 1.7vw, 1.65rem) !important;
  }

  .page-excerpt .excerpt-preview-panel {
    top: 4.9rem !important;
    padding: 0.55rem !important;
    gap: 0.55rem !important;
  }

  .page-excerpt .excerpt-image-2707 img {
    width: 100% !important;
    max-height: calc(100vh - 11.2rem) !important;
    aspect-ratio: auto !important;
    -o-object-fit: contain !important;
       object-fit: contain !important;
  }

  .page-excerpt .excerpt-image-actions {
    gap: 0.45rem !important;
  }

  .page-excerpt .excerpt-thumb {
    grid-template-columns: 2.8rem minmax(0, 1fr) !important;
    min-height: 3.55rem !important;
    padding: 0.28rem !important;
    gap: 0.4rem !important;
  }

  .page-excerpt .excerpt-thumb img {
    width: 2.8rem !important;
  }

  .page-excerpt .excerpt-thumb span {
    font-size: 0.78rem !important;
  }

  .page-excerpt .excerpt-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(1rem, 1.6vw, 1.55rem) !important;
  }

  .page-excerpt .excerpt-text p {
    font-size: clamp(0.94rem, 1.02vw, 1.06rem) !important;
    line-height: 1.58 !important;
  }
}

.page-project .partners-grid {
  gap: 0.9rem !important;
}

.page-project .partner-card {
  grid-template-columns: minmax(11rem, 0.24fr) minmax(0, 1fr) !important;
  -moz-column-gap: 1.2rem !important;
       column-gap: 1.2rem !important;
  row-gap: 0.8rem !important;
}

.page-project .project-partner-photo {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 1rem 0 0 !important;
  justify-items: center !important;
}

.page-project .project-partner-photo img {
  display: block !important;
  width: min(100%, 39rem) !important;
  max-height: 31rem !important;
  margin-inline: auto !important;
  -o-object-fit: contain !important;
     object-fit: contain !important;
  -o-object-position: center !important;
     object-position: center !important;
}

.page-project .project-museum-photo img {
  width: min(100%, 45rem) !important;
}

.page-project .project-partner-photo figcaption {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-top: 0.15rem !important;
  text-align: left !important;
}

@media (max-width: 1199px) and (min-width: 981px) {
  .home-tz.home-current {
    padding-top: 1rem !important;
    grid-template-columns: minmax(23rem, 0.8fr) minmax(0, 1.2fr) !important;
  }

  .home-current .home-cover img {
    width: min(100%, 38rem) !important;
  }

  .home-current .home-title-main {
    font-size: clamp(2.7rem, 4.7vw, 3.7rem) !important;
  }

  .home-current .home-link-card.has-full-text .home-link-copy span {
    font-size: 0.76rem !important;
    line-height: 1.32 !important;
  }
}

@media (max-width: 980px) {
  .page-project .partner-card {
    grid-template-columns: 1fr !important;
  }

  .page-project .project-partner-photo {
    grid-column: auto !important;
  }
}

/* Keep the future project logo area empty and free of any dotted placeholder. */
.future-project-logo-space {
  border: 0 !important;
  outline: 0 !important;
}

/* --- Production V6: home layout follows the actual viewport width and height --- */
@media (min-width: 981px) {
  .page-home .home-tz.home-current {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100dvh - 4.15rem) !important;
    margin: 0 !important;
    padding: clamp(0.9rem, 1.55vh, 1.25rem) clamp(1rem, 2.65vw, 2.8rem) !important;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr) !important;
    gap: clamp(1.2rem, 2.1vw, 2.45rem) !important;
    align-items: center !important;
  }

  .page-home .home-current .home-cover {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    align-self: center !important;
  }

  .page-home .home-current .home-cover img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: calc(100dvh - 7rem) !important;
    -o-object-fit: contain !important;
       object-fit: contain !important;
  }

  .page-home .home-current .home-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .page-home .home-current .home-content h1 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 clamp(0.55rem, 1vh, 0.8rem) !important;
  }

  .page-home .home-current .home-title-main {
    font-size: clamp(3rem, 4vw, 4.45rem) !important;
    line-height: 0.94 !important;
  }

  .page-home .home-current .home-title-sub {
    max-width: none !important;
    margin-top: 0.3rem !important;
    font-size: clamp(0.84rem, 1vw, 1rem) !important;
    line-height: 1.22 !important;
  }

  .page-home .home-current .home-links {
    width: 100% !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: clamp(0.42rem, 0.65vw, 0.62rem) !important;
  }

  .page-home .home-current .home-link-card.has-full-text {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    padding: clamp(0.64rem, 0.75vw, 0.82rem) !important;
  }

  .page-home .home-current .home-link-card.has-full-text .home-link-copy {
    grid-template-columns: minmax(6.8rem, 8rem) minmax(0, 1fr) !important;
    gap: clamp(0.65rem, 0.9vw, 0.95rem) !important;
  }

  .page-home .home-current .home-link-card.has-full-text .home-link-copy strong {
    font-size: clamp(1rem, 1.18vw, 1.24rem) !important;
  }

  .page-home .home-current .home-link-card.has-full-text .home-link-copy span {
    font-size: clamp(0.71rem, 0.76vw, 0.81rem) !important;
    line-height: 1.28 !important;
  }

  .page-home .home-current .home-link-card.button-only {
    grid-column: span 2 !important;
    width: 100% !important;
    min-height: clamp(3.15rem, 5.6vh, 3.65rem) !important;
    padding: 0.6rem 0.75rem !important;
  }

  .page-home .home-current .home-link-card.button-only .home-link-copy strong {
    font-size: clamp(0.9rem, 1.02vw, 1.08rem) !important;
  }
}

/* Compact-height laptops: keep every home button inside the first screen. */
@media (min-width: 981px) and (max-height: 790px) {
  .page-home .home-tz.home-current {
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
  }

  .page-home .home-current .home-title-main {
    font-size: clamp(2.55rem, 3.45vw, 3.65rem) !important;
  }

  .page-home .home-current .home-title-sub {
    font-size: clamp(0.78rem, 0.88vw, 0.9rem) !important;
  }

  .page-home .home-current .home-link-card.has-full-text {
    padding: 0.56rem 0.68rem !important;
  }

  .page-home .home-current .home-link-card.has-full-text .home-link-copy span {
    font-size: clamp(0.67rem, 0.7vw, 0.75rem) !important;
    line-height: 1.23 !important;
  }

  .page-home .home-current .home-link-card.button-only {
    min-height: 2.9rem !important;
    padding: 0.48rem 0.65rem !important;
  }
}

/* Tablet: use the full available width, then stack cleanly. */
@media (min-width: 681px) and (max-width: 980px) {
  .page-home .home-tz.home-current {
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
    padding: 1rem clamp(1rem, 3vw, 1.7rem) 1.5rem !important;
    gap: 1.25rem !important;
  }

  .page-home .home-current .home-cover {
    width: 100% !important;
  }

  .page-home .home-current .home-cover img {
    width: min(100%, 52rem) !important;
    max-width: none !important;
    max-height: none !important;
  }

  .page-home .home-current .home-content,
  .page-home .home-current .home-content h1 {
    width: 100% !important;
    max-width: none !important;
  }

  .page-home .home-current .home-links {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .page-home .home-current .home-link-card.has-full-text {
    grid-column: 1 / -1 !important;
  }

  .page-home .home-current .home-link-card.button-only {
    grid-column: span 2 !important;
    width: 100% !important;
  }
}

/* Phones: one readable column with no horizontal overflow. */
@media (max-width: 680px) {
  .page-home .home-tz.home-current {
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
    padding: 0.85rem 0.8rem 1.25rem !important;
    gap: 1rem !important;
  }

  .page-home .home-current .home-cover,
  .page-home .home-current .home-content,
  .page-home .home-current .home-content h1 {
    width: 100% !important;
    max-width: none !important;
  }

  .page-home .home-current .home-cover img {
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
  }

  .page-home .home-current .home-title-main {
    font-size: clamp(2.2rem, 12vw, 3.25rem) !important;
    line-height: 0.96 !important;
  }

  .page-home .home-current .home-title-sub {
    font-size: 0.86rem !important;
    line-height: 1.3 !important;
  }

  .page-home .home-current .home-links {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .page-home .home-current .home-link-card.has-full-text,
  .page-home .home-current .home-link-card.button-only {
    grid-column: 1 !important;
    width: 100% !important;
  }

  .page-home .home-current .home-link-card.has-full-text .home-link-copy {
    grid-template-columns: 1fr !important;
  }
}

/* ======================================================================
   Финальная сверка с замечаниями 29.07: единая айдентика и памятные тексты.
   ====================================================================== */

/* В шапке — утверждаемая айдентика проекта, без плашки
   «Просветительский проект». */
.project-logo-link {
  border-color: rgba(74, 45, 27, 0.30) !important;
  background: rgba(255, 248, 236, 0.56) !important;
  color: #2d2017 !important;
}

.project-logo-link:hover,
.project-logo-link:focus-visible {
  border-color: rgba(74, 45, 27, 0.56) !important;
  background: rgba(255, 252, 246, 0.82) !important;
}

.project-logo-text strong {
  color: #2d2017 !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: clamp(0.72rem, 0.82vw, 0.9rem) !important;
  letter-spacing: -0.015em !important;
}

/* Единый памятный текст: антиква из предыдущей версии сайта. */
.memorial-statement {
  position: relative;
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: clamp(1.05rem, 2.2vw, 1.7rem) clamp(1.15rem, 3vw, 2.2rem);
  border: 1px solid rgba(74, 45, 27, 0.26);
  border-left: 0.32rem solid #6b2d22;
  border-radius: 0.45rem;
  background: rgba(255, 248, 236, 0.82);
  box-shadow: 0 14px 34px rgba(67, 40, 22, 0.10);
  color: #2d2017;
}

.memorial-statement::before {
  content: '“';
  position: absolute;
  top: 0.1rem;
  left: 0.65rem;
  color: rgba(107, 45, 34, 0.20);
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(3.8rem, 7vw, 6.2rem);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.memorial-statement p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #38261a !important;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif !important;
  font-size: clamp(1.45rem, 2.35vw, 2.15rem) !important;
  font-style: italic;
  font-weight: 600;
  line-height: 1.25 !important;
  text-wrap: balance;
}

.memorial-statement footer {
  margin-top: 0.8rem;
  color: #6b2d22;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  font-weight: 800;
  letter-spacing: 0.035em;
  text-align: right;
}

/* Главная: памятный текст размещён непосредственно под названием книги. */
.home-memorial-statement {
  width: 100%;
  margin: 0 0 clamp(0.55rem, 1vh, 0.8rem);
  padding: clamp(0.62rem, 0.9vw, 0.88rem) clamp(0.8rem, 1.25vw, 1.1rem);
  border-left-width: 0.24rem;
  box-shadow: 0 8px 22px rgba(67, 40, 22, 0.07);
}

.home-memorial-statement::before {
  top: -0.1rem;
  left: 0.38rem;
  font-size: clamp(2.8rem, 4.8vw, 4.2rem);
}

.home-memorial-statement p {
  font-size: clamp(1.02rem, 1.28vw, 1.3rem) !important;
  line-height: 1.2 !important;
}

/* Отрывок: удалён левый блок предпросмотра, текст занимает одну колонку. */
.page-excerpt .content-section {
  padding-top: clamp(1.1rem, 2.5vw, 2rem) !important;
}

.excerpt-card-single {
  width: min(100%, 78rem) !important;
  margin: 0 auto !important;
  padding: clamp(1.2rem, 3vw, 2.3rem) !important;
}

.excerpt-card-single .excerpt-text {
  max-width: 68rem;
  margin: 0 auto;
}

/* Буктрейлер: вместо декоративной картинки после ролика — фраза из ТЗ. */
.trailer-memorial-section {
  padding-top: 0 !important;
  padding-bottom: clamp(2rem, 4vw, 4rem) !important;
}

.trailer-memorial-section .memorial-statement {
  width: min(100%, 68rem);
}

/* Контакты: адрес наследует ровно тот же шрифт и размер, что и строка. */
.contact-card.contact-inline a {
  font-family: inherit !important;
  font-size: inherit !important;
  font-style: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

.contact-memorial-statement {
  width: min(100%, 58rem);
  margin-top: clamp(1.15rem, 3vw, 2rem);
}

.contact-memorial-statement p {
  font-size: clamp(1.3rem, 2vw, 1.8rem) !important;
}

@media (min-width: 981px) and (max-height: 790px) {
  .home-memorial-statement {
    margin-bottom: 0.48rem;
    padding: 0.48rem 0.72rem;
  }

  .home-memorial-statement p {
    font-size: clamp(0.9rem, 1.08vw, 1.08rem) !important;
    line-height: 1.15 !important;
  }
}

@media (max-width: 680px) {
  .memorial-statement {
    padding: 1rem 1rem 1rem 1.15rem;
  }

  .memorial-statement p {
    font-size: clamp(1.25rem, 6vw, 1.65rem) !important;
    line-height: 1.25 !important;
    text-wrap: pretty;
  }

  .home-memorial-statement {
    margin-bottom: 0.7rem;
  }

  .home-memorial-statement p {
    font-size: 1.12rem !important;
  }

  .memorial-statement footer {
    text-align: left;
  }
}

/* Два смысловых блока контактов держим единой компактной группой. */
.page-contacts .content-section {
  place-items: initial !important;
  align-content: center !important;
  justify-items: center !important;
  grid-auto-rows: max-content !important;
  gap: clamp(1.15rem, 3vw, 2rem) !important;
}

.contact-memorial-statement {
  margin-top: 0 !important;
}

/* ========================================================================
   Строгое оформление формулировок из ТЗ от 29.07.
   Текст не меняется; декоративные блоки сделаны спокойнее и единообразнее.
   ======================================================================== */
.memorial-statement {
  position: relative;
  margin-inline: auto;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1.1rem, 2.4vw, 1.7rem) !important;
  border: 1px solid rgba(112, 74, 42, 0.2) !important;
  border-left: 3px solid rgba(113, 50, 37, 0.72) !important;
  border-radius: 0.55rem !important;
  background: rgba(250, 242, 228, 0.86) !important;
  box-shadow: 0 5px 16px rgba(67, 40, 22, 0.055) !important;
}

.memorial-statement::before {
  content: none !important;
  display: none !important;
}

.memorial-statement p {
  margin: 0 !important;
  color: #432f22 !important;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif !important;
  font-size: clamp(1.22rem, 1.75vw, 1.58rem) !important;
  font-style: normal !important;
  font-weight: 600 !important;
  line-height: 1.34 !important;
  letter-spacing: 0 !important;
}

.memorial-statement footer {
  margin-top: 0.7rem !important;
  color: #664436 !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: clamp(0.78rem, 0.9vw, 0.88rem) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-align: right !important;
}

.home-memorial-statement {
  margin-bottom: clamp(0.55rem, 1vh, 0.8rem) !important;
  padding: 0.72rem 0.95rem !important;
  box-shadow: none !important;
}

.home-memorial-statement p {
  font-size: clamp(0.98rem, 1.18vw, 1.16rem) !important;
  line-height: 1.28 !important;
}

.trailer-memorial-section .memorial-statement {
  width: min(100%, 68rem) !important;
  margin-top: 0 !important;
}

/* Контакты: обе обязательные формулировки ТЗ находятся в одном спокойном блоке. */
.page-contacts .content-section {
  place-items: initial !important;
  align-content: center !important;
  justify-items: center !important;
  grid-auto-rows: max-content !important;
  gap: 0 !important;
}

.contact-card.contact-combined {
  width: min(100%, 58rem) !important;
  margin: 0 auto !important;
  padding: clamp(1.25rem, 3vw, 2rem) !important;
  border: 1px solid rgba(112, 74, 42, 0.2) !important;
  border-radius: 0.6rem !important;
  background: rgba(250, 242, 228, 0.42) !important;
  box-shadow: none !important;
  text-align: left !important;
}

.contact-card.contact-combined::before {
  content: none !important;
  display: none !important;
}

.contact-card.contact-combined p {
  max-width: none !important;
  margin: 0 !important;
  color: #49382c !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: clamp(1rem, 1.25vw, 1.12rem) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.58 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
}

.contact-card.contact-combined a {
  color: inherit !important;
  font: inherit !important;
  font-weight: 650 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.18em !important;
}

.contact-card.contact-combined .contact-memory-copy {
  margin-top: clamp(1rem, 2vw, 1.35rem) !important;
  padding-top: clamp(1rem, 2vw, 1.35rem) !important;
  border-top: 1px solid rgba(112, 74, 42, 0.18) !important;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif !important;
  font-size: clamp(1.18rem, 1.6vw, 1.45rem) !important;
  font-weight: 600 !important;
  line-height: 1.38 !important;
}

@media (max-width: 680px) {
  .memorial-statement {
    padding: 0.95rem 1rem !important;
  }

  .memorial-statement p {
    font-size: 1.16rem !important;
  }

  .memorial-statement footer {
    text-align: left !important;
  }

  .home-memorial-statement p {
    font-size: 1rem !important;
  }

  .contact-card.contact-combined {
    padding: 1.1rem !important;
  }

  .contact-card.contact-combined p {
    font-size: 0.98rem !important;
  }

  .contact-card.contact-combined .contact-memory-copy {
    font-size: 1.14rem !important;
  }
}

/* ========================================================================
   Корректировка 02.08: тематический знак проекта и более крупная типографика.
   Заголовок книги и подзаголовок на главной оставлены без увеличения.
   ======================================================================== */

.project-logo-link {
  gap: 0.72rem !important;
  min-height: 3rem !important;
  padding: 0.38rem 0.62rem !important;
}

.project-logo-mark {
  width: 2.32rem !important;
  height: 2.32rem !important;
  flex-basis: 2.32rem !important;
  filter: drop-shadow(0 4px 10px rgba(67, 40, 22, 0.16)) !important;
}

.project-logo-text strong {
  font-size: clamp(0.82rem, 0.9vw, 0.98rem) !important;
  line-height: 1.12 !important;
}

@media (min-width: 981px) {
  .header-row {
    grid-template-columns: minmax(13.5rem, 15.5rem) minmax(0, 1fr) auto !important;
  }

  .main-nav a,
  .footer-nav a {
    min-height: 3rem !important;
    padding: 0.58rem 0.48rem !important;
    font-size: clamp(0.78rem, 0.82vw, 0.9rem) !important;
    line-height: 1.18 !important;
  }
}

/* Главная: увеличиваем подписи, описания и кнопки, не затрагивая название книги. */
.page-home .home-memorial-statement p {
  font-size: clamp(1.08rem, 1.3vw, 1.28rem) !important;
  line-height: 1.31 !important;
}

.page-home .home-current .home-link-card.has-full-text .home-link-copy strong {
  font-size: clamp(1.12rem, 1.35vw, 1.36rem) !important;
  line-height: 1.12 !important;
}

.page-home .home-current .home-link-card.has-full-text .home-link-copy span {
  font-size: clamp(0.86rem, 0.94vw, 1rem) !important;
  line-height: 1.42 !important;
}

.page-home .home-current .home-link-card.button-only .home-link-copy strong {
  font-size: clamp(1.02rem, 1.16vw, 1.24rem) !important;
  line-height: 1.15 !important;
}

.page-home .home-current .home-link-card.button-only {
  min-height: clamp(3.55rem, 6.2vh, 4.15rem) !important;
}

/* Внутренние разделы: небольшое увеличение основного текста без изменения заголовков. */
.text-block p,
.page-lead p,
.excerpt-text p,
.partner-card li,
.contact-card p,
.author-m24-copy p,
.media-caption,
figcaption {
  font-size: clamp(1.02rem, 1.08vw, 1.14rem) !important;
}

.contact-card.contact-combined .contact-memory-copy {
  font-size: clamp(1.25rem, 1.72vw, 1.55rem) !important;
}

@media (min-width: 981px) and (max-height: 790px) {
  .page-home .home-memorial-statement p {
    font-size: clamp(0.98rem, 1.14vw, 1.12rem) !important;
  }

  .page-home .home-current .home-link-card.has-full-text .home-link-copy span {
    font-size: clamp(0.77rem, 0.82vw, 0.88rem) !important;
    line-height: 1.32 !important;
  }

  .page-home .home-current .home-link-card.button-only {
    min-height: 3.15rem !important;
  }
}

@media (max-width: 980px) {
  .project-logo-mark {
    width: 2.15rem !important;
    height: 2.15rem !important;
    flex-basis: 2.15rem !important;
  }

  .project-logo-text strong {
    font-size: 0.88rem !important;
  }
}

@media (max-width: 680px) {
  .page-home .home-memorial-statement p {
    font-size: 1.08rem !important;
  }

  .page-home .home-current .home-link-card.has-full-text .home-link-copy strong,
  .page-home .home-current .home-link-card.button-only .home-link-copy strong {
    font-size: 1.12rem !important;
  }

  .page-home .home-current .home-link-card.has-full-text .home-link-copy span,
  .text-block p,
  .page-lead p,
  .excerpt-text p,
  .partner-card li,
  .contact-card p,
  .author-m24-copy p,
  .media-caption,
  figcaption {
    font-size: 1rem !important;
  }
}

/* ========================================================================
   Корректировка 02.08: выравнивание главной, полное название в шапке
   и более спокойное оформление страницы отрывка.
   ======================================================================== */

@media (min-width: 981px) {
  /* Название проекта показывается полностью, без многоточия. */
  .header-row {
    grid-template-columns: minmax(16.25rem, 17.5rem) minmax(0, 1fr) auto !important;
  }

  .project-logo-text strong {
    overflow: visible !important;
    font-size: clamp(0.82rem, 0.86vw, 0.94rem) !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  /* Обложка и правая смысловая колонка образуют два равных прямоугольника. */
  .page-home .home-tz.home-current {
    align-items: stretch !important;
  }

  .page-home .home-current .home-cover {
    position: relative !important;
    align-self: stretch !important;
    min-height: 31rem !important;
    overflow: hidden !important;
    border: 1px solid rgba(74, 45, 27, 0.40) !important;
    background: #f4ead8 !important;
    box-shadow: 0 22px 52px rgba(67, 39, 22, 0.22) !important;
  }

  .page-home .home-current .home-cover img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    border: 0 !important;
    -o-object-fit: cover !important;
       object-fit: cover !important;
    -o-object-position: center center !important;
       object-position: center center !important;
    box-shadow: none !important;
  }

  .page-home .home-current .home-content {
    height: 100% !important;
  }
}

/* Отрывок остаётся одной колонкой, как требует ТЗ, но без огромного белого поля. */
.page-excerpt .content-section {
  width: min(100%, 70rem) !important;
  padding-top: clamp(1rem, 2vw, 1.6rem) !important;
}

.page-excerpt .excerpt-card-single {
  width: min(100%, 62rem) !important;
  padding: clamp(1.35rem, 2.8vw, 2.2rem) clamp(1.25rem, 3.2vw, 2.6rem) !important;
  border-radius: 0.55rem !important;
  background: rgba(250, 242, 228, 0.72) !important;
  box-shadow: 0 12px 30px rgba(67, 40, 22, 0.08) !important;
}

.page-excerpt .excerpt-card-single .excerpt-text {
  max-width: 54rem !important;
}

@media (max-width: 680px) {
  .page-excerpt .excerpt-card-single {
    padding: 1.05rem !important;
    border-radius: 0.4rem !important;
  }
}

/* Финальное уточнение главной: сохраняем весь разворот обложки и не
   растягиваем секцию на высоту экрана — нижняя кромка совпадает с кнопками. */
@media (min-width: 981px) {
  .page-home .home-tz.home-current {
    min-height: auto !important;
  }

  .page-home .home-current .home-cover img {
    -o-object-fit: fill !important;
       object-fit: fill !important;
  }
}

/* ========================================================================
   Финальная корректировка главной: обложка начинается на уровне памятной
   фразы и сохраняет исходные пропорции без вертикального растягивания.
   ======================================================================== */
@media (min-width: 981px) {
  .page-home .home-tz.home-current {
    align-items: start !important;
    grid-template-rows: auto auto auto !important;
  }

  /* Дочерние элементы правой колонки участвуют в общей сетке страницы. */
  .page-home .home-current .home-content {
    display: contents !important;
    height: auto !important;
  }

  .page-home .home-current .home-content h1 {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .page-home .home-current .home-memorial-statement {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  .page-home .home-current .home-links {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  .page-home .home-current .home-cover {
    grid-column: 1 !important;
    grid-row: 2 / span 2 !important;
    position: relative !important;
    align-self: start !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .page-home .home-current .home-cover img {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    -o-object-fit: contain !important;
       object-fit: contain !important;
    -o-object-position: center top !important;
       object-position: center top !important;
    border: 1px solid rgba(74, 45, 27, 0.40) !important;
    background: #f4ead8 !important;
    box-shadow: 0 22px 52px rgba(67, 39, 22, 0.22) !important;
  }
}

@media (min-width: 981px) {
  .page-home .home-current .home-cover {
    display: block !important;
    place-items: initial !important;
  }
}
